@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250227.1 → 0.0.0-nightly-next-20250228.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x89bf4b,Command as _0x3682da}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x50294b,IconGooglePhotos as _0x232410,IconGoogleDrive as _0x4491ac,IconFacebook as _0x3527e0,IconDropbox as _0x6ece2b,IconUploadcareLink as _0x4d57f0,IconUploadcareImageUpload as _0xbb5ff,IconError as et,IconUploadcareImageEdit as _0x2bf65d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2384d2,MenuBarMenuListItemButtonView as _0x532a65,View as _0x3ef8e2,FocusCycler as _0x126556,Dialog as _0x55adf0,DialogViewPosition as _0x12bee4,SpinnerView as _0x1c282d,IconView as at,Notification as _0xa2548d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x335ecb,DomEmitterMixin as _0x2c8f69,global as _0x143fb0,getAncestors as _0x2f5b42,ObservableMixin as _0x2faac7,createElement as _0x4e7da7,uid as _0x53d801}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1f0571}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e1960,info as _0xbf8b5d}from'@uploadcare/upload-client';import*as _0x5797b4 from'@uploadcare/file-uploader';var o=function(_0x224d8d){return _0x224d8d['Local']='local',_0x224d8d['URL']='url',_0x224d8d['Dropbox']='dropbox',_0x224d8d['GDrive']='gdrive',_0x224d8d['Facebook']='facebook',_0x224d8d['GPhotos']='gphotos',_0x224d8d['OneDrive']='onedrive',_0x224d8d;}({});function _(_0x3df378,_0x4b6494,_0x3d30c5){const t=_0x3df378['t'],_0x284848=_0x3df378['t'];switch(_0x4b6494){case o['Local']:return{'text':_0x284848('Insert'===_0x3d30c5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x284848('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3d30c5?_0x284848('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x284848('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4b6494;}}class e extends _0x89bf4b{['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 _0x152ddd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4977c0;for(const _0x52a231 in _0x152ddd){const _0x218410=_0x52a231,_0x4442d7=_0x152ddd[_0x218410];if('uploadcareLicenseKeyValid'==_0x4442d7||'uploadcareLicenseKeyInvalid'==_0x4442d7||'uploadcareLicenseKeyExpired'==_0x4442d7||'uploadcareLicenseKeyDomainLimit'==_0x4442d7||'uploadcareLicenseKeyNotAllowed'==_0x4442d7||'uploadcareLicenseKeyEvaluationLimit'==_0x4442d7||'uploadcareLicenseKeyTrialLimit'==_0x4442d7||'uploadcareLicenseKeyUsageLimit'==_0x4442d7){delete _0x152ddd[_0x218410],_0x4977c0=_0x4442d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4977c0&&_0x152ddd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4977c0&&_0x152ddd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4977c0&&_0x152ddd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1bf05e}=this,_0x21c925=_0x1bf05e['commands']['get']('uploadcare');if(!_0x21c925)return;const _0x123d48=this['_normalizeConfigSourceList'](_0x1bf05e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5136d3,_0xef375c)=>{const _0x362102=this['_getIntegrationKey'](_0xef375c['type']);return _0x5136d3[_0x362102]||(_0x5136d3[_0x362102]=[]),_0x5136d3[_0x362102]['push'](_0xef375c),_0x5136d3;},{});_0x1bf05e['plugins']['has']('ImageInsertUI')&&_0x1bf05e['commands']['get']('uploadcare')&&Object['entries'](_0x123d48)['forEach'](([_0x3b522a,_0x232169])=>{_0x1bf05e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b522a,'observable':()=>_0x21c925,'buttonViewCreator':()=>this['_createToolbarButton'](_0x232169),'formViewCreator':()=>this['_createDropdownButtons'](_0x232169),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x232169),'override':'assetManager'!==_0x3b522a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2abaf8){const {locale:_0x20e2b7}=this['editor'];return _0x2abaf8['map'](_0x8676e3=>{const _0x4be0b2=_(_0x20e2b7,_0x8676e3,'Insert');switch(_0x8676e3){case o['Local']:return{'icon':_0xbb5ff,'type':o['Local'],..._0x4be0b2};case o['URL']:return{'icon':_0x4d57f0,'type':o['URL'],..._0x4be0b2};case o['Dropbox']:return{'icon':_0x6ece2b,'type':o['Dropbox'],..._0x4be0b2};case o['Facebook']:return{'icon':_0x3527e0,'type':o['Facebook'],..._0x4be0b2};case o['GDrive']:return{'icon':_0x4491ac,'type':o['GDrive'],..._0x4be0b2};case o['GPhotos']:return{'icon':_0x232410,'type':o['GPhotos'],..._0x4be0b2};case o['OneDrive']:return{'icon':_0x50294b,'type':o['OneDrive'],..._0x4be0b2};}});}['_getIntegrationKey'](_0x6663cf){switch(_0x6663cf){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2e547e,_0x369237){const _0x2ce564=this['editor'],_0x3aaa12=new _0x2e547e(_0x2ce564['locale']),_0x3c978f=_0x2ce564['commands']['get']('uploadcare');return _0x3aaa12['bind']('isEnabled')['to'](_0x3c978f),_0x3aaa12['on']('execute',()=>{_0x3c978f['execute'](_0x369237);}),_0x3aaa12;}['_createToolbarButton'](_0x102a42){const {locale:_0x401966}=this['editor'],_0x5b6265=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f7348=_0x102a42[0x0],_0x32eb58=this['_createButton'](_0x2384d2,_0x4f7348['type']);return _0x32eb58['icon']=_0x4f7348['icon'],_0x32eb58['bind']('label')['to'](_0x5b6265,'isImageSelected',_0xf6cade=>_(_0x401966,_0x4f7348['type'],_0xf6cade?'Replace':'Insert')['text']),_0x32eb58['tooltip']=!0x0,_0x32eb58;}['_createDropdownButtons'](_0x128b0b){const {locale:_0x3633d2}=this['editor'],_0x297ab7=this['editor']['plugins']['get']('ImageInsertUI');return _0x128b0b['map'](_0x522950=>{const _0x4e7e56=this['_createButton'](_0x2384d2,_0x522950['type']);return _0x4e7e56['withText']=!0x0,_0x4e7e56['icon']=_0x522950['icon'],_0x4e7e56['bind']('label')['to'](_0x297ab7,'isImageSelected',_0x4c30fc=>_(_0x3633d2,_0x522950['type'],_0x4c30fc?'Replace':'Insert')['text']),_0x4e7e56;});}['_createMenuBarButtons'](_0x2d3123){return _0x2d3123['map'](_0x24c1ab=>{const _0x2eb321=this['_createButton'](_0x532a65,_0x24c1ab['type']);return _0x2eb321['icon']=_0x24c1ab['icon'],_0x2eb321['label']=_0x24c1ab['shortText'],_0x2eb321;});}}class q extends _0x3ef8e2{['focusTracker'];['focusCycler'];constructor(_0x55d4a1){super(_0x55d4a1),this['focusTracker']=new _0x335ecb(),this['focusCycler']=new _0x126556({'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(_0x31d5dd){super(_0x31d5dd),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(_0x509bcd,_0x21fb07){const _0x1bd775=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc4d1de=>_0xc4d1de<=_0x21fb07)['map'](_0x453f50=>_0x509bcd['replace'](/\/$/,'')+'/-/resize/'+_0x453f50+'x/\x20'+_0x453f50+'w');return{'imageFallbackUrl':_0x509bcd,'imageSources':[{'srcset':_0x1bd775['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21fb07+'px)\x20100vw,\x20'+_0x21fb07+'px','type':'image/webp'}]};}function A(_0x274f10,_0x469454,_0x335769){const _0x8d7ec1=_0x274f10['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8d7ec1?parseInt(_0x8d7ec1[0x1],0xa):_0x469454,'height':_0x8d7ec1?parseInt(_0x8d7ec1[0x2],0xa):_0x335769};}function m(_0x5c9a05,_0x12eed2){const _0x612376=Object['create'](_0x2c8f69),_0x523522=_0x5c9a05['plugins']['get']('ImageUtils'),_0x4ee32c=_0x5c9a05['editing']['mapper']['toViewElement'](_0x12eed2),_0x11d5bc=_0x523522['findViewImgElement'](_0x4ee32c),_0x57d8a8=_0x5c9a05['editing']['view']['domConverter']['viewToDom'](_0x11d5bc),_0xc12e36=_0x12eed2['getAttribute']('width'),_0x42bd2a=_0x12eed2['getAttribute']('height'),_0x23913e='image-processing';_0x5c9a05['editing']['view']['change'](_0x1222e7=>{_0x1222e7['addClass'](_0x23913e,_0x4ee32c),_0x1222e7['setStyle']('aspect-ratio',_0xc12e36+'/'+_0x42bd2a,_0x11d5bc);}),_0x612376['listenTo'](_0x57d8a8,'load',()=>{_0x612376['stopListening'](_0x57d8a8,'load'),_0x5c9a05['editing']['view']['change'](_0x459b9d=>{_0x459b9d['removeClass'](_0x23913e,_0x4ee32c),_0x459b9d['removeStyle']('aspect-ratio',_0x11d5bc);});});}function V(_0xd60bfa){if(Array['isArray'](_0xd60bfa)){const _0x140455=_0xd60bfa['map'](V);return _0x1ad46=>_0x140455['some'](_0x29b93d=>_0x29b93d(_0x1ad46));}if('origin'==_0xd60bfa){const _0x726c5a=_0x143fb0['window']['location']['origin'];return _0x5392ba=>new URL(_0x5392ba,_0x143fb0['document']['baseURI'])['origin']==_0x726c5a;}return'function'==typeof _0xd60bfa?_0xd60bfa:_0xd60bfa instanceof RegExp?_0x135bd2=>!(!_0x135bd2['match'](_0xd60bfa)&&!_0x135bd2['replace'](/^https?:\/\//,'')['match'](_0xd60bfa)):()=>!0x1;}function F(_0x52fac2,_0x27199c){return _0x2f5b42(_0x52fac2['target'])['includes'](_0x27199c);}class l extends/* #__PURE__ -- @preserve */
24
- _0x2faac7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d2fc9,_0xbb85b2,_0x5a66c2){super(),this['_editor']=_0x4d2fc9,this['_editing']=_0xbb85b2,this['_dialog']=_0x4d2fc9['plugins']['get'](_0x55adf0),this['_api']=_0xbb85b2['ctxElement']['getAPI'](),this['_type']=_0x5a66c2,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:_0x450e27,model:_0xd9edba}=this['_editor'],_0x2e8785=_0xd9edba['document']['selection']['getSelectedElement'](),_0x340868=_0x2e8785&&(_0x2e8785['is']('element','imageBlock')||_0x2e8785['is']('element','imageInline'));this['_formView']=new S(_0x450e27),this['_dialog']['show']({'id':'uploadCare','icon':_0xbb5ff,'title':_(_0x450e27,this['_type'],_0x340868?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x12bee4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c6351=>!F(_0x4c6351,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5dd2b6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x94387d=>{const _0x13d699=_0x5dd2b6['length'];for(const _0x345057 of _0x5dd2b6){const _0x332939=_0x345057===_0x5dd2b6[_0x13d699-0x1],{cdnUrl:_0x11f97c,fileInfo:_0x19cc82}=_0x345057;if(!_0x11f97c||!_0x19cc82)continue;const {width:_0x2d3f03,height:_0x571717}=_0x19cc82['imageInfo'],_0x4ba4da=A(_0x11f97c,_0x2d3f03,_0x571717),_0x5261eb=E(_0x11f97c,_0x4ba4da['width']),_0x2a1a4c={'id':_0x19cc82['uuid'],'type':'image','attributes':{'imageDimension':_0x4ba4da,..._0x5261eb}};this['_insertAsset'](_0x2a1a4c,_0x332939,_0x94387d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x315200=>{'idle'===_0x315200['detail']['status']&&!_0x315200['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x29ec40,_0x6231d7,_0x2822a4){const _0x28f117=this['_editor']['model']['document']['selection'],_0x4e6c54=_0x28f117['getSelectedElement'](),_0x6608c0=!(!_0x4e6c54||!_0x4e6c54['is']('element','imageInline'));_0x2822a4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x29ec40,_0x6608c0),_0x6231d7||_0x2822a4['setSelection'](_0x28f117['getLastPosition']());}['_insertImage'](_0x23637b,_0x21596c){const _0x30a887=this['_editor'],{imageDimension:_0x2b8d3b,imageFallbackUrl:_0x73181e,imageSources:_0x57127e}=_0x23637b['attributes'];_0x30a887['execute']('insertImage',{'imageType':_0x21596c?'imageInline':null,'source':{'uploadcareImageId':_0x23637b['id'],'src':_0x73181e,'sources':_0x57127e,..._0x2b8d3b}});}}class n extends _0x3682da{['_editing'];['_controller']=null;static get['requires'](){return[_0x55adf0,i];}constructor(_0x48201f){super(_0x48201f),this['_editing']=_0x48201f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d0168){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d0168);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x374dae,publicKey:_0x1cb08b,signal:_0xf92407,onProgress:_0x1774d0}){return _0x3e1960(_0x374dae,{'publicKey':_0x1cb08b,'store':'auto','signal':_0xf92407,'onProgress':_0x1774d0});}static['getInfo'](_0x39b353,_0xddbcea){return _0xbf8b5d(_0x39b353,_0xddbcea);}}class p extends _0x89bf4b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1f0571,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xfa9ae7=this['editor'];if(!!!_0xfa9ae7['config']['get']('uploadcare'))return;_0xfa9ae7['plugins']['get'](_0x1f0571)['createUploadAdapter']=_0x58ea17=>new x(_0x58ea17,_0xfa9ae7),_0xfa9ae7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x375dae,{imageElement:_0x5b59b0,data:_0x507fe4})=>{_0xfa9ae7['model']['change'](_0x4b6b4a=>{_0x4b6b4a['setAttribute']('uploadcareImageId',_0x507fe4['uploadcareImageId'],_0x5b59b0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x12bb9c,_0x4b1b77){this['loader']=_0x12bb9c,this['editor']=_0x4b1b77,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x519f48=this['editor']['config']['get']('uploadcare.pubkey'),_0x1da3c6=await this['loader']['file'];return C['upload']({'file':_0x1da3c6,'publicKey':_0x519f48,'signal':this['controller']['signal'],'onProgress':_0x3f844e=>{_0x3f844e&&_0x3f844e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3f844e['value']);}})['then'](async _0x8446fa=>{const {imageFallbackUrl:_0x169127,imageSources:_0x2bb963}=E(_0x8446fa['cdnUrl'],_0x8446fa['imageInfo']['width']);return{'uploadcareImageId':_0x8446fa['uuid'],'default':_0x169127,'sources':_0x2bb963};})['catch'](()=>{const _0x214da5=t('Cannot\x20upload\x20file:')+('\x20'+_0x1da3c6['name']+'.');return Promise['reject'](_0x214da5);});}['abort'](){this['controller']['abort']();}}class i extends _0x89bf4b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x55adf0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x59fe90=this['editor'];_0x59fe90['commands']['add']('uploadcare',new n(_0x59fe90));}['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 _0x2fa237=_0x143fb0['document']['querySelector']('input[uploadcare-file-input]');_0x2fa237&&_0x2fa237['remove']();}),async function(_0x4de987){const _0x32ff98=_0x6f3715([0x75,0x42,0x34,0x66,0x39,0x72,0x44,0x5a,0x4e,0x4c,0x6a,0x31,0x54,0x38,0x36,0x71,0x45,0x76,0x57,0x4a,0x4d,0x55,0x61,0x56,0x67,0x7a,0x59,0x53,0x6c,0x33,0x73,0x51,0x70,0x65,0x4f,0x37,0x30,0x6d,0x6f,0x6e,0x79,0x58,0x78,0x6b,0x46,0x43,0x52,0x69,0x4b,0x49,0x35,0x68,0x41,0x64,0x77,0x74,0x62,0x50,0x48,0x32,0x47,0x63]),_0x3f3949=0x4a28d3e7,_0x446d24=0x4a2fb357^_0x3f3949,_0xcc517d=window[_0x6f3715([0x44,0x61,0x74,0x65])][_0x6f3715([0x6e,0x6f,0x77])](),_0x4089af=_0x4de987[_0x6f3715([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47b6a1=new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e6c2=>{_0x4089af[_0x6f3715([0x6f,0x6e,0x63,0x65])](_0x6f3715([0x72,0x65,0x61,0x64,0x79]),_0x34e6c2);}),_0x18e478={[_0x6f3715([0x6b,0x74,0x79])]:_0x6f3715([0x45,0x43]),[_0x6f3715([0x75,0x73,0x65])]:_0x6f3715([0x73,0x69,0x67]),[_0x6f3715([0x63,0x72,0x76])]:_0x6f3715([0x50,0x2d,0x32,0x35,0x36]),[_0x6f3715([0x78])]:_0x6f3715([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]),[_0x6f3715([0x79])]:_0x6f3715([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]),[_0x6f3715([0x61,0x6c,0x67])]:_0x6f3715([0x45,0x53,0x32,0x35,0x36])},_0x2635bc=_0x4089af[_0x6f3715([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6f3715([0x67,0x65,0x74])](_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28c1ed(){let _0x1b4f2a,_0x1bacaf=null,_0x55a3b7=null;try{if(_0x2635bc==_0x6f3715([0x47,0x50,0x4c]))return _0x6f3715([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b4f2a=_0x88de03(),!_0x1b4f2a)return _0x6f3715([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b4f2a[_0x6f3715([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55a3b7=_0x38f475(_0x1b4f2a[_0x6f3715([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b4f2a[_0x6f3715([0x6a,0x74,0x69])])),await _0x4acce9()?_0x1e32ba()?_0x27f8b4()?_0x6f3715([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b0028()?(_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6f3715([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bacaf=_0x1ad963(_0x6f3715([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6f3715([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bacaf=_0x1ad963(_0x6f3715([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fc260()):_0x6f3715([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6f3715([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6f3715([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa01b7c){return _0x6f3715([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27f8b4(){const _0x14ef60=[_0x6f3715([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6f3715([0x74,0x72,0x69,0x61,0x6c])][_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcc517d/0x3e8:0xe10*_0x446d24;return _0x1b4f2a[_0x6f3715([0x65,0x78,0x70])]<_0x14ef60;}function _0x1e32ba(){const _0x37a186=_0x1b4f2a[_0x6f3715([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x37a186&&(!!_0x37a186[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3715([0x2a]))||!!_0x37a186[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3715([0x55,0x50,0x4c,0x43])));}function _0x5b0028(){const _0x6915a8=_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6915a8||0x0==_0x6915a8[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48bea9}=new URL(window[_0x6f3715([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6915a8[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48bea9))return!0x0;const _0x5c8051=_0x48bea9[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e]));return _0x6915a8[_0x6f3715([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc93aa6=>_0xc93aa6[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3715([0x2a])))[_0x6f3715([0x6d,0x61,0x70])](_0x68adb9=>_0x68adb9[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e])))[_0x6f3715([0x73,0x6f,0x6d,0x65])](_0x3c4390=>_0x5c8051[_0x6f3715([0x65,0x76,0x65,0x72,0x79])]((_0x8e03c,_0x5c67a6)=>_0x3c4390[_0x5c67a6]===_0x8e03c||_0x3c4390[_0x5c67a6]===_0x6f3715([0x2a])));}function _0x1fc260(){return _0x1bacaf&&_0x55a3b7?new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30b7e7,_0x45c339)=>{_0x1bacaf[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x30b7e7,_0x45c339),_0x55a3b7[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x7dce66=>{_0x7dce66!=_0x6f3715([0x56,0x61,0x6c,0x69,0x64])&&_0x30b7e7(_0x7dce66);},_0x45c339);}):_0x1bacaf||_0x55a3b7||_0x6f3715([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38f475(_0x36ac98,_0x4be9a8){return new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106256=>{if(_0x274656())return _0x106256(_0x6f3715([0x56,0x61,0x6c,0x69,0x64]));_0x1032c2(),_0x4089af[_0x6f3715([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6f3715([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37d8c6=!0x1;const _0x287daa=_0x53d801();function _0x580f97(_0x574fe3){return!!_0x574fe3&&(typeof _0x574fe3===_0x6f3715([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x574fe3===_0x6f3715([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x574fe3[_0x6f3715([0x74,0x68,0x65,0x6e])]===_0x6f3715([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x574fe3[_0x6f3715([0x63,0x61,0x74,0x63,0x68])]===_0x6f3715([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e9951(_0x39522f){_0x307d9b(_0x39522f)[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x427cde=>{if(!_0x427cde||_0x427cde[_0x6f3715([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6f3715([0x6f,0x6b]))return _0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51747a(_0x54948f(_0x287daa+_0x4be9a8))!=_0x427cde[_0x6f3715([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6f3715([0x56,0x61,0x6c,0x69,0x64]);})[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x22303d=>(_0x286463(),_0x22303d),()=>{const _0x88ba63=_0x42d106();return null==_0x88ba63?(_0x286463(),_0x6f3715([0x56,0x61,0x6c,0x69,0x64])):_0x6f3715(_0xcc517d-_0x88ba63>(0x6e2457e7^_0x3f3949)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x106256)[_0x6f3715([0x63,0x61,0x74,0x63,0x68])](()=>{_0x106256(_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5853cc=0x4a1e3d67^_0x3f3949;function _0x286463(){const _0x528c2c=_0x6f3715([0x6c,0x6c,0x63,0x74,0x2d])+_0x51747a(_0x54948f(_0x36ac98)),_0x250e56=_0x45c7fa(_0x51747a(window[_0x6f3715([0x4d,0x61,0x74,0x68])][_0x6f3715([0x63,0x65,0x69,0x6c])](_0xcc517d/_0x5853cc)));window[_0x6f3715([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6f3715([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x528c2c,_0x250e56);}function _0x42d106(){const _0x5ec4aa=_0x6f3715([0x6c,0x6c,0x63,0x74,0x2d])+_0x51747a(_0x54948f(_0x36ac98)),_0x4b6695=window[_0x6f3715([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6f3715([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec4aa);return _0x4b6695?window[_0x6f3715([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45c7fa(_0x4b6695),0x10)*_0x5853cc:null;}function _0x307d9b(_0x35e2d2){return new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5163c1,_0x698ed0)=>{_0x35e2d2[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x5163c1,_0x698ed0),window[_0x6f3715([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x698ed0,0x4a290727^_0x3f3949);});}}_0x4089af[_0x6f3715([0x6f,0x6e])](_0x6f3715([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47c6c2,_0x329fce)=>{if(_0x329fce[0x0]!=_0x36ac98)return _0x106256(_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x329fce[0x1]={..._0x329fce[0x1],[_0x6f3715([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x287daa};},{[_0x6f3715([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6f3715([0x68,0x69,0x67,0x68])}),_0x4089af[_0x6f3715([0x6f,0x6e])](_0x6f3715([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c54a4=>{_0x580f97(_0x5c54a4[_0x6f3715([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37d8c6=!0x0,_0x4e9951(_0x5c54a4[_0x6f3715([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6f3715([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6f3715([0x6c,0x6f,0x77])}),_0x47b6a1[_0x6f3715([0x74,0x68,0x65,0x6e])](()=>{_0x37d8c6||_0x106256(_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x274656(){return _0x4089af[_0x6f3715([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6f3715([0x76,0x69,0x65,0x77])][_0x6f3715([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6f3715([0x61,0x75,0x74,0x6f]);}function _0x1032c2(){_0x4089af[_0x6f3715([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6f3715([0x76,0x69,0x65,0x77])][_0x6f3715([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6f3715([0x61,0x75,0x74,0x6f]);}}function _0x1ad963(_0x24f758){const _0x7f0e84=[new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54cecf=>setTimeout(_0x54cecf,0x4a21ed2b^_0x3f3949)),_0x47b6a1[_0x6f3715([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442427=>{let _0x15edef=0x0;_0x4089af[_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f3715([0x6f,0x6e])](_0x6f3715([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32d825,_0x5c4759)=>{_0x5c4759[0x0][_0x6f3715([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15edef++,_0x15edef==(0x4a28d21f^_0x3f3949)&&(_0x442427(),_0x32d825[_0x6f3715([0x6f,0x66,0x66])]());});}))];return window[_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6f3715([0x72,0x61,0x63,0x65])](_0x7f0e84)[_0x6f3715([0x74,0x68,0x65,0x6e])](()=>_0x24f758);}async function _0x1a0e82(){await _0x47b6a1,_0x4089af[_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f3715([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4570fe,_0x4089af[_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f3715([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4570fe,_0x4089af[_0x6f3715([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x515e41(_0x2a0cff){const _0x1438d0=_0x51cfcb();_0x4089af[_0x1438d0]=_0x6f3715([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a0cff,_0x2a0cff!=_0x6f3715([0x56,0x61,0x6c,0x69,0x64])&&_0x1a0e82();}function _0x51cfcb(){const _0x366c51=window[_0x6f3715([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6f3715([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6f3715([0x6e,0x6f,0x77])]())[_0x6f3715([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6f3715([0x2e]),'');let _0x572111=_0x6f3715([0x75]);for(let _0xc84bdc=0x0;_0xc84bdc<_0x366c51[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc84bdc+=0x2){let _0x2ad386=window[_0x6f3715([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x366c51[_0x6f3715([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc84bdc,_0xc84bdc+0x2));_0x2ad386>=_0x32ff98[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ad386-=_0x32ff98[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x572111+=_0x32ff98[_0x2ad386];}return _0x572111;}function _0x88de03(){const _0x56c7ba=_0x2635bc[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e]));if(0x3!=_0x56c7ba[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36b5a8(_0x56c7ba[0x1]);function _0x36b5a8(_0x3327e5){const _0x423744=_0xfc67f9(_0x3327e5);return _0x423744&&_0x105b99()?_0x423744:null;function _0x105b99(){const _0x55d78b=_0x423744[_0x6f3715([0x6a,0x74,0x69])],_0x5d3a4d=window[_0x6f3715([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55d78b[_0x6f3715([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55d78b[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b84bc={..._0x423744,[_0x6f3715([0x6a,0x74,0x69])]:_0x55d78b[_0x6f3715([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55d78b[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b84bc[_0x6f3715([0x76,0x63])],_0x54948f(_0x5b84bc)==_0x5d3a4d;}}}async function _0x4acce9(){let _0x1f7ebf=!0x0;try{const _0x25a202=_0x2635bc[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e])),[_0x32357b,_0x4907f7,_0x2bd2a4]=_0x25a202;return _0x3e8f6f(_0x32357b),await _0x422759(_0x32357b,_0x4907f7,_0x2bd2a4),_0x1f7ebf;}catch(_0x1656f4){return!0x1;}function _0x3e8f6f(_0x3ceecc){const _0x113c3a=_0xfc67f9(_0x3ceecc);_0x113c3a&&_0x113c3a[_0x6f3715([0x61,0x6c,0x67])]==_0x6f3715([0x45,0x53,0x32,0x35,0x36])||(_0x1f7ebf=!0x1);}async function _0x422759(_0x238825,_0x4f5263,_0x712abc){const _0x5f4f08=window[_0x6f3715([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6f3715([0x66,0x72,0x6f,0x6d])](_0x135df3(_0x712abc),_0x36f935=>_0x36f935[_0x6f3715([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d6d5f=new window[(_0x6f3715([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6f3715([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x238825+_0x6f3715([0x2e])+_0x4f5263),_0x3a0690=window[_0x6f3715([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6f3715([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a0690)return;const _0x4ca01a=await _0x3a0690[_0x6f3715([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6f3715([0x6a,0x77,0x6b]),_0x18e478,{[_0x6f3715([0x6e,0x61,0x6d,0x65])]:_0x6f3715([0x45,0x43,0x44,0x53,0x41]),[_0x6f3715([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6f3715([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6f3715([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a0690[_0x6f3715([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6f3715([0x6e,0x61,0x6d,0x65])]:_0x6f3715([0x45,0x43,0x44,0x53,0x41]),[_0x6f3715([0x68,0x61,0x73,0x68])]:{[_0x6f3715([0x6e,0x61,0x6d,0x65])]:_0x6f3715([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ca01a,_0x5f4f08,_0x4d6d5f)||(_0x1f7ebf=!0x1);}}function _0xfc67f9(_0x3fe8df){return _0x3fe8df[_0x6f3715([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6f3715([0x65,0x79]))?JSON[_0x6f3715([0x70,0x61,0x72,0x73,0x65])](_0x135df3(_0x3fe8df)):null;}function _0x135df3(_0x2b9f75){return window[_0x6f3715([0x61,0x74,0x6f,0x62])](_0x2b9f75[_0x6f3715([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6f3715([0x2b]))[_0x6f3715([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6f3715([0x2f])));}function _0x54948f(_0x978561){let _0xb7780=0x1505;function _0x36020e(_0x26531b){for(let _0x8f763e=0x0;_0x8f763e<_0x26531b[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8f763e++){const _0x4fbfcd=_0x26531b[_0x6f3715([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8f763e);_0xb7780=(_0xb7780<<0x5)+_0xb7780+_0x4fbfcd,_0xb7780&=_0xb7780;}}function _0x23285a(_0x5c8ec6){Array[_0x6f3715([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c8ec6)?_0x5c8ec6[_0x6f3715([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23285a):_0x5c8ec6&&typeof _0x5c8ec6==_0x6f3715([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6f3715([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c8ec6)[_0x6f3715([0x73,0x6f,0x72,0x74])]()[_0x6f3715([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2678cb,_0x5cc43a])=>{_0x36020e(_0x2678cb),_0x23285a(_0x5cc43a);}):_0x36020e(window[_0x6f3715([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c8ec6));}return _0x23285a(_0x978561),_0xb7780>>>0x0;}function _0x51747a(_0x166862){return _0x166862[_0x6f3715([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6f3715([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6f3715([0x30]));}function _0x45c7fa(_0x1433ec){return _0x1433ec[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6f3715([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6f3715([0x6a,0x6f,0x69,0x6e])]('');}function _0x4570fe(){}function _0x6f3715(_0x559e9e){return _0x559e9e['map'](_0x47fde2=>String['fromCharCode'](_0x47fde2))['join']('');}_0x515e41(await _0x28c1ed());}(this);}['_initSchema'](){const _0x1a31cb=this['editor']['model']['schema'];_0x1a31cb['isRegistered']('imageBlock')&&_0x1a31cb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1a31cb['isRegistered']('imageInline')&&_0x1a31cb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3a428c=this['editor'];_0x3a428c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3a428c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xdfe2d1=>_0xdfe2d1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x45f030=_0x3a428c['commands']['get']('replaceImageSource');_0x45f030&&this['listenTo'](_0x45f030,'cleanupImage',(_0x36c1d0,[_0x33bfab,_0x2044bc])=>{_0x33bfab['removeAttribute']('uploadcareImageId',_0x2044bc);});}['_initConfig'](){const _0x64ceee=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1eda0f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4e7da7(_0x143fb0['document'],'uc-config',{..._0x64ceee,'pubkey':_0x1eda0f,'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']=_0x55a38c=>{if('closeMax'==_0x55a38c)return'#uc-icon-arrow-down';},_0x143fb0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4e7da7(_0x143fb0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x143fb0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa0cbe5=this['editor']['commands']['get']('insertImage');_0xa0cbe5&&this['listenTo'](_0xa0cbe5,'execute',()=>{const _0x47504e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x47504e&&_0x47504e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x47504e);});});const _0x4937a0=this['editor']['commands']['get']('uploadcareImageReplace');_0x4937a0&&this['listenTo'](_0x4937a0,'execute',()=>{const _0x428662=this['editor']['model']['document']['selection']['getSelectedElement']();_0x428662&&_0x428662['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x428662);});});}}class u extends _0x89bf4b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50dc29){super(_0x50dc29),_0x50dc29['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5797b4['defineComponents'](_0x5797b4);}}class ta extends _0x3ef8e2{constructor(_0x3585fe){super(_0x3585fe);const t=_0x3585fe['t'],_0x52860e=this['bindTemplate'],_0x51397b=new _0x1c282d();_0x51397b['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':[_0x51397b,{'text':_0x52860e['to']('imageUploadProgress',_0x2a8715=>t('Loading\x20image...')+'\x20('+(_0x2a8715||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 _0x3ef8e2{constructor(_0x5dc799){super(_0x5dc799);const t=_0x5dc799['t'];this['set']('errorType',null);const _0x51cc19=new _0x2384d2(_0x5dc799);_0x51cc19['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51cc19['withText']=!0x0,_0x51cc19['class']='ck-button-action',_0x51cc19['on']('execute',()=>{this['fire']('retry');}),_0x51cc19['bind']('isVisible')['to'](this,'errorType',_0x437195=>'NotFound'!==_0x437195);const _0x7dda3b=new at();_0x7dda3b['content']=et,_0x7dda3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x777243=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':[_0x7dda3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x777243['to']('errorType',_0x365694=>t('NotFound'!==_0x365694?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51cc19]},{'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 _0x3ef8e2{constructor(_0x3090e9,_0x31c6ca){super(_0x3090e9);const _0x296b4a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x31c6ca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x296b4a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x19e590,_0x69dd2a,_0x51e63a){super(_0x19e590),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x19e590),this['_errorView']=new rt(_0x19e590),this['_editingView']=new tt(_0x19e590,_0x51e63a),this['_focusableView']=new _0x3ef8e2(_0x19e590),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x69dd2a),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'],_0x210011=>{this['_addUploadcareImageEditorListeners'](_0x210011);});}),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'](_0x133a09,_0x3cdd15){const _0x3b4564='uc-cloud-image-editor',_0x15772d=_0x133a09['querySelector'](_0x3b4564);if(_0x15772d)return _0x3cdd15(_0x15772d);const _0x5919b6=new MutationObserver(_0xf88d16=>{const _0x4a94e8=_0xf88d16['filter'](_0x16b007=>_0x16b007['target']===_0x133a09&&_0x16b007['addedNodes']['length']>0x0&&_0x16b007['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3b4564);_0x4a94e8['length']&&(_0x5919b6['disconnect'](),_0x3cdd15(_0x4a94e8[0x0]['addedNodes'][0x0]));});_0x5919b6['observe'](_0x133a09,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xe236f4){_0xe236f4['addEventListener']('apply',_0x46732d=>{this['fire']('apply',{'imageSrc':_0x46732d['detail']['cdnUrl']});}),_0xe236f4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x2faac7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc7207c,_0xa26018,_0x119750){super(),this['_editor']=_0xc7207c,this['_dialog']=_0xa26018,this['_imageElement']=_0x119750,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 _0xc3ac14=this['_imageElement'],_0xcb5c94=_0xc3ac14['getAttribute']('uploadcareImageId'),_0x32550e=_0xc3ac14['getAttribute']('src');if(_0xcb5c94)await this['_loadImageInfo'](_0xcb5c94,_0x32550e);else{if(this['_imageCache']['has'](_0x32550e)){const _0x4619f6=this['_imageCache']['get'](_0x32550e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4619f6['url'],this['imageDimension']=_0x4619f6['dimension'],this['imageId']=_0x4619f6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x31b4db}=this['_editor'],t=_0x31b4db['t'],_0x3ecbfa=new Z(_0x31b4db,this['imageStatus'],this['_attributes']);_0x3ecbfa['bind']('status')['to'](this,'imageStatus'),_0x3ecbfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3ecbfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3ecbfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3ecbfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2bf65d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3ecbfa,'position':_0x12bee4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3ecbfa['focus']();},'onHide':()=>{_0x3ecbfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x122a0c=>!F(_0x122a0c,_0x3ecbfa['element'])}});}['_loadImageInfo'](_0x29114e,_0x3434a9){return C['getInfo'](_0x29114e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4a6cbb=>{const {width:_0x551de5,height:_0x39cefc}=_0x4a6cbb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3434a9,this['imageDimension']={'width':_0x551de5,'height':_0x39cefc},this['imageId']=_0x29114e;})['catch'](_0x560c01=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x560c01['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x307e3c,_0x59dac6){return this['_getImageAsFile'](_0x307e3c)['then'](_0x36bfbd=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x59dac6['signal'],'file':_0x36bfbd,'onProgress':_0x384d19=>{_0x384d19&&_0x384d19['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x384d19['value']));}}))['then'](_0x2a66ee=>{const {width:_0x3b7e82,height:_0x7412e8}=_0x2a66ee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a66ee['cdnUrl'],this['imageDimension']={'width':_0x3b7e82,'height':_0x7412e8},this['imageId']=_0x2a66ee['uuid'],this['imageUploadProgress']=null;const _0x5d362d=_0x307e3c['getAttribute']('src');this['_imageCache']['set'](_0x5d362d,{'id':_0x2a66ee['uuid'],'url':_0x2a66ee['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x13ddfc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13ddfc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x42f819,_0xd4cfd6){_0x42f819['on']('apply',(_0x460d1b,_0x4187d1)=>{this['_replaceImage'](_0xd4cfd6,_0x4187d1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x42f819['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x42f819['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x24f3f5,_0x16ec30,_0x5bacfe){const _0x3060b3=this['_editor'],{width:_0x18c2da,height:_0x2ac482}=A(_0x16ec30,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x52c61d,imageSources:_0x2a97f6}=E(_0x16ec30,_0x18c2da);_0x3060b3['model']['change'](_0x3b1ebd=>{if('$graveyard'===_0x24f3f5['root']['rootName']){_0x3060b3['execute']('insertImage',{'imageType':_0x24f3f5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x24f3f5['getAttributes']()),'uploadcareImageId':_0x5bacfe,'src':_0x52c61d,'sources':_0x2a97f6,'width':_0x18c2da,'height':_0x2ac482}});const _0x5620c1=_0x24f3f5['getChildren']();_0x24f3f5=_0x3060b3['model']['document']['selection']['getSelectedElement']();for(const _0x40bda9 of _0x5620c1)_0x3b1ebd['append'](_0x3b1ebd['cloneElement'](_0x40bda9),_0x24f3f5);}else _0x3b1ebd['setSelection'](_0x24f3f5,'on'),_0x3060b3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x24f3f5['getAttributes']()),'uploadcareImageId':_0x5bacfe,'src':_0x52c61d,'sources':_0x2a97f6,'width':_0x18c2da,'height':_0x2ac482},_0x24f3f5);_0x3b1ebd['setSelection'](_0x24f3f5,'on');});}async['_getImageAsFile'](_0x50d7e5){const _0x56224e=_0x143fb0['window'],_0x917a10=_0x143fb0['document']['location']['href'],_0x1ca001=new _0x56224e['URL'](_0x50d7e5['getAttribute']('src'),_0x917a10);if('data:'===_0x1ca001['protocol']){const _0x5b9298=_0x1ca001['href']['split'](','),_0x58e542=_0x5b9298[0x0]['match'](/:(.*?);/)[0x1],_0x547b48=_0x58e542['split']('/')[0x1],_0x5ec657=_0x56224e['atob'](_0x5b9298[_0x5b9298['length']-0x1]);let _0x2b8b7d=_0x5ec657['length'];const _0x3d206b=new _0x56224e['Uint8Array'](_0x2b8b7d);for(;_0x2b8b7d--;)_0x3d206b[_0x2b8b7d]=_0x5ec657['charCodeAt'](_0x2b8b7d);return new _0x56224e['File']([_0x3d206b],'image.'+_0x547b48,{'type':_0x58e542});}const _0x48ef6f=_0x1ca001['href']['split']('/'),_0x4a047b=_0x48ef6f[_0x48ef6f['length']-0x1],_0x110697=_0x4a047b['split']('.')[0x1];return _0x56224e['fetch'](_0x1ca001['href'])['then'](_0x42b685=>_0x42b685['clone']()['blob']())['then'](_0x212c13=>new _0x56224e['File']([_0x212c13],_0x4a047b,{'type':'image/'+_0x110697}));}}class J extends _0x3682da{['imageEditController'];static get['requires'](){return[_0x55adf0];}['_isEditable'];constructor(_0x5dd603){super(_0x5dd603),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56479d){const _0x2b4044=V(_0x56479d);return _0x596de3=>!(!_0x596de3||!_0x596de3['is']('element','imageBlock')&&!_0x596de3['is']('element','imageInline'))&&(!!_0x596de3['hasAttribute']('uploadcareImageId')||!!_0x596de3['hasAttribute']('src')&&_0x2b4044(_0x596de3['getAttribute']('src')));}(_0x5dd603['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3dd49f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3dd49f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b61c2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b61c2&&(_0x1b61c2['is']('element','imageBlock')||_0x1b61c2['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x55adf0),_0x1b61c2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3682da{['refresh'](){const _0x3917a3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3917a3&&(_0x3917a3['is']('element','imageBlock')||_0x3917a3['is']('element','imageInline')));}['execute'](_0x30fa1d){const _0x315e26=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d2ac1=>{_0x5d2ac1['setAttributes'](_0x30fa1d,_0x315e26),_0x5d2ac1['removeAttribute']('srcset',_0x315e26),_0x5d2ac1['removeAttribute']('sizes',_0x315e26);});}}class g extends _0x89bf4b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xa2548d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4103c9}=this;_0x4103c9['commands']['add']('uploadcareImageEdit',new J(_0x4103c9)),_0x4103c9['commands']['add']('uploadcareImageReplace',new O(_0x4103c9));}}class j extends _0x89bf4b{['_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 _0x29eca2=this['editor'];_0x29eca2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1cb151=>{const _0x46cb0e=_0x29eca2['commands']['get']('uploadcareImageEdit'),_0xe9183d=new _0x2384d2(_0x1cb151),t=_0x1cb151['t'];return _0xe9183d['set']({'icon':_0x2bf65d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe9183d['bind']('isEnabled')['to'](_0x46cb0e),_0xe9183d['bind']('isOn')['to'](_0x46cb0e,'isActive'),this['listenTo'](_0xe9183d,'execute',()=>{_0x29eca2['execute']('uploadcareImageEdit'),_0x29eca2['editing']['view']['focus']();}),_0xe9183d;}),this['_initConfig']();}['_initConfig'](){const _0x47fd71=_0x4e7da7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47fd71),this['listenTo'](this['editor'],'destroy',()=>{_0x47fd71['remove']();});}}class P extends _0x89bf4b{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 _0x57068e,Command as _0xd5d4fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2b1c31,IconGooglePhotos as _0x764a21,IconGoogleDrive as _0x1299ef,IconFacebook as _0x2747e3,IconDropbox as _0x541b5a,IconUploadcareLink as _0x489cae,IconUploadcareImageUpload as _0x466fbc,IconError as et,IconUploadcareImageEdit as _0x2f749e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4b0ca3,MenuBarMenuListItemButtonView as _0x190104,View as _0x3c2f50,FocusCycler as _0x1d86fc,Dialog as _0x22097e,DialogViewPosition as _0x38253e,SpinnerView as _0x45367e,IconView as at,Notification as _0x488ae8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x282d83,DomEmitterMixin as _0x439c4d,global as _0xcc26ac,getAncestors as _0x224e87,ObservableMixin as _0x40bf7c,createElement as _0x57579e,uid as _0x975794}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xd7aebc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x14934f,info as _0x5f140}from'@uploadcare/upload-client';import*as _0x3b7daa from'@uploadcare/file-uploader';var o=function(_0x20fb9c){return _0x20fb9c['Local']='local',_0x20fb9c['URL']='url',_0x20fb9c['Dropbox']='dropbox',_0x20fb9c['GDrive']='gdrive',_0x20fb9c['Facebook']='facebook',_0x20fb9c['GPhotos']='gphotos',_0x20fb9c['OneDrive']='onedrive',_0x20fb9c;}({});function _(_0x3efd69,_0x2280a3,_0x38a96e){const t=_0x3efd69['t'],_0x27f35e=_0x3efd69['t'];switch(_0x2280a3){case o['Local']:return{'text':_0x27f35e('Insert'===_0x38a96e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x27f35e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x38a96e?_0x27f35e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x27f35e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x38a96e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x38a96e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x38a96e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x38a96e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x38a96e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2280a3;}}class e extends _0x57068e{['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 _0x249778=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e0095;for(const _0x1940b9 in _0x249778){const _0x48a82a=_0x1940b9,_0x1b4fa0=_0x249778[_0x48a82a];if('uploadcareLicenseKeyValid'==_0x1b4fa0||'uploadcareLicenseKeyInvalid'==_0x1b4fa0||'uploadcareLicenseKeyExpired'==_0x1b4fa0||'uploadcareLicenseKeyDomainLimit'==_0x1b4fa0||'uploadcareLicenseKeyNotAllowed'==_0x1b4fa0||'uploadcareLicenseKeyEvaluationLimit'==_0x1b4fa0||'uploadcareLicenseKeyTrialLimit'==_0x1b4fa0||'uploadcareLicenseKeyUsageLimit'==_0x1b4fa0){delete _0x249778[_0x48a82a],_0x1e0095=_0x1b4fa0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1e0095&&_0x249778['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1e0095&&_0x249778['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1e0095&&_0x249778['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1e0095&&_0x249778['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1e0095&&_0x249778['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1e0095&&_0x249778['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1e0095&&_0x249778['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x571db5}=this,_0x2c6bb3=_0x571db5['commands']['get']('uploadcare');if(!_0x2c6bb3)return;const _0x44d12f=this['_normalizeConfigSourceList'](_0x571db5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3c1ee6,_0x1a1280)=>{const _0x523c79=this['_getIntegrationKey'](_0x1a1280['type']);return _0x3c1ee6[_0x523c79]||(_0x3c1ee6[_0x523c79]=[]),_0x3c1ee6[_0x523c79]['push'](_0x1a1280),_0x3c1ee6;},{});_0x571db5['plugins']['has']('ImageInsertUI')&&_0x571db5['commands']['get']('uploadcare')&&Object['entries'](_0x44d12f)['forEach'](([_0x4b2d8c,_0x3c4eab])=>{_0x571db5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4b2d8c,'observable':()=>_0x2c6bb3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3c4eab),'formViewCreator':()=>this['_createDropdownButtons'](_0x3c4eab),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3c4eab),'override':'assetManager'!==_0x4b2d8c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a8bd8){const {locale:_0x4efb93}=this['editor'];return _0x3a8bd8['map'](_0x2798f4=>{const _0x358871=_(_0x4efb93,_0x2798f4,'Insert');switch(_0x2798f4){case o['Local']:return{'icon':_0x466fbc,'type':o['Local'],..._0x358871};case o['URL']:return{'icon':_0x489cae,'type':o['URL'],..._0x358871};case o['Dropbox']:return{'icon':_0x541b5a,'type':o['Dropbox'],..._0x358871};case o['Facebook']:return{'icon':_0x2747e3,'type':o['Facebook'],..._0x358871};case o['GDrive']:return{'icon':_0x1299ef,'type':o['GDrive'],..._0x358871};case o['GPhotos']:return{'icon':_0x764a21,'type':o['GPhotos'],..._0x358871};case o['OneDrive']:return{'icon':_0x2b1c31,'type':o['OneDrive'],..._0x358871};}});}['_getIntegrationKey'](_0x5bc846){switch(_0x5bc846){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3addf7,_0x72c85b){const _0x8481dd=this['editor'],_0x2cbef1=new _0x3addf7(_0x8481dd['locale']),_0x5f73ce=_0x8481dd['commands']['get']('uploadcare');return _0x2cbef1['bind']('isEnabled')['to'](_0x5f73ce),_0x2cbef1['on']('execute',()=>{_0x5f73ce['execute'](_0x72c85b);}),_0x2cbef1;}['_createToolbarButton'](_0x39bda5){const {locale:_0x42dd3b}=this['editor'],_0x154f70=this['editor']['plugins']['get']('ImageInsertUI'),_0x29047d=_0x39bda5[0x0],_0x5f4bd3=this['_createButton'](_0x4b0ca3,_0x29047d['type']);return _0x5f4bd3['icon']=_0x29047d['icon'],_0x5f4bd3['bind']('label')['to'](_0x154f70,'isImageSelected',_0x41ed00=>_(_0x42dd3b,_0x29047d['type'],_0x41ed00?'Replace':'Insert')['text']),_0x5f4bd3['tooltip']=!0x0,_0x5f4bd3;}['_createDropdownButtons'](_0x16695c){const {locale:_0x3f3a35}=this['editor'],_0xe3682b=this['editor']['plugins']['get']('ImageInsertUI');return _0x16695c['map'](_0x3e92ab=>{const _0x3115ef=this['_createButton'](_0x4b0ca3,_0x3e92ab['type']);return _0x3115ef['withText']=!0x0,_0x3115ef['icon']=_0x3e92ab['icon'],_0x3115ef['bind']('label')['to'](_0xe3682b,'isImageSelected',_0x4d13d6=>_(_0x3f3a35,_0x3e92ab['type'],_0x4d13d6?'Replace':'Insert')['text']),_0x3115ef;});}['_createMenuBarButtons'](_0x44f5a5){return _0x44f5a5['map'](_0x22e3fb=>{const _0x4979b5=this['_createButton'](_0x190104,_0x22e3fb['type']);return _0x4979b5['icon']=_0x22e3fb['icon'],_0x4979b5['label']=_0x22e3fb['shortText'],_0x4979b5;});}}class q extends _0x3c2f50{['focusTracker'];['focusCycler'];constructor(_0x1c3bd5){super(_0x1c3bd5),this['focusTracker']=new _0x282d83(),this['focusCycler']=new _0x1d86fc({'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(_0x2ecf23){super(_0x2ecf23),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(_0x3726af,_0x1ae059){const _0x41c506=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x26b4ce=>_0x26b4ce<=_0x1ae059)['map'](_0x3e15da=>_0x3726af['replace'](/\/$/,'')+'/-/resize/'+_0x3e15da+'x/\x20'+_0x3e15da+'w');return{'imageFallbackUrl':_0x3726af,'imageSources':[{'srcset':_0x41c506['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1ae059+'px)\x20100vw,\x20'+_0x1ae059+'px','type':'image/webp'}]};}function A(_0x5cf8aa,_0x52cc01,_0x187f1d){const _0x14df4b=_0x5cf8aa['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x14df4b?parseInt(_0x14df4b[0x1],0xa):_0x52cc01,'height':_0x14df4b?parseInt(_0x14df4b[0x2],0xa):_0x187f1d};}function m(_0x199160,_0x9ced97){const _0x5dd934=Object['create'](_0x439c4d),_0x426224=_0x199160['plugins']['get']('ImageUtils'),_0x4bcec8=_0x199160['editing']['mapper']['toViewElement'](_0x9ced97),_0x257952=_0x426224['findViewImgElement'](_0x4bcec8),_0x114ad9=_0x199160['editing']['view']['domConverter']['viewToDom'](_0x257952),_0x1f6874=_0x9ced97['getAttribute']('width'),_0x3ddecf=_0x9ced97['getAttribute']('height'),_0x554a6a='image-processing';_0x199160['editing']['view']['change'](_0x5c9cc3=>{_0x5c9cc3['addClass'](_0x554a6a,_0x4bcec8),_0x5c9cc3['setStyle']('aspect-ratio',_0x1f6874+'/'+_0x3ddecf,_0x257952);}),_0x5dd934['listenTo'](_0x114ad9,'load',()=>{_0x5dd934['stopListening'](_0x114ad9,'load'),_0x199160['editing']['view']['change'](_0x512800=>{_0x512800['removeClass'](_0x554a6a,_0x4bcec8),_0x512800['removeStyle']('aspect-ratio',_0x257952);});});}function V(_0x540670){if(Array['isArray'](_0x540670)){const _0x915276=_0x540670['map'](V);return _0x25c1e4=>_0x915276['some'](_0x2825f3=>_0x2825f3(_0x25c1e4));}if('origin'==_0x540670){const _0x5b2d81=_0xcc26ac['window']['location']['origin'];return _0x6da800=>new URL(_0x6da800,_0xcc26ac['document']['baseURI'])['origin']==_0x5b2d81;}return'function'==typeof _0x540670?_0x540670:_0x540670 instanceof RegExp?_0x176fa7=>!(!_0x176fa7['match'](_0x540670)&&!_0x176fa7['replace'](/^https?:\/\//,'')['match'](_0x540670)):()=>!0x1;}function F(_0x3ddfed,_0x3b25ae){return _0x224e87(_0x3ddfed['target'])['includes'](_0x3b25ae);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x40bf7c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e92cd,_0xc10099,_0x1ec799){super(),this['_editor']=_0x5e92cd,this['_editing']=_0xc10099,this['_dialog']=_0x5e92cd['plugins']['get'](_0x22097e),this['_api']=_0xc10099['ctxElement']['getAPI'](),this['_type']=_0x1ec799,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:_0x463472,model:_0x1763fa}=this['_editor'],_0xe41b8b=_0x1763fa['document']['selection']['getSelectedElement'](),_0x2ed8ed=_0xe41b8b&&(_0xe41b8b['is']('element','imageBlock')||_0xe41b8b['is']('element','imageInline'));this['_formView']=new S(_0x463472),this['_dialog']['show']({'id':'uploadCare','icon':_0x466fbc,'title':_(_0x463472,this['_type'],_0x2ed8ed?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x38253e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34100b=>!F(_0x34100b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x26fd94}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x35e6ac=>{const _0x5addad=_0x26fd94['length'];for(const _0xc295c of _0x26fd94){const _0x51a05a=_0xc295c===_0x26fd94[_0x5addad-0x1],{cdnUrl:_0x73025,fileInfo:_0x4e7906}=_0xc295c;if(!_0x73025||!_0x4e7906)continue;const {width:_0x39183b,height:_0x16df54}=_0x4e7906['imageInfo'],_0x1f0fc2=A(_0x73025,_0x39183b,_0x16df54),_0x22eedb=E(_0x73025,_0x1f0fc2['width']),_0x35c096={'id':_0x4e7906['uuid'],'type':'image','attributes':{'imageDimension':_0x1f0fc2,..._0x22eedb}};this['_insertAsset'](_0x35c096,_0x51a05a,_0x35e6ac);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x211a27=>{'idle'===_0x211a27['detail']['status']&&!_0x211a27['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5ff4a8,_0xe357b2,_0x4f9833){const _0xf986e8=this['_editor']['model']['document']['selection'],_0xa1df81=_0xf986e8['getSelectedElement'](),_0x3f1950=!(!_0xa1df81||!_0xa1df81['is']('element','imageInline'));_0x4f9833['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5ff4a8,_0x3f1950),_0xe357b2||_0x4f9833['setSelection'](_0xf986e8['getLastPosition']());}['_insertImage'](_0x54f6b9,_0x324eb4){const _0x4250b1=this['_editor'],{imageDimension:_0x4db834,imageFallbackUrl:_0xeee032,imageSources:_0x54f4fa}=_0x54f6b9['attributes'];_0x4250b1['execute']('insertImage',{'imageType':_0x324eb4?'imageInline':null,'source':{'uploadcareImageId':_0x54f6b9['id'],'src':_0xeee032,'sources':_0x54f4fa,..._0x4db834}});}}class n extends _0xd5d4fb{['_editing'];['_controller']=null;static get['requires'](){return[_0x22097e,i];}constructor(_0xbcb081){super(_0xbcb081),this['_editing']=_0xbcb081['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x330670){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x330670);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x51b963,publicKey:_0x42273e,signal:_0x342f65,onProgress:_0x37b855}){return _0x14934f(_0x51b963,{'publicKey':_0x42273e,'store':'auto','signal':_0x342f65,'onProgress':_0x37b855});}static['getInfo'](_0x46469d,_0x3c8fee){return _0x5f140(_0x46469d,_0x3c8fee);}}class p extends _0x57068e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xd7aebc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x55923a=this['editor'];if(!!!_0x55923a['config']['get']('uploadcare'))return;_0x55923a['plugins']['get'](_0xd7aebc)['createUploadAdapter']=_0x44b759=>new x(_0x44b759,_0x55923a),_0x55923a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x55fb7f,{imageElement:_0x2bb49b,data:_0x24910c})=>{_0x55923a['model']['change'](_0x211648=>{_0x211648['setAttribute']('uploadcareImageId',_0x24910c['uploadcareImageId'],_0x2bb49b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5cab4d,_0x5a40a6){this['loader']=_0x5cab4d,this['editor']=_0x5a40a6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x6f7c28=this['editor']['config']['get']('uploadcare.pubkey'),_0x26272b=await this['loader']['file'];return C['upload']({'file':_0x26272b,'publicKey':_0x6f7c28,'signal':this['controller']['signal'],'onProgress':_0x566212=>{_0x566212&&_0x566212['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x566212['value']);}})['then'](async _0x3b9f9b=>{const {imageFallbackUrl:_0x248cc6,imageSources:_0x3f30ab}=E(_0x3b9f9b['cdnUrl'],_0x3b9f9b['imageInfo']['width']);return{'uploadcareImageId':_0x3b9f9b['uuid'],'default':_0x248cc6,'sources':_0x3f30ab};})['catch'](()=>{const _0x2ba059=t('Cannot\x20upload\x20file:')+('\x20'+_0x26272b['name']+'.');return Promise['reject'](_0x2ba059);});}['abort'](){this['controller']['abort']();}}class i extends _0x57068e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x22097e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3cbed8=this['editor'];_0x3cbed8['commands']['add']('uploadcare',new n(_0x3cbed8));}['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 _0x1e49f1=_0xcc26ac['document']['querySelector']('input[uploadcare-file-input]');_0x1e49f1&&_0x1e49f1['remove']();}),async function(_0x3f8325){const _0x2afdb6=_0x332bfc([0x39,0x6b,0x4b,0x62,0x75,0x76,0x77,0x42,0x58,0x57,0x72,0x4e,0x49,0x4c,0x51,0x6c,0x71,0x68,0x6d,0x6f,0x56,0x45,0x35,0x50,0x44,0x4d,0x34,0x38,0x6e,0x52,0x69,0x79,0x46,0x41,0x7a,0x66,0x59,0x4a,0x67,0x65,0x61,0x53,0x30,0x73,0x4f,0x78,0x31,0x70,0x74,0x5a,0x36,0x47,0x33,0x48,0x32,0x43,0x6a,0x37,0x64,0x55,0x63,0x54]),_0x472aa7=0x1268b654,_0x32a102=0x126fd69c^_0x472aa7,_0x251594=window[_0x332bfc([0x44,0x61,0x74,0x65])][_0x332bfc([0x6e,0x6f,0x77])](),_0x5b1c6e=_0x3f8325[_0x332bfc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b700a=new window[(_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371214=>{_0x5b1c6e[_0x332bfc([0x6f,0x6e,0x63,0x65])](_0x332bfc([0x72,0x65,0x61,0x64,0x79]),_0x371214);}),_0xfcf058={[_0x332bfc([0x6b,0x74,0x79])]:_0x332bfc([0x45,0x43]),[_0x332bfc([0x75,0x73,0x65])]:_0x332bfc([0x73,0x69,0x67]),[_0x332bfc([0x63,0x72,0x76])]:_0x332bfc([0x50,0x2d,0x32,0x35,0x36]),[_0x332bfc([0x78])]:_0x332bfc([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]),[_0x332bfc([0x79])]:_0x332bfc([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]),[_0x332bfc([0x61,0x6c,0x67])]:_0x332bfc([0x45,0x53,0x32,0x35,0x36])},_0x3c8743=_0x5b1c6e[_0x332bfc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x332bfc([0x67,0x65,0x74])](_0x332bfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25eebf(){let _0x4fda89,_0x3eaea9=null,_0x29f1c1=null;try{if(_0x3c8743==_0x332bfc([0x47,0x50,0x4c]))return _0x332bfc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fda89=_0x572742(),!_0x4fda89)return _0x332bfc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fda89[_0x332bfc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29f1c1=_0x326293(_0x4fda89[_0x332bfc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fda89[_0x332bfc([0x6a,0x74,0x69])])),await _0x3c40db()?_0x55ec6c()?_0x20dbac()?_0x332bfc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1cec03()?(_0x4fda89[_0x332bfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332bfc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eaea9=_0x401a93(_0x332bfc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4fda89[_0x332bfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332bfc([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eaea9=_0x401a93(_0x332bfc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x227f31()):_0x332bfc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x332bfc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x332bfc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4c35f2){return _0x332bfc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20dbac(){const _0x2f4c68=[_0x332bfc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x332bfc([0x74,0x72,0x69,0x61,0x6c])][_0x332bfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fda89[_0x332bfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x251594/0x3e8:0xe10*_0x32a102;return _0x4fda89[_0x332bfc([0x65,0x78,0x70])]<_0x2f4c68;}function _0x55ec6c(){const _0x8142c4=_0x4fda89[_0x332bfc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8142c4&&(!!_0x8142c4[_0x332bfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332bfc([0x2a]))||!!_0x8142c4[_0x332bfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332bfc([0x55,0x50,0x4c,0x43])));}function _0x1cec03(){const _0x3c3412=_0x4fda89[_0x332bfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c3412||0x0==_0x3c3412[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ab684}=new URL(window[_0x332bfc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c3412[_0x332bfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab684))return!0x0;const _0x27744a=_0x3ab684[_0x332bfc([0x73,0x70,0x6c,0x69,0x74])](_0x332bfc([0x2e]));return _0x3c3412[_0x332bfc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x495fb9=>_0x495fb9[_0x332bfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332bfc([0x2a])))[_0x332bfc([0x6d,0x61,0x70])](_0x792b12=>_0x792b12[_0x332bfc([0x73,0x70,0x6c,0x69,0x74])](_0x332bfc([0x2e])))[_0x332bfc([0x73,0x6f,0x6d,0x65])](_0x141a27=>_0x27744a[_0x332bfc([0x65,0x76,0x65,0x72,0x79])]((_0x492356,_0x5059ff)=>_0x141a27[_0x5059ff]===_0x492356||_0x141a27[_0x5059ff]===_0x332bfc([0x2a])));}function _0x227f31(){return _0x3eaea9&&_0x29f1c1?new window[(_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x371363,_0x2d58be)=>{_0x3eaea9[_0x332bfc([0x74,0x68,0x65,0x6e])](_0x371363,_0x2d58be),_0x29f1c1[_0x332bfc([0x74,0x68,0x65,0x6e])](_0xc8634=>{_0xc8634!=_0x332bfc([0x56,0x61,0x6c,0x69,0x64])&&_0x371363(_0xc8634);},_0x2d58be);}):_0x3eaea9||_0x29f1c1||_0x332bfc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x326293(_0x476dac,_0x585698){return new window[(_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x256d9b=>{if(_0x3a0cf8())return _0x256d9b(_0x332bfc([0x56,0x61,0x6c,0x69,0x64]));_0x5ce8f2(),_0x5b1c6e[_0x332bfc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x332bfc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49ec56=!0x1;const _0x5badbf=_0x975794();function _0x48f22a(_0x56edb5){return!!_0x56edb5&&(typeof _0x56edb5===_0x332bfc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56edb5===_0x332bfc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56edb5[_0x332bfc([0x74,0x68,0x65,0x6e])]===_0x332bfc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56edb5[_0x332bfc([0x63,0x61,0x74,0x63,0x68])]===_0x332bfc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38f940(_0x220915){_0x271912(_0x220915)[_0x332bfc([0x74,0x68,0x65,0x6e])](_0x53cd27=>{if(!_0x53cd27||_0x53cd27[_0x332bfc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x332bfc([0x6f,0x6b]))return _0x332bfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xadc069(_0x428b49(_0x5badbf+_0x585698))!=_0x53cd27[_0x332bfc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x332bfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x332bfc([0x56,0x61,0x6c,0x69,0x64]);})[_0x332bfc([0x74,0x68,0x65,0x6e])](_0x199338=>(_0x4494ee(),_0x199338),()=>{const _0x58f759=_0x3019cb();return null==_0x58f759?(_0x4494ee(),_0x332bfc([0x56,0x61,0x6c,0x69,0x64])):_0x332bfc(_0x251594-_0x58f759>(0x36643254^_0x472aa7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x332bfc([0x74,0x68,0x65,0x6e])](_0x256d9b)[_0x332bfc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x256d9b(_0x332bfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d8099=0x125e58d4^_0x472aa7;function _0x4494ee(){const _0x40ae9d=_0x332bfc([0x6c,0x6c,0x63,0x74,0x2d])+_0xadc069(_0x428b49(_0x476dac)),_0x9fea7e=_0x4df6fb(_0xadc069(window[_0x332bfc([0x4d,0x61,0x74,0x68])][_0x332bfc([0x63,0x65,0x69,0x6c])](_0x251594/_0x3d8099)));window[_0x332bfc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332bfc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40ae9d,_0x9fea7e);}function _0x3019cb(){const _0x3d3da2=_0x332bfc([0x6c,0x6c,0x63,0x74,0x2d])+_0xadc069(_0x428b49(_0x476dac)),_0x3750ce=window[_0x332bfc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332bfc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d3da2);return _0x3750ce?window[_0x332bfc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4df6fb(_0x3750ce),0x10)*_0x3d8099:null;}function _0x271912(_0x3eacb2){return new window[(_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x238daf,_0x5a0513)=>{_0x3eacb2[_0x332bfc([0x74,0x68,0x65,0x6e])](_0x238daf,_0x5a0513),window[_0x332bfc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a0513,0x12696294^_0x472aa7);});}}_0x5b1c6e[_0x332bfc([0x6f,0x6e])](_0x332bfc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8bd470,_0x27511f)=>{if(_0x27511f[0x0]!=_0x476dac)return _0x256d9b(_0x332bfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27511f[0x1]={..._0x27511f[0x1],[_0x332bfc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5badbf};},{[_0x332bfc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332bfc([0x68,0x69,0x67,0x68])}),_0x5b1c6e[_0x332bfc([0x6f,0x6e])](_0x332bfc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38a664=>{_0x48f22a(_0x38a664[_0x332bfc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49ec56=!0x0,_0x38f940(_0x38a664[_0x332bfc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x332bfc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332bfc([0x6c,0x6f,0x77])}),_0x5b700a[_0x332bfc([0x74,0x68,0x65,0x6e])](()=>{_0x49ec56||_0x256d9b(_0x332bfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a0cf8(){return _0x5b1c6e[_0x332bfc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332bfc([0x76,0x69,0x65,0x77])][_0x332bfc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x332bfc([0x61,0x75,0x74,0x6f]);}function _0x5ce8f2(){_0x5b1c6e[_0x332bfc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332bfc([0x76,0x69,0x65,0x77])][_0x332bfc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x332bfc([0x61,0x75,0x74,0x6f]);}}function _0x401a93(_0x296e8b){const _0x42b657=[new window[(_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eda64=>setTimeout(_0x5eda64,0x12618898^_0x472aa7)),_0x5b700a[_0x332bfc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x77f19a=>{let _0xa7af22=0x0;_0x5b1c6e[_0x332bfc([0x6d,0x6f,0x64,0x65,0x6c])][_0x332bfc([0x6f,0x6e])](_0x332bfc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4764f6,_0x266e4a)=>{_0x266e4a[0x0][_0x332bfc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa7af22++,_0xa7af22==(0x1268b7ac^_0x472aa7)&&(_0x77f19a(),_0x4764f6[_0x332bfc([0x6f,0x66,0x66])]());});}))];return window[_0x332bfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x332bfc([0x72,0x61,0x63,0x65])](_0x42b657)[_0x332bfc([0x74,0x68,0x65,0x6e])](()=>_0x296e8b);}async function _0x6899d3(){await _0x5b700a,_0x5b1c6e[_0x332bfc([0x6d,0x6f,0x64,0x65,0x6c])][_0x332bfc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2db125,_0x5b1c6e[_0x332bfc([0x6d,0x6f,0x64,0x65,0x6c])][_0x332bfc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2db125,_0x5b1c6e[_0x332bfc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x332bfc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x79dda9(_0x708207){const _0x3f2287=_0x531beb();_0x5b1c6e[_0x3f2287]=_0x332bfc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x708207,_0x708207!=_0x332bfc([0x56,0x61,0x6c,0x69,0x64])&&_0x6899d3();}function _0x531beb(){const _0x20f445=window[_0x332bfc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x332bfc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x332bfc([0x6e,0x6f,0x77])]())[_0x332bfc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x332bfc([0x2e]),'');let _0x2060bf=_0x332bfc([0x6b]);for(let _0x403b8f=0x0;_0x403b8f<_0x20f445[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x403b8f+=0x2){let _0x450352=window[_0x332bfc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20f445[_0x332bfc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x403b8f,_0x403b8f+0x2));_0x450352>=_0x2afdb6[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x450352-=_0x2afdb6[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2060bf+=_0x2afdb6[_0x450352];}return _0x2060bf;}function _0x572742(){const _0x5db688=_0x3c8743[_0x332bfc([0x73,0x70,0x6c,0x69,0x74])](_0x332bfc([0x2e]));if(0x3!=_0x5db688[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x208a39(_0x5db688[0x1]);function _0x208a39(_0xef8255){const _0x1bd3c4=_0x451ba8(_0xef8255);return _0x1bd3c4&&_0x5ae845()?_0x1bd3c4:null;function _0x5ae845(){const _0x23d0f0=_0x1bd3c4[_0x332bfc([0x6a,0x74,0x69])],_0x5efe42=window[_0x332bfc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23d0f0[_0x332bfc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23d0f0[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a2c18={..._0x1bd3c4,[_0x332bfc([0x6a,0x74,0x69])]:_0x23d0f0[_0x332bfc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23d0f0[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a2c18[_0x332bfc([0x76,0x63])],_0x428b49(_0x3a2c18)==_0x5efe42;}}}async function _0x3c40db(){let _0x12b49c=!0x0;try{const _0x582322=_0x3c8743[_0x332bfc([0x73,0x70,0x6c,0x69,0x74])](_0x332bfc([0x2e])),[_0x3d233e,_0x38d02a,_0x264a5a]=_0x582322;return _0x197f2d(_0x3d233e),await _0x126d61(_0x3d233e,_0x38d02a,_0x264a5a),_0x12b49c;}catch(_0x36f6f9){return!0x1;}function _0x197f2d(_0x3adc9a){const _0x108b72=_0x451ba8(_0x3adc9a);_0x108b72&&_0x108b72[_0x332bfc([0x61,0x6c,0x67])]==_0x332bfc([0x45,0x53,0x32,0x35,0x36])||(_0x12b49c=!0x1);}async function _0x126d61(_0x906aff,_0x34354c,_0x383633){const _0xd1fb2d=window[_0x332bfc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x332bfc([0x66,0x72,0x6f,0x6d])](_0x4dabea(_0x383633),_0x557276=>_0x557276[_0x332bfc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cca20=new window[(_0x332bfc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x332bfc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x906aff+_0x332bfc([0x2e])+_0x34354c),_0x391f3d=window[_0x332bfc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x332bfc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x391f3d)return;const _0x94258d=await _0x391f3d[_0x332bfc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x332bfc([0x6a,0x77,0x6b]),_0xfcf058,{[_0x332bfc([0x6e,0x61,0x6d,0x65])]:_0x332bfc([0x45,0x43,0x44,0x53,0x41]),[_0x332bfc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x332bfc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x332bfc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x391f3d[_0x332bfc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x332bfc([0x6e,0x61,0x6d,0x65])]:_0x332bfc([0x45,0x43,0x44,0x53,0x41]),[_0x332bfc([0x68,0x61,0x73,0x68])]:{[_0x332bfc([0x6e,0x61,0x6d,0x65])]:_0x332bfc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x94258d,_0xd1fb2d,_0x1cca20)||(_0x12b49c=!0x1);}}function _0x451ba8(_0x1088c4){return _0x1088c4[_0x332bfc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x332bfc([0x65,0x79]))?JSON[_0x332bfc([0x70,0x61,0x72,0x73,0x65])](_0x4dabea(_0x1088c4)):null;}function _0x4dabea(_0x9834a7){return window[_0x332bfc([0x61,0x74,0x6f,0x62])](_0x9834a7[_0x332bfc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x332bfc([0x2b]))[_0x332bfc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x332bfc([0x2f])));}function _0x428b49(_0x49bce3){let _0x3850b4=0x1505;function _0x12cba0(_0x47f2ed){for(let _0x3c2886=0x0;_0x3c2886<_0x47f2ed[_0x332bfc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c2886++){const _0x21848c=_0x47f2ed[_0x332bfc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c2886);_0x3850b4=(_0x3850b4<<0x5)+_0x3850b4+_0x21848c,_0x3850b4&=_0x3850b4;}}function _0x43003e(_0x164a01){Array[_0x332bfc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x164a01)?_0x164a01[_0x332bfc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43003e):_0x164a01&&typeof _0x164a01==_0x332bfc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x332bfc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x164a01)[_0x332bfc([0x73,0x6f,0x72,0x74])]()[_0x332bfc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x381cb4,_0x47587b])=>{_0x12cba0(_0x381cb4),_0x43003e(_0x47587b);}):_0x12cba0(window[_0x332bfc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x164a01));}return _0x43003e(_0x49bce3),_0x3850b4>>>0x0;}function _0xadc069(_0x347dc0){return _0x347dc0[_0x332bfc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x332bfc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x332bfc([0x30]));}function _0x4df6fb(_0x193394){return _0x193394[_0x332bfc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x332bfc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x332bfc([0x6a,0x6f,0x69,0x6e])]('');}function _0x2db125(){}function _0x332bfc(_0x513475){return _0x513475['map'](_0xe435eb=>String['fromCharCode'](_0xe435eb))['join']('');}_0x79dda9(await _0x25eebf());}(this);}['_initSchema'](){const _0x5807c6=this['editor']['model']['schema'];_0x5807c6['isRegistered']('imageBlock')&&_0x5807c6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5807c6['isRegistered']('imageInline')&&_0x5807c6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4c390d=this['editor'];_0x4c390d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4c390d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2d7c06=>_0x2d7c06['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5e81f5=_0x4c390d['commands']['get']('replaceImageSource');_0x5e81f5&&this['listenTo'](_0x5e81f5,'cleanupImage',(_0x2fc7c6,[_0x4e0161,_0x33f90b])=>{_0x4e0161['removeAttribute']('uploadcareImageId',_0x33f90b);});}['_initConfig'](){const _0x7ff1b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x481019=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x57579e(_0xcc26ac['document'],'uc-config',{..._0x7ff1b8,'pubkey':_0x481019,'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']=_0x5825ea=>{if('closeMax'==_0x5825ea)return'#uc-icon-arrow-down';},_0xcc26ac['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x57579e(_0xcc26ac['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xcc26ac['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13efcb=this['editor']['commands']['get']('insertImage');_0x13efcb&&this['listenTo'](_0x13efcb,'execute',()=>{const _0x4f37ec=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f37ec&&_0x4f37ec['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4f37ec);});});const _0x365b0b=this['editor']['commands']['get']('uploadcareImageReplace');_0x365b0b&&this['listenTo'](_0x365b0b,'execute',()=>{const _0x23f906=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23f906&&_0x23f906['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x23f906);});});}}class u extends _0x57068e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x239bcb){super(_0x239bcb),_0x239bcb['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3b7daa['defineComponents'](_0x3b7daa);}}class ta extends _0x3c2f50{constructor(_0x4fae68){super(_0x4fae68);const t=_0x4fae68['t'],_0x52fba0=this['bindTemplate'],_0x30fe4b=new _0x45367e();_0x30fe4b['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':[_0x30fe4b,{'text':_0x52fba0['to']('imageUploadProgress',_0x478329=>t('Loading\x20image...')+'\x20('+(_0x478329||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 _0x3c2f50{constructor(_0x4dd842){super(_0x4dd842);const t=_0x4dd842['t'];this['set']('errorType',null);const _0x5868a4=new _0x4b0ca3(_0x4dd842);_0x5868a4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5868a4['withText']=!0x0,_0x5868a4['class']='ck-button-action',_0x5868a4['on']('execute',()=>{this['fire']('retry');}),_0x5868a4['bind']('isVisible')['to'](this,'errorType',_0x489d09=>'NotFound'!==_0x489d09);const _0x59c2bb=new at();_0x59c2bb['content']=et,_0x59c2bb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x435222=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':[_0x59c2bb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x435222['to']('errorType',_0x173413=>t('NotFound'!==_0x173413?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5868a4]},{'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 _0x3c2f50{constructor(_0x4883d7,_0x59cf4f){super(_0x4883d7);const _0x540e5f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59cf4f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x540e5f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5a2909,_0x1b5f6e,_0x32a8ef){super(_0x5a2909),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5a2909),this['_errorView']=new rt(_0x5a2909),this['_editingView']=new tt(_0x5a2909,_0x32a8ef),this['_focusableView']=new _0x3c2f50(_0x5a2909),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1b5f6e),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'],_0x265603=>{this['_addUploadcareImageEditorListeners'](_0x265603);});}),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'](_0x2a9302,_0x2c5274){const _0x41e1c5='uc-cloud-image-editor',_0x5d1d34=_0x2a9302['querySelector'](_0x41e1c5);if(_0x5d1d34)return _0x2c5274(_0x5d1d34);const _0xc60cd5=new MutationObserver(_0x5a0f26=>{const _0x1823b4=_0x5a0f26['filter'](_0x9301fe=>_0x9301fe['target']===_0x2a9302&&_0x9301fe['addedNodes']['length']>0x0&&_0x9301fe['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x41e1c5);_0x1823b4['length']&&(_0xc60cd5['disconnect'](),_0x2c5274(_0x1823b4[0x0]['addedNodes'][0x0]));});_0xc60cd5['observe'](_0x2a9302,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xcf848f){_0xcf848f['addEventListener']('apply',_0x563ec2=>{this['fire']('apply',{'imageSrc':_0x563ec2['detail']['cdnUrl']});}),_0xcf848f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x40bf7c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2ab561,_0x62ceef,_0x8a6fbf){super(),this['_editor']=_0x2ab561,this['_dialog']=_0x62ceef,this['_imageElement']=_0x8a6fbf,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 _0x26dffa=this['_imageElement'],_0x145bbd=_0x26dffa['getAttribute']('uploadcareImageId'),_0x52dc25=_0x26dffa['getAttribute']('src');if(_0x145bbd)await this['_loadImageInfo'](_0x145bbd,_0x52dc25);else{if(this['_imageCache']['has'](_0x52dc25)){const _0x38188c=this['_imageCache']['get'](_0x52dc25);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38188c['url'],this['imageDimension']=_0x38188c['dimension'],this['imageId']=_0x38188c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3b2959}=this['_editor'],t=_0x3b2959['t'],_0x396580=new Z(_0x3b2959,this['imageStatus'],this['_attributes']);_0x396580['bind']('status')['to'](this,'imageStatus'),_0x396580['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x396580['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x396580['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x396580,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2f749e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x396580,'position':_0x38253e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x396580['focus']();},'onHide':()=>{_0x396580['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e6294=>!F(_0x3e6294,_0x396580['element'])}});}['_loadImageInfo'](_0x2d0cb1,_0x1f0bbb){return C['getInfo'](_0x2d0cb1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1b53f4=>{const {width:_0x5c239e,height:_0x2ef56d}=_0x1b53f4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f0bbb,this['imageDimension']={'width':_0x5c239e,'height':_0x2ef56d},this['imageId']=_0x2d0cb1;})['catch'](_0x5db1fc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5db1fc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2677e0,_0x4ad6ca){return this['_getImageAsFile'](_0x2677e0)['then'](_0x15dcd4=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ad6ca['signal'],'file':_0x15dcd4,'onProgress':_0x429952=>{_0x429952&&_0x429952['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x429952['value']));}}))['then'](_0x4be0fe=>{const {width:_0x596961,height:_0x513ffe}=_0x4be0fe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4be0fe['cdnUrl'],this['imageDimension']={'width':_0x596961,'height':_0x513ffe},this['imageId']=_0x4be0fe['uuid'],this['imageUploadProgress']=null;const _0x3fd36f=_0x2677e0['getAttribute']('src');this['_imageCache']['set'](_0x3fd36f,{'id':_0x4be0fe['uuid'],'url':_0x4be0fe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x307963=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x307963['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f278c,_0x5a36ef){_0x1f278c['on']('apply',(_0x1b3527,_0x59f8a1)=>{this['_replaceImage'](_0x5a36ef,_0x59f8a1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f278c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f278c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d0d2b,_0x17a6b0,_0x15c034){const _0x3aec79=this['_editor'],{width:_0x2ea6b0,height:_0x2fb514}=A(_0x17a6b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c39f4,imageSources:_0x1de1b0}=E(_0x17a6b0,_0x2ea6b0);_0x3aec79['model']['change'](_0x4e59c7=>{if('$graveyard'===_0x3d0d2b['root']['rootName']){_0x3aec79['execute']('insertImage',{'imageType':_0x3d0d2b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d0d2b['getAttributes']()),'uploadcareImageId':_0x15c034,'src':_0x4c39f4,'sources':_0x1de1b0,'width':_0x2ea6b0,'height':_0x2fb514}});const _0x6592d7=_0x3d0d2b['getChildren']();_0x3d0d2b=_0x3aec79['model']['document']['selection']['getSelectedElement']();for(const _0x4855b3 of _0x6592d7)_0x4e59c7['append'](_0x4e59c7['cloneElement'](_0x4855b3),_0x3d0d2b);}else _0x4e59c7['setSelection'](_0x3d0d2b,'on'),_0x3aec79['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d0d2b['getAttributes']()),'uploadcareImageId':_0x15c034,'src':_0x4c39f4,'sources':_0x1de1b0,'width':_0x2ea6b0,'height':_0x2fb514},_0x3d0d2b);_0x4e59c7['setSelection'](_0x3d0d2b,'on');});}async['_getImageAsFile'](_0x4f81a6){const _0x5b337b=_0xcc26ac['window'],_0xb2835f=_0xcc26ac['document']['location']['href'],_0x5a91f8=new _0x5b337b['URL'](_0x4f81a6['getAttribute']('src'),_0xb2835f);if('data:'===_0x5a91f8['protocol']){const _0x56ca0e=_0x5a91f8['href']['split'](','),_0x2ed002=_0x56ca0e[0x0]['match'](/:(.*?);/)[0x1],_0x2755f4=_0x2ed002['split']('/')[0x1],_0xd89b=_0x5b337b['atob'](_0x56ca0e[_0x56ca0e['length']-0x1]);let _0x323280=_0xd89b['length'];const _0x1db5e8=new _0x5b337b['Uint8Array'](_0x323280);for(;_0x323280--;)_0x1db5e8[_0x323280]=_0xd89b['charCodeAt'](_0x323280);return new _0x5b337b['File']([_0x1db5e8],'image.'+_0x2755f4,{'type':_0x2ed002});}const _0x2d07e5=_0x5a91f8['href']['split']('/'),_0x5eb3fa=_0x2d07e5[_0x2d07e5['length']-0x1],_0x24611e=_0x5eb3fa['split']('.')[0x1];return _0x5b337b['fetch'](_0x5a91f8['href'])['then'](_0x5132d4=>_0x5132d4['clone']()['blob']())['then'](_0x203ac8=>new _0x5b337b['File']([_0x203ac8],_0x5eb3fa,{'type':'image/'+_0x24611e}));}}class J extends _0xd5d4fb{['imageEditController'];static get['requires'](){return[_0x22097e];}['_isEditable'];constructor(_0x9f6cca){super(_0x9f6cca),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5b0656){const _0x3fffa3=V(_0x5b0656);return _0x5be11d=>!(!_0x5be11d||!_0x5be11d['is']('element','imageBlock')&&!_0x5be11d['is']('element','imageInline'))&&(!!_0x5be11d['hasAttribute']('uploadcareImageId')||!!_0x5be11d['hasAttribute']('src')&&_0x3fffa3(_0x5be11d['getAttribute']('src')));}(_0x9f6cca['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5605e5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5605e5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10802e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10802e&&(_0x10802e['is']('element','imageBlock')||_0x10802e['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x22097e),_0x10802e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xd5d4fb{['refresh'](){const _0xaa8aa4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xaa8aa4&&(_0xaa8aa4['is']('element','imageBlock')||_0xaa8aa4['is']('element','imageInline')));}['execute'](_0x39b4f3){const _0x43f6af=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4f0d5b=>{_0x4f0d5b['setAttributes'](_0x39b4f3,_0x43f6af),_0x4f0d5b['removeAttribute']('srcset',_0x43f6af),_0x4f0d5b['removeAttribute']('sizes',_0x43f6af);});}}class g extends _0x57068e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x488ae8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4aece2}=this;_0x4aece2['commands']['add']('uploadcareImageEdit',new J(_0x4aece2)),_0x4aece2['commands']['add']('uploadcareImageReplace',new O(_0x4aece2));}}class j extends _0x57068e{['_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 _0x338f8b=this['editor'];_0x338f8b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f6d7d=>{const _0x51f507=_0x338f8b['commands']['get']('uploadcareImageEdit'),_0x351a8b=new _0x4b0ca3(_0x4f6d7d),t=_0x4f6d7d['t'];return _0x351a8b['set']({'icon':_0x2f749e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x351a8b['bind']('isEnabled')['to'](_0x51f507),_0x351a8b['bind']('isOn')['to'](_0x51f507,'isActive'),this['listenTo'](_0x351a8b,'execute',()=>{_0x338f8b['execute']('uploadcareImageEdit'),_0x338f8b['editing']['view']['focus']();}),_0x351a8b;}),this['_initConfig']();}['_initConfig'](){const _0x2d8c55=_0x57579e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d8c55),this['listenTo'](this['editor'],'destroy',()=>{_0x2d8c55['remove']();});}}class P extends _0x57068e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-next-20250227.1",
3
+ "version": "0.0.0-nightly-next-20250228.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250227.1",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250227.1",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250227.1",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250227.1",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250227.1",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250227.1",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250227.1",
33
- "ckeditor5": "0.0.0-nightly-next-20250227.1",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250228.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250228.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250228.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250228.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250228.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250228.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250228.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250228.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a488a=_0x1c1d;(function(_0x123084,_0x3c60a2){const _0x1ae7df=_0x1c1d,_0x2c67b0=_0x123084();while(!![]){try{const _0x5ad6f5=-parseInt(_0x1ae7df(0x1ca))/0x1+-parseInt(_0x1ae7df(0x18f))/0x2*(-parseInt(_0x1ae7df(0x1b6))/0x3)+-parseInt(_0x1ae7df(0x1aa))/0x4*(-parseInt(_0x1ae7df(0x18e))/0x5)+parseInt(_0x1ae7df(0x1cb))/0x6*(parseInt(_0x1ae7df(0x1af))/0x7)+parseInt(_0x1ae7df(0x1dc))/0x8*(parseInt(_0x1ae7df(0x1ab))/0x9)+-parseInt(_0x1ae7df(0x1b4))/0xa+-parseInt(_0x1ae7df(0x1b0))/0xb;if(_0x5ad6f5===_0x3c60a2)break;else _0x2c67b0['push'](_0x2c67b0['shift']());}catch(_0x1d2bbb){_0x2c67b0['push'](_0x2c67b0['shift']());}}}(_0xbb40,0x332bd));import{Plugin as _0x5281b7}from'ckeditor5/src/core.js';import{Dialog as _0x10147d}from'ckeditor5/src/ui.js';import{createElement as _0x4585d0,global as _0x176142,uid as _0x15961d}from'ckeditor5/src/utils.js';import _0x577046 from'./uploadcarecommand.js';function _0x1c1d(_0x589058,_0x379765){const _0xbb40d6=_0xbb40();return _0x1c1d=function(_0x1c1d1e,_0x25d596){_0x1c1d1e=_0x1c1d1e-0x189;let _0x3ad097=_0xbb40d6[_0x1c1d1e];return _0x3ad097;},_0x1c1d(_0x589058,_0x379765);}function _0xbb40(){const _0x89643b=['locale','isOfficialPlugin','closeMax','16VOEOFA','data-uc-image-id','execute','render','conversion','isPremiumPlugin','view','5WQkFeW','2900CIJRHW','remove','#uc-icon-arrow-down','iconHrefResolver','uploadcare.pubkey','uc-config','uploadcareImageReplace','_initConfig','fromCharCode','getSelectedElement','downcast','schema','querySelector','contentLanguage','once','listenTo','getAttribute','cleanupImage','extend','UploadcareEditing','get','insertImage','body','configElement','removeAttribute','model','appendChild','617244sposCk','1186146Obihps','_initSchema','uploadcare','true','59521qKJzlz','1435060GSFbyQ','commands','afterInit','add','2147110uPMxEG','map','102wcCecy','_initImageProcessingIndicator','init','href','input[uploadcare-file-input]','selection','ctxElement','document','destroy','requires','isRegistered','_initConversion','uploadcareImageId','replaceImageSource','editing','for','upcast','config','uploader','join','108000xxtBFk','138NkVFXz','editor','PictureEditing','uploadcare.uploader','attributeToAttribute','pluginName','uc-upload-ctx-provider','imageBlock','\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','imageInline','elementToAttribute','_initCtx','_configElement','_ctxElement'];_0xbb40=function(){return _0x89643b;};return _0xbb40();}import _0x200b73 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4fbb04}from'./utils/editingutils.js';export default class i extends _0x5281b7{[_0x5a488a(0x1d7)]=null;[_0x5a488a(0x1d8)]=null;static get[_0x5a488a(0x1d0)](){const _0x32e4b0=_0x5a488a;return _0x32e4b0(0x1a2);}static get[_0x5a488a(0x1bf)](){const _0x3834e7=_0x5a488a;return[_0x3834e7(0x1cd),_0x200b73,_0x10147d];}static get[_0x5a488a(0x1da)](){return!0x0;}static get[_0x5a488a(0x18c)](){return!0x0;}get[_0x5a488a(0x1a6)](){const _0x5dc222=_0x5a488a;return this[_0x5dc222(0x1d7)];}get[_0x5a488a(0x1bc)](){const _0x45fb8e=_0x5a488a;return this[_0x45fb8e(0x1d8)];}[_0x5a488a(0x1b8)](){const _0x4ab5cb=_0x5a488a,_0x5d9dec=this[_0x4ab5cb(0x1cc)];_0x5d9dec[_0x4ab5cb(0x1b1)][_0x4ab5cb(0x1b3)](_0x4ab5cb(0x1ad),new _0x577046(_0x5d9dec));}[_0x5a488a(0x1b2)](){const _0x157aee=_0x5a488a;this[_0x157aee(0x1ac)](),this[_0x157aee(0x1c1)](),this[_0x157aee(0x196)](),this[_0x157aee(0x1d6)](),this[_0x157aee(0x1b7)](),this[_0x157aee(0x19e)](this[_0x157aee(0x1cc)],_0x157aee(0x1be),()=>{const _0x456ed3=_0x157aee;this[_0x456ed3(0x1d7)]&&(this[_0x456ed3(0x1d7)][_0x456ed3(0x190)](),this[_0x456ed3(0x1d7)]=null),this[_0x456ed3(0x1d8)]&&(this[_0x456ed3(0x1d8)][_0x456ed3(0x190)](),this[_0x456ed3(0x1d8)]=null);const _0x5a5350=_0x176142[_0x456ed3(0x1bd)][_0x456ed3(0x19b)](_0x456ed3(0x1ba));_0x5a5350&&_0x5a5350[_0x456ed3(0x190)]();}),async function(_0x1c9e2d){const _0x33cd22=_0x163f5e([0x75,0x42,0x34,0x66,0x39,0x72,0x44,0x5a,0x4e,0x4c,0x6a,0x31,0x54,0x38,0x36,0x71,0x45,0x76,0x57,0x4a,0x4d,0x55,0x61,0x56,0x67,0x7a,0x59,0x53,0x6c,0x33,0x73,0x51,0x70,0x65,0x4f,0x37,0x30,0x6d,0x6f,0x6e,0x79,0x58,0x78,0x6b,0x46,0x43,0x52,0x69,0x4b,0x49,0x35,0x68,0x41,0x64,0x77,0x74,0x62,0x50,0x48,0x32,0x47,0x63]),_0x5c9413=0x4a28d3e7,_0x263f5f=0x4a2fb357^_0x5c9413,_0x12919a=window[_0x163f5e([0x44,0x61,0x74,0x65])][_0x163f5e([0x6e,0x6f,0x77])](),_0x5ccd25=_0x1c9e2d[_0x163f5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fc340=new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5847bb=>{_0x5ccd25[_0x163f5e([0x6f,0x6e,0x63,0x65])](_0x163f5e([0x72,0x65,0x61,0x64,0x79]),_0x5847bb);}),_0x1ca2d4={[_0x163f5e([0x6b,0x74,0x79])]:_0x163f5e([0x45,0x43]),[_0x163f5e([0x75,0x73,0x65])]:_0x163f5e([0x73,0x69,0x67]),[_0x163f5e([0x63,0x72,0x76])]:_0x163f5e([0x50,0x2d,0x32,0x35,0x36]),[_0x163f5e([0x78])]:_0x163f5e([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]),[_0x163f5e([0x79])]:_0x163f5e([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]),[_0x163f5e([0x61,0x6c,0x67])]:_0x163f5e([0x45,0x53,0x32,0x35,0x36])},_0x35e3de=_0x5ccd25[_0x163f5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x163f5e([0x67,0x65,0x74])](_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12c00a(){let _0x145e63,_0x2fb3b2=null,_0x3eb92c=null;try{if(_0x35e3de==_0x163f5e([0x47,0x50,0x4c]))return _0x163f5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x145e63=_0x33c218(),!_0x145e63)return _0x163f5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x145e63[_0x163f5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eb92c=_0x4ae071(_0x145e63[_0x163f5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x145e63[_0x163f5e([0x6a,0x74,0x69])])),await _0xa6a1d7()?_0x8c1ca7()?_0x35bda2()?_0x163f5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa4dd2d()?(_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x163f5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fb3b2=_0x343f28(_0x163f5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x163f5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fb3b2=_0x343f28(_0x163f5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28242c()):_0x163f5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x163f5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x163f5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2df662){return _0x163f5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35bda2(){const _0x51bfee=[_0x163f5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x163f5e([0x74,0x72,0x69,0x61,0x6c])][_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12919a/0x3e8:0xe10*_0x263f5f;return _0x145e63[_0x163f5e([0x65,0x78,0x70])]<_0x51bfee;}function _0x8c1ca7(){const _0x3329a7=_0x145e63[_0x163f5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3329a7&&(!!_0x3329a7[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163f5e([0x2a]))||!!_0x3329a7[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163f5e([0x55,0x50,0x4c,0x43])));}function _0xa4dd2d(){const _0x59e7e2=_0x1c1d,_0x4018f6=_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4018f6||0x0==_0x4018f6[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8c0dc3}=new URL(window[_0x163f5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59e7e2(0x1b9)]);if(_0x4018f6[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c0dc3))return!0x0;const _0x314b32=_0x8c0dc3[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e]));return _0x4018f6[_0x163f5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a728b=>_0x2a728b[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163f5e([0x2a])))[_0x163f5e([0x6d,0x61,0x70])](_0x209116=>_0x209116[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e])))[_0x163f5e([0x73,0x6f,0x6d,0x65])](_0xe4cc8d=>_0x314b32[_0x163f5e([0x65,0x76,0x65,0x72,0x79])]((_0x2801d5,_0x49bb8a)=>_0xe4cc8d[_0x49bb8a]===_0x2801d5||_0xe4cc8d[_0x49bb8a]===_0x163f5e([0x2a])));}function _0x28242c(){return _0x2fb3b2&&_0x3eb92c?new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3de8d8,_0x97f54a)=>{_0x2fb3b2[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x3de8d8,_0x97f54a),_0x3eb92c[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x27c186=>{_0x27c186!=_0x163f5e([0x56,0x61,0x6c,0x69,0x64])&&_0x3de8d8(_0x27c186);},_0x97f54a);}):_0x2fb3b2||_0x3eb92c||_0x163f5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ae071(_0x5822ac,_0x2a3bef){return new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb72f=>{if(_0xa30910())return _0x1bb72f(_0x163f5e([0x56,0x61,0x6c,0x69,0x64]));_0x41b691(),_0x5ccd25[_0x163f5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x163f5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc88cb3=!0x1;const _0x4f97f2=_0x15961d();function _0x4fa2f8(_0x3fe43b){return!!_0x3fe43b&&(typeof _0x3fe43b===_0x163f5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe43b===_0x163f5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe43b[_0x163f5e([0x74,0x68,0x65,0x6e])]===_0x163f5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe43b[_0x163f5e([0x63,0x61,0x74,0x63,0x68])]===_0x163f5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e485a(_0x1cc54d){_0x7e8080(_0x1cc54d)[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x376327=>{if(!_0x376327||_0x376327[_0x163f5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x163f5e([0x6f,0x6b]))return _0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a0038(_0x57f6ff(_0x4f97f2+_0x2a3bef))!=_0x376327[_0x163f5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x163f5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x163f5e([0x74,0x68,0x65,0x6e])](_0xcfd756=>(_0x3aedbd(),_0xcfd756),()=>{const _0x6ff588=_0x2147ac();return null==_0x6ff588?(_0x3aedbd(),_0x163f5e([0x56,0x61,0x6c,0x69,0x64])):_0x163f5e(_0x12919a-_0x6ff588>(0x6e2457e7^_0x5c9413)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x1bb72f)[_0x163f5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bb72f(_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaf9d8=0x4a1e3d67^_0x5c9413;function _0x3aedbd(){const _0x28c6e8=_0x163f5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a0038(_0x57f6ff(_0x5822ac)),_0x59e776=_0x275585(_0x2a0038(window[_0x163f5e([0x4d,0x61,0x74,0x68])][_0x163f5e([0x63,0x65,0x69,0x6c])](_0x12919a/_0xaf9d8)));window[_0x163f5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x163f5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28c6e8,_0x59e776);}function _0x2147ac(){const _0x2ca9dd=_0x163f5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a0038(_0x57f6ff(_0x5822ac)),_0x1edd41=window[_0x163f5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x163f5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ca9dd);return _0x1edd41?window[_0x163f5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275585(_0x1edd41),0x10)*_0xaf9d8:null;}function _0x7e8080(_0x7e7fc){return new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x319f97,_0x3f1f9e)=>{_0x7e7fc[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x319f97,_0x3f1f9e),window[_0x163f5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f1f9e,0x4a290727^_0x5c9413);});}}_0x5ccd25[_0x163f5e([0x6f,0x6e])](_0x163f5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b269f,_0xd169b9)=>{if(_0xd169b9[0x0]!=_0x5822ac)return _0x1bb72f(_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd169b9[0x1]={..._0xd169b9[0x1],[_0x163f5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f97f2};},{[_0x163f5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x163f5e([0x68,0x69,0x67,0x68])}),_0x5ccd25[_0x163f5e([0x6f,0x6e])](_0x163f5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c0d8=>{_0x4fa2f8(_0x40c0d8[_0x163f5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc88cb3=!0x0,_0x1e485a(_0x40c0d8[_0x163f5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x163f5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x163f5e([0x6c,0x6f,0x77])}),_0x4fc340[_0x163f5e([0x74,0x68,0x65,0x6e])](()=>{_0xc88cb3||_0x1bb72f(_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa30910(){return _0x5ccd25[_0x163f5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163f5e([0x76,0x69,0x65,0x77])][_0x163f5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x163f5e([0x61,0x75,0x74,0x6f]);}function _0x41b691(){_0x5ccd25[_0x163f5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163f5e([0x76,0x69,0x65,0x77])][_0x163f5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x163f5e([0x61,0x75,0x74,0x6f]);}}function _0x343f28(_0x989985){const _0x52b74f=[new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf769=>setTimeout(_0x3cf769,0x4a21ed2b^_0x5c9413)),_0x4fc340[_0x163f5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513aea=>{let _0xbf5177=0x0;_0x5ccd25[_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x163f5e([0x6f,0x6e])](_0x163f5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19670d,_0x36caea)=>{_0x36caea[0x0][_0x163f5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xbf5177++,_0xbf5177==(0x4a28d21f^_0x5c9413)&&(_0x513aea(),_0x19670d[_0x163f5e([0x6f,0x66,0x66])]());});}))];return window[_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x163f5e([0x72,0x61,0x63,0x65])](_0x52b74f)[_0x163f5e([0x74,0x68,0x65,0x6e])](()=>_0x989985);}async function _0x399d26(){await _0x4fc340,_0x5ccd25[_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x163f5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f5f6c,_0x5ccd25[_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x163f5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f5f6c,_0x5ccd25[_0x163f5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2377c0(_0x19f0f9){const _0x4a9944=_0x263f70();_0x5ccd25[_0x4a9944]=_0x163f5e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19f0f9,_0x19f0f9!=_0x163f5e([0x56,0x61,0x6c,0x69,0x64])&&_0x399d26();}function _0x263f70(){const _0x17d7af=window[_0x163f5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x163f5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x163f5e([0x6e,0x6f,0x77])]())[_0x163f5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x163f5e([0x2e]),'');let _0xa9d05a=_0x163f5e([0x75]);for(let _0x3096a5=0x0;_0x3096a5<_0x17d7af[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3096a5+=0x2){let _0x136c82=window[_0x163f5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17d7af[_0x163f5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3096a5,_0x3096a5+0x2));_0x136c82>=_0x33cd22[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x136c82-=_0x33cd22[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa9d05a+=_0x33cd22[_0x136c82];}return _0xa9d05a;}function _0x33c218(){const _0x2c74dc=_0x35e3de[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e]));if(0x3!=_0x2c74dc[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11a95d(_0x2c74dc[0x1]);function _0x11a95d(_0x24a9f9){const _0xb16724=_0x56902b(_0x24a9f9);return _0xb16724&&_0x5f2968()?_0xb16724:null;function _0x5f2968(){const _0x32bec2=_0xb16724[_0x163f5e([0x6a,0x74,0x69])],_0x4b116c=window[_0x163f5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32bec2[_0x163f5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32bec2[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x323aa9={..._0xb16724,[_0x163f5e([0x6a,0x74,0x69])]:_0x32bec2[_0x163f5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32bec2[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x323aa9[_0x163f5e([0x76,0x63])],_0x57f6ff(_0x323aa9)==_0x4b116c;}}}async function _0xa6a1d7(){let _0xc355c2=!0x0;try{const _0x229dd8=_0x35e3de[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e])),[_0x52b6d8,_0x5d0832,_0x5451d8]=_0x229dd8;return _0x30ffcf(_0x52b6d8),await _0x24644a(_0x52b6d8,_0x5d0832,_0x5451d8),_0xc355c2;}catch(_0x110961){return!0x1;}function _0x30ffcf(_0x45536a){const _0x157faa=_0x56902b(_0x45536a);_0x157faa&&_0x157faa[_0x163f5e([0x61,0x6c,0x67])]==_0x163f5e([0x45,0x53,0x32,0x35,0x36])||(_0xc355c2=!0x1);}async function _0x24644a(_0x2ee3ce,_0x4101c3,_0x3e82ef){const _0x1a259d=window[_0x163f5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x163f5e([0x66,0x72,0x6f,0x6d])](_0x375193(_0x3e82ef),_0x3fcdb2=>_0x3fcdb2[_0x163f5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f102a=new window[(_0x163f5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x163f5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ee3ce+_0x163f5e([0x2e])+_0x4101c3),_0x2b920e=window[_0x163f5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x163f5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b920e)return;const _0x1d79d4=await _0x2b920e[_0x163f5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x163f5e([0x6a,0x77,0x6b]),_0x1ca2d4,{[_0x163f5e([0x6e,0x61,0x6d,0x65])]:_0x163f5e([0x45,0x43,0x44,0x53,0x41]),[_0x163f5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x163f5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x163f5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b920e[_0x163f5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x163f5e([0x6e,0x61,0x6d,0x65])]:_0x163f5e([0x45,0x43,0x44,0x53,0x41]),[_0x163f5e([0x68,0x61,0x73,0x68])]:{[_0x163f5e([0x6e,0x61,0x6d,0x65])]:_0x163f5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d79d4,_0x1a259d,_0x2f102a)||(_0xc355c2=!0x1);}}function _0x56902b(_0xce8e0){return _0xce8e0[_0x163f5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x163f5e([0x65,0x79]))?JSON[_0x163f5e([0x70,0x61,0x72,0x73,0x65])](_0x375193(_0xce8e0)):null;}function _0x375193(_0x310ad8){return window[_0x163f5e([0x61,0x74,0x6f,0x62])](_0x310ad8[_0x163f5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x163f5e([0x2b]))[_0x163f5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x163f5e([0x2f])));}function _0x57f6ff(_0x13b822){let _0x597b18=0x1505;function _0x22f7c0(_0x40062a){for(let _0x4440b3=0x0;_0x4440b3<_0x40062a[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4440b3++){const _0x4cc171=_0x40062a[_0x163f5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4440b3);_0x597b18=(_0x597b18<<0x5)+_0x597b18+_0x4cc171,_0x597b18&=_0x597b18;}}function _0x42e8b6(_0x1d53dd){Array[_0x163f5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d53dd)?_0x1d53dd[_0x163f5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42e8b6):_0x1d53dd&&typeof _0x1d53dd==_0x163f5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x163f5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d53dd)[_0x163f5e([0x73,0x6f,0x72,0x74])]()[_0x163f5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f6401,_0x34046e])=>{_0x22f7c0(_0x4f6401),_0x42e8b6(_0x34046e);}):_0x22f7c0(window[_0x163f5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d53dd));}return _0x42e8b6(_0x13b822),_0x597b18>>>0x0;}function _0x2a0038(_0x5e431a){return _0x5e431a[_0x163f5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x163f5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x163f5e([0x30]));}function _0x275585(_0xd26039){return _0xd26039[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x163f5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x163f5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f5f6c(){}function _0x163f5e(_0x50be13){const _0x301d0f=_0x1c1d;return _0x50be13[_0x301d0f(0x1b5)](_0x4f4cfe=>String[_0x301d0f(0x197)](_0x4f4cfe))[_0x301d0f(0x1c9)]('');}_0x2377c0(await _0x12c00a());}(this);}[_0x5a488a(0x1ac)](){const _0x6837ee=_0x5a488a,_0x569211=this[_0x6837ee(0x1cc)][_0x6837ee(0x1a8)][_0x6837ee(0x19a)];_0x569211[_0x6837ee(0x1c0)](_0x6837ee(0x1d2))&&_0x569211[_0x6837ee(0x1a1)](_0x6837ee(0x1d2),{'allowAttributes':[_0x6837ee(0x1c2)]}),_0x569211[_0x6837ee(0x1c0)](_0x6837ee(0x1d4))&&_0x569211[_0x6837ee(0x1a1)](_0x6837ee(0x1d4),{'allowAttributes':[_0x6837ee(0x1c2)]});}[_0x5a488a(0x1c1)](){const _0x23720b=_0x5a488a,_0x47f081=this[_0x23720b(0x1cc)];_0x47f081[_0x23720b(0x18b)][_0x23720b(0x1c5)](_0x23720b(0x199))[_0x23720b(0x1cf)]({'model':_0x23720b(0x1c2),'view':_0x23720b(0x1dd)}),_0x47f081[_0x23720b(0x18b)][_0x23720b(0x1c5)](_0x23720b(0x1c6))[_0x23720b(0x1d5)]({'model':{'key':_0x23720b(0x1c2),'value':_0x27a5aa=>_0x27a5aa[_0x23720b(0x19f)](_0x23720b(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x322a88=_0x47f081[_0x23720b(0x1b1)][_0x23720b(0x1a3)](_0x23720b(0x1c3));_0x322a88&&this[_0x23720b(0x19e)](_0x322a88,_0x23720b(0x1a0),(_0x51ea72,[_0x30dffe,_0x15e6a0])=>{const _0x583c15=_0x23720b;_0x30dffe[_0x583c15(0x1a7)](_0x583c15(0x1c2),_0x15e6a0);});}[_0x5a488a(0x196)](){const _0x2940e7=_0x5a488a,_0x566243=this[_0x2940e7(0x1cc)][_0x2940e7(0x1c7)][_0x2940e7(0x1a3)](_0x2940e7(0x1ce))||{},_0x33fab2=this[_0x2940e7(0x1cc)][_0x2940e7(0x1c7)][_0x2940e7(0x1a3)](_0x2940e7(0x193))||'';this[_0x2940e7(0x1d7)]=_0x4585d0(_0x176142[_0x2940e7(0x1bd)],_0x2940e7(0x194),{..._0x566243,'pubkey':_0x33fab2,'ctx-name':_0x2940e7(0x1c8),'sourceList':'','imgOnly':_0x2940e7(0x1ae),'removeCopyright':_0x2940e7(0x1ae),'localeName':this[_0x2940e7(0x1cc)][_0x2940e7(0x1d9)][_0x2940e7(0x19c)],'externalSourcesEmbedCss':_0x2940e7(0x1d3)}),this[_0x2940e7(0x1d7)][_0x2940e7(0x192)]=_0x378604=>{const _0x19960f=_0x2940e7;if(_0x19960f(0x1db)==_0x378604)return _0x19960f(0x191);},_0x176142[_0x2940e7(0x1bd)][_0x2940e7(0x1a5)][_0x2940e7(0x1a9)](this[_0x2940e7(0x1d7)]);}[_0x5a488a(0x1d6)](){const _0x4a2f67=_0x5a488a;this[_0x4a2f67(0x1d8)]=_0x4585d0(_0x176142[_0x4a2f67(0x1bd)],_0x4a2f67(0x1d1),{'ctx-name':_0x4a2f67(0x1c8)}),_0x176142[_0x4a2f67(0x1bd)][_0x4a2f67(0x1a5)][_0x4a2f67(0x1a9)](this[_0x4a2f67(0x1d8)]);}[_0x5a488a(0x1b7)](){const _0x3fb61a=_0x5a488a,_0x3e6434=this[_0x3fb61a(0x1cc)][_0x3fb61a(0x1b1)][_0x3fb61a(0x1a3)](_0x3fb61a(0x1a4));_0x3e6434&&this[_0x3fb61a(0x19e)](_0x3e6434,_0x3fb61a(0x189),()=>{const _0x3d23c7=_0x3fb61a,_0x4d9ebb=this[_0x3d23c7(0x1cc)][_0x3d23c7(0x1a8)][_0x3d23c7(0x1bd)][_0x3d23c7(0x1bb)][_0x3d23c7(0x198)]();_0x4d9ebb&&_0x4d9ebb[_0x3d23c7(0x19f)](_0x3d23c7(0x1c2))&&this[_0x3d23c7(0x1cc)][_0x3d23c7(0x1c4)][_0x3d23c7(0x18d)][_0x3d23c7(0x19d)](_0x3d23c7(0x18a),()=>{const _0x372449=_0x3d23c7;_0x4fbb04(this[_0x372449(0x1cc)],_0x4d9ebb);});});const _0x5e74bb=this[_0x3fb61a(0x1cc)][_0x3fb61a(0x1b1)][_0x3fb61a(0x1a3)](_0x3fb61a(0x195));_0x5e74bb&&this[_0x3fb61a(0x19e)](_0x5e74bb,_0x3fb61a(0x189),()=>{const _0x328b7b=_0x3fb61a,_0x3d4121=this[_0x328b7b(0x1cc)][_0x328b7b(0x1a8)][_0x328b7b(0x1bd)][_0x328b7b(0x1bb)][_0x328b7b(0x198)]();_0x3d4121&&_0x3d4121[_0x328b7b(0x19f)](_0x328b7b(0x1c2))&&this[_0x328b7b(0x1cc)][_0x328b7b(0x1c4)][_0x328b7b(0x18d)][_0x328b7b(0x19d)](_0x328b7b(0x18a),()=>{const _0x191ed1=_0x328b7b;_0x4fbb04(this[_0x191ed1(0x1cc)],_0x3d4121);});});}}
23
+ const _0x5e88de=_0x5ef8;function _0x4e8c(){const _0x4b5eb7=['UploadcareEditing','_initSchema','insertImage','PictureEditing','requires','isRegistered','afterInit','4UuSjKH','configElement','_configElement','href','body','imageInline','querySelector','cleanupImage','_initCtx','uploadcareImageReplace','view','replaceImageSource','_initConfig','for','1321744IorWxd','remove','elementToAttribute','locale','fromCharCode','execute','2202eUHJGc','uploadcare.pubkey','6156513cWswIQ','closeMax','getSelectedElement','153679ArNEkI','commands','uploadcare.uploader','getAttribute','isOfficialPlugin','uploadcareImageId','render','listenTo','editing','imageBlock','model','_ctxElement','7ezOVek','removeAttribute','ctxElement','2638915NHnijq','join','data-uc-image-id','uploadcare','config','uploader','upcast','selection','1418628ibwSEZ','downcast','#uc-icon-arrow-down','iconHrefResolver','input[uploadcare-file-input]','init','attributeToAttribute','7610mEEXqk','editor','get','document','once','32362gUpnYL','uc-config','isPremiumPlugin','1732zdaLps','_initConversion','_initImageProcessingIndicator','contentLanguage','\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','extend','add','map','schema','appendChild','destroy','pluginName','uc-upload-ctx-provider','conversion','true'];_0x4e8c=function(){return _0x4b5eb7;};return _0x4e8c();}(function(_0x3f5c19,_0x5d2803){const _0xa74eca=_0x5ef8,_0x565973=_0x3f5c19();while(!![]){try{const _0x2734b4=parseInt(_0xa74eca(0x1bc))/0x1*(-parseInt(_0xa74eca(0x1a3))/0x2)+-parseInt(_0xa74eca(0x1b7))/0x3*(parseInt(_0xa74eca(0x18d))/0x4)+-parseInt(_0xa74eca(0x1cb))/0x5+parseInt(_0xa74eca(0x1d3))/0x6*(parseInt(_0xa74eca(0x1c8))/0x7)+-parseInt(_0xa74eca(0x1b1))/0x8+-parseInt(_0xa74eca(0x1b9))/0x9+parseInt(_0xa74eca(0x1da))/0xa*(parseInt(_0xa74eca(0x1df))/0xb);if(_0x2734b4===_0x5d2803)break;else _0x565973['push'](_0x565973['shift']());}catch(_0x515e3a){_0x565973['push'](_0x565973['shift']());}}}(_0x4e8c,0x737e6));import{Plugin as _0x906c60}from'ckeditor5/src/core.js';import{Dialog as _0x316c0a}from'ckeditor5/src/ui.js';import{createElement as _0x2161fa,global as _0x5832ed,uid as _0x31a798}from'ckeditor5/src/utils.js';import _0x53f57c from'./uploadcarecommand.js';import _0x5e9381 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4edd7f}from'./utils/editingutils.js';function _0x5ef8(_0x558597,_0x2cb8e9){const _0x4e8cd6=_0x4e8c();return _0x5ef8=function(_0x5ef808,_0x10f53a){_0x5ef808=_0x5ef808-0x18c;let _0xfd7d1a=_0x4e8cd6[_0x5ef808];return _0xfd7d1a;},_0x5ef8(_0x558597,_0x2cb8e9);}export default class i extends _0x906c60{[_0x5e88de(0x1a5)]=null;[_0x5e88de(0x1c7)]=null;static get[_0x5e88de(0x198)](){const _0x21ce85=_0x5e88de;return _0x21ce85(0x19c);}static get[_0x5e88de(0x1a0)](){const _0x41ee8a=_0x5e88de;return[_0x41ee8a(0x19f),_0x5e9381,_0x316c0a];}static get[_0x5e88de(0x1c0)](){return!0x0;}static get[_0x5e88de(0x18c)](){return!0x0;}get[_0x5e88de(0x1a4)](){const _0x5ae2a9=_0x5e88de;return this[_0x5ae2a9(0x1a5)];}get[_0x5e88de(0x1ca)](){const _0xea9e91=_0x5e88de;return this[_0xea9e91(0x1c7)];}[_0x5e88de(0x1d8)](){const _0x4cd1b1=_0x5e88de,_0x4c4357=this[_0x4cd1b1(0x1db)];_0x4c4357[_0x4cd1b1(0x1bd)][_0x4cd1b1(0x193)](_0x4cd1b1(0x1ce),new _0x53f57c(_0x4c4357));}[_0x5e88de(0x1a2)](){const _0x40d4d7=_0x5e88de;this[_0x40d4d7(0x19d)](),this[_0x40d4d7(0x18e)](),this[_0x40d4d7(0x1af)](),this[_0x40d4d7(0x1ab)](),this[_0x40d4d7(0x18f)](),this[_0x40d4d7(0x1c3)](this[_0x40d4d7(0x1db)],_0x40d4d7(0x197),()=>{const _0x3bb3de=_0x40d4d7;this[_0x3bb3de(0x1a5)]&&(this[_0x3bb3de(0x1a5)][_0x3bb3de(0x1b2)](),this[_0x3bb3de(0x1a5)]=null),this[_0x3bb3de(0x1c7)]&&(this[_0x3bb3de(0x1c7)][_0x3bb3de(0x1b2)](),this[_0x3bb3de(0x1c7)]=null);const _0x3d8584=_0x5832ed[_0x3bb3de(0x1dd)][_0x3bb3de(0x1a9)](_0x3bb3de(0x1d7));_0x3d8584&&_0x3d8584[_0x3bb3de(0x1b2)]();}),async function(_0x437262){const _0x416d0a=_0x4b8b1f([0x39,0x6b,0x4b,0x62,0x75,0x76,0x77,0x42,0x58,0x57,0x72,0x4e,0x49,0x4c,0x51,0x6c,0x71,0x68,0x6d,0x6f,0x56,0x45,0x35,0x50,0x44,0x4d,0x34,0x38,0x6e,0x52,0x69,0x79,0x46,0x41,0x7a,0x66,0x59,0x4a,0x67,0x65,0x61,0x53,0x30,0x73,0x4f,0x78,0x31,0x70,0x74,0x5a,0x36,0x47,0x33,0x48,0x32,0x43,0x6a,0x37,0x64,0x55,0x63,0x54]),_0x29bcc3=0x1268b654,_0x238b5c=0x126fd69c^_0x29bcc3,_0xd65f76=window[_0x4b8b1f([0x44,0x61,0x74,0x65])][_0x4b8b1f([0x6e,0x6f,0x77])](),_0x2d06d1=_0x437262[_0x4b8b1f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20d996=new window[(_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e9ff=>{_0x2d06d1[_0x4b8b1f([0x6f,0x6e,0x63,0x65])](_0x4b8b1f([0x72,0x65,0x61,0x64,0x79]),_0x48e9ff);}),_0x534470={[_0x4b8b1f([0x6b,0x74,0x79])]:_0x4b8b1f([0x45,0x43]),[_0x4b8b1f([0x75,0x73,0x65])]:_0x4b8b1f([0x73,0x69,0x67]),[_0x4b8b1f([0x63,0x72,0x76])]:_0x4b8b1f([0x50,0x2d,0x32,0x35,0x36]),[_0x4b8b1f([0x78])]:_0x4b8b1f([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]),[_0x4b8b1f([0x79])]:_0x4b8b1f([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]),[_0x4b8b1f([0x61,0x6c,0x67])]:_0x4b8b1f([0x45,0x53,0x32,0x35,0x36])},_0x544359=_0x2d06d1[_0x4b8b1f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b8b1f([0x67,0x65,0x74])](_0x4b8b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x239b55(){let _0x529a53,_0x17d480=null,_0x454056=null;try{if(_0x544359==_0x4b8b1f([0x47,0x50,0x4c]))return _0x4b8b1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x529a53=_0x22b645(),!_0x529a53)return _0x4b8b1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x529a53[_0x4b8b1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x454056=_0x3962a1(_0x529a53[_0x4b8b1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x529a53[_0x4b8b1f([0x6a,0x74,0x69])])),await _0x52e130()?_0x21aa7f()?_0x38595b()?_0x4b8b1f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xaf2637()?(_0x529a53[_0x4b8b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b8b1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17d480=_0x3be800(_0x4b8b1f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x529a53[_0x4b8b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b8b1f([0x74,0x72,0x69,0x61,0x6c])&&(_0x17d480=_0x3be800(_0x4b8b1f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30fd67()):_0x4b8b1f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b8b1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b8b1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x537add){return _0x4b8b1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38595b(){const _0x139424=[_0x4b8b1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b8b1f([0x74,0x72,0x69,0x61,0x6c])][_0x4b8b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529a53[_0x4b8b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd65f76/0x3e8:0xe10*_0x238b5c;return _0x529a53[_0x4b8b1f([0x65,0x78,0x70])]<_0x139424;}function _0x21aa7f(){const _0xc9765a=_0x529a53[_0x4b8b1f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc9765a&&(!!_0xc9765a[_0x4b8b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8b1f([0x2a]))||!!_0xc9765a[_0x4b8b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8b1f([0x55,0x50,0x4c,0x43])));}function _0xaf2637(){const _0x25fe6d=_0x5ef8,_0x2fadf3=_0x529a53[_0x4b8b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fadf3||0x0==_0x2fadf3[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3605cc}=new URL(window[_0x4b8b1f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x25fe6d(0x1a6)]);if(_0x2fadf3[_0x4b8b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3605cc))return!0x0;const _0x5c3265=_0x3605cc[_0x4b8b1f([0x73,0x70,0x6c,0x69,0x74])](_0x4b8b1f([0x2e]));return _0x2fadf3[_0x4b8b1f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d50ab=>_0x1d50ab[_0x4b8b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8b1f([0x2a])))[_0x4b8b1f([0x6d,0x61,0x70])](_0x485287=>_0x485287[_0x4b8b1f([0x73,0x70,0x6c,0x69,0x74])](_0x4b8b1f([0x2e])))[_0x4b8b1f([0x73,0x6f,0x6d,0x65])](_0x461a81=>_0x5c3265[_0x4b8b1f([0x65,0x76,0x65,0x72,0x79])]((_0x300ac6,_0x2b2a47)=>_0x461a81[_0x2b2a47]===_0x300ac6||_0x461a81[_0x2b2a47]===_0x4b8b1f([0x2a])));}function _0x30fd67(){return _0x17d480&&_0x454056?new window[(_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a56a2,_0x1d199b)=>{_0x17d480[_0x4b8b1f([0x74,0x68,0x65,0x6e])](_0x4a56a2,_0x1d199b),_0x454056[_0x4b8b1f([0x74,0x68,0x65,0x6e])](_0x2a604a=>{_0x2a604a!=_0x4b8b1f([0x56,0x61,0x6c,0x69,0x64])&&_0x4a56a2(_0x2a604a);},_0x1d199b);}):_0x17d480||_0x454056||_0x4b8b1f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3962a1(_0x4f206a,_0x3b9bf6){return new window[(_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x295cb3=>{if(_0x288da0())return _0x295cb3(_0x4b8b1f([0x56,0x61,0x6c,0x69,0x64]));_0x2dde99(),_0x2d06d1[_0x4b8b1f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b8b1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45ab34=!0x1;const _0x503665=_0x31a798();function _0x1f0bdc(_0x2634b6){return!!_0x2634b6&&(typeof _0x2634b6===_0x4b8b1f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2634b6===_0x4b8b1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2634b6[_0x4b8b1f([0x74,0x68,0x65,0x6e])]===_0x4b8b1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2634b6[_0x4b8b1f([0x63,0x61,0x74,0x63,0x68])]===_0x4b8b1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5124d0(_0x3cff63){_0x3a7944(_0x3cff63)[_0x4b8b1f([0x74,0x68,0x65,0x6e])](_0x471315=>{if(!_0x471315||_0x471315[_0x4b8b1f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b8b1f([0x6f,0x6b]))return _0x4b8b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c24bc(_0x4bbb83(_0x503665+_0x3b9bf6))!=_0x471315[_0x4b8b1f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b8b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b8b1f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b8b1f([0x74,0x68,0x65,0x6e])](_0xef7ed=>(_0x47f990(),_0xef7ed),()=>{const _0x2d25b6=_0x4d4b80();return null==_0x2d25b6?(_0x47f990(),_0x4b8b1f([0x56,0x61,0x6c,0x69,0x64])):_0x4b8b1f(_0xd65f76-_0x2d25b6>(0x36643254^_0x29bcc3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b8b1f([0x74,0x68,0x65,0x6e])](_0x295cb3)[_0x4b8b1f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x295cb3(_0x4b8b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3124ec=0x125e58d4^_0x29bcc3;function _0x47f990(){const _0x266fcc=_0x4b8b1f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c24bc(_0x4bbb83(_0x4f206a)),_0x208d88=_0x2e34cf(_0x1c24bc(window[_0x4b8b1f([0x4d,0x61,0x74,0x68])][_0x4b8b1f([0x63,0x65,0x69,0x6c])](_0xd65f76/_0x3124ec)));window[_0x4b8b1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b8b1f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x266fcc,_0x208d88);}function _0x4d4b80(){const _0x2ae187=_0x4b8b1f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c24bc(_0x4bbb83(_0x4f206a)),_0x4f9b72=window[_0x4b8b1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b8b1f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ae187);return _0x4f9b72?window[_0x4b8b1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e34cf(_0x4f9b72),0x10)*_0x3124ec:null;}function _0x3a7944(_0x5c72bc){return new window[(_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f1bc8,_0x5aec75)=>{_0x5c72bc[_0x4b8b1f([0x74,0x68,0x65,0x6e])](_0x4f1bc8,_0x5aec75),window[_0x4b8b1f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5aec75,0x12696294^_0x29bcc3);});}}_0x2d06d1[_0x4b8b1f([0x6f,0x6e])](_0x4b8b1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b5762,_0x38924e)=>{if(_0x38924e[0x0]!=_0x4f206a)return _0x295cb3(_0x4b8b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38924e[0x1]={..._0x38924e[0x1],[_0x4b8b1f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x503665};},{[_0x4b8b1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b8b1f([0x68,0x69,0x67,0x68])}),_0x2d06d1[_0x4b8b1f([0x6f,0x6e])](_0x4b8b1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41d099=>{_0x1f0bdc(_0x41d099[_0x4b8b1f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45ab34=!0x0,_0x5124d0(_0x41d099[_0x4b8b1f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b8b1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b8b1f([0x6c,0x6f,0x77])}),_0x20d996[_0x4b8b1f([0x74,0x68,0x65,0x6e])](()=>{_0x45ab34||_0x295cb3(_0x4b8b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x288da0(){return _0x2d06d1[_0x4b8b1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b8b1f([0x76,0x69,0x65,0x77])][_0x4b8b1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b8b1f([0x61,0x75,0x74,0x6f]);}function _0x2dde99(){_0x2d06d1[_0x4b8b1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b8b1f([0x76,0x69,0x65,0x77])][_0x4b8b1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b8b1f([0x61,0x75,0x74,0x6f]);}}function _0x3be800(_0x2298c6){const _0x4419dc=[new window[(_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32d59c=>setTimeout(_0x32d59c,0x12618898^_0x29bcc3)),_0x20d996[_0x4b8b1f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f4d2=>{let _0x2554e6=0x0;_0x2d06d1[_0x4b8b1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b8b1f([0x6f,0x6e])](_0x4b8b1f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42f20e,_0x4b8af6)=>{_0x4b8af6[0x0][_0x4b8b1f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2554e6++,_0x2554e6==(0x1268b7ac^_0x29bcc3)&&(_0x41f4d2(),_0x42f20e[_0x4b8b1f([0x6f,0x66,0x66])]());});}))];return window[_0x4b8b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b8b1f([0x72,0x61,0x63,0x65])](_0x4419dc)[_0x4b8b1f([0x74,0x68,0x65,0x6e])](()=>_0x2298c6);}async function _0x5f54fc(){await _0x20d996,_0x2d06d1[_0x4b8b1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b8b1f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11c06b,_0x2d06d1[_0x4b8b1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b8b1f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11c06b,_0x2d06d1[_0x4b8b1f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b8b1f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28404c(_0x31832d){const _0x3d59aa=_0x3c32c8();_0x2d06d1[_0x3d59aa]=_0x4b8b1f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31832d,_0x31832d!=_0x4b8b1f([0x56,0x61,0x6c,0x69,0x64])&&_0x5f54fc();}function _0x3c32c8(){const _0x2f96eb=window[_0x4b8b1f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b8b1f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b8b1f([0x6e,0x6f,0x77])]())[_0x4b8b1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b8b1f([0x2e]),'');let _0x56d54a=_0x4b8b1f([0x6b]);for(let _0x57657d=0x0;_0x57657d<_0x2f96eb[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57657d+=0x2){let _0x3b7648=window[_0x4b8b1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f96eb[_0x4b8b1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57657d,_0x57657d+0x2));_0x3b7648>=_0x416d0a[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b7648-=_0x416d0a[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56d54a+=_0x416d0a[_0x3b7648];}return _0x56d54a;}function _0x22b645(){const _0x2e9a15=_0x544359[_0x4b8b1f([0x73,0x70,0x6c,0x69,0x74])](_0x4b8b1f([0x2e]));if(0x3!=_0x2e9a15[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd413b(_0x2e9a15[0x1]);function _0xd413b(_0x42ba33){const _0x32ad56=_0x550b18(_0x42ba33);return _0x32ad56&&_0x2b430e()?_0x32ad56:null;function _0x2b430e(){const _0x20cad6=_0x32ad56[_0x4b8b1f([0x6a,0x74,0x69])],_0x264ac8=window[_0x4b8b1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20cad6[_0x4b8b1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20cad6[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x434e87={..._0x32ad56,[_0x4b8b1f([0x6a,0x74,0x69])]:_0x20cad6[_0x4b8b1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20cad6[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x434e87[_0x4b8b1f([0x76,0x63])],_0x4bbb83(_0x434e87)==_0x264ac8;}}}async function _0x52e130(){let _0x48c73b=!0x0;try{const _0xb6ecff=_0x544359[_0x4b8b1f([0x73,0x70,0x6c,0x69,0x74])](_0x4b8b1f([0x2e])),[_0x2d869c,_0x211740,_0x296863]=_0xb6ecff;return _0xf721de(_0x2d869c),await _0xd5e4f1(_0x2d869c,_0x211740,_0x296863),_0x48c73b;}catch(_0x1dc7d1){return!0x1;}function _0xf721de(_0x3a3c0b){const _0x31dbf8=_0x550b18(_0x3a3c0b);_0x31dbf8&&_0x31dbf8[_0x4b8b1f([0x61,0x6c,0x67])]==_0x4b8b1f([0x45,0x53,0x32,0x35,0x36])||(_0x48c73b=!0x1);}async function _0xd5e4f1(_0x3242b5,_0x4b140c,_0x4723d4){const _0x1c0006=window[_0x4b8b1f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b8b1f([0x66,0x72,0x6f,0x6d])](_0x61b598(_0x4723d4),_0x227f61=>_0x227f61[_0x4b8b1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3798c2=new window[(_0x4b8b1f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b8b1f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3242b5+_0x4b8b1f([0x2e])+_0x4b140c),_0x5f290d=window[_0x4b8b1f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b8b1f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f290d)return;const _0x4cca07=await _0x5f290d[_0x4b8b1f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b8b1f([0x6a,0x77,0x6b]),_0x534470,{[_0x4b8b1f([0x6e,0x61,0x6d,0x65])]:_0x4b8b1f([0x45,0x43,0x44,0x53,0x41]),[_0x4b8b1f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b8b1f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b8b1f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f290d[_0x4b8b1f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b8b1f([0x6e,0x61,0x6d,0x65])]:_0x4b8b1f([0x45,0x43,0x44,0x53,0x41]),[_0x4b8b1f([0x68,0x61,0x73,0x68])]:{[_0x4b8b1f([0x6e,0x61,0x6d,0x65])]:_0x4b8b1f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cca07,_0x1c0006,_0x3798c2)||(_0x48c73b=!0x1);}}function _0x550b18(_0xef1d0){return _0xef1d0[_0x4b8b1f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b8b1f([0x65,0x79]))?JSON[_0x4b8b1f([0x70,0x61,0x72,0x73,0x65])](_0x61b598(_0xef1d0)):null;}function _0x61b598(_0x6dbab5){return window[_0x4b8b1f([0x61,0x74,0x6f,0x62])](_0x6dbab5[_0x4b8b1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b8b1f([0x2b]))[_0x4b8b1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b8b1f([0x2f])));}function _0x4bbb83(_0x4f5e31){let _0x488e4f=0x1505;function _0x1027b6(_0x4ab152){for(let _0x1d64cd=0x0;_0x1d64cd<_0x4ab152[_0x4b8b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d64cd++){const _0x3f0246=_0x4ab152[_0x4b8b1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d64cd);_0x488e4f=(_0x488e4f<<0x5)+_0x488e4f+_0x3f0246,_0x488e4f&=_0x488e4f;}}function _0x2a664f(_0x324cfb){Array[_0x4b8b1f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x324cfb)?_0x324cfb[_0x4b8b1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a664f):_0x324cfb&&typeof _0x324cfb==_0x4b8b1f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b8b1f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x324cfb)[_0x4b8b1f([0x73,0x6f,0x72,0x74])]()[_0x4b8b1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b2fa4,_0x5c2028])=>{_0x1027b6(_0x5b2fa4),_0x2a664f(_0x5c2028);}):_0x1027b6(window[_0x4b8b1f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x324cfb));}return _0x2a664f(_0x4f5e31),_0x488e4f>>>0x0;}function _0x1c24bc(_0x37fa1b){return _0x37fa1b[_0x4b8b1f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b8b1f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b8b1f([0x30]));}function _0x2e34cf(_0x31b3ec){return _0x31b3ec[_0x4b8b1f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b8b1f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b8b1f([0x6a,0x6f,0x69,0x6e])]('');}function _0x11c06b(){}function _0x4b8b1f(_0xcf31e){const _0x515083=_0x5ef8;return _0xcf31e[_0x515083(0x194)](_0x2ea554=>String[_0x515083(0x1b5)](_0x2ea554))[_0x515083(0x1cc)]('');}_0x28404c(await _0x239b55());}(this);}[_0x5e88de(0x19d)](){const _0x5c1b0b=_0x5e88de,_0x38ab23=this[_0x5c1b0b(0x1db)][_0x5c1b0b(0x1c6)][_0x5c1b0b(0x195)];_0x38ab23[_0x5c1b0b(0x1a1)](_0x5c1b0b(0x1c5))&&_0x38ab23[_0x5c1b0b(0x192)](_0x5c1b0b(0x1c5),{'allowAttributes':[_0x5c1b0b(0x1c1)]}),_0x38ab23[_0x5c1b0b(0x1a1)](_0x5c1b0b(0x1a8))&&_0x38ab23[_0x5c1b0b(0x192)](_0x5c1b0b(0x1a8),{'allowAttributes':[_0x5c1b0b(0x1c1)]});}[_0x5e88de(0x18e)](){const _0x5733e9=_0x5e88de,_0x5522b5=this[_0x5733e9(0x1db)];_0x5522b5[_0x5733e9(0x19a)][_0x5733e9(0x1b0)](_0x5733e9(0x1d4))[_0x5733e9(0x1d9)]({'model':_0x5733e9(0x1c1),'view':_0x5733e9(0x1cd)}),_0x5522b5[_0x5733e9(0x19a)][_0x5733e9(0x1b0)](_0x5733e9(0x1d1))[_0x5733e9(0x1b3)]({'model':{'key':_0x5733e9(0x1c1),'value':_0x8fe9a=>_0x8fe9a[_0x5733e9(0x1bf)](_0x5733e9(0x1cd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x26a2d5=_0x5522b5[_0x5733e9(0x1bd)][_0x5733e9(0x1dc)](_0x5733e9(0x1ae));_0x26a2d5&&this[_0x5733e9(0x1c3)](_0x26a2d5,_0x5733e9(0x1aa),(_0x1b359d,[_0x5ad09c,_0x5c29de])=>{const _0x3fda0d=_0x5733e9;_0x5ad09c[_0x3fda0d(0x1c9)](_0x3fda0d(0x1c1),_0x5c29de);});}[_0x5e88de(0x1af)](){const _0x5701c2=_0x5e88de,_0x450d3a=this[_0x5701c2(0x1db)][_0x5701c2(0x1cf)][_0x5701c2(0x1dc)](_0x5701c2(0x1be))||{},_0x28b561=this[_0x5701c2(0x1db)][_0x5701c2(0x1cf)][_0x5701c2(0x1dc)](_0x5701c2(0x1b8))||'';this[_0x5701c2(0x1a5)]=_0x2161fa(_0x5832ed[_0x5701c2(0x1dd)],_0x5701c2(0x1e0),{..._0x450d3a,'pubkey':_0x28b561,'ctx-name':_0x5701c2(0x1d0),'sourceList':'','imgOnly':_0x5701c2(0x19b),'removeCopyright':_0x5701c2(0x19b),'localeName':this[_0x5701c2(0x1db)][_0x5701c2(0x1b4)][_0x5701c2(0x190)],'externalSourcesEmbedCss':_0x5701c2(0x191)}),this[_0x5701c2(0x1a5)][_0x5701c2(0x1d6)]=_0x1ff256=>{const _0x491202=_0x5701c2;if(_0x491202(0x1ba)==_0x1ff256)return _0x491202(0x1d5);},_0x5832ed[_0x5701c2(0x1dd)][_0x5701c2(0x1a7)][_0x5701c2(0x196)](this[_0x5701c2(0x1a5)]);}[_0x5e88de(0x1ab)](){const _0x50fbbf=_0x5e88de;this[_0x50fbbf(0x1c7)]=_0x2161fa(_0x5832ed[_0x50fbbf(0x1dd)],_0x50fbbf(0x199),{'ctx-name':_0x50fbbf(0x1d0)}),_0x5832ed[_0x50fbbf(0x1dd)][_0x50fbbf(0x1a7)][_0x50fbbf(0x196)](this[_0x50fbbf(0x1c7)]);}[_0x5e88de(0x18f)](){const _0x4d5173=_0x5e88de,_0x25a8a6=this[_0x4d5173(0x1db)][_0x4d5173(0x1bd)][_0x4d5173(0x1dc)](_0x4d5173(0x19e));_0x25a8a6&&this[_0x4d5173(0x1c3)](_0x25a8a6,_0x4d5173(0x1b6),()=>{const _0x1b8c52=_0x4d5173,_0x407de8=this[_0x1b8c52(0x1db)][_0x1b8c52(0x1c6)][_0x1b8c52(0x1dd)][_0x1b8c52(0x1d2)][_0x1b8c52(0x1bb)]();_0x407de8&&_0x407de8[_0x1b8c52(0x1bf)](_0x1b8c52(0x1c1))&&this[_0x1b8c52(0x1db)][_0x1b8c52(0x1c4)][_0x1b8c52(0x1ad)][_0x1b8c52(0x1de)](_0x1b8c52(0x1c2),()=>{const _0xda5afe=_0x1b8c52;_0x4edd7f(this[_0xda5afe(0x1db)],_0x407de8);});});const _0x3f428c=this[_0x4d5173(0x1db)][_0x4d5173(0x1bd)][_0x4d5173(0x1dc)](_0x4d5173(0x1ac));_0x3f428c&&this[_0x4d5173(0x1c3)](_0x3f428c,_0x4d5173(0x1b6),()=>{const _0x42a0e6=_0x4d5173,_0x4d5b0f=this[_0x42a0e6(0x1db)][_0x42a0e6(0x1c6)][_0x42a0e6(0x1dd)][_0x42a0e6(0x1d2)][_0x42a0e6(0x1bb)]();_0x4d5b0f&&_0x4d5b0f[_0x42a0e6(0x1bf)](_0x42a0e6(0x1c1))&&this[_0x42a0e6(0x1db)][_0x42a0e6(0x1c4)][_0x42a0e6(0x1ad)][_0x42a0e6(0x1de)](_0x42a0e6(0x1c2),()=>{const _0x5593f4=_0x42a0e6;_0x4edd7f(this[_0x5593f4(0x1db)],_0x4d5b0f);});});}}