@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260106.0 → 0.0.0-nightly-20260107.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 _0x55ddf0,Command as _0x269e16}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x328107,IconGooglePhotos as _0x7110fa,IconGoogleDrive as _0x17abc7,IconFacebook as _0x58cb1e,IconDropbox as _0x1d08e4,IconUploadcareLink as _0x3038e7,IconUploadcareImageUpload as _0x441948,IconError as _0x11c53b,IconUploadcareImageEdit as _0x4de65f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2912d2,MenuBarMenuListItemButtonView as _0x40ff32,View as _0x2e0ada,FocusCycler as _0x36d203,Dialog as _0x3f728a,DialogViewPosition as _0x2956ae,SpinnerView as _0x31f18b,IconView as _0x37d47d,Notification as _0x2b1861}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ffd6e,DomEmitterMixin as _0x38187e,global as _0x46ac85,getAncestors as _0x4b9038,ObservableMixin as _0x284938,uid as _0x55b0bc,createElement as _0x32c812}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x25f42c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1965d8,info as _0x20f17e}from'@uploadcare/upload-client';import*as _0x197638 from'@uploadcare/file-uploader';var i=function(_0x44f76e){return _0x44f76e['Local']='local',_0x44f76e['URL']='url',_0x44f76e['Dropbox']='dropbox',_0x44f76e['GDrive']='gdrive',_0x44f76e['Facebook']='facebook',_0x44f76e['GPhotos']='gphotos',_0x44f76e['OneDrive']='onedrive',_0x44f76e;}({});function _(_0x287b1c,_0x196551,_0x2efc27){const t=_0x287b1c['t'],_0x2298de=_0x287b1c['t'];switch(_0x196551){case i['Local']:return{'text':_0x2298de('Insert'===_0x2efc27?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2298de('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2efc27?_0x2298de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2298de('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x196551;}}class e extends _0x55ddf0{['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 _0x582b76=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ee99e;for(const _0x2f4cf3 in _0x582b76){const _0x415ad6=_0x2f4cf3,_0x3d34c5=_0x582b76[_0x415ad6];if('uploadcareLicenseKeyValid'==_0x3d34c5||'uploadcareLicenseKeyInvalid'==_0x3d34c5||'uploadcareLicenseKeyExpired'==_0x3d34c5||'uploadcareLicenseKeyDomainLimit'==_0x3d34c5||'uploadcareLicenseKeyNotAllowed'==_0x3d34c5||'uploadcareLicenseKeyEvaluationLimit'==_0x3d34c5||'uploadcareLicenseKeyTrialLimit'==_0x3d34c5||'uploadcareLicenseKeyUsageLimit'==_0x3d34c5){delete _0x582b76[_0x415ad6],_0x3ee99e=_0x3d34c5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ee99e&&_0x582b76['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ee99e&&_0x582b76['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ee99e&&_0x582b76['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x431ee3}=this,_0x1845c2=_0x431ee3['commands']['get']('uploadcare');if(!_0x1845c2)return;const _0x35bc8e=this['_normalizeConfigSourceList'](_0x431ee3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5acc16,_0x5f068f)=>{const _0x3b0855=this['_getIntegrationKey'](_0x5f068f['type']);return _0x5acc16[_0x3b0855]||(_0x5acc16[_0x3b0855]=[]),_0x5acc16[_0x3b0855]['push'](_0x5f068f),_0x5acc16;},{});_0x431ee3['plugins']['has']('ImageInsertUI')&&_0x431ee3['commands']['get']('uploadcare')&&Object['entries'](_0x35bc8e)['forEach'](([_0x5f815a,_0x21fc83])=>{_0x431ee3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f815a,'observable':()=>_0x1845c2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x21fc83),'formViewCreator':()=>this['_createDropdownButtons'](_0x21fc83),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x21fc83),'override':'assetManager'!==_0x5f815a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x10867f){const {locale:_0x423cca}=this['editor'];return _0x10867f['map'](_0x165ce5=>{const _0x33641c=_(_0x423cca,_0x165ce5,'Insert');switch(_0x165ce5){case i['Local']:return{'icon':_0x441948,'type':i['Local'],..._0x33641c};case i['URL']:return{'icon':_0x3038e7,'type':i['URL'],..._0x33641c};case i['Dropbox']:return{'icon':_0x1d08e4,'type':i['Dropbox'],..._0x33641c};case i['Facebook']:return{'icon':_0x58cb1e,'type':i['Facebook'],..._0x33641c};case i['GDrive']:return{'icon':_0x17abc7,'type':i['GDrive'],..._0x33641c};case i['GPhotos']:return{'icon':_0x7110fa,'type':i['GPhotos'],..._0x33641c};case i['OneDrive']:return{'icon':_0x328107,'type':i['OneDrive'],..._0x33641c};}});}['_getIntegrationKey'](_0x109857){switch(_0x109857){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2bda55,_0x121a66){const _0x39a3a2=this['editor'],_0x4b688=new _0x2bda55(_0x39a3a2['locale']),_0xcbe70=_0x39a3a2['commands']['get']('uploadcare');return _0x4b688['bind']('isEnabled')['to'](_0xcbe70),_0x4b688['on']('execute',()=>{_0xcbe70['execute'](_0x121a66);}),_0x4b688;}['_createToolbarButton'](_0x2646c4){const {locale:_0x2ffa73}=this['editor'],_0x66e4c=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ba7f1=_0x2646c4[0x0],_0x4eca73=this['_createButton'](_0x2912d2,_0x4ba7f1['type']);return _0x4eca73['icon']=_0x4ba7f1['icon'],_0x4eca73['bind']('label')['to'](_0x66e4c,'isImageSelected',_0x3d0e31=>_(_0x2ffa73,_0x4ba7f1['type'],_0x3d0e31?'Replace':'Insert')['text']),_0x4eca73['tooltip']=!0x0,_0x4eca73;}['_createDropdownButtons'](_0x450186){const {locale:_0x48734f}=this['editor'],_0x337769=this['editor']['plugins']['get']('ImageInsertUI');return _0x450186['map'](_0x19864f=>{const _0x3c5a6c=this['_createButton'](_0x2912d2,_0x19864f['type']);return _0x3c5a6c['withText']=!0x0,_0x3c5a6c['icon']=_0x19864f['icon'],_0x3c5a6c['bind']('label')['to'](_0x337769,'isImageSelected',_0x2e6c37=>_(_0x48734f,_0x19864f['type'],_0x2e6c37?'Replace':'Insert')['text']),_0x3c5a6c;});}['_createMenuBarButtons'](_0x2ac7dd){return _0x2ac7dd['map'](_0x5709e4=>{const _0xd05e31=this['_createButton'](_0x40ff32,_0x5709e4['type']);return _0xd05e31['icon']=_0x5709e4['icon'],_0xd05e31['label']=_0x5709e4['shortText'],_0xd05e31;});}}class V extends _0x2e0ada{['focusTracker'];['focusCycler'];constructor(_0x48f38a){super(_0x48f38a),this['focusTracker']=new _0x4ffd6e(),this['focusCycler']=new _0x36d203({'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 V{constructor(_0x55c3db,_0xe2eb4a){super(_0x55c3db),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-'+_0xe2eb4a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ccad4,_0x4e371f){const _0x42acd9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4058bf=>_0x4058bf<=_0x4e371f)['map'](_0x51ec01=>_0x3ccad4['replace'](/\/$/,'')+'/-/resize/'+_0x51ec01+'x/\x20'+_0x51ec01+'w');return{'imageFallbackUrl':_0x3ccad4,'imageSources':[{'srcset':_0x42acd9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4e371f+'px)\x20100vw,\x20'+_0x4e371f+'px','type':'image/webp'}]};}function F(_0x1abe9e,_0x262688,_0x7747a4){const _0x34e083=_0x1abe9e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x34e083?parseInt(_0x34e083[0x1],0xa):_0x262688,'height':_0x34e083?parseInt(_0x34e083[0x2],0xa):_0x7747a4};}function p(_0x2628b0,_0x1e8600){const _0xcc8d2b=new(_0x38187e())(),_0x256b1e=_0x2628b0['plugins']['get']('ImageUtils'),_0x4d9c0c=_0x2628b0['editing']['mapper']['toViewElement'](_0x1e8600),_0x33a5ae=_0x256b1e['findViewImgElement'](_0x4d9c0c),_0x2214a0=_0x2628b0['editing']['view']['domConverter']['viewToDom'](_0x33a5ae),_0x5d344c=_0x1e8600['getAttribute']('width'),_0x4c27c7=_0x1e8600['getAttribute']('height'),_0x5e1358='image-processing';_0x2628b0['editing']['view']['change'](_0x566e98=>{_0x566e98['addClass'](_0x5e1358,_0x4d9c0c),_0x566e98['setStyle']('aspect-ratio',_0x5d344c+'/'+_0x4c27c7,_0x33a5ae);}),_0xcc8d2b['listenTo'](_0x2214a0,'load',()=>{_0xcc8d2b['stopListening'](_0x2214a0,'load'),_0x2628b0['editing']['view']['change'](_0x45fd00=>{_0x45fd00['removeClass'](_0x5e1358,_0x4d9c0c),_0x45fd00['removeStyle']('aspect-ratio',_0x33a5ae);});});}function R(_0x13f82a){if(Array['isArray'](_0x13f82a)){const _0x121faf=_0x13f82a['map'](R);return _0x23bd82=>_0x121faf['some'](_0x651746=>_0x651746(_0x23bd82));}if('origin'==_0x13f82a){const _0x4de7a2=_0x46ac85['window']['location']['origin'];return _0xa65e24=>new URL(_0xa65e24,_0x46ac85['document']['baseURI'])['origin']==_0x4de7a2;}return'function'==typeof _0x13f82a?_0x13f82a:_0x13f82a instanceof RegExp?_0xe98723=>!(!_0xe98723['match'](_0x13f82a)&&!_0xe98723['replace'](/^https?:\/\//,'')['match'](_0x13f82a)):()=>!0x1;}function M(_0x7329bb,_0x28e5cf){return _0x4b9038(_0x7329bb['target'])['includes'](_0x28e5cf);}class n extends/* #__PURE__ -- @preserve */
24
- _0x284938(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3d3dfe,_0x26deec,_0x668b55){super(),this['_editor']=_0x3d3dfe,this['_editing']=_0x26deec,this['_dialog']=_0x3d3dfe['plugins']['get'](_0x3f728a),this['_api']=_0x26deec['ctxElement']['getAPI'](),this['_type']=_0x668b55,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:_0x379f12,model:_0x554a49}=this['_editor'],_0x23cfaa=_0x554a49['document']['selection']['getSelectedElement'](),_0x529cb7=_0x23cfaa&&(_0x23cfaa['is']('element','imageBlock')||_0x23cfaa['is']('element','imageInline'));this['_formView']=new S(_0x379f12,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x441948,'title':_(_0x379f12,this['_type'],_0x529cb7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2956ae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ae23f=>!M(_0x4ae23f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d465d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5ddbd4=>{const _0x36a553=_0x5d465d['length'];for(const _0x42e86f of _0x5d465d){const _0x28db89=_0x42e86f===_0x5d465d[_0x36a553-0x1],{cdnUrl:_0x201330,fileInfo:_0x2fda67}=_0x42e86f;if(!_0x201330||!_0x2fda67)continue;const {width:_0x13e26f,height:_0x1d3baf}=_0x2fda67['imageInfo'],_0x11e54c=F(_0x201330,_0x13e26f,_0x1d3baf),_0x5b28aa=C(_0x201330,_0x11e54c['width']),_0x8e5d27={'id':_0x2fda67['uuid'],'type':'image','attributes':{'imageDimension':_0x11e54c,..._0x5b28aa}};this['_insertAsset'](_0x8e5d27,_0x28db89,_0x5ddbd4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x170e49=>{'idle'===_0x170e49['detail']['status']&&!_0x170e49['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3c05f7,_0x22f9a0,_0x111371){const _0x415934=this['_editor']['model']['document']['selection'],_0x754981=_0x415934['getSelectedElement'](),_0x565e6c=!(!_0x754981||!_0x754981['is']('element','imageInline'));_0x111371['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3c05f7,_0x565e6c),_0x22f9a0||_0x111371['setSelection'](_0x415934['getLastPosition']());}['_insertImage'](_0x2f0e0f,_0x346d91){const _0x59e6ba=this['_editor'],{imageDimension:_0x2a2d1e,imageFallbackUrl:_0xa82a03,imageSources:_0x11191b}=_0x2f0e0f['attributes'];_0x59e6ba['execute']('insertImage',{'imageType':_0x346d91?'imageInline':null,'source':{'uploadcareImageId':_0x2f0e0f['id'],'src':_0xa82a03,'sources':_0x11191b,..._0x2a2d1e}});}}class w extends _0x269e16{['_editing'];['_controller']=null;static get['requires'](){return[_0x3f728a,o];}constructor(_0x540852){super(_0x540852),this['_editing']=_0x540852['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x26b810){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x26b810);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x440110,..._0x555013}){return _0x1965d8(_0x440110,_0x555013);}static['getInfo'](_0x3a8d47,_0x1a0e2b){return _0x20f17e(_0x3a8d47,_0x1a0e2b);}}class f extends _0x55ddf0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25f42c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x9294c1=this['editor'];if(!!!_0x9294c1['config']['get']('uploadcare'))return;_0x9294c1['plugins']['get'](_0x25f42c)['createUploadAdapter']=_0x1da0a2=>new k(_0x1da0a2,_0x9294c1),_0x9294c1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4451d3,{imageElement:_0x549a3b,data:_0x5f355f})=>{_0x9294c1['model']['change'](_0x56979a=>{_0x56979a['setAttribute']('uploadcareImageId',_0x5f355f['uploadcareImageId'],_0x549a3b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7417a5,_0x4cf52c){this['loader']=_0x7417a5,this['editor']=_0x4cf52c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1b2da9=await this['loader']['file'];return j['upload']({'file':_0x1b2da9,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1ad0a3=>{_0x1ad0a3&&_0x1ad0a3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ad0a3['value']);}})['then'](async _0x435d2c=>{const {imageFallbackUrl:_0x4359a6,imageSources:_0x5407cc}=C(_0x435d2c['cdnUrl'],_0x435d2c['imageInfo']['width']);return{'uploadcareImageId':_0x435d2c['uuid'],'default':_0x4359a6,'sources':_0x5407cc};})['catch'](()=>{const _0x258438=t('Cannot\x20upload\x20file:')+('\x20'+_0x1b2da9['name']+'.');return Promise['reject'](_0x258438);});}['abort'](){this['controller']['abort']();}}class o extends _0x55ddf0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3f728a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5dba28){super(_0x5dba28),this['ucContextId']=_0x55b0bc();}['init'](){const _0x4ce4b4=this['editor'];_0x4ce4b4['commands']['add']('uploadcare',new w(_0x4ce4b4));}['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 _0x8a72c3=_0x46ac85['document']['querySelector']('input[uploadcare-file-input]');_0x8a72c3&&_0x8a72c3['remove']();}),async function(_0x92c967){const _0x1d47c7=_0x468f68([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2948b8=0x535f8c3a,_0x42bc36=0x5358f232^_0x2948b8,_0x32d561=window[_0x468f68([0x44,0x61,0x74,0x65])][_0x468f68([0x6e,0x6f,0x77])](),_0x14748f=_0x92c967[_0x468f68([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3682cd=new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3947=>{_0x14748f[_0x468f68([0x6f,0x6e,0x63,0x65])](_0x468f68([0x72,0x65,0x61,0x64,0x79]),_0x1b3947);}),_0x519662={[_0x468f68([0x6b,0x74,0x79])]:_0x468f68([0x45,0x43]),[_0x468f68([0x75,0x73,0x65])]:_0x468f68([0x73,0x69,0x67]),[_0x468f68([0x63,0x72,0x76])]:_0x468f68([0x50,0x2d,0x32,0x35,0x36]),[_0x468f68([0x78])]:_0x468f68([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]),[_0x468f68([0x79])]:_0x468f68([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]),[_0x468f68([0x61,0x6c,0x67])]:_0x468f68([0x45,0x53,0x32,0x35,0x36])},_0x10e2c0=_0x14748f[_0x468f68([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x468f68([0x67,0x65,0x74])](_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8b2f10(){let _0x4f115d,_0x329f62=null,_0xf060f2=null;try{if(_0x10e2c0==_0x468f68([0x47,0x50,0x4c]))return _0x468f68([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f115d=_0x5ab84d(),!_0x4f115d)return _0x468f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f115d[_0x468f68([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf060f2=_0x1f4593(_0x4f115d[_0x468f68([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f115d[_0x468f68([0x6a,0x74,0x69])])),await _0x5a43de()?_0x477545()?_0xd4625b()?_0x468f68([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51d54e()?(_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468f68([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x329f62=_0x4d945e(_0x468f68([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468f68([0x74,0x72,0x69,0x61,0x6c])&&(_0x329f62=_0x4d945e(_0x468f68([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd00e3()):_0x468f68([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x468f68([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x468f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x468f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd4625b(){const _0x20568a=[_0x468f68([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x468f68([0x74,0x72,0x69,0x61,0x6c])][_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d561/0x3e8:0xe10*_0x42bc36;return _0x4f115d[_0x468f68([0x65,0x78,0x70])]<_0x20568a;}function _0x477545(){const _0x24a330=_0x4f115d[_0x468f68([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24a330&&(!!_0x24a330[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468f68([0x2a]))||!!_0x24a330[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468f68([0x55,0x50,0x4c,0x43])));}function _0x51d54e(){const _0x5abd71=_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5abd71||0x0==_0x5abd71[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x197d14}=new URL(window[_0x468f68([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5abd71[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x197d14))return!0x0;const _0x318c73=_0x197d14[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e]));return _0x5abd71[_0x468f68([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dc9b6=>_0x1dc9b6[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468f68([0x2a])))[_0x468f68([0x6d,0x61,0x70])](_0x504bbe=>_0x504bbe[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e])))[_0x468f68([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31b3d7=>_0x31b3d7[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x318c73[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468f68([0x6d,0x61,0x70])](_0x21b547=>Array(_0x318c73[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21b547[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468f68([0x66,0x69,0x6c,0x6c])](_0x21b547[0x0]===_0x468f68([0x2a])?_0x468f68([0x2a]):'')[_0x468f68([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21b547))[_0x468f68([0x73,0x6f,0x6d,0x65])](_0xa1bb41=>_0x318c73[_0x468f68([0x65,0x76,0x65,0x72,0x79])]((_0x20242a,_0x4d9a4a)=>_0xa1bb41[_0x4d9a4a]===_0x20242a||_0xa1bb41[_0x4d9a4a]===_0x468f68([0x2a])));}function _0xd00e3(){return _0x329f62&&_0xf060f2?new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36bcfe,_0x52aafc)=>{_0x329f62[_0x468f68([0x74,0x68,0x65,0x6e])](_0x36bcfe,_0x52aafc),_0xf060f2[_0x468f68([0x74,0x68,0x65,0x6e])](_0x513804=>{_0x513804!=_0x468f68([0x56,0x61,0x6c,0x69,0x64])&&_0x36bcfe(_0x513804);},_0x52aafc);}):_0x329f62||_0xf060f2||_0x468f68([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f4593(_0x19ca9f,_0x816b4c){return new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ea7bb=>{if(_0x29ceb2())return _0x2ea7bb(_0x468f68([0x56,0x61,0x6c,0x69,0x64]));_0x26a62c(),_0x14748f[_0x468f68([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x468f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49ba43=!0x1;const _0x53af7a=_0x55b0bc();function _0x3525db(_0xe6e557){return!!_0xe6e557&&(typeof _0xe6e557===_0x468f68([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe6e557===_0x468f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe6e557[_0x468f68([0x74,0x68,0x65,0x6e])]===_0x468f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe6e557[_0x468f68([0x63,0x61,0x74,0x63,0x68])]===_0x468f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x237da4(_0x5c4a3c){_0x351005(_0x5c4a3c)[_0x468f68([0x74,0x68,0x65,0x6e])](_0x27202d=>{if(!_0x27202d||_0x27202d[_0x468f68([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x468f68([0x6f,0x6b]))return _0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1713f5(_0x20c018(_0x53af7a+_0x816b4c))!=_0x27202d[_0x468f68([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x468f68([0x56,0x61,0x6c,0x69,0x64]);})[_0x468f68([0x74,0x68,0x65,0x6e])](_0x28bef5=>(_0x2746d5(),_0x28bef5),()=>{const _0x4d03a4=_0xe8fd7e();return null==_0x4d03a4?(_0x2746d5(),_0x468f68([0x56,0x61,0x6c,0x69,0x64])):_0x468f68(_0x32d561-_0x4d03a4>(0x7753083a^_0x2948b8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x468f68([0x74,0x68,0x65,0x6e])](_0x2ea7bb)[_0x468f68([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ea7bb(_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59c6c0=0x536962ba^_0x2948b8;function _0x2746d5(){const _0x371bd8=_0x468f68([0x6c,0x6c,0x63,0x74,0x2d])+_0x1713f5(_0x20c018(_0x19ca9f)),_0x2c5a07=_0x5558f2(_0x1713f5(window[_0x468f68([0x4d,0x61,0x74,0x68])][_0x468f68([0x63,0x65,0x69,0x6c])](_0x32d561/_0x59c6c0)));window[_0x468f68([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468f68([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x371bd8,_0x2c5a07);}function _0xe8fd7e(){const _0x5d93f9=_0x468f68([0x6c,0x6c,0x63,0x74,0x2d])+_0x1713f5(_0x20c018(_0x19ca9f)),_0x589db1=window[_0x468f68([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468f68([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d93f9);return _0x589db1?window[_0x468f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5558f2(_0x589db1),0x10)*_0x59c6c0:null;}function _0x351005(_0xaa8206){return new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x151f80,_0x1e4d4f)=>{_0xaa8206[_0x468f68([0x74,0x68,0x65,0x6e])](_0x151f80,_0x1e4d4f),window[_0x468f68([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e4d4f,0x535e58fa^_0x2948b8);});}}_0x14748f[_0x468f68([0x6f,0x6e])](_0x468f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f2ae3,_0xf234e8)=>{if(_0xf234e8[0x0]!=_0x19ca9f)return _0x2ea7bb(_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf234e8[0x1]={..._0xf234e8[0x1],[_0x468f68([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53af7a};},{[_0x468f68([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468f68([0x68,0x69,0x67,0x68])}),_0x14748f[_0x468f68([0x6f,0x6e])](_0x468f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x365e1c=>{_0x3525db(_0x365e1c[_0x468f68([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49ba43=!0x0,_0x237da4(_0x365e1c[_0x468f68([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x468f68([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468f68([0x6c,0x6f,0x77])}),_0x3682cd[_0x468f68([0x74,0x68,0x65,0x6e])](()=>{_0x49ba43||_0x2ea7bb(_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29ceb2(){return _0x14748f[_0x468f68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468f68([0x76,0x69,0x65,0x77])][_0x468f68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x468f68([0x61,0x75,0x74,0x6f]);}function _0x26a62c(){_0x14748f[_0x468f68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468f68([0x76,0x69,0x65,0x77])][_0x468f68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x468f68([0x61,0x75,0x74,0x6f]);}}function _0x4d945e(_0x95d2c5){const _0x1ba1a2=[new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5845bc=>setTimeout(_0x5845bc,0x5356b2f6^_0x2948b8)),_0x3682cd[_0x468f68([0x74,0x68,0x65,0x6e])](()=>new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371dca=>{let _0x4e6f7f=0x0;_0x14748f[_0x468f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x468f68([0x6f,0x6e])](_0x468f68([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40763a,_0x102a55)=>{_0x102a55[0x0][_0x468f68([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e6f7f++,_0x4e6f7f==(0x535f89d2^_0x2948b8)&&(_0x371dca(),_0x40763a[_0x468f68([0x6f,0x66,0x66])]());});}))];return window[_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x468f68([0x72,0x61,0x63,0x65])](_0x1ba1a2)[_0x468f68([0x74,0x68,0x65,0x6e])](()=>_0x95d2c5);}async function _0x347694(){await _0x3682cd,_0x14748f[_0x468f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x468f68([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2437ba,_0x14748f[_0x468f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x468f68([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2437ba,_0x14748f[_0x468f68([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x468f68([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43694f(_0x3fd8c4){const _0x3980aa=_0x2d6357();_0x14748f[_0x3980aa]=_0x468f68([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fd8c4,_0x3fd8c4!=_0x468f68([0x56,0x61,0x6c,0x69,0x64])&&_0x347694();}function _0x2d6357(){const _0x7a6e9c=window[_0x468f68([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x468f68([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x468f68([0x6e,0x6f,0x77])]())[_0x468f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x468f68([0x2e]),'');let _0x2e8cfd=_0x468f68([0x68]);for(let _0x29d6ac=0x0;_0x29d6ac<_0x7a6e9c[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29d6ac+=0x2){let _0xcaa627=window[_0x468f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7a6e9c[_0x468f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29d6ac,_0x29d6ac+0x2));_0xcaa627>=_0x1d47c7[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcaa627-=_0x1d47c7[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e8cfd+=_0x1d47c7[_0xcaa627];}return _0x2e8cfd;}function _0x5ab84d(){const _0x46dd5e=_0x10e2c0[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e]));if(0x3!=_0x46dd5e[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30f976(_0x46dd5e[0x1]);function _0x30f976(_0x1f5981){const _0x35b1ba=_0x23fe21(_0x1f5981);return _0x35b1ba&&_0x217dc3()?_0x35b1ba:null;function _0x217dc3(){const _0x1611c2=_0x35b1ba[_0x468f68([0x6a,0x74,0x69])],_0x1657af=window[_0x468f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1611c2[_0x468f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1611c2[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x145cd2={..._0x35b1ba,[_0x468f68([0x6a,0x74,0x69])]:_0x1611c2[_0x468f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1611c2[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x145cd2[_0x468f68([0x76,0x63])],_0x20c018(_0x145cd2)==_0x1657af;}}}async function _0x5a43de(){let _0x2395d3=!0x0;try{const _0x4af232=_0x10e2c0[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e])),[_0x5a58c1,_0x447113,_0x1d8fe3]=_0x4af232;return _0x250db6(_0x5a58c1),await _0x290e89(_0x5a58c1,_0x447113,_0x1d8fe3),_0x2395d3;}catch{return!0x1;}function _0x250db6(_0x202609){const _0x128f45=_0x23fe21(_0x202609);_0x128f45&&_0x128f45[_0x468f68([0x61,0x6c,0x67])]==_0x468f68([0x45,0x53,0x32,0x35,0x36])||(_0x2395d3=!0x1);}async function _0x290e89(_0x27e937,_0x33763b,_0x14ee6c){const _0x44f7dd=window[_0x468f68([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x468f68([0x66,0x72,0x6f,0x6d])](_0x5caf96(_0x14ee6c),_0x9b6c87=>_0x9b6c87[_0x468f68([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x496dd5=new window[(_0x468f68([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x468f68([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27e937+_0x468f68([0x2e])+_0x33763b),_0x3cf80c=window[_0x468f68([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x468f68([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cf80c)return;const _0x5c4f06=await _0x3cf80c[_0x468f68([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x468f68([0x6a,0x77,0x6b]),_0x519662,{[_0x468f68([0x6e,0x61,0x6d,0x65])]:_0x468f68([0x45,0x43,0x44,0x53,0x41]),[_0x468f68([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x468f68([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x468f68([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cf80c[_0x468f68([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x468f68([0x6e,0x61,0x6d,0x65])]:_0x468f68([0x45,0x43,0x44,0x53,0x41]),[_0x468f68([0x68,0x61,0x73,0x68])]:{[_0x468f68([0x6e,0x61,0x6d,0x65])]:_0x468f68([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c4f06,_0x44f7dd,_0x496dd5)||(_0x2395d3=!0x1);}}function _0x23fe21(_0x36a6b5){return _0x36a6b5[_0x468f68([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x468f68([0x65,0x79]))?JSON[_0x468f68([0x70,0x61,0x72,0x73,0x65])](_0x5caf96(_0x36a6b5)):null;}function _0x5caf96(_0x11a7dd){return window[_0x468f68([0x61,0x74,0x6f,0x62])](_0x11a7dd[_0x468f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x468f68([0x2b]))[_0x468f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x468f68([0x2f])));}function _0x20c018(_0x1c9ad2){let _0x14d260=0x1505;function _0x684f3f(_0x56923f){for(let _0x5c3c28=0x0;_0x5c3c28<_0x56923f[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c3c28++){const _0xf55647=_0x56923f[_0x468f68([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c3c28);_0x14d260=(_0x14d260<<0x5)+_0x14d260+_0xf55647,_0x14d260&=_0x14d260;}}function _0x264d78(_0x38662c){Array[_0x468f68([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38662c)?_0x38662c[_0x468f68([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x264d78):_0x38662c&&typeof _0x38662c==_0x468f68([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x468f68([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38662c)[_0x468f68([0x73,0x6f,0x72,0x74])]()[_0x468f68([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc28d9e,_0x3a6df9])=>{_0x684f3f(_0xc28d9e),_0x264d78(_0x3a6df9);}):_0x684f3f(window[_0x468f68([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38662c));}return _0x264d78(_0x1c9ad2),_0x14d260>>>0x0;}function _0x1713f5(_0x540b89){return _0x540b89[_0x468f68([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x468f68([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x468f68([0x30]));}function _0x5558f2(_0x2b20ec){return _0x2b20ec[_0x468f68([0x73,0x70,0x6c,0x69,0x74])]('')[_0x468f68([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x468f68([0x6a,0x6f,0x69,0x6e])]('');}function _0x2437ba(){}function _0x468f68(_0x4f01a6){return _0x4f01a6['map'](_0xc2d545=>String['fromCharCode'](_0xc2d545))['join']('');}_0x43694f(await _0x8b2f10());}(this);}['_initSchema'](){const _0x32cfeb=this['editor']['model']['schema'];_0x32cfeb['isRegistered']('imageBlock')&&_0x32cfeb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x32cfeb['isRegistered']('imageInline')&&_0x32cfeb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x17e13d=this['editor'];_0x17e13d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x17e13d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1fcd5c=>_0x1fcd5c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3338cc=_0x17e13d['commands']['get']('replaceImageSource');_0x3338cc&&this['listenTo'](_0x3338cc,'cleanupImage',(_0x36e9e6,[_0x2b7133,_0x1e75cb])=>{_0x2b7133['removeAttribute']('uploadcareImageId',_0x1e75cb);});}['_initConfig'](){const _0x5c366a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4e9a6f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x32c812(_0x46ac85['document'],'uc-config',{..._0x5c366a,'pubkey':_0x4e9a6f,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x4543c2=>{if('closeMax'==_0x4543c2)return'#uc-icon-arrow-down';},_0x46ac85['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x32c812(_0x46ac85['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x46ac85['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44f57d=this['editor']['commands']['get']('insertImage');_0x44f57d&&this['listenTo'](_0x44f57d,'execute',()=>{const _0x19e20e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19e20e&&_0x19e20e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x19e20e);});});const _0xdb47cd=this['editor']['commands']['get']('uploadcareImageReplace');_0xdb47cd&&this['listenTo'](_0xdb47cd,'execute',()=>{const _0x36e2ab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36e2ab&&_0x36e2ab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x36e2ab);});});}}class tt extends _0x55ddf0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bb7fd){super(_0x3bb7fd),_0x3bb7fd['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x197638['defineComponents'](_0x197638),this['_defineLocale']();}['_defineLocale'](){const _0x599718=this['editor']['config']['get']('uploadcare.locale'),_0x39b421=this['editor']['locale']['contentLanguage'];_0x599718&&_0x197638['defineLocale'](_0x39b421,_0x599718);}}class ii extends _0x2e0ada{constructor(_0x525d1f){super(_0x525d1f);const t=_0x525d1f['t'],_0x3286c0=this['bindTemplate'],_0x48628e=new _0x31f18b();_0x48628e['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':[_0x48628e,{'text':_0x3286c0['to']('imageUploadProgress',_0x45d44e=>t('Loading\x20image...')+'\x20('+(_0x45d44e||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 ti extends _0x2e0ada{constructor(_0x54cf0c){super(_0x54cf0c);const t=_0x54cf0c['t'];this['set']('errorType',null);const _0x2f2ff5=new _0x2912d2(_0x54cf0c);_0x2f2ff5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f2ff5['withText']=!0x0,_0x2f2ff5['class']='ck-button-action',_0x2f2ff5['on']('execute',()=>{this['fire']('retry');}),_0x2f2ff5['bind']('isVisible')['to'](this,'errorType',_0x4d5f84=>'NotFound'!==_0x4d5f84);const _0x2941f9=new _0x37d47d();_0x2941f9['content']=_0x11c53b,_0x2941f9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x793761=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':[_0x2941f9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x793761['to']('errorType',_0x45275d=>t('NotFound'!==_0x45275d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f2ff5]},{'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 ei extends _0x2e0ada{constructor(_0x320fa3,_0x471854){super(_0x320fa3);const _0x584936=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x471854,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x584936['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x58bdad,_0x4e0b21,_0x2eab56){super(_0x58bdad),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x58bdad),this['_errorView']=new ti(_0x58bdad),this['_editingView']=new ei(_0x58bdad,_0x2eab56),this['_focusableView']=new _0x2e0ada(_0x58bdad),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4e0b21),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'],_0x12730b=>{this['_addUploadcareImageEditorListeners'](_0x12730b);});}),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'](_0x3110ab,_0x18f4da){const _0x58b7ec='uc-cloud-image-editor',_0x39c811=_0x3110ab['querySelector'](_0x58b7ec);if(_0x39c811)return _0x18f4da(_0x39c811);const _0x4e91ca=new MutationObserver(_0x485aaf=>{const _0x317147=_0x485aaf['filter'](_0x9925f1=>_0x9925f1['target']===_0x3110ab&&_0x9925f1['addedNodes']['length']>0x0&&_0x9925f1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58b7ec);_0x317147['length']&&(_0x4e91ca['disconnect'](),_0x18f4da(_0x317147[0x0]['addedNodes'][0x0]));});_0x4e91ca['observe'](_0x3110ab,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x464fb6){_0x464fb6['addEventListener']('apply',_0x56b7ee=>{this['fire']('apply',{'imageSrc':_0x56b7ee['detail']['cdnUrl']});}),_0x464fb6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x284938(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e5d3e,_0x2b4625,_0xece643){super(),this['_editor']=_0x3e5d3e,this['_dialog']=_0x2b4625,this['_imageElement']=_0xece643,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 _0x477160=this['_imageElement'],_0x12eb30=_0x477160['getAttribute']('uploadcareImageId'),_0x564a98=_0x477160['getAttribute']('src');if(_0x12eb30)await this['_loadImageInfo'](_0x12eb30,_0x564a98);else{if(this['_imageCache']['has'](_0x564a98)){const _0x338341=this['_imageCache']['get'](_0x564a98);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x338341['url'],this['imageDimension']=_0x338341['dimension'],this['imageId']=_0x338341['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4d039a}=this['_editor'],t=_0x4d039a['t'],_0x1618e0=new X(_0x4d039a,this['imageStatus'],this['_attributes']);_0x1618e0['bind']('status')['to'](this,'imageStatus'),_0x1618e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1618e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1618e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1618e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4de65f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1618e0,'position':_0x2956ae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1618e0['focus']();},'onHide':()=>{_0x1618e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3881f1=>!M(_0x3881f1,_0x1618e0['element'])}});}['_loadImageInfo'](_0x485714,_0x4752b4){return j['getInfo'](_0x485714,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x394fb2=>{const {width:_0x4aed2f,height:_0x57ac0d}=_0x394fb2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4752b4,this['imageDimension']={'width':_0x4aed2f,'height':_0x57ac0d},this['imageId']=_0x485714;})['catch'](_0x17cfe0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17cfe0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53d1ad,_0x44ccdd){return this['_getImageAsFile'](_0x53d1ad)['then'](_0x4b913a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x44ccdd['signal'],'file':_0x4b913a,'onProgress':_0x52ae84=>{_0x52ae84&&_0x52ae84['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x52ae84['value']));}}))['then'](_0x5d0733=>{const {width:_0x5e6fb2,height:_0x462917}=_0x5d0733['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d0733['cdnUrl'],this['imageDimension']={'width':_0x5e6fb2,'height':_0x462917},this['imageId']=_0x5d0733['uuid'],this['imageUploadProgress']=null;const _0x3d75b8=_0x53d1ad['getAttribute']('src');this['_imageCache']['set'](_0x3d75b8,{'id':_0x5d0733['uuid'],'url':_0x5d0733['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x52235f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x52235f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1e56bc,_0x27ed31){_0x1e56bc['on']('apply',(_0x3a27a1,_0xedef75)=>{this['_replaceImage'](_0x27ed31,_0xedef75['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1e56bc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1e56bc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4bf642,_0x5b97ea,_0x81aead){const _0x420419=this['_editor'],{width:_0x2a9885,height:_0x4e21e7}=F(_0x5b97ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2b1472,imageSources:_0x182214}=C(_0x5b97ea,_0x2a9885);_0x420419['model']['change'](_0x5e4f84=>{if('$graveyard'===_0x4bf642['root']['rootName']){_0x420419['execute']('insertImage',{'imageType':_0x4bf642['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4bf642['getAttributes']()),'uploadcareImageId':_0x81aead,'src':_0x2b1472,'sources':_0x182214,'width':_0x2a9885,'height':_0x4e21e7}});const _0x4f9440=_0x4bf642['getChildren']();_0x4bf642=_0x420419['model']['document']['selection']['getSelectedElement']();for(const _0x48933a of _0x4f9440)_0x5e4f84['append'](_0x5e4f84['cloneElement'](_0x48933a),_0x4bf642);}else _0x5e4f84['setSelection'](_0x4bf642,'on'),_0x420419['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4bf642['getAttributes']()),'uploadcareImageId':_0x81aead,'src':_0x2b1472,'sources':_0x182214,'width':_0x2a9885,'height':_0x4e21e7},_0x4bf642);_0x5e4f84['setSelection'](_0x4bf642,'on');});}async['_getImageAsFile'](_0x3e06fd){const _0x5c214c=_0x46ac85['window'],_0x36c8f3=_0x46ac85['document']['location']['href'],_0x56d0d3=new _0x5c214c['URL'](_0x3e06fd['getAttribute']('src'),_0x36c8f3);if('data:'===_0x56d0d3['protocol']){const _0x2a19e1=_0x56d0d3['href']['split'](','),_0x122cd4=_0x2a19e1[0x0]['match'](/:(.*?);/)[0x1],_0x24b28b=_0x122cd4['split']('/')[0x1],_0x1b9146=_0x5c214c['atob'](_0x2a19e1[_0x2a19e1['length']-0x1]);let _0x4a533e=_0x1b9146['length'];const _0xe4b3a7=new _0x5c214c['Uint8Array'](_0x4a533e);for(;_0x4a533e--;)_0xe4b3a7[_0x4a533e]=_0x1b9146['charCodeAt'](_0x4a533e);return new _0x5c214c['File']([_0xe4b3a7],'image.'+_0x24b28b,{'type':_0x122cd4});}const _0x427a4d=_0x56d0d3['href']['split']('/'),_0x59d4c3=_0x427a4d[_0x427a4d['length']-0x1],_0x2207e8=_0x59d4c3['split']('.')[0x1];return _0x5c214c['fetch'](_0x56d0d3['href'])['then'](_0x3a83b0=>_0x3a83b0['clone']()['blob']())['then'](_0x42fce0=>new _0x5c214c['File']([_0x42fce0],_0x59d4c3,{'type':'image/'+_0x2207e8}));}}class N extends _0x269e16{['imageEditController'];static get['requires'](){return[_0x3f728a];}['_isEditable'];constructor(_0x48385d){super(_0x48385d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2d6966){const _0xcef7fc=R(_0x2d6966);return _0x4246df=>!(!_0x4246df||!_0x4246df['is']('element','imageBlock')&&!_0x4246df['is']('element','imageInline'))&&(!!_0x4246df['hasAttribute']('uploadcareImageId')||!!_0x4246df['hasAttribute']('src')&&_0xcef7fc(_0x4246df['getAttribute']('src')));}(_0x48385d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f9f9e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f9f9e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5d8a44=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d8a44&&(_0x5d8a44['is']('element','imageBlock')||_0x5d8a44['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3f728a),_0x5d8a44),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x269e16{['refresh'](){const _0x2e6192=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e6192&&(_0x2e6192['is']('element','imageBlock')||_0x2e6192['is']('element','imageInline')));}['execute'](_0x2d2b2a){const _0x55c2ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf1b9e9=>{_0xf1b9e9['setAttributes'](_0x2d2b2a,_0x55c2ca),_0xf1b9e9['removeAttribute']('srcset',_0x55c2ca),_0xf1b9e9['removeAttribute']('sizes',_0x55c2ca);});}}class m extends _0x55ddf0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2b1861,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21464d}=this;_0x21464d['commands']['add']('uploadcareImageEdit',new N(_0x21464d)),_0x21464d['commands']['add']('uploadcareImageReplace',new O(_0x21464d));}}class g extends _0x55ddf0{['_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 _0x3a433c=this['editor'];_0x3a433c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151b0c=>{const _0x336b37=_0x3a433c['commands']['get']('uploadcareImageEdit'),_0x437bb8=new _0x2912d2(_0x151b0c),t=_0x151b0c['t'];return _0x437bb8['set']({'icon':_0x4de65f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x437bb8['bind']('isEnabled')['to'](_0x336b37),_0x437bb8['bind']('isOn')['to'](_0x336b37,'isActive'),this['listenTo'](_0x437bb8,'execute',()=>{_0x3a433c['execute']('uploadcareImageEdit'),_0x3a433c['editing']['view']['focus']();}),_0x437bb8;}),this['_initConfig']();}['_initConfig'](){const _0x2e39cb=_0x32c812(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e39cb),this['listenTo'](this['editor'],'destroy',()=>{_0x2e39cb['remove']();});}}class et extends _0x55ddf0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x2948c8,Command as _0x318d69}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x19128e,IconGooglePhotos as _0x426270,IconGoogleDrive as _0x26385a,IconFacebook as _0x4f8946,IconDropbox as _0x1d6b31,IconUploadcareLink as _0x5b23e6,IconUploadcareImageUpload as _0x4e1aa8,IconError as _0x5cb126,IconUploadcareImageEdit as _0xb9b52e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x15555d,MenuBarMenuListItemButtonView as _0x490c1b,View as _0x2d4130,FocusCycler as _0x12183c,Dialog as _0x4a9e51,DialogViewPosition as _0x2fada2,SpinnerView as _0xa3f1ed,IconView as _0x2073c3,Notification as _0x579b9c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x16949d,DomEmitterMixin as _0x122c99,global as _0x2168a9,getAncestors as _0x3292a3,ObservableMixin as _0x4b6099,uid as _0xd6ea7,createElement as _0x356f42}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xc6bbb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1d2aaa,info as _0x300484}from'@uploadcare/upload-client';import*as _0x4046e8 from'@uploadcare/file-uploader';var i=function(_0x1d103e){return _0x1d103e['Local']='local',_0x1d103e['URL']='url',_0x1d103e['Dropbox']='dropbox',_0x1d103e['GDrive']='gdrive',_0x1d103e['Facebook']='facebook',_0x1d103e['GPhotos']='gphotos',_0x1d103e['OneDrive']='onedrive',_0x1d103e;}({});function _(_0xd3c30b,_0x3b65c6,_0x5c45d4){const t=_0xd3c30b['t'],_0x212cf2=_0xd3c30b['t'];switch(_0x3b65c6){case i['Local']:return{'text':_0x212cf2('Insert'===_0x5c45d4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x212cf2('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5c45d4?_0x212cf2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x212cf2('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5c45d4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5c45d4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5c45d4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5c45d4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5c45d4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b65c6;}}class e extends _0x2948c8{['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 _0xe725e0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f586b;for(const _0x45670f in _0xe725e0){const _0x3a541f=_0x45670f,_0x1144ff=_0xe725e0[_0x3a541f];if('uploadcareLicenseKeyValid'==_0x1144ff||'uploadcareLicenseKeyInvalid'==_0x1144ff||'uploadcareLicenseKeyExpired'==_0x1144ff||'uploadcareLicenseKeyDomainLimit'==_0x1144ff||'uploadcareLicenseKeyNotAllowed'==_0x1144ff||'uploadcareLicenseKeyEvaluationLimit'==_0x1144ff||'uploadcareLicenseKeyTrialLimit'==_0x1144ff||'uploadcareLicenseKeyUsageLimit'==_0x1144ff){delete _0xe725e0[_0x3a541f],_0x3f586b=_0x1144ff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f586b&&_0xe725e0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f586b&&_0xe725e0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f586b&&_0xe725e0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f586b&&_0xe725e0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f586b&&_0xe725e0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f586b&&_0xe725e0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f586b&&_0xe725e0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x40e23c}=this,_0x4152a5=_0x40e23c['commands']['get']('uploadcare');if(!_0x4152a5)return;const _0x503a51=this['_normalizeConfigSourceList'](_0x40e23c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3154f5,_0x412974)=>{const _0x18af2d=this['_getIntegrationKey'](_0x412974['type']);return _0x3154f5[_0x18af2d]||(_0x3154f5[_0x18af2d]=[]),_0x3154f5[_0x18af2d]['push'](_0x412974),_0x3154f5;},{});_0x40e23c['plugins']['has']('ImageInsertUI')&&_0x40e23c['commands']['get']('uploadcare')&&Object['entries'](_0x503a51)['forEach'](([_0x2d716f,_0x4a6152])=>{_0x40e23c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2d716f,'observable':()=>_0x4152a5,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4a6152),'formViewCreator':()=>this['_createDropdownButtons'](_0x4a6152),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4a6152),'override':'assetManager'!==_0x2d716f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x51fb25){const {locale:_0x4f5657}=this['editor'];return _0x51fb25['map'](_0x9a8078=>{const _0x33e0ff=_(_0x4f5657,_0x9a8078,'Insert');switch(_0x9a8078){case i['Local']:return{'icon':_0x4e1aa8,'type':i['Local'],..._0x33e0ff};case i['URL']:return{'icon':_0x5b23e6,'type':i['URL'],..._0x33e0ff};case i['Dropbox']:return{'icon':_0x1d6b31,'type':i['Dropbox'],..._0x33e0ff};case i['Facebook']:return{'icon':_0x4f8946,'type':i['Facebook'],..._0x33e0ff};case i['GDrive']:return{'icon':_0x26385a,'type':i['GDrive'],..._0x33e0ff};case i['GPhotos']:return{'icon':_0x426270,'type':i['GPhotos'],..._0x33e0ff};case i['OneDrive']:return{'icon':_0x19128e,'type':i['OneDrive'],..._0x33e0ff};}});}['_getIntegrationKey'](_0x20b59d){switch(_0x20b59d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x148aac,_0x456aec){const _0xb9ce6d=this['editor'],_0x198553=new _0x148aac(_0xb9ce6d['locale']),_0x26c72a=_0xb9ce6d['commands']['get']('uploadcare');return _0x198553['bind']('isEnabled')['to'](_0x26c72a),_0x198553['on']('execute',()=>{_0x26c72a['execute'](_0x456aec);}),_0x198553;}['_createToolbarButton'](_0x166068){const {locale:_0x3a0bf3}=this['editor'],_0x16b225=this['editor']['plugins']['get']('ImageInsertUI'),_0x2f1dc2=_0x166068[0x0],_0x334ecd=this['_createButton'](_0x15555d,_0x2f1dc2['type']);return _0x334ecd['icon']=_0x2f1dc2['icon'],_0x334ecd['bind']('label')['to'](_0x16b225,'isImageSelected',_0x56e32e=>_(_0x3a0bf3,_0x2f1dc2['type'],_0x56e32e?'Replace':'Insert')['text']),_0x334ecd['tooltip']=!0x0,_0x334ecd;}['_createDropdownButtons'](_0x4cf5ee){const {locale:_0x212818}=this['editor'],_0xda658e=this['editor']['plugins']['get']('ImageInsertUI');return _0x4cf5ee['map'](_0x3519d7=>{const _0x1923d9=this['_createButton'](_0x15555d,_0x3519d7['type']);return _0x1923d9['withText']=!0x0,_0x1923d9['icon']=_0x3519d7['icon'],_0x1923d9['bind']('label')['to'](_0xda658e,'isImageSelected',_0x5c423d=>_(_0x212818,_0x3519d7['type'],_0x5c423d?'Replace':'Insert')['text']),_0x1923d9;});}['_createMenuBarButtons'](_0xe02aa0){return _0xe02aa0['map'](_0xf50105=>{const _0x3c348f=this['_createButton'](_0x490c1b,_0xf50105['type']);return _0x3c348f['icon']=_0xf50105['icon'],_0x3c348f['label']=_0xf50105['shortText'],_0x3c348f;});}}class F extends _0x2d4130{['focusTracker'];['focusCycler'];constructor(_0x15a975){super(_0x15a975),this['focusTracker']=new _0x16949d(),this['focusCycler']=new _0x12183c({'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 x extends F{constructor(_0x25a076,_0x320a36){super(_0x25a076),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-'+_0x320a36}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4aaa8f,_0x1a065a){const _0x3660b4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x455d83=>_0x455d83<=_0x1a065a)['map'](_0x5d5132=>_0x4aaa8f['replace'](/\/$/,'')+'/-/resize/'+_0x5d5132+'x/\x20'+_0x5d5132+'w');return{'imageFallbackUrl':_0x4aaa8f,'imageSources':[{'srcset':_0x3660b4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1a065a+'px)\x20100vw,\x20'+_0x1a065a+'px','type':'image/webp'}]};}function S(_0x537578,_0x4057c3,_0xfa7288){const _0x138adc=_0x537578['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x138adc?parseInt(_0x138adc[0x1],0xa):_0x4057c3,'height':_0x138adc?parseInt(_0x138adc[0x2],0xa):_0xfa7288};}function p(_0x300f88,_0x25b92f){const _0x5a755a=new(_0x122c99())(),_0xe5236c=_0x300f88['plugins']['get']('ImageUtils'),_0xdc5d29=_0x300f88['editing']['mapper']['toViewElement'](_0x25b92f),_0x24a4d3=_0xe5236c['findViewImgElement'](_0xdc5d29),_0x5c219d=_0x300f88['editing']['view']['domConverter']['viewToDom'](_0x24a4d3),_0x5f2f97=_0x25b92f['getAttribute']('width'),_0x3903db=_0x25b92f['getAttribute']('height'),_0x323b7c='image-processing';_0x300f88['editing']['view']['change'](_0x4e424a=>{_0x4e424a['addClass'](_0x323b7c,_0xdc5d29),_0x4e424a['setStyle']('aspect-ratio',_0x5f2f97+'/'+_0x3903db,_0x24a4d3);}),_0x5a755a['listenTo'](_0x5c219d,'load',()=>{_0x5a755a['stopListening'](_0x5c219d,'load'),_0x300f88['editing']['view']['change'](_0x4bcccb=>{_0x4bcccb['removeClass'](_0x323b7c,_0xdc5d29),_0x4bcccb['removeStyle']('aspect-ratio',_0x24a4d3);});});}function G(_0x1cec78){if(Array['isArray'](_0x1cec78)){const _0x56e37e=_0x1cec78['map'](G);return _0x303b80=>_0x56e37e['some'](_0x425ff9=>_0x425ff9(_0x303b80));}if('origin'==_0x1cec78){const _0x21ed04=_0x2168a9['window']['location']['origin'];return _0xa7890c=>new URL(_0xa7890c,_0x2168a9['document']['baseURI'])['origin']==_0x21ed04;}return'function'==typeof _0x1cec78?_0x1cec78:_0x1cec78 instanceof RegExp?_0x10352f=>!(!_0x10352f['match'](_0x1cec78)&&!_0x10352f['replace'](/^https?:\/\//,'')['match'](_0x1cec78)):()=>!0x1;}function A(_0x50dac5,_0x3b6bbc){return _0x3292a3(_0x50dac5['target'])['includes'](_0x3b6bbc);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x4b6099(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2280c0,_0x4e89ec,_0x2ee00a){super(),this['_editor']=_0x2280c0,this['_editing']=_0x4e89ec,this['_dialog']=_0x2280c0['plugins']['get'](_0x4a9e51),this['_api']=_0x4e89ec['ctxElement']['getAPI'](),this['_type']=_0x2ee00a,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:_0x195f9a,model:_0x4f58a1}=this['_editor'],_0x193651=_0x4f58a1['document']['selection']['getSelectedElement'](),_0x440658=_0x193651&&(_0x193651['is']('element','imageBlock')||_0x193651['is']('element','imageInline'));this['_formView']=new x(_0x195f9a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4e1aa8,'title':_(_0x195f9a,this['_type'],_0x440658?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2fada2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x12f872=>!A(_0x12f872,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x36e881}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5151fb=>{const _0x578546=_0x36e881['length'];for(const _0x50aba2 of _0x36e881){const _0x4ea573=_0x50aba2===_0x36e881[_0x578546-0x1],{cdnUrl:_0x44530a,fileInfo:_0x50493f}=_0x50aba2;if(!_0x44530a||!_0x50493f)continue;const {width:_0x458209,height:_0x96b4c8}=_0x50493f['imageInfo'],_0x2dd7dd=S(_0x44530a,_0x458209,_0x96b4c8),_0x4f600e=C(_0x44530a,_0x2dd7dd['width']),_0x57c8ce={'id':_0x50493f['uuid'],'type':'image','attributes':{'imageDimension':_0x2dd7dd,..._0x4f600e}};this['_insertAsset'](_0x57c8ce,_0x4ea573,_0x5151fb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1ab5be=>{'idle'===_0x1ab5be['detail']['status']&&!_0x1ab5be['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5172d3,_0x1a9965,_0x1c416){const _0x388817=this['_editor']['model']['document']['selection'],_0x5aaab6=_0x388817['getSelectedElement'](),_0x463363=!(!_0x5aaab6||!_0x5aaab6['is']('element','imageInline'));_0x1c416['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5172d3,_0x463363),_0x1a9965||_0x1c416['setSelection'](_0x388817['getLastPosition']());}['_insertImage'](_0x2f1190,_0x55c696){const _0x29970b=this['_editor'],{imageDimension:_0x4bc5c6,imageFallbackUrl:_0x176ada,imageSources:_0x34bb58}=_0x2f1190['attributes'];_0x29970b['execute']('insertImage',{'imageType':_0x55c696?'imageInline':null,'source':{'uploadcareImageId':_0x2f1190['id'],'src':_0x176ada,'sources':_0x34bb58,..._0x4bc5c6}});}}class w extends _0x318d69{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a9e51,o];}constructor(_0x3f278a){super(_0x3f278a),this['_editing']=_0x3f278a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16be88){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16be88);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4b0180,..._0x44c615}){return _0x1d2aaa(_0x4b0180,_0x44c615);}static['getInfo'](_0x1dc3a1,_0x540b90){return _0x300484(_0x1dc3a1,_0x540b90);}}class f extends _0x2948c8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xc6bbb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f94d8=this['editor'];if(!!!_0x1f94d8['config']['get']('uploadcare'))return;_0x1f94d8['plugins']['get'](_0xc6bbb)['createUploadAdapter']=_0x3d7dd3=>new k(_0x3d7dd3,_0x1f94d8),_0x1f94d8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4179e1,{imageElement:_0x5bdd9a,data:_0xd3a1c8})=>{_0x1f94d8['model']['change'](_0x4cb782=>{_0x4cb782['setAttribute']('uploadcareImageId',_0xd3a1c8['uploadcareImageId'],_0x5bdd9a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ed2ba,_0x273b92){this['loader']=_0x4ed2ba,this['editor']=_0x273b92,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x52d481=await this['loader']['file'];return j['upload']({'file':_0x52d481,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x51ee95=>{_0x51ee95&&_0x51ee95['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x51ee95['value']);}})['then'](async _0x4dff5e=>{const {imageFallbackUrl:_0x3c86f7,imageSources:_0x498511}=C(_0x4dff5e['cdnUrl'],_0x4dff5e['imageInfo']['width']);return{'uploadcareImageId':_0x4dff5e['uuid'],'default':_0x3c86f7,'sources':_0x498511};})['catch'](()=>{const _0x50b4cf=t('Cannot\x20upload\x20file:')+('\x20'+_0x52d481['name']+'.');return Promise['reject'](_0x50b4cf);});}['abort'](){this['controller']['abort']();}}class o extends _0x2948c8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4a9e51];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1a411b){super(_0x1a411b),this['ucContextId']=_0xd6ea7();}['init'](){const _0x4445ab=this['editor'];_0x4445ab['commands']['add']('uploadcare',new w(_0x4445ab));}['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 _0x1b0ff6=_0x2168a9['document']['querySelector']('input[uploadcare-file-input]');_0x1b0ff6&&_0x1b0ff6['remove']();}),async function(_0x5dddba){const _0x395d22=_0x382cb3([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xe12488=0x535f8c3a,_0x1a7e4a=0x5358f21a^_0xe12488,_0x152a51=window[_0x382cb3([0x44,0x61,0x74,0x65])][_0x382cb3([0x6e,0x6f,0x77])](),_0x4d2e3b=_0x5dddba[_0x382cb3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x301d0a=new window[(_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5010d8=>{_0x4d2e3b[_0x382cb3([0x6f,0x6e,0x63,0x65])](_0x382cb3([0x72,0x65,0x61,0x64,0x79]),_0x5010d8);}),_0xa2abec={[_0x382cb3([0x6b,0x74,0x79])]:_0x382cb3([0x45,0x43]),[_0x382cb3([0x75,0x73,0x65])]:_0x382cb3([0x73,0x69,0x67]),[_0x382cb3([0x63,0x72,0x76])]:_0x382cb3([0x50,0x2d,0x32,0x35,0x36]),[_0x382cb3([0x78])]:_0x382cb3([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]),[_0x382cb3([0x79])]:_0x382cb3([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]),[_0x382cb3([0x61,0x6c,0x67])]:_0x382cb3([0x45,0x53,0x32,0x35,0x36])},_0x572626=_0x4d2e3b[_0x382cb3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x382cb3([0x67,0x65,0x74])](_0x382cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d11a(){let _0x4a65b0,_0x30c37f=null,_0x1554d3=null;try{if(_0x572626==_0x382cb3([0x47,0x50,0x4c]))return _0x382cb3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a65b0=_0x535840(),!_0x4a65b0)return _0x382cb3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a65b0[_0x382cb3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1554d3=_0x2c829f(_0x4a65b0[_0x382cb3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a65b0[_0x382cb3([0x6a,0x74,0x69])])),await _0x3a4acd()?_0x50a911()?_0xd57963()?_0x382cb3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fd9f8()?(_0x4a65b0[_0x382cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x382cb3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30c37f=_0x2e5e5e(_0x382cb3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a65b0[_0x382cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x382cb3([0x74,0x72,0x69,0x61,0x6c])&&(_0x30c37f=_0x2e5e5e(_0x382cb3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ddf67()):_0x382cb3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x382cb3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x382cb3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x382cb3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd57963(){const _0x2ced45=[_0x382cb3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x382cb3([0x74,0x72,0x69,0x61,0x6c])][_0x382cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a65b0[_0x382cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x152a51/0x3e8:0xe10*_0x1a7e4a;return _0x4a65b0[_0x382cb3([0x65,0x78,0x70])]<_0x2ced45;}function _0x50a911(){const _0x32b755=_0x4a65b0[_0x382cb3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x32b755&&(!!_0x32b755[_0x382cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x382cb3([0x2a]))||!!_0x32b755[_0x382cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x382cb3([0x55,0x50,0x4c,0x43])));}function _0x4fd9f8(){const _0x315563=_0x4a65b0[_0x382cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x315563||0x0==_0x315563[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ed086}=new URL(window[_0x382cb3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x315563[_0x382cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed086))return!0x0;const _0xb647b2=_0x3ed086[_0x382cb3([0x73,0x70,0x6c,0x69,0x74])](_0x382cb3([0x2e]));return _0x315563[_0x382cb3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f1254=>_0x3f1254[_0x382cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x382cb3([0x2a])))[_0x382cb3([0x6d,0x61,0x70])](_0x39cf43=>_0x39cf43[_0x382cb3([0x73,0x70,0x6c,0x69,0x74])](_0x382cb3([0x2e])))[_0x382cb3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37bffd=>_0x37bffd[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb647b2[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x382cb3([0x6d,0x61,0x70])](_0x9bc02=>Array(_0xb647b2[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9bc02[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x382cb3([0x66,0x69,0x6c,0x6c])](_0x9bc02[0x0]===_0x382cb3([0x2a])?_0x382cb3([0x2a]):'')[_0x382cb3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9bc02))[_0x382cb3([0x73,0x6f,0x6d,0x65])](_0x40b995=>_0xb647b2[_0x382cb3([0x65,0x76,0x65,0x72,0x79])]((_0x52be07,_0x166dbd)=>_0x40b995[_0x166dbd]===_0x52be07||_0x40b995[_0x166dbd]===_0x382cb3([0x2a])));}function _0x3ddf67(){return _0x30c37f&&_0x1554d3?new window[(_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xebaf4b,_0x29c627)=>{_0x30c37f[_0x382cb3([0x74,0x68,0x65,0x6e])](_0xebaf4b,_0x29c627),_0x1554d3[_0x382cb3([0x74,0x68,0x65,0x6e])](_0x46c588=>{_0x46c588!=_0x382cb3([0x56,0x61,0x6c,0x69,0x64])&&_0xebaf4b(_0x46c588);},_0x29c627);}):_0x30c37f||_0x1554d3||_0x382cb3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c829f(_0x3f4a9e,_0x5ccd0d){return new window[(_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fcef3=>{if(_0x3f3220())return _0x2fcef3(_0x382cb3([0x56,0x61,0x6c,0x69,0x64]));_0x573bde(),_0x4d2e3b[_0x382cb3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x382cb3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f3698=!0x1;const _0x1a8d98=_0xd6ea7();function _0x5bec4f(_0x29f96e){return!!_0x29f96e&&(typeof _0x29f96e===_0x382cb3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29f96e===_0x382cb3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29f96e[_0x382cb3([0x74,0x68,0x65,0x6e])]===_0x382cb3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29f96e[_0x382cb3([0x63,0x61,0x74,0x63,0x68])]===_0x382cb3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39760c(_0x24772f){_0x5d333f(_0x24772f)[_0x382cb3([0x74,0x68,0x65,0x6e])](_0x5cb110=>{if(!_0x5cb110||_0x5cb110[_0x382cb3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x382cb3([0x6f,0x6b]))return _0x382cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17c0b4(_0x3aac4f(_0x1a8d98+_0x5ccd0d))!=_0x5cb110[_0x382cb3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x382cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x382cb3([0x56,0x61,0x6c,0x69,0x64]);})[_0x382cb3([0x74,0x68,0x65,0x6e])](_0x20adcc=>(_0x17bc2e(),_0x20adcc),()=>{const _0x5095a1=_0x54a3dc();return null==_0x5095a1?(_0x17bc2e(),_0x382cb3([0x56,0x61,0x6c,0x69,0x64])):_0x382cb3(_0x152a51-_0x5095a1>(0x7753083a^_0xe12488)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x382cb3([0x74,0x68,0x65,0x6e])](_0x2fcef3)[_0x382cb3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fcef3(_0x382cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e956a=0x536962ba^_0xe12488;function _0x17bc2e(){const _0x28f47c=_0x382cb3([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c0b4(_0x3aac4f(_0x3f4a9e)),_0x31d685=_0x48d4c3(_0x17c0b4(window[_0x382cb3([0x4d,0x61,0x74,0x68])][_0x382cb3([0x63,0x65,0x69,0x6c])](_0x152a51/_0x3e956a)));window[_0x382cb3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x382cb3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28f47c,_0x31d685);}function _0x54a3dc(){const _0x3b657f=_0x382cb3([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c0b4(_0x3aac4f(_0x3f4a9e)),_0xc3750b=window[_0x382cb3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x382cb3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b657f);return _0xc3750b?window[_0x382cb3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48d4c3(_0xc3750b),0x10)*_0x3e956a:null;}function _0x5d333f(_0x26b783){return new window[(_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a676d,_0x49b8f8)=>{_0x26b783[_0x382cb3([0x74,0x68,0x65,0x6e])](_0x2a676d,_0x49b8f8),window[_0x382cb3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49b8f8,0x535e58fa^_0xe12488);});}}_0x4d2e3b[_0x382cb3([0x6f,0x6e])](_0x382cb3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a9af0,_0x395a9c)=>{if(_0x395a9c[0x0]!=_0x3f4a9e)return _0x2fcef3(_0x382cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x395a9c[0x1]={..._0x395a9c[0x1],[_0x382cb3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a8d98};},{[_0x382cb3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x382cb3([0x68,0x69,0x67,0x68])}),_0x4d2e3b[_0x382cb3([0x6f,0x6e])](_0x382cb3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17bdb3=>{_0x5bec4f(_0x17bdb3[_0x382cb3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f3698=!0x0,_0x39760c(_0x17bdb3[_0x382cb3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x382cb3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x382cb3([0x6c,0x6f,0x77])}),_0x301d0a[_0x382cb3([0x74,0x68,0x65,0x6e])](()=>{_0x2f3698||_0x2fcef3(_0x382cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f3220(){return _0x4d2e3b[_0x382cb3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x382cb3([0x76,0x69,0x65,0x77])][_0x382cb3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x382cb3([0x61,0x75,0x74,0x6f]);}function _0x573bde(){_0x4d2e3b[_0x382cb3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x382cb3([0x76,0x69,0x65,0x77])][_0x382cb3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x382cb3([0x61,0x75,0x74,0x6f]);}}function _0x2e5e5e(_0x341f4b){const _0x512435=[new window[(_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x399412=>setTimeout(_0x399412,0x5356b2f6^_0xe12488)),_0x301d0a[_0x382cb3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ba571=>{let _0x286c7a=0x0;_0x4d2e3b[_0x382cb3([0x6d,0x6f,0x64,0x65,0x6c])][_0x382cb3([0x6f,0x6e])](_0x382cb3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31b41e,_0x30a92e)=>{_0x30a92e[0x0][_0x382cb3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x286c7a++,_0x286c7a==(0x535f89d2^_0xe12488)&&(_0x1ba571(),_0x31b41e[_0x382cb3([0x6f,0x66,0x66])]());});}))];return window[_0x382cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x382cb3([0x72,0x61,0x63,0x65])](_0x512435)[_0x382cb3([0x74,0x68,0x65,0x6e])](()=>_0x341f4b);}async function _0x59a605(){await _0x301d0a,_0x4d2e3b[_0x382cb3([0x6d,0x6f,0x64,0x65,0x6c])][_0x382cb3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x144237,_0x4d2e3b[_0x382cb3([0x6d,0x6f,0x64,0x65,0x6c])][_0x382cb3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x144237,_0x4d2e3b[_0x382cb3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x382cb3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x314a43(_0x8a26c4){const _0x24e68e=_0x1d579b();_0x4d2e3b[_0x24e68e]=_0x382cb3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8a26c4,_0x8a26c4!=_0x382cb3([0x56,0x61,0x6c,0x69,0x64])&&_0x59a605();}function _0x1d579b(){const _0x1d32d8=window[_0x382cb3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x382cb3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x382cb3([0x6e,0x6f,0x77])]())[_0x382cb3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x382cb3([0x2e]),'');let _0x51f179=_0x382cb3([0x68]);for(let _0x39aace=0x0;_0x39aace<_0x1d32d8[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39aace+=0x2){let _0x17be4d=window[_0x382cb3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d32d8[_0x382cb3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39aace,_0x39aace+0x2));_0x17be4d>=_0x395d22[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17be4d-=_0x395d22[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51f179+=_0x395d22[_0x17be4d];}return _0x51f179;}function _0x535840(){const _0x131b47=_0x572626[_0x382cb3([0x73,0x70,0x6c,0x69,0x74])](_0x382cb3([0x2e]));if(0x3!=_0x131b47[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56c9dc(_0x131b47[0x1]);function _0x56c9dc(_0x28e2c1){const _0x299dc2=_0x39114c(_0x28e2c1);return _0x299dc2&&_0x4588ae()?_0x299dc2:null;function _0x4588ae(){const _0x16989b=_0x299dc2[_0x382cb3([0x6a,0x74,0x69])],_0x4198a2=window[_0x382cb3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16989b[_0x382cb3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16989b[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x556587={..._0x299dc2,[_0x382cb3([0x6a,0x74,0x69])]:_0x16989b[_0x382cb3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16989b[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x556587[_0x382cb3([0x76,0x63])],_0x3aac4f(_0x556587)==_0x4198a2;}}}async function _0x3a4acd(){let _0x568bd5=!0x0;try{const _0x550393=_0x572626[_0x382cb3([0x73,0x70,0x6c,0x69,0x74])](_0x382cb3([0x2e])),[_0x50a556,_0x122f16,_0x30713a]=_0x550393;return _0x49ac3b(_0x50a556),await _0x3df5a3(_0x50a556,_0x122f16,_0x30713a),_0x568bd5;}catch{return!0x1;}function _0x49ac3b(_0x29bd44){const _0x593567=_0x39114c(_0x29bd44);_0x593567&&_0x593567[_0x382cb3([0x61,0x6c,0x67])]==_0x382cb3([0x45,0x53,0x32,0x35,0x36])||(_0x568bd5=!0x1);}async function _0x3df5a3(_0x5d4db3,_0x545c85,_0x3827f4){const _0x352818=window[_0x382cb3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x382cb3([0x66,0x72,0x6f,0x6d])](_0x411028(_0x3827f4),_0x4ef1a0=>_0x4ef1a0[_0x382cb3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bb350=new window[(_0x382cb3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x382cb3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d4db3+_0x382cb3([0x2e])+_0x545c85),_0x2c5221=window[_0x382cb3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x382cb3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c5221)return;const _0x4de03d=await _0x2c5221[_0x382cb3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x382cb3([0x6a,0x77,0x6b]),_0xa2abec,{[_0x382cb3([0x6e,0x61,0x6d,0x65])]:_0x382cb3([0x45,0x43,0x44,0x53,0x41]),[_0x382cb3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x382cb3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x382cb3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c5221[_0x382cb3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x382cb3([0x6e,0x61,0x6d,0x65])]:_0x382cb3([0x45,0x43,0x44,0x53,0x41]),[_0x382cb3([0x68,0x61,0x73,0x68])]:{[_0x382cb3([0x6e,0x61,0x6d,0x65])]:_0x382cb3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4de03d,_0x352818,_0x3bb350)||(_0x568bd5=!0x1);}}function _0x39114c(_0x5dcb31){return _0x5dcb31[_0x382cb3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x382cb3([0x65,0x79]))?JSON[_0x382cb3([0x70,0x61,0x72,0x73,0x65])](_0x411028(_0x5dcb31)):null;}function _0x411028(_0x2ab892){return window[_0x382cb3([0x61,0x74,0x6f,0x62])](_0x2ab892[_0x382cb3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x382cb3([0x2b]))[_0x382cb3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x382cb3([0x2f])));}function _0x3aac4f(_0x2f16f8){let _0x181840=0x1505;function _0x47f80e(_0x2f4aa8){for(let _0x1e8a67=0x0;_0x1e8a67<_0x2f4aa8[_0x382cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e8a67++){const _0x48c671=_0x2f4aa8[_0x382cb3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e8a67);_0x181840=(_0x181840<<0x5)+_0x181840+_0x48c671,_0x181840&=_0x181840;}}function _0x180767(_0x4bbf22){Array[_0x382cb3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bbf22)?_0x4bbf22[_0x382cb3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x180767):_0x4bbf22&&typeof _0x4bbf22==_0x382cb3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x382cb3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bbf22)[_0x382cb3([0x73,0x6f,0x72,0x74])]()[_0x382cb3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x370919,_0x59a3fa])=>{_0x47f80e(_0x370919),_0x180767(_0x59a3fa);}):_0x47f80e(window[_0x382cb3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bbf22));}return _0x180767(_0x2f16f8),_0x181840>>>0x0;}function _0x17c0b4(_0x4d15e2){return _0x4d15e2[_0x382cb3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x382cb3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x382cb3([0x30]));}function _0x48d4c3(_0x185083){return _0x185083[_0x382cb3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x382cb3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x382cb3([0x6a,0x6f,0x69,0x6e])]('');}function _0x144237(){}function _0x382cb3(_0x1294b9){return _0x1294b9['map'](_0x12b171=>String['fromCharCode'](_0x12b171))['join']('');}_0x314a43(await _0x47d11a());}(this);}['_initSchema'](){const _0x5e9c59=this['editor']['model']['schema'];_0x5e9c59['isRegistered']('imageBlock')&&_0x5e9c59['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5e9c59['isRegistered']('imageInline')&&_0x5e9c59['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x106b38=this['editor'];_0x106b38['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x106b38['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x71f79c=>_0x71f79c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b7b09=_0x106b38['commands']['get']('replaceImageSource');_0x4b7b09&&this['listenTo'](_0x4b7b09,'cleanupImage',(_0x2ac9f2,[_0x173e91,_0x2f8761])=>{_0x173e91['removeAttribute']('uploadcareImageId',_0x2f8761);});}['_initConfig'](){const _0x52b618=this['editor']['config']['get']('uploadcare.uploader')||{},_0x507c39=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x356f42(_0x2168a9['document'],'uc-config',{..._0x52b618,'pubkey':_0x507c39,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x1f54b1=>{if('closeMax'==_0x1f54b1)return'#uc-icon-arrow-down';},_0x2168a9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x356f42(_0x2168a9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2168a9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3c15f2=this['editor']['commands']['get']('insertImage');_0x3c15f2&&this['listenTo'](_0x3c15f2,'execute',()=>{const _0x44eeaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44eeaf&&_0x44eeaf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44eeaf);});});const _0x4b559c=this['editor']['commands']['get']('uploadcareImageReplace');_0x4b559c&&this['listenTo'](_0x4b559c,'execute',()=>{const _0x5cf72c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5cf72c&&_0x5cf72c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5cf72c);});});}}class tt extends _0x2948c8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x377c53){super(_0x377c53),_0x377c53['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4046e8['defineComponents'](_0x4046e8),this['_defineLocale']();}['_defineLocale'](){const _0x1315ab=this['editor']['config']['get']('uploadcare.locale'),_0x312943=this['editor']['locale']['contentLanguage'];_0x1315ab&&_0x4046e8['defineLocale'](_0x312943,_0x1315ab);}}class ii extends _0x2d4130{constructor(_0x5ba4dc){super(_0x5ba4dc);const t=_0x5ba4dc['t'],_0x2a4872=this['bindTemplate'],_0x5bc464=new _0xa3f1ed();_0x5bc464['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':[_0x5bc464,{'text':_0x2a4872['to']('imageUploadProgress',_0x3b5330=>t('Loading\x20image...')+'\x20('+(_0x3b5330||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 ti extends _0x2d4130{constructor(_0x481b32){super(_0x481b32);const t=_0x481b32['t'];this['set']('errorType',null);const _0x26a6d9=new _0x15555d(_0x481b32);_0x26a6d9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26a6d9['withText']=!0x0,_0x26a6d9['class']='ck-button-action',_0x26a6d9['on']('execute',()=>{this['fire']('retry');}),_0x26a6d9['bind']('isVisible')['to'](this,'errorType',_0x4c99e6=>'NotFound'!==_0x4c99e6);const _0x2fc2c5=new _0x2073c3();_0x2fc2c5['content']=_0x5cb126,_0x2fc2c5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x27e47f=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':[_0x2fc2c5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x27e47f['to']('errorType',_0x33aaa9=>t('NotFound'!==_0x33aaa9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26a6d9]},{'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 ei extends _0x2d4130{constructor(_0x52a45b,_0x39d0f5){super(_0x52a45b);const _0x1343a1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x39d0f5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1343a1['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4d7b24,_0x2cf55b,_0x4ae8a5){super(_0x4d7b24),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4d7b24),this['_errorView']=new ti(_0x4d7b24),this['_editingView']=new ei(_0x4d7b24,_0x4ae8a5),this['_focusableView']=new _0x2d4130(_0x4d7b24),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2cf55b),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'],_0x319ffc=>{this['_addUploadcareImageEditorListeners'](_0x319ffc);});}),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'](_0x3d5a2a,_0x46d9f5){const _0x4e9939='uc-cloud-image-editor',_0x318968=_0x3d5a2a['querySelector'](_0x4e9939);if(_0x318968)return _0x46d9f5(_0x318968);const _0x5bb2d3=new MutationObserver(_0x33109f=>{const _0x242001=_0x33109f['filter'](_0x1e3134=>_0x1e3134['target']===_0x3d5a2a&&_0x1e3134['addedNodes']['length']>0x0&&_0x1e3134['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4e9939);_0x242001['length']&&(_0x5bb2d3['disconnect'](),_0x46d9f5(_0x242001[0x0]['addedNodes'][0x0]));});_0x5bb2d3['observe'](_0x3d5a2a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xd2b3c7){_0xd2b3c7['addEventListener']('apply',_0x4f3382=>{this['fire']('apply',{'imageSrc':_0x4f3382['detail']['cdnUrl']});}),_0xd2b3c7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x4b6099(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x387d8b,_0x4aeee6,_0x2b9e7f){super(),this['_editor']=_0x387d8b,this['_dialog']=_0x4aeee6,this['_imageElement']=_0x2b9e7f,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 _0x2e3c45=this['_imageElement'],_0x2c6789=_0x2e3c45['getAttribute']('uploadcareImageId'),_0x296e72=_0x2e3c45['getAttribute']('src');if(_0x2c6789)await this['_loadImageInfo'](_0x2c6789,_0x296e72);else{if(this['_imageCache']['has'](_0x296e72)){const _0x2bea7f=this['_imageCache']['get'](_0x296e72);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bea7f['url'],this['imageDimension']=_0x2bea7f['dimension'],this['imageId']=_0x2bea7f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x10c83d}=this['_editor'],t=_0x10c83d['t'],_0x5b8429=new X(_0x10c83d,this['imageStatus'],this['_attributes']);_0x5b8429['bind']('status')['to'](this,'imageStatus'),_0x5b8429['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b8429['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b8429['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b8429,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb9b52e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b8429,'position':_0x2fada2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b8429['focus']();},'onHide':()=>{_0x5b8429['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11d41e=>!A(_0x11d41e,_0x5b8429['element'])}});}['_loadImageInfo'](_0x18f8ca,_0x2b7b2a){return j['getInfo'](_0x18f8ca,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xd47ccc=>{const {width:_0x485582,height:_0x4ebafc}=_0xd47ccc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b7b2a,this['imageDimension']={'width':_0x485582,'height':_0x4ebafc},this['imageId']=_0x18f8ca;})['catch'](_0x298def=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x298def['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a6847,_0x5128de){return this['_getImageAsFile'](_0x4a6847)['then'](_0x250981=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5128de['signal'],'file':_0x250981,'onProgress':_0x1c8dec=>{_0x1c8dec&&_0x1c8dec['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1c8dec['value']));}}))['then'](_0x6936a0=>{const {width:_0x34faf3,height:_0xbd41a5}=_0x6936a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6936a0['cdnUrl'],this['imageDimension']={'width':_0x34faf3,'height':_0xbd41a5},this['imageId']=_0x6936a0['uuid'],this['imageUploadProgress']=null;const _0x591339=_0x4a6847['getAttribute']('src');this['_imageCache']['set'](_0x591339,{'id':_0x6936a0['uuid'],'url':_0x6936a0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x40d585=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40d585['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x381462,_0x5e9d97){_0x381462['on']('apply',(_0x2ec1ff,_0x3defa3)=>{this['_replaceImage'](_0x5e9d97,_0x3defa3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x381462['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x381462['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x323f5d,_0x13c8b3,_0x59d848){const _0x42aef0=this['_editor'],{width:_0x1d6a7c,height:_0x575fd1}=S(_0x13c8b3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c87ae,imageSources:_0x21ede6}=C(_0x13c8b3,_0x1d6a7c);_0x42aef0['model']['change'](_0x3d7f51=>{if('$graveyard'===_0x323f5d['root']['rootName']){_0x42aef0['execute']('insertImage',{'imageType':_0x323f5d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x323f5d['getAttributes']()),'uploadcareImageId':_0x59d848,'src':_0x5c87ae,'sources':_0x21ede6,'width':_0x1d6a7c,'height':_0x575fd1}});const _0x3ac97c=_0x323f5d['getChildren']();_0x323f5d=_0x42aef0['model']['document']['selection']['getSelectedElement']();for(const _0x466a41 of _0x3ac97c)_0x3d7f51['append'](_0x3d7f51['cloneElement'](_0x466a41),_0x323f5d);}else _0x3d7f51['setSelection'](_0x323f5d,'on'),_0x42aef0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x323f5d['getAttributes']()),'uploadcareImageId':_0x59d848,'src':_0x5c87ae,'sources':_0x21ede6,'width':_0x1d6a7c,'height':_0x575fd1},_0x323f5d);_0x3d7f51['setSelection'](_0x323f5d,'on');});}async['_getImageAsFile'](_0x1c89fd){const _0xdd3146=_0x2168a9['window'],_0x4a2133=_0x2168a9['document']['location']['href'],_0x5ac1d5=new _0xdd3146['URL'](_0x1c89fd['getAttribute']('src'),_0x4a2133);if('data:'===_0x5ac1d5['protocol']){const _0x401e94=_0x5ac1d5['href']['split'](','),_0x32360f=_0x401e94[0x0]['match'](/:(.*?);/)[0x1],_0x4850ff=_0x32360f['split']('/')[0x1],_0x4e7d6a=_0xdd3146['atob'](_0x401e94[_0x401e94['length']-0x1]);let _0x2cd6f2=_0x4e7d6a['length'];const _0x28c91b=new _0xdd3146['Uint8Array'](_0x2cd6f2);for(;_0x2cd6f2--;)_0x28c91b[_0x2cd6f2]=_0x4e7d6a['charCodeAt'](_0x2cd6f2);return new _0xdd3146['File']([_0x28c91b],'image.'+_0x4850ff,{'type':_0x32360f});}const _0x19e019=_0x5ac1d5['href']['split']('/'),_0xc0c74f=_0x19e019[_0x19e019['length']-0x1],_0x5bceea=_0xc0c74f['split']('.')[0x1];return _0xdd3146['fetch'](_0x5ac1d5['href'])['then'](_0x10af75=>_0x10af75['clone']()['blob']())['then'](_0x3d6228=>new _0xdd3146['File']([_0x3d6228],_0xc0c74f,{'type':'image/'+_0x5bceea}));}}class O extends _0x318d69{['imageEditController'];static get['requires'](){return[_0x4a9e51];}['_isEditable'];constructor(_0x1e1bf7){super(_0x1e1bf7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x587b5b){const _0x144365=G(_0x587b5b);return _0x4cf742=>!(!_0x4cf742||!_0x4cf742['is']('element','imageBlock')&&!_0x4cf742['is']('element','imageInline'))&&(!!_0x4cf742['hasAttribute']('uploadcareImageId')||!!_0x4cf742['hasAttribute']('src')&&_0x144365(_0x4cf742['getAttribute']('src')));}(_0x1e1bf7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f160f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f160f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x26d94a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26d94a&&(_0x26d94a['is']('element','imageBlock')||_0x26d94a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4a9e51),_0x26d94a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x318d69{['refresh'](){const _0x347417=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x347417&&(_0x347417['is']('element','imageBlock')||_0x347417['is']('element','imageInline')));}['execute'](_0x48b736){const _0x163f40=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4bcf0b=>{_0x4bcf0b['setAttributes'](_0x48b736,_0x163f40),_0x4bcf0b['removeAttribute']('srcset',_0x163f40),_0x4bcf0b['removeAttribute']('sizes',_0x163f40);});}}class m extends _0x2948c8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x579b9c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3b4b17}=this;_0x3b4b17['commands']['add']('uploadcareImageEdit',new O(_0x3b4b17)),_0x3b4b17['commands']['add']('uploadcareImageReplace',new R(_0x3b4b17));}}class g extends _0x2948c8{['_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 _0x133745=this['editor'];_0x133745['ui']['componentFactory']['add']('uploadcareImageEdit',_0x48ff96=>{const _0x5963c3=_0x133745['commands']['get']('uploadcareImageEdit'),_0x2ef7d5=new _0x15555d(_0x48ff96),t=_0x48ff96['t'];return _0x2ef7d5['set']({'icon':_0xb9b52e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2ef7d5['bind']('isEnabled')['to'](_0x5963c3),_0x2ef7d5['bind']('isOn')['to'](_0x5963c3,'isActive'),this['listenTo'](_0x2ef7d5,'execute',()=>{_0x133745['execute']('uploadcareImageEdit'),_0x133745['editing']['view']['focus']();}),_0x2ef7d5;}),this['_initConfig']();}['_initConfig'](){const _0x2341a9=_0x356f42(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2341a9),this['listenTo'](this['editor'],'destroy',()=>{_0x2341a9['remove']();});}}class et extends _0x2948c8{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20260106.0",
3
+ "version": "0.0.0-nightly-20260107.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-20260106.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260106.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260106.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260106.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260106.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260106.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260106.0",
33
- "ckeditor5": "0.0.0-nightly-20260106.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20260107.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260107.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260107.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260107.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260107.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260107.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260107.0",
33
+ "ckeditor5": "0.0.0-nightly-20260107.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x48a5(_0x1644b1,_0x57935b){const _0x370926=_0x3709();return _0x48a5=function(_0x48a51e,_0x4f65e0){_0x48a51e=_0x48a51e-0xab;let _0x5de1c5=_0x370926[_0x48a51e];return _0x5de1c5;},_0x48a5(_0x1644b1,_0x57935b);}const _0xf3cc7a=_0x48a5;(function(_0x420448,_0x5911d7){const _0x125341=_0x48a5,_0xecc9cb=_0x420448();while(!![]){try{const _0x2b45b7=-parseInt(_0x125341(0xd1))/0x1*(parseInt(_0x125341(0xdc))/0x2)+parseInt(_0x125341(0xcc))/0x3+-parseInt(_0x125341(0xf0))/0x4*(parseInt(_0x125341(0xe0))/0x5)+-parseInt(_0x125341(0xd5))/0x6+parseInt(_0x125341(0xca))/0x7*(parseInt(_0x125341(0xd6))/0x8)+parseInt(_0x125341(0xb2))/0x9+-parseInt(_0x125341(0xde))/0xa*(parseInt(_0x125341(0xb3))/0xb);if(_0x2b45b7===_0x5911d7)break;else _0xecc9cb['push'](_0xecc9cb['shift']());}catch(_0x71a7e0){_0xecc9cb['push'](_0xecc9cb['shift']());}}}(_0x3709,0xbfa3c));import{IconUploadcareImageUpload as _0x4cc3ea}from'ckeditor5/src/icons.js';function _0x3709(){const _0x1e8740=['allEntries','32MMwwdn','ctxElement','161290QFPJrG','getOutputCollectionState','4456615ZELfJs','setSelection','width','show','insertImage','stopDelegating','idle','imageInline','detail','_initListeners','addEventListener','ucContextId','configElement','view','length','image','4PxsPiT','get','done-click','element','removeAllFiles','stopListening','setCurrentActivity','model','_insertImage','_editor','isOpen','_type','EDITOR_TOP_CENTER','6536250xLtwdk','22IMaBww','attributes','uuid','getSelectedElement','getLastPosition','removeSelectionAttribute','document','destroy','setAttribute','Insert','imageBlock','_formView','hide','initFlow','execute','_dialog','source-list','status','_insertAsset','_api','editing','imageInfo','change','61187FCVSSP','_initDialog','1943133ykxMYL','focus','_editing','linkHref','doneFlow','17716ZEDaCX','uploadCare','plugins','selection','1903530sXJsoP','856rCOKEo','getAPI','text','Replace','Local'];_0x3709=function(){return _0x1e8740;};return _0x3709();}import{ObservableMixin as _0x1aecc0}from'ckeditor5/src/utils.js';import{Dialog as _0x4cefd9,DialogViewPosition as _0x32439e}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x278c54}from'./uploadcareformview.js';import{UploadcareSource as _0x4c58c8}from'../uploadcareconfig.js';import{getTranslation as _0x4ba6b9}from'../utils/common-translations.js';import{getImageUrls as _0x51ce0d,getImageDimension as _0x474ca6}from'../utils/editingutils.js';import{isAncestor as _0x2c7a5a}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x1aecc0(){[_0xf3cc7a(0xae)];[_0xf3cc7a(0xc2)];[_0xf3cc7a(0xce)];[_0xf3cc7a(0xc6)];[_0xf3cc7a(0xb0)]=null;[_0xf3cc7a(0xbe)]=null;constructor(_0x1f422e,_0xb795,_0x52f461){const _0x25b5f7=_0xf3cc7a;super(),this[_0x25b5f7(0xae)]=_0x1f422e,this[_0x25b5f7(0xce)]=_0xb795,this[_0x25b5f7(0xc2)]=_0x1f422e[_0x25b5f7(0xd3)][_0x25b5f7(0xf1)](_0x4cefd9),this[_0x25b5f7(0xc6)]=_0xb795[_0x25b5f7(0xdd)][_0x25b5f7(0xd7)](),this[_0x25b5f7(0xb0)]=_0x52f461,this[_0x25b5f7(0xce)][_0x25b5f7(0xec)][_0x25b5f7(0xbb)](_0x25b5f7(0xc3),this[_0x25b5f7(0xb0)]),this[_0x25b5f7(0xcb)](),this[_0x25b5f7(0xe9)](),this[_0x25b5f7(0xc6)][_0x25b5f7(0xc0)]();}[_0xf3cc7a(0xba)](){const _0xc7c109=_0xf3cc7a;this[_0xc7c109(0xbe)]&&(this[_0xc7c109(0xbe)][_0xc7c109(0xba)](),this[_0xc7c109(0xbe)]=null),this[_0xc7c109(0xc6)]&&this[_0xc7c109(0xc6)][_0xc7c109(0xd0)](),this[_0xc7c109(0xf5)](),this[_0xc7c109(0xe5)]();}[_0xf3cc7a(0xcb)](){const _0x1139b9=_0xf3cc7a,{locale:_0x30f45b,model:_0x232602}=this[_0x1139b9(0xae)],_0x1cd676=_0x232602[_0x1139b9(0xb9)][_0x1139b9(0xd4)][_0x1139b9(0xb6)](),_0x192d09=_0x1cd676&&(_0x1cd676['is'](_0x1139b9(0xf3),_0x1139b9(0xbd))||_0x1cd676['is'](_0x1139b9(0xf3),_0x1139b9(0xe7)));this[_0x1139b9(0xbe)]=new _0x278c54(_0x30f45b,this[_0x1139b9(0xce)][_0x1139b9(0xeb)]),this[_0x1139b9(0xc2)][_0x1139b9(0xe3)]({'id':_0x1139b9(0xd2),'icon':_0x4cc3ea,'title':_0x4ba6b9(_0x30f45b,this[_0x1139b9(0xb0)],_0x192d09?_0x1139b9(0xd9):_0x1139b9(0xbc))[_0x1139b9(0xd8)],'content':this[_0x1139b9(0xbe)],'position':_0x32439e[_0x1139b9(0xb1)],'isModal':!0x0,'onShow':()=>{const _0x301282=_0x1139b9;this[_0x301282(0xbe)][_0x301282(0xcd)]();},'onHide':()=>{const _0x4601ee=_0x1139b9;this[_0x4601ee(0xc6)][_0x4601ee(0xf4)](),this[_0x4601ee(0xae)][_0x4601ee(0xc7)][_0x4601ee(0xed)][_0x4601ee(0xcd)](),this[_0x4601ee(0xba)]();},'keystrokeHandlerOptions':{'filter':_0x2d9503=>!_0x2c7a5a(_0x2d9503,this[_0x1139b9(0xbe)][_0x1139b9(0xf3)])}});}[_0xf3cc7a(0xe9)](){const _0x5276dc=_0xf3cc7a;this[_0x5276dc(0xce)][_0x5276dc(0xdd)][_0x5276dc(0xea)](_0x5276dc(0xf2),()=>{const _0x1ee3ba=_0x5276dc,{allEntries:_0x5c10dc}=this[_0x1ee3ba(0xc6)][_0x1ee3ba(0xdf)]();this[_0x1ee3ba(0xae)][_0x1ee3ba(0xac)][_0x1ee3ba(0xc9)](_0x52a304=>{const _0x10853d=_0x1ee3ba,_0x3ad2d2=_0x5c10dc[_0x10853d(0xee)];for(const _0x4adea2 of _0x5c10dc){const _0x4932f4=_0x4adea2===_0x5c10dc[_0x3ad2d2-0x1],{cdnUrl:_0x10fc0a,fileInfo:_0x52ab41}=_0x4adea2;if(!_0x10fc0a||!_0x52ab41)continue;const {width:_0x2345bc,height:_0x39ea1f}=_0x52ab41[_0x10853d(0xc8)],_0x351124=_0x474ca6(_0x10fc0a,_0x2345bc,_0x39ea1f),_0x565bed=_0x51ce0d(_0x10fc0a,_0x351124[_0x10853d(0xe2)]),_0x514052={'id':_0x52ab41[_0x10853d(0xb5)],'type':_0x10853d(0xef),'attributes':{'imageDimension':_0x351124,..._0x565bed}};this[_0x10853d(0xc5)](_0x514052,_0x4932f4,_0x52a304);}}),this[_0x1ee3ba(0xc2)][_0x1ee3ba(0xbf)]();}),this[_0x5276dc(0xce)][_0x5276dc(0xdd)][_0x5276dc(0xea)](_0x5276dc(0xc9),_0x45189c=>{const _0x4c4ae2=_0x5276dc;_0x4c4ae2(0xe6)===_0x45189c[_0x4c4ae2(0xe8)][_0x4c4ae2(0xc4)]&&!_0x45189c[_0x4c4ae2(0xe8)][_0x4c4ae2(0xdb)][_0x4c4ae2(0xee)]&&this[_0x4c4ae2(0xc2)][_0x4c4ae2(0xaf)]&&(this[_0x4c4ae2(0xb0)]===_0x4c58c8[_0x4c4ae2(0xda)]?this[_0x4c4ae2(0xc6)][_0x4c4ae2(0xab)](_0x4c58c8[_0x4c4ae2(0xda)]):this[_0x4c4ae2(0xc6)][_0x4c4ae2(0xc0)]());});}[_0xf3cc7a(0xc5)](_0x155d53,_0x47ef41,_0x42f16b){const _0x49db18=_0xf3cc7a,_0x535ff5=this[_0x49db18(0xae)][_0x49db18(0xac)][_0x49db18(0xb9)][_0x49db18(0xd4)],_0x55f293=_0x535ff5[_0x49db18(0xb6)](),_0x4f0bb7=!(!_0x55f293||!_0x55f293['is'](_0x49db18(0xf3),_0x49db18(0xe7)));_0x42f16b[_0x49db18(0xb8)](_0x49db18(0xcf)),this[_0x49db18(0xad)](_0x155d53,_0x4f0bb7),_0x47ef41||_0x42f16b[_0x49db18(0xe1)](_0x535ff5[_0x49db18(0xb7)]());}[_0xf3cc7a(0xad)](_0x48d4a8,_0x21e326){const _0x24e4ba=_0xf3cc7a,_0x144339=this[_0x24e4ba(0xae)],{imageDimension:_0x16c8bf,imageFallbackUrl:_0x5bae8e,imageSources:_0x3ed464}=_0x48d4a8[_0x24e4ba(0xb4)];_0x144339[_0x24e4ba(0xc1)](_0x24e4ba(0xe4),{'imageType':_0x21e326?_0x24e4ba(0xe7):null,'source':{'uploadcareImageId':_0x48d4a8['id'],'src':_0x5bae8e,'sources':_0x3ed464,..._0x16c8bf}});}}
23
+ const _0xf046d3=_0x4075;(function(_0x2b72e6,_0x3e73bb){const _0x1f5e39=_0x4075,_0x5f5a3c=_0x2b72e6();while(!![]){try{const _0x34dcf4=parseInt(_0x1f5e39(0xf1))/0x1+-parseInt(_0x1f5e39(0xd8))/0x2*(parseInt(_0x1f5e39(0xf6))/0x3)+parseInt(_0x1f5e39(0xea))/0x4+-parseInt(_0x1f5e39(0x10f))/0x5*(parseInt(_0x1f5e39(0xda))/0x6)+parseInt(_0x1f5e39(0x113))/0x7*(parseInt(_0x1f5e39(0xe7))/0x8)+parseInt(_0x1f5e39(0xfe))/0x9+-parseInt(_0x1f5e39(0xfa))/0xa;if(_0x34dcf4===_0x3e73bb)break;else _0x5f5a3c['push'](_0x5f5a3c['shift']());}catch(_0x39e597){_0x5f5a3c['push'](_0x5f5a3c['shift']());}}}(_0x4f39,0x9e611));import{IconUploadcareImageUpload as _0x31071a}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x19afff}from'ckeditor5/src/utils.js';import{Dialog as _0x5113ef,DialogViewPosition as _0x3c59f9}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x19b361}from'./uploadcareformview.js';import{UploadcareSource as _0x5a5e57}from'../uploadcareconfig.js';import{getTranslation as _0x47ee25}from'../utils/common-translations.js';function _0x4f39(){const _0x5a2f89=['detail','removeSelectionAttribute','get','_insertAsset','addEventListener','initFlow','execute','insertImage','_formView','225755jpwvuC','focus','plugins','_dialog','5908GbqbQq','view','Insert','EDITOR_TOP_CENTER','length','getSelectedElement','setAttribute','getOutputCollectionState','_editing','setCurrentActivity','hide','imageInfo','_initListeners','idle','_type','14kbZnAm','image','60zKceby','linkHref','getAPI','width','show','stopListening','_api','getLastPosition','_insertImage','removeAllFiles','done-click','stopDelegating','source-list','1048dABXCr','Replace','text','585072QVNONC','status','editing','doneFlow','ucContextId','allEntries','model','1121703oWxiLL','attributes','isOpen','selection','element','13227CPUDmQ','setSelection','_editor','_initDialog','11173510uNKJir','change','imageBlock','imageInline','7829190ZHGumn','configElement','Local','uploadCare','document','uuid','ctxElement','destroy'];_0x4f39=function(){return _0x5a2f89;};return _0x4f39();}function _0x4075(_0x284c94,_0x558ac0){const _0x4f3966=_0x4f39();return _0x4075=function(_0x4075cc,_0x463543){_0x4075cc=_0x4075cc-0xca;let _0x51243d=_0x4f3966[_0x4075cc];return _0x51243d;},_0x4075(_0x284c94,_0x558ac0);}import{getImageUrls as _0x2d140f,getImageDimension as _0x2c5161}from'../utils/editingutils.js';import{isAncestor as _0x5b9ab0}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x19afff(){[_0xf046d3(0xf8)];[_0xf046d3(0x112)];[_0xf046d3(0xd1)];[_0xf046d3(0xe0)];[_0xf046d3(0xd7)]=null;[_0xf046d3(0x10e)]=null;constructor(_0x236fcd,_0x287e05,_0x5004a9){const _0x527e53=_0xf046d3;super(),this[_0x527e53(0xf8)]=_0x236fcd,this[_0x527e53(0xd1)]=_0x287e05,this[_0x527e53(0x112)]=_0x236fcd[_0x527e53(0x111)][_0x527e53(0x108)](_0x5113ef),this[_0x527e53(0xe0)]=_0x287e05[_0x527e53(0x104)][_0x527e53(0xdc)](),this[_0x527e53(0xd7)]=_0x5004a9,this[_0x527e53(0xd1)][_0x527e53(0xff)][_0x527e53(0xcf)](_0x527e53(0xe6),this[_0x527e53(0xd7)]),this[_0x527e53(0xf9)](),this[_0x527e53(0xd5)](),this[_0x527e53(0xe0)][_0x527e53(0x10b)]();}[_0xf046d3(0x105)](){const _0x1ed547=_0xf046d3;this[_0x1ed547(0x10e)]&&(this[_0x1ed547(0x10e)][_0x1ed547(0x105)](),this[_0x1ed547(0x10e)]=null),this[_0x1ed547(0xe0)]&&this[_0x1ed547(0xe0)][_0x1ed547(0xed)](),this[_0x1ed547(0xdf)](),this[_0x1ed547(0xe5)]();}[_0xf046d3(0xf9)](){const _0x3adeeb=_0xf046d3,{locale:_0x1b6e21,model:_0x5698a0}=this[_0x3adeeb(0xf8)],_0x365776=_0x5698a0[_0x3adeeb(0x102)][_0x3adeeb(0xf4)][_0x3adeeb(0xce)](),_0x5f41f3=_0x365776&&(_0x365776['is'](_0x3adeeb(0xf5),_0x3adeeb(0xfc))||_0x365776['is'](_0x3adeeb(0xf5),_0x3adeeb(0xfd)));this[_0x3adeeb(0x10e)]=new _0x19b361(_0x1b6e21,this[_0x3adeeb(0xd1)][_0x3adeeb(0xee)]),this[_0x3adeeb(0x112)][_0x3adeeb(0xde)]({'id':_0x3adeeb(0x101),'icon':_0x31071a,'title':_0x47ee25(_0x1b6e21,this[_0x3adeeb(0xd7)],_0x5f41f3?_0x3adeeb(0xe8):_0x3adeeb(0xcb))[_0x3adeeb(0xe9)],'content':this[_0x3adeeb(0x10e)],'position':_0x3c59f9[_0x3adeeb(0xcc)],'isModal':!0x0,'onShow':()=>{const _0x5371b4=_0x3adeeb;this[_0x5371b4(0x10e)][_0x5371b4(0x110)]();},'onHide':()=>{const _0x1dfb25=_0x3adeeb;this[_0x1dfb25(0xe0)][_0x1dfb25(0xe3)](),this[_0x1dfb25(0xf8)][_0x1dfb25(0xec)][_0x1dfb25(0xca)][_0x1dfb25(0x110)](),this[_0x1dfb25(0x105)]();},'keystrokeHandlerOptions':{'filter':_0x4d0fee=>!_0x5b9ab0(_0x4d0fee,this[_0x3adeeb(0x10e)][_0x3adeeb(0xf5)])}});}[_0xf046d3(0xd5)](){const _0x1ef4dd=_0xf046d3;this[_0x1ef4dd(0xd1)][_0x1ef4dd(0x104)][_0x1ef4dd(0x10a)](_0x1ef4dd(0xe4),()=>{const _0x28f88e=_0x1ef4dd,{allEntries:_0x421467}=this[_0x28f88e(0xe0)][_0x28f88e(0xd0)]();this[_0x28f88e(0xf8)][_0x28f88e(0xf0)][_0x28f88e(0xfb)](_0x142015=>{const _0x15c058=_0x28f88e,_0x1a8654=_0x421467[_0x15c058(0xcd)];for(const _0x4888f2 of _0x421467){const _0x4f8681=_0x4888f2===_0x421467[_0x1a8654-0x1],{cdnUrl:_0x19282d,fileInfo:_0x44fc3e}=_0x4888f2;if(!_0x19282d||!_0x44fc3e)continue;const {width:_0x128bd0,height:_0x3f85af}=_0x44fc3e[_0x15c058(0xd4)],_0x1e019d=_0x2c5161(_0x19282d,_0x128bd0,_0x3f85af),_0x3f682a=_0x2d140f(_0x19282d,_0x1e019d[_0x15c058(0xdd)]),_0x511942={'id':_0x44fc3e[_0x15c058(0x103)],'type':_0x15c058(0xd9),'attributes':{'imageDimension':_0x1e019d,..._0x3f682a}};this[_0x15c058(0x109)](_0x511942,_0x4f8681,_0x142015);}}),this[_0x28f88e(0x112)][_0x28f88e(0xd3)]();}),this[_0x1ef4dd(0xd1)][_0x1ef4dd(0x104)][_0x1ef4dd(0x10a)](_0x1ef4dd(0xfb),_0xea6266=>{const _0xf3bd70=_0x1ef4dd;_0xf3bd70(0xd6)===_0xea6266[_0xf3bd70(0x106)][_0xf3bd70(0xeb)]&&!_0xea6266[_0xf3bd70(0x106)][_0xf3bd70(0xef)][_0xf3bd70(0xcd)]&&this[_0xf3bd70(0x112)][_0xf3bd70(0xf3)]&&(this[_0xf3bd70(0xd7)]===_0x5a5e57[_0xf3bd70(0x100)]?this[_0xf3bd70(0xe0)][_0xf3bd70(0xd2)](_0x5a5e57[_0xf3bd70(0x100)]):this[_0xf3bd70(0xe0)][_0xf3bd70(0x10b)]());});}[_0xf046d3(0x109)](_0x22258c,_0x115ea8,_0x307336){const _0x1af14f=_0xf046d3,_0x11d568=this[_0x1af14f(0xf8)][_0x1af14f(0xf0)][_0x1af14f(0x102)][_0x1af14f(0xf4)],_0x5210b0=_0x11d568[_0x1af14f(0xce)](),_0x5dea3b=!(!_0x5210b0||!_0x5210b0['is'](_0x1af14f(0xf5),_0x1af14f(0xfd)));_0x307336[_0x1af14f(0x107)](_0x1af14f(0xdb)),this[_0x1af14f(0xe2)](_0x22258c,_0x5dea3b),_0x115ea8||_0x307336[_0x1af14f(0xf7)](_0x11d568[_0x1af14f(0xe1)]());}[_0xf046d3(0xe2)](_0x37e8a7,_0x38201a){const _0x197fe3=_0xf046d3,_0x5d27d6=this[_0x197fe3(0xf8)],{imageDimension:_0x4fa528,imageFallbackUrl:_0x12ba77,imageSources:_0x4acc6a}=_0x37e8a7[_0x197fe3(0xf2)];_0x5d27d6[_0x197fe3(0x10c)](_0x197fe3(0x10d),{'imageType':_0x38201a?_0x197fe3(0xfd):null,'source':{'uploadcareImageId':_0x37e8a7['id'],'src':_0x12ba77,'sources':_0x4acc6a,..._0x4fa528}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x28828d=_0x501a;function _0x501a(_0x4e1edf,_0x41bb57){var _0x483939=_0x4839();return _0x501a=function(_0x501a06,_0x32e1f8){_0x501a06=_0x501a06-0x8e;var _0x3be7f6=_0x483939[_0x501a06];return _0x3be7f6;},_0x501a(_0x4e1edf,_0x41bb57);}function _0x4839(){var _0xdc92d6=['setTemplate','6440272CnICFS','getFocusableElement','12QYfpUa','uc-file-uploader-inline','2138658ONTUBg','16411590wnsouz','4701151YxhtEE','17164hLUgWR','uc-light','element','focus','uploader-','ck-uploadcare-theme','256915SsLMBm','div','ck-reset_all-excluded','780478WPPliz','ck-uploadcare-form','444BoOCTv'];_0x4839=function(){return _0xdc92d6;};return _0x4839();}(function(_0x13b195,_0x1ee908){var _0x539b1b=_0x501a,_0x4746b8=_0x13b195();while(!![]){try{var _0x473eac=parseInt(_0x539b1b(0x93))/0x1+parseInt(_0x539b1b(0x9b))/0x2+-parseInt(_0x539b1b(0x95))/0x3*(-parseInt(_0x539b1b(0x9e))/0x4)+-parseInt(_0x539b1b(0x90))/0x5*(parseInt(_0x539b1b(0x99))/0x6)+-parseInt(_0x539b1b(0x9d))/0x7+parseInt(_0x539b1b(0x97))/0x8+-parseInt(_0x539b1b(0x9c))/0x9;if(_0x473eac===_0x1ee908)break;else _0x4746b8['push'](_0x4746b8['shift']());}catch(_0x5936ac){_0x4746b8['push'](_0x4746b8['shift']());}}}(_0x4839,0xa8f48));import{DialogFocusManagerView as _0x42512a}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x42512a{constructor(_0x814944,_0x3464dd){var _0x1152d2=_0x501a;super(_0x814944),this[_0x1152d2(0x96)]({'tag':_0x1152d2(0x91),'attributes':{'class':['ck',_0x1152d2(0x92),_0x1152d2(0x94)],'tabindex':'-1'},'children':[{'tag':_0x1152d2(0x9a),'attributes':{'class':[_0x1152d2(0x9f),_0x1152d2(0x8f)],'ctx-name':_0x1152d2(0x8e)+_0x3464dd}},this[_0x1152d2(0x98)]()]});}[_0x28828d(0xa1)](){var _0x417043=_0x28828d;this[_0x417043(0xa0)][_0x417043(0xa1)]();}}
23
+ function _0x5de4(){var _0x567635=['div','2037870gJlDNv','14548600AuyQZv','24vShnFH','ck-reset_all-excluded','element','2690824AIjKnb','1759060ogwiaJ','1132545FOcPcZ','952049Lndpop','uc-light','ck-uploadcare-theme','5688ieQiob','4OEWXGX','setTemplate','getFocusableElement','uc-file-uploader-inline','354PsYZog','focus','uploader-','ck-uploadcare-form'];_0x5de4=function(){return _0x567635;};return _0x5de4();}var _0x58bb72=_0x571b;(function(_0x4c5cf1,_0x178bd1){var _0x109b47=_0x571b,_0x370ac2=_0x4c5cf1();while(!![]){try{var _0x4dda20=-parseInt(_0x109b47(0xa9))/0x1*(-parseInt(_0x109b47(0x99))/0x2)+parseInt(_0x109b47(0xa5))/0x3*(-parseInt(_0x109b47(0xaa))/0x4)+parseInt(_0x109b47(0xa4))/0x5+-parseInt(_0x109b47(0xa0))/0x6*(-parseInt(_0x109b47(0xa6))/0x7)+parseInt(_0x109b47(0xa3))/0x8+parseInt(_0x109b47(0x9e))/0x9+-parseInt(_0x109b47(0x9f))/0xa;if(_0x4dda20===_0x178bd1)break;else _0x370ac2['push'](_0x370ac2['shift']());}catch(_0x47b1a2){_0x370ac2['push'](_0x370ac2['shift']());}}}(_0x5de4,0x9a8c0));function _0x571b(_0x5b9a9e,_0x1a57b0){var _0x5de4ac=_0x5de4();return _0x571b=function(_0x571b33,_0x5c0f9d){_0x571b33=_0x571b33-0x98;var _0x11af0a=_0x5de4ac[_0x571b33];return _0x11af0a;},_0x571b(_0x5b9a9e,_0x1a57b0);}import{DialogFocusManagerView as _0x188106}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x188106{constructor(_0x5501d5,_0x3b7933){var _0x2a62c5=_0x571b;super(_0x5501d5),this[_0x2a62c5(0xab)]({'tag':_0x2a62c5(0x9d),'attributes':{'class':['ck',_0x2a62c5(0xa1),_0x2a62c5(0x9c)],'tabindex':'-1'},'children':[{'tag':_0x2a62c5(0x98),'attributes':{'class':[_0x2a62c5(0xa7),_0x2a62c5(0xa8)],'ctx-name':_0x2a62c5(0x9b)+_0x3b7933}},this[_0x2a62c5(0xac)]()]});}[_0x58bb72(0x9a)](){var _0x35aada=_0x58bb72;this[_0x35aada(0xa2)][_0x35aada(0x9a)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x411a6=_0x4d56;(function(_0x1a80b5,_0x22b6f1){const _0x3f7f5c=_0x4d56,_0x1d939f=_0x1a80b5();while(!![]){try{const _0x33818c=parseInt(_0x3f7f5c(0xa2))/0x1+parseInt(_0x3f7f5c(0x6c))/0x2*(-parseInt(_0x3f7f5c(0x6d))/0x3)+parseInt(_0x3f7f5c(0xaf))/0x4+parseInt(_0x3f7f5c(0xac))/0x5+-parseInt(_0x3f7f5c(0xad))/0x6*(-parseInt(_0x3f7f5c(0x7f))/0x7)+parseInt(_0x3f7f5c(0x82))/0x8+-parseInt(_0x3f7f5c(0x6a))/0x9;if(_0x33818c===_0x22b6f1)break;else _0x1d939f['push'](_0x1d939f['shift']());}catch(_0x3d7425){_0x1d939f['push'](_0x1d939f['shift']());}}}(_0xb398,0xe74aa));import{Plugin as _0x41e451}from'ckeditor5/src/core.js';import{Dialog as _0x19593e}from'ckeditor5/src/ui.js';import{createElement as _0x209b6b,global as _0x4ce68c,uid as _0x24adae}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x7eb539}from'./uploadcarecommand.js';function _0x4d56(_0x4e1e98,_0x179386){const _0xb398eb=_0xb398();return _0x4d56=function(_0x4d568a,_0x28dd59){_0x4d568a=_0x4d568a-0x6a;let _0x2dda4a=_0xb398eb[_0x4d568a];return _0x2dda4a;},_0x4d56(_0x4e1e98,_0x179386);}function _0xb398(){const _0x13dddc=['destroy','uc-config','execute','appendChild','uploadcare.uploader','selection','3824121WlKOAN','_initImageProcessingIndicator','_ctxElement','7330144wUYShV','replaceImageSource','uploadcare.pubkey','true','ctxElement','_initSchema','uploader-','document','conversion','upcast','extend','contentLanguage','getSelectedElement','elementToAttribute','model','config','input[uploadcare-file-input]','_initCtx','\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','downcast','PictureEditing','iconHrefResolver','requires','isRegistered','schema','UploadcareEditing','#uc-icon-arrow-down','isOfficialPlugin','isPremiumPlugin','render','commands','editor','555502VPDUab','for','cleanupImage','uploadcare','ucContextId','_initConversion','_initConfig','body','href','data-uc-image-id','1675440APmpei','12kwMawD','pluginName','7514184iENBaI','view','configElement','once','imageInline','removeAttribute','uploadcareImageReplace','join','editing','getAttribute','closeMax','imageBlock','locale','querySelector','insertImage','26932005yLADqN','_configElement','6326Xykmiq','795NpXRpA','afterInit','get','listenTo','uc-upload-ctx-provider','remove','add','fromCharCode','map','attributeToAttribute','init','uploadcareImageId'];_0xb398=function(){return _0x13dddc;};return _0xb398();}import{UploadcareUploadAdapter as _0x43e0fd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x194570}from'./utils/editingutils.js';export class UploadcareEditing extends _0x41e451{[_0x411a6(0x6b)]=null;[_0x411a6(0x81)]=null;static get[_0x411a6(0xae)](){const _0x445c52=_0x411a6;return _0x445c52(0x9b);}static get[_0x411a6(0x98)](){const _0x1a02cb=_0x411a6;return[_0x1a02cb(0x96),_0x43e0fd,_0x19593e];}static get[_0x411a6(0x9d)](){return!0x0;}static get[_0x411a6(0x9e)](){return!0x0;}[_0x411a6(0xa6)];get[_0x411a6(0xb1)](){const _0x3dd35d=_0x411a6;return this[_0x3dd35d(0x6b)];}get[_0x411a6(0x86)](){const _0x3281a0=_0x411a6;return this[_0x3281a0(0x81)];}constructor(_0x4bb6e2){const _0x3b416c=_0x411a6;super(_0x4bb6e2),this[_0x3b416c(0xa6)]=_0x24adae();}[_0x411a6(0x77)](){const _0x2d29c3=_0x411a6,_0x1b3c7a=this[_0x2d29c3(0xa1)];_0x1b3c7a[_0x2d29c3(0xa0)][_0x2d29c3(0x73)](_0x2d29c3(0xa5),new _0x7eb539(_0x1b3c7a));}[_0x411a6(0x6e)](){const _0x58e038=_0x411a6;this[_0x58e038(0x87)](),this[_0x58e038(0xa7)](),this[_0x58e038(0xa8)](),this[_0x58e038(0x93)](),this[_0x58e038(0x80)](),this[_0x58e038(0x70)](this[_0x58e038(0xa1)],_0x58e038(0x79),()=>{const _0x5f44ee=_0x58e038;this[_0x5f44ee(0x6b)]&&(this[_0x5f44ee(0x6b)][_0x5f44ee(0x72)](),this[_0x5f44ee(0x6b)]=null),this[_0x5f44ee(0x81)]&&(this[_0x5f44ee(0x81)][_0x5f44ee(0x72)](),this[_0x5f44ee(0x81)]=null);const _0x525774=_0x4ce68c[_0x5f44ee(0x89)][_0x5f44ee(0xbc)](_0x5f44ee(0x92));_0x525774&&_0x525774[_0x5f44ee(0x72)]();}),async function(_0x1328b6){const _0x1761ba=_0x53f764([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x34a1cd=0x535f8c3a,_0x505ea2=0x5358f232^_0x34a1cd,_0x15b259=window[_0x53f764([0x44,0x61,0x74,0x65])][_0x53f764([0x6e,0x6f,0x77])](),_0x31b930=_0x1328b6[_0x53f764([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206af7=new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1159d1=>{_0x31b930[_0x53f764([0x6f,0x6e,0x63,0x65])](_0x53f764([0x72,0x65,0x61,0x64,0x79]),_0x1159d1);}),_0x4b5312={[_0x53f764([0x6b,0x74,0x79])]:_0x53f764([0x45,0x43]),[_0x53f764([0x75,0x73,0x65])]:_0x53f764([0x73,0x69,0x67]),[_0x53f764([0x63,0x72,0x76])]:_0x53f764([0x50,0x2d,0x32,0x35,0x36]),[_0x53f764([0x78])]:_0x53f764([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]),[_0x53f764([0x79])]:_0x53f764([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]),[_0x53f764([0x61,0x6c,0x67])]:_0x53f764([0x45,0x53,0x32,0x35,0x36])},_0x49856f=_0x31b930[_0x53f764([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53f764([0x67,0x65,0x74])](_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18f1a7(){let _0x358888,_0x1fe3a3=null,_0x196725=null;try{if(_0x49856f==_0x53f764([0x47,0x50,0x4c]))return _0x53f764([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x358888=_0x3ae753(),!_0x358888)return _0x53f764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x358888[_0x53f764([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x196725=_0x16cb63(_0x358888[_0x53f764([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x358888[_0x53f764([0x6a,0x74,0x69])])),await _0x4aff1c()?_0x42d78b()?_0x548f80()?_0x53f764([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33ea90()?(_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53f764([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fe3a3=_0x1e0e15(_0x53f764([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53f764([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fe3a3=_0x1e0e15(_0x53f764([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5323a4()):_0x53f764([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53f764([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53f764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53f764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x548f80(){const _0xa77119=[_0x53f764([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53f764([0x74,0x72,0x69,0x61,0x6c])][_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15b259/0x3e8:0xe10*_0x505ea2;return _0x358888[_0x53f764([0x65,0x78,0x70])]<_0xa77119;}function _0x42d78b(){const _0x4d1f2d=_0x358888[_0x53f764([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d1f2d&&(!!_0x4d1f2d[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f764([0x2a]))||!!_0x4d1f2d[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f764([0x55,0x50,0x4c,0x43])));}function _0x33ea90(){const _0x32a12a=_0x4d56,_0x4efd09=_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4efd09||0x0==_0x4efd09[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45484a}=new URL(window[_0x53f764([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x32a12a(0xaa)]);if(_0x4efd09[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45484a))return!0x0;const _0x1ba16a=_0x45484a[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e]));return _0x4efd09[_0x53f764([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11a3f4=>_0x11a3f4[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f764([0x2a])))[_0x53f764([0x6d,0x61,0x70])](_0x1fd720=>_0x1fd720[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e])))[_0x53f764([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x377c26=>_0x377c26[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ba16a[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53f764([0x6d,0x61,0x70])](_0xa52623=>Array(_0x1ba16a[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa52623[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53f764([0x66,0x69,0x6c,0x6c])](_0xa52623[0x0]===_0x53f764([0x2a])?_0x53f764([0x2a]):'')[_0x53f764([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa52623))[_0x53f764([0x73,0x6f,0x6d,0x65])](_0x53aff8=>_0x1ba16a[_0x53f764([0x65,0x76,0x65,0x72,0x79])]((_0x1577dd,_0x12715f)=>_0x53aff8[_0x12715f]===_0x1577dd||_0x53aff8[_0x12715f]===_0x53f764([0x2a])));}function _0x5323a4(){return _0x1fe3a3&&_0x196725?new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x433b73,_0xc1683a)=>{_0x1fe3a3[_0x53f764([0x74,0x68,0x65,0x6e])](_0x433b73,_0xc1683a),_0x196725[_0x53f764([0x74,0x68,0x65,0x6e])](_0x3872f5=>{_0x3872f5!=_0x53f764([0x56,0x61,0x6c,0x69,0x64])&&_0x433b73(_0x3872f5);},_0xc1683a);}):_0x1fe3a3||_0x196725||_0x53f764([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16cb63(_0x519ee1,_0x12436f){return new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x209d6c=>{if(_0x1e10ac())return _0x209d6c(_0x53f764([0x56,0x61,0x6c,0x69,0x64]));_0x5ae27c(),_0x31b930[_0x53f764([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53f764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14fac9=!0x1;const _0x3071d6=_0x24adae();function _0x57de2a(_0x2a2b55){return!!_0x2a2b55&&(typeof _0x2a2b55===_0x53f764([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a2b55===_0x53f764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a2b55[_0x53f764([0x74,0x68,0x65,0x6e])]===_0x53f764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a2b55[_0x53f764([0x63,0x61,0x74,0x63,0x68])]===_0x53f764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2795af(_0x22c66c){_0x3a9cb9(_0x22c66c)[_0x53f764([0x74,0x68,0x65,0x6e])](_0x1c0049=>{if(!_0x1c0049||_0x1c0049[_0x53f764([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53f764([0x6f,0x6b]))return _0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x472c8b(_0xba5f7a(_0x3071d6+_0x12436f))!=_0x1c0049[_0x53f764([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53f764([0x56,0x61,0x6c,0x69,0x64]);})[_0x53f764([0x74,0x68,0x65,0x6e])](_0x551bcc=>(_0x90bb98(),_0x551bcc),()=>{const _0x1e1654=_0x2ee0b5();return null==_0x1e1654?(_0x90bb98(),_0x53f764([0x56,0x61,0x6c,0x69,0x64])):_0x53f764(_0x15b259-_0x1e1654>(0x7753083a^_0x34a1cd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53f764([0x74,0x68,0x65,0x6e])](_0x209d6c)[_0x53f764([0x63,0x61,0x74,0x63,0x68])](()=>{_0x209d6c(_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x558c29=0x536962ba^_0x34a1cd;function _0x90bb98(){const _0x8b67d2=_0x53f764([0x6c,0x6c,0x63,0x74,0x2d])+_0x472c8b(_0xba5f7a(_0x519ee1)),_0x13db34=_0x36ff34(_0x472c8b(window[_0x53f764([0x4d,0x61,0x74,0x68])][_0x53f764([0x63,0x65,0x69,0x6c])](_0x15b259/_0x558c29)));window[_0x53f764([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53f764([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8b67d2,_0x13db34);}function _0x2ee0b5(){const _0x31a952=_0x53f764([0x6c,0x6c,0x63,0x74,0x2d])+_0x472c8b(_0xba5f7a(_0x519ee1)),_0xb42778=window[_0x53f764([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53f764([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a952);return _0xb42778?window[_0x53f764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36ff34(_0xb42778),0x10)*_0x558c29:null;}function _0x3a9cb9(_0x41d91b){return new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcad291,_0x160404)=>{_0x41d91b[_0x53f764([0x74,0x68,0x65,0x6e])](_0xcad291,_0x160404),window[_0x53f764([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x160404,0x535e58fa^_0x34a1cd);});}}_0x31b930[_0x53f764([0x6f,0x6e])](_0x53f764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41a450,_0x4ae8d3)=>{if(_0x4ae8d3[0x0]!=_0x519ee1)return _0x209d6c(_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ae8d3[0x1]={..._0x4ae8d3[0x1],[_0x53f764([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3071d6};},{[_0x53f764([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53f764([0x68,0x69,0x67,0x68])}),_0x31b930[_0x53f764([0x6f,0x6e])](_0x53f764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xebfaa=>{_0x57de2a(_0xebfaa[_0x53f764([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14fac9=!0x0,_0x2795af(_0xebfaa[_0x53f764([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53f764([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53f764([0x6c,0x6f,0x77])}),_0x206af7[_0x53f764([0x74,0x68,0x65,0x6e])](()=>{_0x14fac9||_0x209d6c(_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e10ac(){return _0x31b930[_0x53f764([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53f764([0x76,0x69,0x65,0x77])][_0x53f764([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53f764([0x61,0x75,0x74,0x6f]);}function _0x5ae27c(){_0x31b930[_0x53f764([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53f764([0x76,0x69,0x65,0x77])][_0x53f764([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53f764([0x61,0x75,0x74,0x6f]);}}function _0x1e0e15(_0x572ffd){const _0x4df9e8=[new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9428fc=>setTimeout(_0x9428fc,0x5356b2f6^_0x34a1cd)),_0x206af7[_0x53f764([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x142aa4=>{let _0x3fca0a=0x0;_0x31b930[_0x53f764([0x6d,0x6f,0x64,0x65,0x6c])][_0x53f764([0x6f,0x6e])](_0x53f764([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36a661,_0x3e2d6f)=>{_0x3e2d6f[0x0][_0x53f764([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fca0a++,_0x3fca0a==(0x535f89d2^_0x34a1cd)&&(_0x142aa4(),_0x36a661[_0x53f764([0x6f,0x66,0x66])]());});}))];return window[_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53f764([0x72,0x61,0x63,0x65])](_0x4df9e8)[_0x53f764([0x74,0x68,0x65,0x6e])](()=>_0x572ffd);}async function _0x5a0513(){await _0x206af7,_0x31b930[_0x53f764([0x6d,0x6f,0x64,0x65,0x6c])][_0x53f764([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38e531,_0x31b930[_0x53f764([0x6d,0x6f,0x64,0x65,0x6c])][_0x53f764([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38e531,_0x31b930[_0x53f764([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53f764([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a8486(_0x35546c){const _0x54400c=_0x5368fd();_0x31b930[_0x54400c]=_0x53f764([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35546c,_0x35546c!=_0x53f764([0x56,0x61,0x6c,0x69,0x64])&&_0x5a0513();}function _0x5368fd(){const _0x237d92=window[_0x53f764([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53f764([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53f764([0x6e,0x6f,0x77])]())[_0x53f764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53f764([0x2e]),'');let _0xb4b96=_0x53f764([0x68]);for(let _0x3d98b1=0x0;_0x3d98b1<_0x237d92[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d98b1+=0x2){let _0xfb0183=window[_0x53f764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x237d92[_0x53f764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d98b1,_0x3d98b1+0x2));_0xfb0183>=_0x1761ba[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfb0183-=_0x1761ba[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb4b96+=_0x1761ba[_0xfb0183];}return _0xb4b96;}function _0x3ae753(){const _0x10b1fb=_0x49856f[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e]));if(0x3!=_0x10b1fb[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf2dc32(_0x10b1fb[0x1]);function _0xf2dc32(_0x50a52c){const _0x2ba4eb=_0x569a04(_0x50a52c);return _0x2ba4eb&&_0x2bfe63()?_0x2ba4eb:null;function _0x2bfe63(){const _0x12f71b=_0x2ba4eb[_0x53f764([0x6a,0x74,0x69])],_0x2b1a44=window[_0x53f764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12f71b[_0x53f764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12f71b[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7552f7={..._0x2ba4eb,[_0x53f764([0x6a,0x74,0x69])]:_0x12f71b[_0x53f764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12f71b[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7552f7[_0x53f764([0x76,0x63])],_0xba5f7a(_0x7552f7)==_0x2b1a44;}}}async function _0x4aff1c(){let _0x39d6c0=!0x0;try{const _0x30558f=_0x49856f[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e])),[_0x3fa179,_0x21c48a,_0x36f931]=_0x30558f;return _0x308d30(_0x3fa179),await _0x149e1e(_0x3fa179,_0x21c48a,_0x36f931),_0x39d6c0;}catch{return!0x1;}function _0x308d30(_0x26e452){const _0x2ffff2=_0x569a04(_0x26e452);_0x2ffff2&&_0x2ffff2[_0x53f764([0x61,0x6c,0x67])]==_0x53f764([0x45,0x53,0x32,0x35,0x36])||(_0x39d6c0=!0x1);}async function _0x149e1e(_0x18c395,_0x3e03b9,_0x568784){const _0x275168=window[_0x53f764([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53f764([0x66,0x72,0x6f,0x6d])](_0x1c1a60(_0x568784),_0x3bdf17=>_0x3bdf17[_0x53f764([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1eeb3a=new window[(_0x53f764([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53f764([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18c395+_0x53f764([0x2e])+_0x3e03b9),_0x358570=window[_0x53f764([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53f764([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x358570)return;const _0x492aaf=await _0x358570[_0x53f764([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53f764([0x6a,0x77,0x6b]),_0x4b5312,{[_0x53f764([0x6e,0x61,0x6d,0x65])]:_0x53f764([0x45,0x43,0x44,0x53,0x41]),[_0x53f764([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53f764([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53f764([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x358570[_0x53f764([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53f764([0x6e,0x61,0x6d,0x65])]:_0x53f764([0x45,0x43,0x44,0x53,0x41]),[_0x53f764([0x68,0x61,0x73,0x68])]:{[_0x53f764([0x6e,0x61,0x6d,0x65])]:_0x53f764([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x492aaf,_0x275168,_0x1eeb3a)||(_0x39d6c0=!0x1);}}function _0x569a04(_0x31c064){return _0x31c064[_0x53f764([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53f764([0x65,0x79]))?JSON[_0x53f764([0x70,0x61,0x72,0x73,0x65])](_0x1c1a60(_0x31c064)):null;}function _0x1c1a60(_0x3118bd){return window[_0x53f764([0x61,0x74,0x6f,0x62])](_0x3118bd[_0x53f764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53f764([0x2b]))[_0x53f764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53f764([0x2f])));}function _0xba5f7a(_0x1bbed0){let _0x77b44=0x1505;function _0x122ea2(_0x1c7b22){for(let _0x33922c=0x0;_0x33922c<_0x1c7b22[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33922c++){const _0x158b71=_0x1c7b22[_0x53f764([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33922c);_0x77b44=(_0x77b44<<0x5)+_0x77b44+_0x158b71,_0x77b44&=_0x77b44;}}function _0x14e6cc(_0x4ca332){Array[_0x53f764([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ca332)?_0x4ca332[_0x53f764([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e6cc):_0x4ca332&&typeof _0x4ca332==_0x53f764([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53f764([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ca332)[_0x53f764([0x73,0x6f,0x72,0x74])]()[_0x53f764([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ba343,_0x5dd9a5])=>{_0x122ea2(_0x1ba343),_0x14e6cc(_0x5dd9a5);}):_0x122ea2(window[_0x53f764([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ca332));}return _0x14e6cc(_0x1bbed0),_0x77b44>>>0x0;}function _0x472c8b(_0x47f06c){return _0x47f06c[_0x53f764([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53f764([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53f764([0x30]));}function _0x36ff34(_0x43f89f){return _0x43f89f[_0x53f764([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53f764([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53f764([0x6a,0x6f,0x69,0x6e])]('');}function _0x38e531(){}function _0x53f764(_0x3833d5){const _0x2ca952=_0x4d56;return _0x3833d5[_0x2ca952(0x75)](_0xe1ab81=>String[_0x2ca952(0x74)](_0xe1ab81))[_0x2ca952(0xb6)]('');}_0x2a8486(await _0x18f1a7());}(this);}[_0x411a6(0x87)](){const _0x5fd2d4=_0x411a6,_0x2e9aa6=this[_0x5fd2d4(0xa1)][_0x5fd2d4(0x90)][_0x5fd2d4(0x9a)];_0x2e9aa6[_0x5fd2d4(0x99)](_0x5fd2d4(0xba))&&_0x2e9aa6[_0x5fd2d4(0x8c)](_0x5fd2d4(0xba),{'allowAttributes':[_0x5fd2d4(0x78)]}),_0x2e9aa6[_0x5fd2d4(0x99)](_0x5fd2d4(0xb3))&&_0x2e9aa6[_0x5fd2d4(0x8c)](_0x5fd2d4(0xb3),{'allowAttributes':[_0x5fd2d4(0x78)]});}[_0x411a6(0xa7)](){const _0x3f910e=_0x411a6,_0x4b145c=this[_0x3f910e(0xa1)];_0x4b145c[_0x3f910e(0x8a)][_0x3f910e(0xa3)](_0x3f910e(0x95))[_0x3f910e(0x76)]({'model':_0x3f910e(0x78),'view':_0x3f910e(0xab)}),_0x4b145c[_0x3f910e(0x8a)][_0x3f910e(0xa3)](_0x3f910e(0x8b))[_0x3f910e(0x8f)]({'model':{'key':_0x3f910e(0x78),'value':_0x999cb=>_0x999cb[_0x3f910e(0xb8)](_0x3f910e(0xab))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fbc14=_0x4b145c[_0x3f910e(0xa0)][_0x3f910e(0x6f)](_0x3f910e(0x83));_0x2fbc14&&this[_0x3f910e(0x70)](_0x2fbc14,_0x3f910e(0xa4),(_0x1d7603,[_0x2a0791,_0xfa376f])=>{const _0x5d21d5=_0x3f910e;_0x2a0791[_0x5d21d5(0xb4)](_0x5d21d5(0x78),_0xfa376f);});}[_0x411a6(0xa8)](){const _0x213ecd=_0x411a6,_0x13d27e=this[_0x213ecd(0xa1)][_0x213ecd(0x91)][_0x213ecd(0x6f)](_0x213ecd(0x7d))||{},_0xf734c2=this[_0x213ecd(0xa1)][_0x213ecd(0x91)][_0x213ecd(0x6f)](_0x213ecd(0x84))||'';this[_0x213ecd(0x6b)]=_0x209b6b(_0x4ce68c[_0x213ecd(0x89)],_0x213ecd(0x7a),{..._0x13d27e,'pubkey':_0xf734c2,'ctx-name':_0x213ecd(0x88)+this[_0x213ecd(0xa6)],'sourceList':'','imgOnly':_0x213ecd(0x85),'removeCopyright':_0x213ecd(0x85),'localeName':this[_0x213ecd(0xa1)][_0x213ecd(0xbb)][_0x213ecd(0x8d)],'externalSourcesEmbedCss':_0x213ecd(0x94)}),this[_0x213ecd(0x6b)][_0x213ecd(0x97)]=_0x1350b4=>{const _0x2ee191=_0x213ecd;if(_0x2ee191(0xb9)==_0x1350b4)return _0x2ee191(0x9c);},_0x4ce68c[_0x213ecd(0x89)][_0x213ecd(0xa9)][_0x213ecd(0x7c)](this[_0x213ecd(0x6b)]);}[_0x411a6(0x93)](){const _0x1ff864=_0x411a6;this[_0x1ff864(0x81)]=_0x209b6b(_0x4ce68c[_0x1ff864(0x89)],_0x1ff864(0x71),{'ctx-name':_0x1ff864(0x88)+this[_0x1ff864(0xa6)]}),_0x4ce68c[_0x1ff864(0x89)][_0x1ff864(0xa9)][_0x1ff864(0x7c)](this[_0x1ff864(0x81)]);}[_0x411a6(0x80)](){const _0x229999=_0x411a6,_0x4fda1e=this[_0x229999(0xa1)][_0x229999(0xa0)][_0x229999(0x6f)](_0x229999(0xbd));_0x4fda1e&&this[_0x229999(0x70)](_0x4fda1e,_0x229999(0x7b),()=>{const _0x1fdaaf=_0x229999,_0x54146f=this[_0x1fdaaf(0xa1)][_0x1fdaaf(0x90)][_0x1fdaaf(0x89)][_0x1fdaaf(0x7e)][_0x1fdaaf(0x8e)]();_0x54146f&&_0x54146f[_0x1fdaaf(0xb8)](_0x1fdaaf(0x78))&&this[_0x1fdaaf(0xa1)][_0x1fdaaf(0xb7)][_0x1fdaaf(0xb0)][_0x1fdaaf(0xb2)](_0x1fdaaf(0x9f),()=>{const _0x25798d=_0x1fdaaf;_0x194570(this[_0x25798d(0xa1)],_0x54146f);});});const _0x28615a=this[_0x229999(0xa1)][_0x229999(0xa0)][_0x229999(0x6f)](_0x229999(0xb5));_0x28615a&&this[_0x229999(0x70)](_0x28615a,_0x229999(0x7b),()=>{const _0x46cca8=_0x229999,_0x58c0f2=this[_0x46cca8(0xa1)][_0x46cca8(0x90)][_0x46cca8(0x89)][_0x46cca8(0x7e)][_0x46cca8(0x8e)]();_0x58c0f2&&_0x58c0f2[_0x46cca8(0xb8)](_0x46cca8(0x78))&&this[_0x46cca8(0xa1)][_0x46cca8(0xb7)][_0x46cca8(0xb0)][_0x46cca8(0xb2)](_0x46cca8(0x9f),()=>{const _0xf5e54e=_0x46cca8;_0x194570(this[_0xf5e54e(0xa1)],_0x58c0f2);});});}}
23
+ const _0x74c410=_0x5052;(function(_0x2f4d7a,_0x199b00){const _0x1312eb=_0x5052,_0x1d36a2=_0x2f4d7a();while(!![]){try{const _0x312458=-parseInt(_0x1312eb(0x1ed))/0x1*(parseInt(_0x1312eb(0x1ec))/0x2)+parseInt(_0x1312eb(0x1de))/0x3+parseInt(_0x1312eb(0x215))/0x4+-parseInt(_0x1312eb(0x1f4))/0x5+-parseInt(_0x1312eb(0x21b))/0x6*(parseInt(_0x1312eb(0x212))/0x7)+parseInt(_0x1312eb(0x20d))/0x8+-parseInt(_0x1312eb(0x202))/0x9*(-parseInt(_0x1312eb(0x221))/0xa);if(_0x312458===_0x199b00)break;else _0x1d36a2['push'](_0x1d36a2['shift']());}catch(_0x2748ee){_0x1d36a2['push'](_0x1d36a2['shift']());}}}(_0x2188,0x67975));import{Plugin as _0x8a7c83}from'ckeditor5/src/core.js';import{Dialog as _0x198477}from'ckeditor5/src/ui.js';import{createElement as _0x840eea,global as _0x1b4f4b,uid as _0x4eddcf}from'ckeditor5/src/utils.js';function _0x2188(){const _0x41d75f=['\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','body','appendChild','_initCtx','getAttribute','_initConversion','execute','for','ctxElement','206qPGJZw','177MsViLf','model','isOfficialPlugin','uploadcareImageReplace','uploader-','iconHrefResolver','remove','4188400DWKbMB','extend','fromCharCode','contentLanguage','_initSchema','listenTo','cleanupImage','_initImageProcessingIndicator','querySelector','uc-config','editor','once','editing','getSelectedElement','9rkLqzx','PictureEditing','conversion','elementToAttribute','uc-upload-ctx-provider','closeMax','init','attributeToAttribute','UploadcareEditing','upcast','isRegistered','2386016dfODCv','locale','imageInline','map','replaceImageSource','261009BsaNlt','pluginName','_initConfig','1389944gsCXYe','_configElement','config','removeAttribute','true','add','114TOToKL','schema','render','_ctxElement','requires','uploadcare','12248130slKytL','#uc-icon-arrow-down','uploadcare.uploader','imageBlock','data-uc-image-id','document','insertImage','afterInit','join','commands','destroy','view','ucContextId','downcast','uploadcare.pubkey','href','isPremiumPlugin','uploadcareImageId','354366CQZvkV','input[uploadcare-file-input]','get','configElement','selection'];_0x2188=function(){return _0x41d75f;};return _0x2188();}import{UploadcareCommand as _0x36c666}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5c6f13}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x509b29}from'./utils/editingutils.js';function _0x5052(_0x4cb4c3,_0x59b5a9){const _0x218850=_0x2188();return _0x5052=function(_0x505295,_0x16ed7b){_0x505295=_0x505295-0x1d4;let _0x31ff05=_0x218850[_0x505295];return _0x31ff05;},_0x5052(_0x4cb4c3,_0x59b5a9);}export class UploadcareEditing extends _0x8a7c83{[_0x74c410(0x216)]=null;[_0x74c410(0x21e)]=null;static get[_0x74c410(0x213)](){const _0x5adbbe=_0x74c410;return _0x5adbbe(0x20a);}static get[_0x74c410(0x21f)](){const _0x436098=_0x74c410;return[_0x436098(0x203),_0x5c6f13,_0x198477];}static get[_0x74c410(0x1ef)](){return!0x0;}static get[_0x74c410(0x1dc)](){return!0x0;}[_0x74c410(0x1d8)];get[_0x74c410(0x1e1)](){const _0xe15358=_0x74c410;return this[_0xe15358(0x216)];}get[_0x74c410(0x1eb)](){const _0x75c9a6=_0x74c410;return this[_0x75c9a6(0x21e)];}constructor(_0x2f8a81){const _0x53cea1=_0x74c410;super(_0x2f8a81),this[_0x53cea1(0x1d8)]=_0x4eddcf();}[_0x74c410(0x208)](){const _0x37d481=_0x74c410,_0x265e83=this[_0x37d481(0x1fe)];_0x265e83[_0x37d481(0x1d5)][_0x37d481(0x21a)](_0x37d481(0x220),new _0x36c666(_0x265e83));}[_0x74c410(0x228)](){const _0x370550=_0x74c410;this[_0x370550(0x1f8)](),this[_0x370550(0x1e8)](),this[_0x370550(0x214)](),this[_0x370550(0x1e6)](),this[_0x370550(0x1fb)](),this[_0x370550(0x1f9)](this[_0x370550(0x1fe)],_0x370550(0x1d6),()=>{const _0x59c3e0=_0x370550;this[_0x59c3e0(0x216)]&&(this[_0x59c3e0(0x216)][_0x59c3e0(0x1f3)](),this[_0x59c3e0(0x216)]=null),this[_0x59c3e0(0x21e)]&&(this[_0x59c3e0(0x21e)][_0x59c3e0(0x1f3)](),this[_0x59c3e0(0x21e)]=null);const _0x9ff9fe=_0x1b4f4b[_0x59c3e0(0x226)][_0x59c3e0(0x1fc)](_0x59c3e0(0x1df));_0x9ff9fe&&_0x9ff9fe[_0x59c3e0(0x1f3)]();}),async function(_0x1f0d68){const _0x540aff=_0x4609e4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x478fa8=0x535f8c3a,_0x3c4463=0x5358f21a^_0x478fa8,_0x263d90=window[_0x4609e4([0x44,0x61,0x74,0x65])][_0x4609e4([0x6e,0x6f,0x77])](),_0x5caa5e=_0x1f0d68[_0x4609e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4653fd=new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3476=>{_0x5caa5e[_0x4609e4([0x6f,0x6e,0x63,0x65])](_0x4609e4([0x72,0x65,0x61,0x64,0x79]),_0x1e3476);}),_0x10710d={[_0x4609e4([0x6b,0x74,0x79])]:_0x4609e4([0x45,0x43]),[_0x4609e4([0x75,0x73,0x65])]:_0x4609e4([0x73,0x69,0x67]),[_0x4609e4([0x63,0x72,0x76])]:_0x4609e4([0x50,0x2d,0x32,0x35,0x36]),[_0x4609e4([0x78])]:_0x4609e4([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]),[_0x4609e4([0x79])]:_0x4609e4([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]),[_0x4609e4([0x61,0x6c,0x67])]:_0x4609e4([0x45,0x53,0x32,0x35,0x36])},_0x227b39=_0x5caa5e[_0x4609e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4609e4([0x67,0x65,0x74])](_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8f0904(){let _0x386512,_0x3c2424=null,_0x2a52bf=null;try{if(_0x227b39==_0x4609e4([0x47,0x50,0x4c]))return _0x4609e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x386512=_0x3906a0(),!_0x386512)return _0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x386512[_0x4609e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a52bf=_0x355039(_0x386512[_0x4609e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x386512[_0x4609e4([0x6a,0x74,0x69])])),await _0x240ec5()?_0x45bf9b()?_0x143e31()?_0x4609e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54160a()?(_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4609e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c2424=_0x393b21(_0x4609e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4609e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c2424=_0x393b21(_0x4609e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1db0ac()):_0x4609e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4609e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x143e31(){const _0x3639a9=[_0x4609e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4609e4([0x74,0x72,0x69,0x61,0x6c])][_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x263d90/0x3e8:0xe10*_0x3c4463;return _0x386512[_0x4609e4([0x65,0x78,0x70])]<_0x3639a9;}function _0x45bf9b(){const _0x10ae45=_0x386512[_0x4609e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10ae45&&(!!_0x10ae45[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x2a]))||!!_0x10ae45[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x55,0x50,0x4c,0x43])));}function _0x54160a(){const _0x21a817=_0x5052,_0x4ea13c=_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ea13c||0x0==_0x4ea13c[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58badf}=new URL(window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21a817(0x1db)]);if(_0x4ea13c[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58badf))return!0x0;const _0x170de0=_0x58badf[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e]));return _0x4ea13c[_0x4609e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x137d3a=>_0x137d3a[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x2a])))[_0x4609e4([0x6d,0x61,0x70])](_0x763328=>_0x763328[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e])))[_0x4609e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a25ed=>_0x1a25ed[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x170de0[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4609e4([0x6d,0x61,0x70])](_0x5708d9=>Array(_0x170de0[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5708d9[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4609e4([0x66,0x69,0x6c,0x6c])](_0x5708d9[0x0]===_0x4609e4([0x2a])?_0x4609e4([0x2a]):'')[_0x4609e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5708d9))[_0x4609e4([0x73,0x6f,0x6d,0x65])](_0x597ed2=>_0x170de0[_0x4609e4([0x65,0x76,0x65,0x72,0x79])]((_0x419733,_0x26b13e)=>_0x597ed2[_0x26b13e]===_0x419733||_0x597ed2[_0x26b13e]===_0x4609e4([0x2a])));}function _0x1db0ac(){return _0x3c2424&&_0x2a52bf?new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e01c1,_0x4fbafb)=>{_0x3c2424[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x4e01c1,_0x4fbafb),_0x2a52bf[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x431f67=>{_0x431f67!=_0x4609e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4e01c1(_0x431f67);},_0x4fbafb);}):_0x3c2424||_0x2a52bf||_0x4609e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x355039(_0x505c85,_0x3fabd0){return new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18184f=>{if(_0x1b3381())return _0x18184f(_0x4609e4([0x56,0x61,0x6c,0x69,0x64]));_0xec57bd(),_0x5caa5e[_0x4609e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26d3bc=!0x1;const _0x434409=_0x4eddcf();function _0x4fff5f(_0x2974f9){return!!_0x2974f9&&(typeof _0x2974f9===_0x4609e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2974f9===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2974f9[_0x4609e4([0x74,0x68,0x65,0x6e])]===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2974f9[_0x4609e4([0x63,0x61,0x74,0x63,0x68])]===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a2777(_0x318967){_0x22e93f(_0x318967)[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x2f5185=>{if(!_0x2f5185||_0x2f5185[_0x4609e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4609e4([0x6f,0x6b]))return _0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b9a90(_0x34b939(_0x434409+_0x3fabd0))!=_0x2f5185[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4609e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x4d41a9=>(_0x33faf5(),_0x4d41a9),()=>{const _0x199eb4=_0x156fe9();return null==_0x199eb4?(_0x33faf5(),_0x4609e4([0x56,0x61,0x6c,0x69,0x64])):_0x4609e4(_0x263d90-_0x199eb4>(0x7753083a^_0x478fa8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x18184f)[_0x4609e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22ccd5=0x536962ba^_0x478fa8;function _0x33faf5(){const _0x2ea674=_0x4609e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9a90(_0x34b939(_0x505c85)),_0x2392b0=_0x245c3f(_0x1b9a90(window[_0x4609e4([0x4d,0x61,0x74,0x68])][_0x4609e4([0x63,0x65,0x69,0x6c])](_0x263d90/_0x22ccd5)));window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4609e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ea674,_0x2392b0);}function _0x156fe9(){const _0x470e04=_0x4609e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9a90(_0x34b939(_0x505c85)),_0x52bf15=window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4609e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x470e04);return _0x52bf15?window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245c3f(_0x52bf15),0x10)*_0x22ccd5:null;}function _0x22e93f(_0x3445f5){return new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32972f,_0x53f7d8)=>{_0x3445f5[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x32972f,_0x53f7d8),window[_0x4609e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53f7d8,0x535e58fa^_0x478fa8);});}}_0x5caa5e[_0x4609e4([0x6f,0x6e])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e6853,_0x36792d)=>{if(_0x36792d[0x0]!=_0x505c85)return _0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36792d[0x1]={..._0x36792d[0x1],[_0x4609e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x434409};},{[_0x4609e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4609e4([0x68,0x69,0x67,0x68])}),_0x5caa5e[_0x4609e4([0x6f,0x6e])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4202d6=>{_0x4fff5f(_0x4202d6[_0x4609e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26d3bc=!0x0,_0x4a2777(_0x4202d6[_0x4609e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4609e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4609e4([0x6c,0x6f,0x77])}),_0x4653fd[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>{_0x26d3bc||_0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b3381(){return _0x5caa5e[_0x4609e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4609e4([0x76,0x69,0x65,0x77])][_0x4609e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4609e4([0x61,0x75,0x74,0x6f]);}function _0xec57bd(){_0x5caa5e[_0x4609e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4609e4([0x76,0x69,0x65,0x77])][_0x4609e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4609e4([0x61,0x75,0x74,0x6f]);}}function _0x393b21(_0x39506f){const _0x17de54=[new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e4838=>setTimeout(_0x1e4838,0x5356b2f6^_0x478fa8)),_0x4653fd[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5866f7=>{let _0x51c7e5=0x0;_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x6f,0x6e])](_0x4609e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4aa38e,_0x86bd5a)=>{_0x86bd5a[0x0][_0x4609e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51c7e5++,_0x51c7e5==(0x535f89d2^_0x478fa8)&&(_0x5866f7(),_0x4aa38e[_0x4609e4([0x6f,0x66,0x66])]());});}))];return window[_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4609e4([0x72,0x61,0x63,0x65])](_0x17de54)[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>_0x39506f);}async function _0x2fe959(){await _0x4653fd,_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5689a2,_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5689a2,_0x5caa5e[_0x4609e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19d9d2(_0x163c8f){const _0x1a3eb4=_0x217fbe();_0x5caa5e[_0x1a3eb4]=_0x4609e4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x163c8f,_0x163c8f!=_0x4609e4([0x56,0x61,0x6c,0x69,0x64])&&_0x2fe959();}function _0x217fbe(){const _0x5f0799=window[_0x4609e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4609e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4609e4([0x6e,0x6f,0x77])]())[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4609e4([0x2e]),'');let _0x234de8=_0x4609e4([0x68]);for(let _0x5d3190=0x0;_0x5d3190<_0x5f0799[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d3190+=0x2){let _0x14acb1=window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0799[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d3190,_0x5d3190+0x2));_0x14acb1>=_0x540aff[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14acb1-=_0x540aff[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x234de8+=_0x540aff[_0x14acb1];}return _0x234de8;}function _0x3906a0(){const _0x114e88=_0x227b39[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e]));if(0x3!=_0x114e88[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cee32(_0x114e88[0x1]);function _0x2cee32(_0x24feaa){const _0x4ab6fe=_0x4fa41a(_0x24feaa);return _0x4ab6fe&&_0x116fa6()?_0x4ab6fe:null;function _0x116fa6(){const _0x5cb300=_0x4ab6fe[_0x4609e4([0x6a,0x74,0x69])],_0x1e2f3d=window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cb300[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cb300[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c72ae={..._0x4ab6fe,[_0x4609e4([0x6a,0x74,0x69])]:_0x5cb300[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cb300[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c72ae[_0x4609e4([0x76,0x63])],_0x34b939(_0x5c72ae)==_0x1e2f3d;}}}async function _0x240ec5(){let _0x2d0c09=!0x0;try{const _0x3883ea=_0x227b39[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e])),[_0x3501c5,_0x4070d8,_0x26a460]=_0x3883ea;return _0x283123(_0x3501c5),await _0x26cff4(_0x3501c5,_0x4070d8,_0x26a460),_0x2d0c09;}catch{return!0x1;}function _0x283123(_0x416e51){const _0x5ac813=_0x4fa41a(_0x416e51);_0x5ac813&&_0x5ac813[_0x4609e4([0x61,0x6c,0x67])]==_0x4609e4([0x45,0x53,0x32,0x35,0x36])||(_0x2d0c09=!0x1);}async function _0x26cff4(_0x166069,_0x1f20af,_0x22b586){const _0x2f83dc=window[_0x4609e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4609e4([0x66,0x72,0x6f,0x6d])](_0x5a458a(_0x22b586),_0x14d54f=>_0x14d54f[_0x4609e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x267d8f=new window[(_0x4609e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4609e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x166069+_0x4609e4([0x2e])+_0x1f20af),_0x1fd0f5=window[_0x4609e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4609e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1fd0f5)return;const _0x8e67f7=await _0x1fd0f5[_0x4609e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4609e4([0x6a,0x77,0x6b]),_0x10710d,{[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x45,0x43,0x44,0x53,0x41]),[_0x4609e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4609e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1fd0f5[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x45,0x43,0x44,0x53,0x41]),[_0x4609e4([0x68,0x61,0x73,0x68])]:{[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8e67f7,_0x2f83dc,_0x267d8f)||(_0x2d0c09=!0x1);}}function _0x4fa41a(_0x2adaf0){return _0x2adaf0[_0x4609e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4609e4([0x65,0x79]))?JSON[_0x4609e4([0x70,0x61,0x72,0x73,0x65])](_0x5a458a(_0x2adaf0)):null;}function _0x5a458a(_0x4d7cf7){return window[_0x4609e4([0x61,0x74,0x6f,0x62])](_0x4d7cf7[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4609e4([0x2b]))[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4609e4([0x2f])));}function _0x34b939(_0x259b7e){let _0x7672b0=0x1505;function _0x1e7227(_0x42972e){for(let _0x107a62=0x0;_0x107a62<_0x42972e[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x107a62++){const _0x287ced=_0x42972e[_0x4609e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x107a62);_0x7672b0=(_0x7672b0<<0x5)+_0x7672b0+_0x287ced,_0x7672b0&=_0x7672b0;}}function _0xe79984(_0x410d8d){Array[_0x4609e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x410d8d)?_0x410d8d[_0x4609e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe79984):_0x410d8d&&typeof _0x410d8d==_0x4609e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4609e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x410d8d)[_0x4609e4([0x73,0x6f,0x72,0x74])]()[_0x4609e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x510566,_0x110a99])=>{_0x1e7227(_0x510566),_0xe79984(_0x110a99);}):_0x1e7227(window[_0x4609e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x410d8d));}return _0xe79984(_0x259b7e),_0x7672b0>>>0x0;}function _0x1b9a90(_0x16b019){return _0x16b019[_0x4609e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4609e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4609e4([0x30]));}function _0x245c3f(_0x33eb50){return _0x33eb50[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4609e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4609e4([0x6a,0x6f,0x69,0x6e])]('');}function _0x5689a2(){}function _0x4609e4(_0x55a1c6){const _0x3ef467=_0x5052;return _0x55a1c6[_0x3ef467(0x210)](_0x371ae2=>String[_0x3ef467(0x1f6)](_0x371ae2))[_0x3ef467(0x1d4)]('');}_0x19d9d2(await _0x8f0904());}(this);}[_0x74c410(0x1f8)](){const _0x4f1e74=_0x74c410,_0xbff8af=this[_0x4f1e74(0x1fe)][_0x4f1e74(0x1ee)][_0x4f1e74(0x21c)];_0xbff8af[_0x4f1e74(0x20c)](_0x4f1e74(0x224))&&_0xbff8af[_0x4f1e74(0x1f5)](_0x4f1e74(0x224),{'allowAttributes':[_0x4f1e74(0x1dd)]}),_0xbff8af[_0x4f1e74(0x20c)](_0x4f1e74(0x20f))&&_0xbff8af[_0x4f1e74(0x1f5)](_0x4f1e74(0x20f),{'allowAttributes':[_0x4f1e74(0x1dd)]});}[_0x74c410(0x1e8)](){const _0x4b1d22=_0x74c410,_0x1d0d87=this[_0x4b1d22(0x1fe)];_0x1d0d87[_0x4b1d22(0x204)][_0x4b1d22(0x1ea)](_0x4b1d22(0x1d9))[_0x4b1d22(0x209)]({'model':_0x4b1d22(0x1dd),'view':_0x4b1d22(0x225)}),_0x1d0d87[_0x4b1d22(0x204)][_0x4b1d22(0x1ea)](_0x4b1d22(0x20b))[_0x4b1d22(0x205)]({'model':{'key':_0x4b1d22(0x1dd),'value':_0x382e5f=>_0x382e5f[_0x4b1d22(0x1e7)](_0x4b1d22(0x225))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x445e92=_0x1d0d87[_0x4b1d22(0x1d5)][_0x4b1d22(0x1e0)](_0x4b1d22(0x211));_0x445e92&&this[_0x4b1d22(0x1f9)](_0x445e92,_0x4b1d22(0x1fa),(_0x1d2635,[_0x4e178e,_0x2b73e0])=>{const _0x336f59=_0x4b1d22;_0x4e178e[_0x336f59(0x218)](_0x336f59(0x1dd),_0x2b73e0);});}[_0x74c410(0x214)](){const _0x29437d=_0x74c410,_0x341fcd=this[_0x29437d(0x1fe)][_0x29437d(0x217)][_0x29437d(0x1e0)](_0x29437d(0x223))||{},_0x5818fd=this[_0x29437d(0x1fe)][_0x29437d(0x217)][_0x29437d(0x1e0)](_0x29437d(0x1da))||'';this[_0x29437d(0x216)]=_0x840eea(_0x1b4f4b[_0x29437d(0x226)],_0x29437d(0x1fd),{..._0x341fcd,'pubkey':_0x5818fd,'ctx-name':_0x29437d(0x1f1)+this[_0x29437d(0x1d8)],'sourceList':'','imgOnly':_0x29437d(0x219),'removeCopyright':_0x29437d(0x219),'localeName':this[_0x29437d(0x1fe)][_0x29437d(0x20e)][_0x29437d(0x1f7)],'externalSourcesEmbedCss':_0x29437d(0x1e3)}),this[_0x29437d(0x216)][_0x29437d(0x1f2)]=_0x298bd1=>{const _0xacafd0=_0x29437d;if(_0xacafd0(0x207)==_0x298bd1)return _0xacafd0(0x222);},_0x1b4f4b[_0x29437d(0x226)][_0x29437d(0x1e4)][_0x29437d(0x1e5)](this[_0x29437d(0x216)]);}[_0x74c410(0x1e6)](){const _0x591409=_0x74c410;this[_0x591409(0x21e)]=_0x840eea(_0x1b4f4b[_0x591409(0x226)],_0x591409(0x206),{'ctx-name':_0x591409(0x1f1)+this[_0x591409(0x1d8)]}),_0x1b4f4b[_0x591409(0x226)][_0x591409(0x1e4)][_0x591409(0x1e5)](this[_0x591409(0x21e)]);}[_0x74c410(0x1fb)](){const _0x7dee32=_0x74c410,_0x514cff=this[_0x7dee32(0x1fe)][_0x7dee32(0x1d5)][_0x7dee32(0x1e0)](_0x7dee32(0x227));_0x514cff&&this[_0x7dee32(0x1f9)](_0x514cff,_0x7dee32(0x1e9),()=>{const _0x109f72=_0x7dee32,_0x16c12e=this[_0x109f72(0x1fe)][_0x109f72(0x1ee)][_0x109f72(0x226)][_0x109f72(0x1e2)][_0x109f72(0x201)]();_0x16c12e&&_0x16c12e[_0x109f72(0x1e7)](_0x109f72(0x1dd))&&this[_0x109f72(0x1fe)][_0x109f72(0x200)][_0x109f72(0x1d7)][_0x109f72(0x1ff)](_0x109f72(0x21d),()=>{const _0x1869f9=_0x109f72;_0x509b29(this[_0x1869f9(0x1fe)],_0x16c12e);});});const _0x524a77=this[_0x7dee32(0x1fe)][_0x7dee32(0x1d5)][_0x7dee32(0x1e0)](_0x7dee32(0x1f0));_0x524a77&&this[_0x7dee32(0x1f9)](_0x524a77,_0x7dee32(0x1e9),()=>{const _0x50b358=_0x7dee32,_0x4cd3cb=this[_0x50b358(0x1fe)][_0x50b358(0x1ee)][_0x50b358(0x226)][_0x50b358(0x1e2)][_0x50b358(0x201)]();_0x4cd3cb&&_0x4cd3cb[_0x50b358(0x1e7)](_0x50b358(0x1dd))&&this[_0x50b358(0x1fe)][_0x50b358(0x200)][_0x50b358(0x1d7)][_0x50b358(0x1ff)](_0x50b358(0x21d),()=>{const _0x47c6af=_0x50b358;_0x509b29(this[_0x47c6af(0x1fe)],_0x4cd3cb);});});}}