@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260104.0 → 0.0.0-nightly-20260105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x48e519,Command as _0x2620ea}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1d3497,IconGooglePhotos as _0x5942b9,IconGoogleDrive as _0x56057f,IconFacebook as _0x31107d,IconDropbox as _0x2f3aa5,IconUploadcareLink as _0x4289ee,IconUploadcareImageUpload as _0x3b224d,IconError as _0x143974,IconUploadcareImageEdit as _0x363f93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2275cd,MenuBarMenuListItemButtonView as _0x38cd89,View as _0x2ead5a,FocusCycler as _0x3bf21c,Dialog as _0x48ed68,DialogViewPosition as _0x4d01a6,SpinnerView as _0x28eff2,IconView as _0xc2d7c6,Notification as _0x5b008b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x11e2cf,DomEmitterMixin as _0x399fb0,global as _0x5539f7,getAncestors as _0x5da6ed,ObservableMixin as _0x3ac6aa,uid as _0x5d43c3,createElement as _0x166c54}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x37bfad}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x255885,info as _0x4ce01d}from'@uploadcare/upload-client';import*as _0x2783d2 from'@uploadcare/file-uploader';var i=function(_0x577728){return _0x577728['Local']='local',_0x577728['URL']='url',_0x577728['Dropbox']='dropbox',_0x577728['GDrive']='gdrive',_0x577728['Facebook']='facebook',_0x577728['GPhotos']='gphotos',_0x577728['OneDrive']='onedrive',_0x577728;}({});function _(_0x30426a,_0x4b9baa,_0x11ae26){const t=_0x30426a['t'],_0x46aa3c=_0x30426a['t'];switch(_0x4b9baa){case i['Local']:return{'text':_0x46aa3c('Insert'===_0x11ae26?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x46aa3c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x11ae26?_0x46aa3c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x46aa3c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x11ae26?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x11ae26?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x11ae26?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x11ae26?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x11ae26?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4b9baa;}}class e extends _0x48e519{['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 _0x31a113=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x85a6cd;for(const _0x11ba53 in _0x31a113){const _0x272edc=_0x11ba53,_0x5da674=_0x31a113[_0x272edc];if('uploadcareLicenseKeyValid'==_0x5da674||'uploadcareLicenseKeyInvalid'==_0x5da674||'uploadcareLicenseKeyExpired'==_0x5da674||'uploadcareLicenseKeyDomainLimit'==_0x5da674||'uploadcareLicenseKeyNotAllowed'==_0x5da674||'uploadcareLicenseKeyEvaluationLimit'==_0x5da674||'uploadcareLicenseKeyTrialLimit'==_0x5da674||'uploadcareLicenseKeyUsageLimit'==_0x5da674){delete _0x31a113[_0x272edc],_0x85a6cd=_0x5da674,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x85a6cd&&_0x31a113['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x85a6cd&&_0x31a113['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x85a6cd&&_0x31a113['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x85a6cd&&_0x31a113['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x85a6cd&&_0x31a113['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x85a6cd&&_0x31a113['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x85a6cd&&_0x31a113['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x312dd1}=this,_0x46e6da=_0x312dd1['commands']['get']('uploadcare');if(!_0x46e6da)return;const _0x5bf5f0=this['_normalizeConfigSourceList'](_0x312dd1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34f787,_0xa34169)=>{const _0x2720c3=this['_getIntegrationKey'](_0xa34169['type']);return _0x34f787[_0x2720c3]||(_0x34f787[_0x2720c3]=[]),_0x34f787[_0x2720c3]['push'](_0xa34169),_0x34f787;},{});_0x312dd1['plugins']['has']('ImageInsertUI')&&_0x312dd1['commands']['get']('uploadcare')&&Object['entries'](_0x5bf5f0)['forEach'](([_0x32439a,_0x401063])=>{_0x312dd1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32439a,'observable':()=>_0x46e6da,'buttonViewCreator':()=>this['_createToolbarButton'](_0x401063),'formViewCreator':()=>this['_createDropdownButtons'](_0x401063),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x401063),'override':'assetManager'!==_0x32439a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3d5e47){const {locale:_0x1bbd07}=this['editor'];return _0x3d5e47['map'](_0x748ab3=>{const _0x1ee471=_(_0x1bbd07,_0x748ab3,'Insert');switch(_0x748ab3){case i['Local']:return{'icon':_0x3b224d,'type':i['Local'],..._0x1ee471};case i['URL']:return{'icon':_0x4289ee,'type':i['URL'],..._0x1ee471};case i['Dropbox']:return{'icon':_0x2f3aa5,'type':i['Dropbox'],..._0x1ee471};case i['Facebook']:return{'icon':_0x31107d,'type':i['Facebook'],..._0x1ee471};case i['GDrive']:return{'icon':_0x56057f,'type':i['GDrive'],..._0x1ee471};case i['GPhotos']:return{'icon':_0x5942b9,'type':i['GPhotos'],..._0x1ee471};case i['OneDrive']:return{'icon':_0x1d3497,'type':i['OneDrive'],..._0x1ee471};}});}['_getIntegrationKey'](_0x354897){switch(_0x354897){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2bce45,_0x5957b1){const _0xdd7662=this['editor'],_0x4197cd=new _0x2bce45(_0xdd7662['locale']),_0x4577bd=_0xdd7662['commands']['get']('uploadcare');return _0x4197cd['bind']('isEnabled')['to'](_0x4577bd),_0x4197cd['on']('execute',()=>{_0x4577bd['execute'](_0x5957b1);}),_0x4197cd;}['_createToolbarButton'](_0x1daf53){const {locale:_0x5bf64a}=this['editor'],_0x97ce7b=this['editor']['plugins']['get']('ImageInsertUI'),_0x444cb4=_0x1daf53[0x0],_0x3c9d0b=this['_createButton'](_0x2275cd,_0x444cb4['type']);return _0x3c9d0b['icon']=_0x444cb4['icon'],_0x3c9d0b['bind']('label')['to'](_0x97ce7b,'isImageSelected',_0x516ba1=>_(_0x5bf64a,_0x444cb4['type'],_0x516ba1?'Replace':'Insert')['text']),_0x3c9d0b['tooltip']=!0x0,_0x3c9d0b;}['_createDropdownButtons'](_0x26ac68){const {locale:_0x125b5c}=this['editor'],_0x3b7898=this['editor']['plugins']['get']('ImageInsertUI');return _0x26ac68['map'](_0x39d475=>{const _0x518331=this['_createButton'](_0x2275cd,_0x39d475['type']);return _0x518331['withText']=!0x0,_0x518331['icon']=_0x39d475['icon'],_0x518331['bind']('label')['to'](_0x3b7898,'isImageSelected',_0x210531=>_(_0x125b5c,_0x39d475['type'],_0x210531?'Replace':'Insert')['text']),_0x518331;});}['_createMenuBarButtons'](_0x1efb48){return _0x1efb48['map'](_0x2c7fd5=>{const _0x32f7a2=this['_createButton'](_0x38cd89,_0x2c7fd5['type']);return _0x32f7a2['icon']=_0x2c7fd5['icon'],_0x32f7a2['label']=_0x2c7fd5['shortText'],_0x32f7a2;});}}class F extends _0x2ead5a{['focusTracker'];['focusCycler'];constructor(_0x1b0cec){super(_0x1b0cec),this['focusTracker']=new _0x11e2cf(),this['focusCycler']=new _0x3bf21c({'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(_0x21c027,_0x5907ca){super(_0x21c027),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-'+_0x5907ca}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3f44fc,_0x1f2304){const _0x50aa61=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x510f82=>_0x510f82<=_0x1f2304)['map'](_0x564099=>_0x3f44fc['replace'](/\/$/,'')+'/-/resize/'+_0x564099+'x/\x20'+_0x564099+'w');return{'imageFallbackUrl':_0x3f44fc,'imageSources':[{'srcset':_0x50aa61['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1f2304+'px)\x20100vw,\x20'+_0x1f2304+'px','type':'image/webp'}]};}function S(_0x2433e6,_0x2afad9,_0x494212){const _0x2b9a63=_0x2433e6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b9a63?parseInt(_0x2b9a63[0x1],0xa):_0x2afad9,'height':_0x2b9a63?parseInt(_0x2b9a63[0x2],0xa):_0x494212};}function p(_0x3266d8,_0x175bb0){const _0x158137=new(_0x399fb0())(),_0x5644a1=_0x3266d8['plugins']['get']('ImageUtils'),_0x29109d=_0x3266d8['editing']['mapper']['toViewElement'](_0x175bb0),_0xa5226b=_0x5644a1['findViewImgElement'](_0x29109d),_0x34ccfc=_0x3266d8['editing']['view']['domConverter']['viewToDom'](_0xa5226b),_0x203e64=_0x175bb0['getAttribute']('width'),_0xf5d9b4=_0x175bb0['getAttribute']('height'),_0x4c6a17='image-processing';_0x3266d8['editing']['view']['change'](_0x4d3ec1=>{_0x4d3ec1['addClass'](_0x4c6a17,_0x29109d),_0x4d3ec1['setStyle']('aspect-ratio',_0x203e64+'/'+_0xf5d9b4,_0xa5226b);}),_0x158137['listenTo'](_0x34ccfc,'load',()=>{_0x158137['stopListening'](_0x34ccfc,'load'),_0x3266d8['editing']['view']['change'](_0x4e6263=>{_0x4e6263['removeClass'](_0x4c6a17,_0x29109d),_0x4e6263['removeStyle']('aspect-ratio',_0xa5226b);});});}function G(_0x37fb4d){if(Array['isArray'](_0x37fb4d)){const _0xbbf127=_0x37fb4d['map'](G);return _0x243c5=>_0xbbf127['some'](_0x2a180e=>_0x2a180e(_0x243c5));}if('origin'==_0x37fb4d){const _0x961040=_0x5539f7['window']['location']['origin'];return _0x4155cd=>new URL(_0x4155cd,_0x5539f7['document']['baseURI'])['origin']==_0x961040;}return'function'==typeof _0x37fb4d?_0x37fb4d:_0x37fb4d instanceof RegExp?_0x53fe3e=>!(!_0x53fe3e['match'](_0x37fb4d)&&!_0x53fe3e['replace'](/^https?:\/\//,'')['match'](_0x37fb4d)):()=>!0x1;}function A(_0x3e37e5,_0x42307b){return _0x5da6ed(_0x3e37e5['target'])['includes'](_0x42307b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3ac6aa(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x44590c,_0x5cd7b1,_0x76ec6){super(),this['_editor']=_0x44590c,this['_editing']=_0x5cd7b1,this['_dialog']=_0x44590c['plugins']['get'](_0x48ed68),this['_api']=_0x5cd7b1['ctxElement']['getAPI'](),this['_type']=_0x76ec6,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:_0x202be3,model:_0x20157b}=this['_editor'],_0x5b27c0=_0x20157b['document']['selection']['getSelectedElement'](),_0x1ba6ea=_0x5b27c0&&(_0x5b27c0['is']('element','imageBlock')||_0x5b27c0['is']('element','imageInline'));this['_formView']=new x(_0x202be3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3b224d,'title':_(_0x202be3,this['_type'],_0x1ba6ea?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4d01a6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x212bec=>!A(_0x212bec,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x502c10}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ff5ac=>{const _0x5f0570=_0x502c10['length'];for(const _0x11aa79 of _0x502c10){const _0x3b56b5=_0x11aa79===_0x502c10[_0x5f0570-0x1],{cdnUrl:_0x432ca3,fileInfo:_0x113907}=_0x11aa79;if(!_0x432ca3||!_0x113907)continue;const {width:_0x174d63,height:_0x2bdc7b}=_0x113907['imageInfo'],_0x428ccb=S(_0x432ca3,_0x174d63,_0x2bdc7b),_0x1585bd=C(_0x432ca3,_0x428ccb['width']),_0x315a46={'id':_0x113907['uuid'],'type':'image','attributes':{'imageDimension':_0x428ccb,..._0x1585bd}};this['_insertAsset'](_0x315a46,_0x3b56b5,_0x2ff5ac);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x32f790=>{'idle'===_0x32f790['detail']['status']&&!_0x32f790['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x576b5b,_0x586b1e,_0x4c4537){const _0xa69d18=this['_editor']['model']['document']['selection'],_0x5766c9=_0xa69d18['getSelectedElement'](),_0x515b9f=!(!_0x5766c9||!_0x5766c9['is']('element','imageInline'));_0x4c4537['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x576b5b,_0x515b9f),_0x586b1e||_0x4c4537['setSelection'](_0xa69d18['getLastPosition']());}['_insertImage'](_0x29f0e7,_0x3a4a60){const _0xd08487=this['_editor'],{imageDimension:_0xc0bf74,imageFallbackUrl:_0x438b21,imageSources:_0x5a234a}=_0x29f0e7['attributes'];_0xd08487['execute']('insertImage',{'imageType':_0x3a4a60?'imageInline':null,'source':{'uploadcareImageId':_0x29f0e7['id'],'src':_0x438b21,'sources':_0x5a234a,..._0xc0bf74}});}}class w extends _0x2620ea{['_editing'];['_controller']=null;static get['requires'](){return[_0x48ed68,o];}constructor(_0x3ba133){super(_0x3ba133),this['_editing']=_0x3ba133['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x192f2e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x192f2e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x23b2e8,..._0x5e95ff}){return _0x255885(_0x23b2e8,_0x5e95ff);}static['getInfo'](_0xd55ad2,_0x32d3bd){return _0x4ce01d(_0xd55ad2,_0x32d3bd);}}class f extends _0x48e519{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x37bfad,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e0126=this['editor'];if(!!!_0x2e0126['config']['get']('uploadcare'))return;_0x2e0126['plugins']['get'](_0x37bfad)['createUploadAdapter']=_0x1d3861=>new k(_0x1d3861,_0x2e0126),_0x2e0126['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x276447,{imageElement:_0xfa6c97,data:_0x32c323})=>{_0x2e0126['model']['change'](_0x53f4fa=>{_0x53f4fa['setAttribute']('uploadcareImageId',_0x32c323['uploadcareImageId'],_0xfa6c97);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x844a27,_0x127709){this['loader']=_0x844a27,this['editor']=_0x127709,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x29896f=await this['loader']['file'];return j['upload']({'file':_0x29896f,'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':_0x3ccee2=>{_0x3ccee2&&_0x3ccee2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ccee2['value']);}})['then'](async _0x310bf5=>{const {imageFallbackUrl:_0x111489,imageSources:_0x444e87}=C(_0x310bf5['cdnUrl'],_0x310bf5['imageInfo']['width']);return{'uploadcareImageId':_0x310bf5['uuid'],'default':_0x111489,'sources':_0x444e87};})['catch'](()=>{const _0x4fa1ad=t('Cannot\x20upload\x20file:')+('\x20'+_0x29896f['name']+'.');return Promise['reject'](_0x4fa1ad);});}['abort'](){this['controller']['abort']();}}class o extends _0x48e519{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x48ed68];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xd8c17a){super(_0xd8c17a),this['ucContextId']=_0x5d43c3();}['init'](){const _0x57b33c=this['editor'];_0x57b33c['commands']['add']('uploadcare',new w(_0x57b33c));}['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 _0x32e107=_0x5539f7['document']['querySelector']('input[uploadcare-file-input]');_0x32e107&&_0x32e107['remove']();}),async function(_0x725e01){const _0xf61d7d=_0x3334f7([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]),_0x163820=0x535f8c3a,_0x2eca51=0x5358f1e2^_0x163820,_0x44c33d=window[_0x3334f7([0x44,0x61,0x74,0x65])][_0x3334f7([0x6e,0x6f,0x77])](),_0x370a22=_0x725e01[_0x3334f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc37b62=new window[(_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x254ad5=>{_0x370a22[_0x3334f7([0x6f,0x6e,0x63,0x65])](_0x3334f7([0x72,0x65,0x61,0x64,0x79]),_0x254ad5);}),_0x395e69={[_0x3334f7([0x6b,0x74,0x79])]:_0x3334f7([0x45,0x43]),[_0x3334f7([0x75,0x73,0x65])]:_0x3334f7([0x73,0x69,0x67]),[_0x3334f7([0x63,0x72,0x76])]:_0x3334f7([0x50,0x2d,0x32,0x35,0x36]),[_0x3334f7([0x78])]:_0x3334f7([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]),[_0x3334f7([0x79])]:_0x3334f7([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]),[_0x3334f7([0x61,0x6c,0x67])]:_0x3334f7([0x45,0x53,0x32,0x35,0x36])},_0x516662=_0x370a22[_0x3334f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3334f7([0x67,0x65,0x74])](_0x3334f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a75a1(){let _0x1d5ba9,_0x3699ac=null,_0x511d30=null;try{if(_0x516662==_0x3334f7([0x47,0x50,0x4c]))return _0x3334f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d5ba9=_0x43c5f5(),!_0x1d5ba9)return _0x3334f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d5ba9[_0x3334f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x511d30=_0x359eac(_0x1d5ba9[_0x3334f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d5ba9[_0x3334f7([0x6a,0x74,0x69])])),await _0x4dde1a()?_0x486146()?_0x123671()?_0x3334f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x528516()?(_0x1d5ba9[_0x3334f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3334f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3699ac=_0x1de5c3(_0x3334f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d5ba9[_0x3334f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3334f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3699ac=_0x1de5c3(_0x3334f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a7bf3()):_0x3334f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3334f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3334f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3334f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x123671(){const _0x262ae8=[_0x3334f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3334f7([0x74,0x72,0x69,0x61,0x6c])][_0x3334f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5ba9[_0x3334f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44c33d/0x3e8:0xe10*_0x2eca51;return _0x1d5ba9[_0x3334f7([0x65,0x78,0x70])]<_0x262ae8;}function _0x486146(){const _0x574048=_0x1d5ba9[_0x3334f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x574048&&(!!_0x574048[_0x3334f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3334f7([0x2a]))||!!_0x574048[_0x3334f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3334f7([0x55,0x50,0x4c,0x43])));}function _0x528516(){const _0x341825=_0x1d5ba9[_0x3334f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x341825||0x0==_0x341825[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e86ee}=new URL(window[_0x3334f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x341825[_0x3334f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e86ee))return!0x0;const _0x44c41b=_0x4e86ee[_0x3334f7([0x73,0x70,0x6c,0x69,0x74])](_0x3334f7([0x2e]));return _0x341825[_0x3334f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ab055=>_0x1ab055[_0x3334f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3334f7([0x2a])))[_0x3334f7([0x6d,0x61,0x70])](_0x43eaf6=>_0x43eaf6[_0x3334f7([0x73,0x70,0x6c,0x69,0x74])](_0x3334f7([0x2e])))[_0x3334f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52e78f=>_0x52e78f[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44c41b[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3334f7([0x6d,0x61,0x70])](_0x4ea7a6=>Array(_0x44c41b[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ea7a6[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3334f7([0x66,0x69,0x6c,0x6c])](_0x4ea7a6[0x0]===_0x3334f7([0x2a])?_0x3334f7([0x2a]):'')[_0x3334f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ea7a6))[_0x3334f7([0x73,0x6f,0x6d,0x65])](_0x3f5e12=>_0x44c41b[_0x3334f7([0x65,0x76,0x65,0x72,0x79])]((_0x59cd2d,_0x58e861)=>_0x3f5e12[_0x58e861]===_0x59cd2d||_0x3f5e12[_0x58e861]===_0x3334f7([0x2a])));}function _0x3a7bf3(){return _0x3699ac&&_0x511d30?new window[(_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28be24,_0x1e40f7)=>{_0x3699ac[_0x3334f7([0x74,0x68,0x65,0x6e])](_0x28be24,_0x1e40f7),_0x511d30[_0x3334f7([0x74,0x68,0x65,0x6e])](_0x366fb1=>{_0x366fb1!=_0x3334f7([0x56,0x61,0x6c,0x69,0x64])&&_0x28be24(_0x366fb1);},_0x1e40f7);}):_0x3699ac||_0x511d30||_0x3334f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x359eac(_0x34f3a5,_0x109143){return new window[(_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41deb9=>{if(_0x1e11b2())return _0x41deb9(_0x3334f7([0x56,0x61,0x6c,0x69,0x64]));_0x589c53(),_0x370a22[_0x3334f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3334f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x243049=!0x1;const _0x419068=_0x5d43c3();function _0x5a50ff(_0x568862){return!!_0x568862&&(typeof _0x568862===_0x3334f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x568862===_0x3334f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x568862[_0x3334f7([0x74,0x68,0x65,0x6e])]===_0x3334f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x568862[_0x3334f7([0x63,0x61,0x74,0x63,0x68])]===_0x3334f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb97c17(_0x512934){_0x357031(_0x512934)[_0x3334f7([0x74,0x68,0x65,0x6e])](_0x4674df=>{if(!_0x4674df||_0x4674df[_0x3334f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3334f7([0x6f,0x6b]))return _0x3334f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f6a3c(_0xa0aa29(_0x419068+_0x109143))!=_0x4674df[_0x3334f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3334f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3334f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3334f7([0x74,0x68,0x65,0x6e])](_0x4433d4=>(_0x71a4c7(),_0x4433d4),()=>{const _0x26e4ab=_0x40ebc7();return null==_0x26e4ab?(_0x71a4c7(),_0x3334f7([0x56,0x61,0x6c,0x69,0x64])):_0x3334f7(_0x44c33d-_0x26e4ab>(0x7753083a^_0x163820)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3334f7([0x74,0x68,0x65,0x6e])](_0x41deb9)[_0x3334f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41deb9(_0x3334f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x142559=0x536962ba^_0x163820;function _0x71a4c7(){const _0x10fe7a=_0x3334f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f6a3c(_0xa0aa29(_0x34f3a5)),_0x530959=_0x35f830(_0x2f6a3c(window[_0x3334f7([0x4d,0x61,0x74,0x68])][_0x3334f7([0x63,0x65,0x69,0x6c])](_0x44c33d/_0x142559)));window[_0x3334f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3334f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10fe7a,_0x530959);}function _0x40ebc7(){const _0x50733d=_0x3334f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f6a3c(_0xa0aa29(_0x34f3a5)),_0x5255ce=window[_0x3334f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3334f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50733d);return _0x5255ce?window[_0x3334f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35f830(_0x5255ce),0x10)*_0x142559:null;}function _0x357031(_0x42cdbe){return new window[(_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ee6a,_0x343cca)=>{_0x42cdbe[_0x3334f7([0x74,0x68,0x65,0x6e])](_0x26ee6a,_0x343cca),window[_0x3334f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x343cca,0x535e58fa^_0x163820);});}}_0x370a22[_0x3334f7([0x6f,0x6e])](_0x3334f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e1200,_0x473a83)=>{if(_0x473a83[0x0]!=_0x34f3a5)return _0x41deb9(_0x3334f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x473a83[0x1]={..._0x473a83[0x1],[_0x3334f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x419068};},{[_0x3334f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3334f7([0x68,0x69,0x67,0x68])}),_0x370a22[_0x3334f7([0x6f,0x6e])](_0x3334f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4386b8=>{_0x5a50ff(_0x4386b8[_0x3334f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x243049=!0x0,_0xb97c17(_0x4386b8[_0x3334f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3334f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3334f7([0x6c,0x6f,0x77])}),_0xc37b62[_0x3334f7([0x74,0x68,0x65,0x6e])](()=>{_0x243049||_0x41deb9(_0x3334f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e11b2(){return _0x370a22[_0x3334f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3334f7([0x76,0x69,0x65,0x77])][_0x3334f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3334f7([0x61,0x75,0x74,0x6f]);}function _0x589c53(){_0x370a22[_0x3334f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3334f7([0x76,0x69,0x65,0x77])][_0x3334f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3334f7([0x61,0x75,0x74,0x6f]);}}function _0x1de5c3(_0x5f31f9){const _0x3acfbc=[new window[(_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567395=>setTimeout(_0x567395,0x5356b2f6^_0x163820)),_0xc37b62[_0x3334f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16641f=>{let _0x483539=0x0;_0x370a22[_0x3334f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3334f7([0x6f,0x6e])](_0x3334f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4eb50d,_0x45aaae)=>{_0x45aaae[0x0][_0x3334f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x483539++,_0x483539==(0x535f89d2^_0x163820)&&(_0x16641f(),_0x4eb50d[_0x3334f7([0x6f,0x66,0x66])]());});}))];return window[_0x3334f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3334f7([0x72,0x61,0x63,0x65])](_0x3acfbc)[_0x3334f7([0x74,0x68,0x65,0x6e])](()=>_0x5f31f9);}async function _0x59f9fd(){await _0xc37b62,_0x370a22[_0x3334f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3334f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1029,_0x370a22[_0x3334f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3334f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1029,_0x370a22[_0x3334f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3334f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x557361(_0x2fdb10){const _0x1bf3f6=_0x3c0693();_0x370a22[_0x1bf3f6]=_0x3334f7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fdb10,_0x2fdb10!=_0x3334f7([0x56,0x61,0x6c,0x69,0x64])&&_0x59f9fd();}function _0x3c0693(){const _0x1f6118=window[_0x3334f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3334f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3334f7([0x6e,0x6f,0x77])]())[_0x3334f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3334f7([0x2e]),'');let _0x2ea870=_0x3334f7([0x68]);for(let _0x1e9adc=0x0;_0x1e9adc<_0x1f6118[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e9adc+=0x2){let _0x4ad231=window[_0x3334f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6118[_0x3334f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e9adc,_0x1e9adc+0x2));_0x4ad231>=_0xf61d7d[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ad231-=_0xf61d7d[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea870+=_0xf61d7d[_0x4ad231];}return _0x2ea870;}function _0x43c5f5(){const _0x571bf7=_0x516662[_0x3334f7([0x73,0x70,0x6c,0x69,0x74])](_0x3334f7([0x2e]));if(0x3!=_0x571bf7[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1432d9(_0x571bf7[0x1]);function _0x1432d9(_0x31b8d7){const _0xe5b836=_0x57b752(_0x31b8d7);return _0xe5b836&&_0x336c69()?_0xe5b836:null;function _0x336c69(){const _0xa4d5a7=_0xe5b836[_0x3334f7([0x6a,0x74,0x69])],_0x2fc3eb=window[_0x3334f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa4d5a7[_0x3334f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa4d5a7[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53278f={..._0xe5b836,[_0x3334f7([0x6a,0x74,0x69])]:_0xa4d5a7[_0x3334f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa4d5a7[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53278f[_0x3334f7([0x76,0x63])],_0xa0aa29(_0x53278f)==_0x2fc3eb;}}}async function _0x4dde1a(){let _0x1e5878=!0x0;try{const _0x139f0d=_0x516662[_0x3334f7([0x73,0x70,0x6c,0x69,0x74])](_0x3334f7([0x2e])),[_0x496104,_0x230a9f,_0x39aa8c]=_0x139f0d;return _0x199fae(_0x496104),await _0x5f3f35(_0x496104,_0x230a9f,_0x39aa8c),_0x1e5878;}catch{return!0x1;}function _0x199fae(_0x5daa1f){const _0xf1dc00=_0x57b752(_0x5daa1f);_0xf1dc00&&_0xf1dc00[_0x3334f7([0x61,0x6c,0x67])]==_0x3334f7([0x45,0x53,0x32,0x35,0x36])||(_0x1e5878=!0x1);}async function _0x5f3f35(_0x52429a,_0x11053b,_0x257690){const _0x22238c=window[_0x3334f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3334f7([0x66,0x72,0x6f,0x6d])](_0x2f6029(_0x257690),_0x10bcff=>_0x10bcff[_0x3334f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x376d05=new window[(_0x3334f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3334f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52429a+_0x3334f7([0x2e])+_0x11053b),_0x5a9bf7=window[_0x3334f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3334f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a9bf7)return;const _0x1fde57=await _0x5a9bf7[_0x3334f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3334f7([0x6a,0x77,0x6b]),_0x395e69,{[_0x3334f7([0x6e,0x61,0x6d,0x65])]:_0x3334f7([0x45,0x43,0x44,0x53,0x41]),[_0x3334f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3334f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3334f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a9bf7[_0x3334f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3334f7([0x6e,0x61,0x6d,0x65])]:_0x3334f7([0x45,0x43,0x44,0x53,0x41]),[_0x3334f7([0x68,0x61,0x73,0x68])]:{[_0x3334f7([0x6e,0x61,0x6d,0x65])]:_0x3334f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fde57,_0x22238c,_0x376d05)||(_0x1e5878=!0x1);}}function _0x57b752(_0x3f166c){return _0x3f166c[_0x3334f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3334f7([0x65,0x79]))?JSON[_0x3334f7([0x70,0x61,0x72,0x73,0x65])](_0x2f6029(_0x3f166c)):null;}function _0x2f6029(_0x461010){return window[_0x3334f7([0x61,0x74,0x6f,0x62])](_0x461010[_0x3334f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3334f7([0x2b]))[_0x3334f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3334f7([0x2f])));}function _0xa0aa29(_0x3d2d0d){let _0x4f8c28=0x1505;function _0x228e98(_0x47b2c8){for(let _0x53888e=0x0;_0x53888e<_0x47b2c8[_0x3334f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53888e++){const _0xdc9043=_0x47b2c8[_0x3334f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53888e);_0x4f8c28=(_0x4f8c28<<0x5)+_0x4f8c28+_0xdc9043,_0x4f8c28&=_0x4f8c28;}}function _0x1ec856(_0xd0719d){Array[_0x3334f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd0719d)?_0xd0719d[_0x3334f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ec856):_0xd0719d&&typeof _0xd0719d==_0x3334f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3334f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd0719d)[_0x3334f7([0x73,0x6f,0x72,0x74])]()[_0x3334f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x277112,_0x18ff3b])=>{_0x228e98(_0x277112),_0x1ec856(_0x18ff3b);}):_0x228e98(window[_0x3334f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd0719d));}return _0x1ec856(_0x3d2d0d),_0x4f8c28>>>0x0;}function _0x2f6a3c(_0x55dfe3){return _0x55dfe3[_0x3334f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3334f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3334f7([0x30]));}function _0x35f830(_0x1a8085){return _0x1a8085[_0x3334f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3334f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3334f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f1029(){}function _0x3334f7(_0x109094){return _0x109094['map'](_0x2300d1=>String['fromCharCode'](_0x2300d1))['join']('');}_0x557361(await _0x1a75a1());}(this);}['_initSchema'](){const _0x170246=this['editor']['model']['schema'];_0x170246['isRegistered']('imageBlock')&&_0x170246['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x170246['isRegistered']('imageInline')&&_0x170246['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5cbbb9=this['editor'];_0x5cbbb9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5cbbb9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x8b3081=>_0x8b3081['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5be9b0=_0x5cbbb9['commands']['get']('replaceImageSource');_0x5be9b0&&this['listenTo'](_0x5be9b0,'cleanupImage',(_0x26761a,[_0x2c560a,_0x182b81])=>{_0x2c560a['removeAttribute']('uploadcareImageId',_0x182b81);});}['_initConfig'](){const _0x49c11f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x52a58a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x166c54(_0x5539f7['document'],'uc-config',{..._0x49c11f,'pubkey':_0x52a58a,'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']=_0x4dde85=>{if('closeMax'==_0x4dde85)return'#uc-icon-arrow-down';},_0x5539f7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x166c54(_0x5539f7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5539f7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x8933b3=this['editor']['commands']['get']('insertImage');_0x8933b3&&this['listenTo'](_0x8933b3,'execute',()=>{const _0x531c09=this['editor']['model']['document']['selection']['getSelectedElement']();_0x531c09&&_0x531c09['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x531c09);});});const _0x685871=this['editor']['commands']['get']('uploadcareImageReplace');_0x685871&&this['listenTo'](_0x685871,'execute',()=>{const _0x427eb5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x427eb5&&_0x427eb5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x427eb5);});});}}class tt extends _0x48e519{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38872e){super(_0x38872e),_0x38872e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2783d2['defineComponents'](_0x2783d2),this['_defineLocale']();}['_defineLocale'](){const _0x534716=this['editor']['config']['get']('uploadcare.locale'),_0x3ed037=this['editor']['locale']['contentLanguage'];_0x534716&&_0x2783d2['defineLocale'](_0x3ed037,_0x534716);}}class ii extends _0x2ead5a{constructor(_0x22ee79){super(_0x22ee79);const t=_0x22ee79['t'],_0x3274d4=this['bindTemplate'],_0x27b944=new _0x28eff2();_0x27b944['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':[_0x27b944,{'text':_0x3274d4['to']('imageUploadProgress',_0x2fa7f4=>t('Loading\x20image...')+'\x20('+(_0x2fa7f4||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 _0x2ead5a{constructor(_0x51b019){super(_0x51b019);const t=_0x51b019['t'];this['set']('errorType',null);const _0x48b81f=new _0x2275cd(_0x51b019);_0x48b81f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x48b81f['withText']=!0x0,_0x48b81f['class']='ck-button-action',_0x48b81f['on']('execute',()=>{this['fire']('retry');}),_0x48b81f['bind']('isVisible')['to'](this,'errorType',_0x2e8fcb=>'NotFound'!==_0x2e8fcb);const _0x323af2=new _0xc2d7c6();_0x323af2['content']=_0x143974,_0x323af2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1dafc5=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':[_0x323af2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1dafc5['to']('errorType',_0x1b9e63=>t('NotFound'!==_0x1b9e63?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x48b81f]},{'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 _0x2ead5a{constructor(_0x3cc423,_0x5a3536){super(_0x3cc423);const _0x24dc68=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5a3536,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x24dc68['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x574f77,_0x6bb7f4,_0x39c393){super(_0x574f77),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x574f77),this['_errorView']=new ti(_0x574f77),this['_editingView']=new ei(_0x574f77,_0x39c393),this['_focusableView']=new _0x2ead5a(_0x574f77),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x6bb7f4),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'],_0x59d59b=>{this['_addUploadcareImageEditorListeners'](_0x59d59b);});}),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'](_0x4b9e71,_0x100e85){const _0x2c1367='uc-cloud-image-editor',_0x9ce36e=_0x4b9e71['querySelector'](_0x2c1367);if(_0x9ce36e)return _0x100e85(_0x9ce36e);const _0x437ff2=new MutationObserver(_0xb46d55=>{const _0x234cbe=_0xb46d55['filter'](_0x111a8c=>_0x111a8c['target']===_0x4b9e71&&_0x111a8c['addedNodes']['length']>0x0&&_0x111a8c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c1367);_0x234cbe['length']&&(_0x437ff2['disconnect'](),_0x100e85(_0x234cbe[0x0]['addedNodes'][0x0]));});_0x437ff2['observe'](_0x4b9e71,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x276dbc){_0x276dbc['addEventListener']('apply',_0x41af7c=>{this['fire']('apply',{'imageSrc':_0x41af7c['detail']['cdnUrl']});}),_0x276dbc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3ac6aa(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d7e29,_0xfb7ede,_0x1e589c){super(),this['_editor']=_0x3d7e29,this['_dialog']=_0xfb7ede,this['_imageElement']=_0x1e589c,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 _0x30ab98=this['_imageElement'],_0x41ea3b=_0x30ab98['getAttribute']('uploadcareImageId'),_0x44e536=_0x30ab98['getAttribute']('src');if(_0x41ea3b)await this['_loadImageInfo'](_0x41ea3b,_0x44e536);else{if(this['_imageCache']['has'](_0x44e536)){const _0x4e86e4=this['_imageCache']['get'](_0x44e536);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e86e4['url'],this['imageDimension']=_0x4e86e4['dimension'],this['imageId']=_0x4e86e4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f7f1f}=this['_editor'],t=_0x4f7f1f['t'],_0x465f96=new X(_0x4f7f1f,this['imageStatus'],this['_attributes']);_0x465f96['bind']('status')['to'](this,'imageStatus'),_0x465f96['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x465f96['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x465f96['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x465f96,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x363f93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x465f96,'position':_0x4d01a6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x465f96['focus']();},'onHide':()=>{_0x465f96['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ac2d3=>!A(_0x2ac2d3,_0x465f96['element'])}});}['_loadImageInfo'](_0x47cbcf,_0x1387b8){return j['getInfo'](_0x47cbcf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4db56b=>{const {width:_0x5ee2d5,height:_0x18888}=_0x4db56b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1387b8,this['imageDimension']={'width':_0x5ee2d5,'height':_0x18888},this['imageId']=_0x47cbcf;})['catch'](_0x58d81a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58d81a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5ae173,_0xc907c3){return this['_getImageAsFile'](_0x5ae173)['then'](_0x370f2a=>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':_0xc907c3['signal'],'file':_0x370f2a,'onProgress':_0x17998d=>{_0x17998d&&_0x17998d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x17998d['value']));}}))['then'](_0x163ca9=>{const {width:_0x4934eb,height:_0x1c4d03}=_0x163ca9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x163ca9['cdnUrl'],this['imageDimension']={'width':_0x4934eb,'height':_0x1c4d03},this['imageId']=_0x163ca9['uuid'],this['imageUploadProgress']=null;const _0x4ab270=_0x5ae173['getAttribute']('src');this['_imageCache']['set'](_0x4ab270,{'id':_0x163ca9['uuid'],'url':_0x163ca9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb1d52b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb1d52b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29a239,_0x5a1c7a){_0x29a239['on']('apply',(_0x4d54fb,_0x64713b)=>{this['_replaceImage'](_0x5a1c7a,_0x64713b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29a239['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29a239['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x586dd0,_0x305302,_0x280cde){const _0x3259d7=this['_editor'],{width:_0x1e9ff4,height:_0x2da814}=S(_0x305302,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x37367c,imageSources:_0x45d706}=C(_0x305302,_0x1e9ff4);_0x3259d7['model']['change'](_0x56cd96=>{if('$graveyard'===_0x586dd0['root']['rootName']){_0x3259d7['execute']('insertImage',{'imageType':_0x586dd0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x586dd0['getAttributes']()),'uploadcareImageId':_0x280cde,'src':_0x37367c,'sources':_0x45d706,'width':_0x1e9ff4,'height':_0x2da814}});const _0x1ae8d9=_0x586dd0['getChildren']();_0x586dd0=_0x3259d7['model']['document']['selection']['getSelectedElement']();for(const _0x44d7c8 of _0x1ae8d9)_0x56cd96['append'](_0x56cd96['cloneElement'](_0x44d7c8),_0x586dd0);}else _0x56cd96['setSelection'](_0x586dd0,'on'),_0x3259d7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x586dd0['getAttributes']()),'uploadcareImageId':_0x280cde,'src':_0x37367c,'sources':_0x45d706,'width':_0x1e9ff4,'height':_0x2da814},_0x586dd0);_0x56cd96['setSelection'](_0x586dd0,'on');});}async['_getImageAsFile'](_0x12badc){const _0xa5db1c=_0x5539f7['window'],_0x87d504=_0x5539f7['document']['location']['href'],_0x1c17aa=new _0xa5db1c['URL'](_0x12badc['getAttribute']('src'),_0x87d504);if('data:'===_0x1c17aa['protocol']){const _0x21d95c=_0x1c17aa['href']['split'](','),_0x273745=_0x21d95c[0x0]['match'](/:(.*?);/)[0x1],_0x4eb6db=_0x273745['split']('/')[0x1],_0x4a1504=_0xa5db1c['atob'](_0x21d95c[_0x21d95c['length']-0x1]);let _0x444bc6=_0x4a1504['length'];const _0xce4f4e=new _0xa5db1c['Uint8Array'](_0x444bc6);for(;_0x444bc6--;)_0xce4f4e[_0x444bc6]=_0x4a1504['charCodeAt'](_0x444bc6);return new _0xa5db1c['File']([_0xce4f4e],'image.'+_0x4eb6db,{'type':_0x273745});}const _0x28e00d=_0x1c17aa['href']['split']('/'),_0xc83798=_0x28e00d[_0x28e00d['length']-0x1],_0x3e12b7=_0xc83798['split']('.')[0x1];return _0xa5db1c['fetch'](_0x1c17aa['href'])['then'](_0x4dac87=>_0x4dac87['clone']()['blob']())['then'](_0x27350c=>new _0xa5db1c['File']([_0x27350c],_0xc83798,{'type':'image/'+_0x3e12b7}));}}class O extends _0x2620ea{['imageEditController'];static get['requires'](){return[_0x48ed68];}['_isEditable'];constructor(_0x397643){super(_0x397643),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x35bad5){const _0x4f6db2=G(_0x35bad5);return _0x3af185=>!(!_0x3af185||!_0x3af185['is']('element','imageBlock')&&!_0x3af185['is']('element','imageInline'))&&(!!_0x3af185['hasAttribute']('uploadcareImageId')||!!_0x3af185['hasAttribute']('src')&&_0x4f6db2(_0x3af185['getAttribute']('src')));}(_0x397643['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2ca407=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2ca407);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25772a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25772a&&(_0x25772a['is']('element','imageBlock')||_0x25772a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x48ed68),_0x25772a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2620ea{['refresh'](){const _0x525906=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x525906&&(_0x525906['is']('element','imageBlock')||_0x525906['is']('element','imageInline')));}['execute'](_0x2e0c78){const _0x4fa4d8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x110d03=>{_0x110d03['setAttributes'](_0x2e0c78,_0x4fa4d8),_0x110d03['removeAttribute']('srcset',_0x4fa4d8),_0x110d03['removeAttribute']('sizes',_0x4fa4d8);});}}class m extends _0x48e519{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5b008b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb1e5be}=this;_0xb1e5be['commands']['add']('uploadcareImageEdit',new O(_0xb1e5be)),_0xb1e5be['commands']['add']('uploadcareImageReplace',new R(_0xb1e5be));}}class g extends _0x48e519{['_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 _0x1df322=this['editor'];_0x1df322['ui']['componentFactory']['add']('uploadcareImageEdit',_0x15f617=>{const _0x18fa6b=_0x1df322['commands']['get']('uploadcareImageEdit'),_0x2141e4=new _0x2275cd(_0x15f617),t=_0x15f617['t'];return _0x2141e4['set']({'icon':_0x363f93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2141e4['bind']('isEnabled')['to'](_0x18fa6b),_0x2141e4['bind']('isOn')['to'](_0x18fa6b,'isActive'),this['listenTo'](_0x2141e4,'execute',()=>{_0x1df322['execute']('uploadcareImageEdit'),_0x1df322['editing']['view']['focus']();}),_0x2141e4;}),this['_initConfig']();}['_initConfig'](){const _0x32eb73=_0x166c54(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x32eb73),this['listenTo'](this['editor'],'destroy',()=>{_0x32eb73['remove']();});}}class et extends _0x48e519{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};
|
|
23
|
+
import{Plugin as _0x537fe0,Command as _0x170658}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x14f1d9,IconGooglePhotos as _0x4222df,IconGoogleDrive as _0x20693e,IconFacebook as _0xc84378,IconDropbox as _0x158900,IconUploadcareLink as _0x2c4cc2,IconUploadcareImageUpload as _0x5c3f1e,IconError as _0x2c1ad6,IconUploadcareImageEdit as _0x49a58f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5dae27,MenuBarMenuListItemButtonView as _0x32f2df,View as _0x14606b,FocusCycler as _0x481aa7,Dialog as _0x472fa3,DialogViewPosition as _0x1207c9,SpinnerView as _0x152686,IconView as _0xddcc2d,Notification as _0x21c33a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4942b9,DomEmitterMixin as _0x5505b1,global as _0x1eaa8d,getAncestors as _0x55af98,ObservableMixin as _0x5a8f2d,uid as _0x64b027,createElement as _0x38cad4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x57c81f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24e36d,info as _0x4f3a6a}from'@uploadcare/upload-client';import*as _0x3d1409 from'@uploadcare/file-uploader';var i=function(_0x38d7f6){return _0x38d7f6['Local']='local',_0x38d7f6['URL']='url',_0x38d7f6['Dropbox']='dropbox',_0x38d7f6['GDrive']='gdrive',_0x38d7f6['Facebook']='facebook',_0x38d7f6['GPhotos']='gphotos',_0x38d7f6['OneDrive']='onedrive',_0x38d7f6;}({});function _(_0x13936b,_0x458877,_0x593f04){const t=_0x13936b['t'],_0x597b41=_0x13936b['t'];switch(_0x458877){case i['Local']:return{'text':_0x597b41('Insert'===_0x593f04?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x597b41('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x593f04?_0x597b41('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x597b41('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x593f04?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x593f04?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x593f04?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x593f04?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x593f04?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x458877;}}class e extends _0x537fe0{['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 _0x53a12f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b40dd;for(const _0x394f44 in _0x53a12f){const _0xfa7fa2=_0x394f44,_0x519b35=_0x53a12f[_0xfa7fa2];if('uploadcareLicenseKeyValid'==_0x519b35||'uploadcareLicenseKeyInvalid'==_0x519b35||'uploadcareLicenseKeyExpired'==_0x519b35||'uploadcareLicenseKeyDomainLimit'==_0x519b35||'uploadcareLicenseKeyNotAllowed'==_0x519b35||'uploadcareLicenseKeyEvaluationLimit'==_0x519b35||'uploadcareLicenseKeyTrialLimit'==_0x519b35||'uploadcareLicenseKeyUsageLimit'==_0x519b35){delete _0x53a12f[_0xfa7fa2],_0x3b40dd=_0x519b35,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b40dd&&_0x53a12f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b40dd&&_0x53a12f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b40dd&&_0x53a12f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b40dd&&_0x53a12f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b40dd&&_0x53a12f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b40dd&&_0x53a12f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b40dd&&_0x53a12f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1eb992}=this,_0x25fd60=_0x1eb992['commands']['get']('uploadcare');if(!_0x25fd60)return;const _0x2421a0=this['_normalizeConfigSourceList'](_0x1eb992['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4cb31c,_0x520dfa)=>{const _0x372427=this['_getIntegrationKey'](_0x520dfa['type']);return _0x4cb31c[_0x372427]||(_0x4cb31c[_0x372427]=[]),_0x4cb31c[_0x372427]['push'](_0x520dfa),_0x4cb31c;},{});_0x1eb992['plugins']['has']('ImageInsertUI')&&_0x1eb992['commands']['get']('uploadcare')&&Object['entries'](_0x2421a0)['forEach'](([_0x4a31f2,_0x2851d7])=>{_0x1eb992['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4a31f2,'observable':()=>_0x25fd60,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2851d7),'formViewCreator':()=>this['_createDropdownButtons'](_0x2851d7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2851d7),'override':'assetManager'!==_0x4a31f2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e8438){const {locale:_0x805b5a}=this['editor'];return _0x4e8438['map'](_0x2988cb=>{const _0x25f265=_(_0x805b5a,_0x2988cb,'Insert');switch(_0x2988cb){case i['Local']:return{'icon':_0x5c3f1e,'type':i['Local'],..._0x25f265};case i['URL']:return{'icon':_0x2c4cc2,'type':i['URL'],..._0x25f265};case i['Dropbox']:return{'icon':_0x158900,'type':i['Dropbox'],..._0x25f265};case i['Facebook']:return{'icon':_0xc84378,'type':i['Facebook'],..._0x25f265};case i['GDrive']:return{'icon':_0x20693e,'type':i['GDrive'],..._0x25f265};case i['GPhotos']:return{'icon':_0x4222df,'type':i['GPhotos'],..._0x25f265};case i['OneDrive']:return{'icon':_0x14f1d9,'type':i['OneDrive'],..._0x25f265};}});}['_getIntegrationKey'](_0x3806fb){switch(_0x3806fb){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x16d650,_0x5b9c45){const _0x3d732f=this['editor'],_0x4c848e=new _0x16d650(_0x3d732f['locale']),_0x4e848a=_0x3d732f['commands']['get']('uploadcare');return _0x4c848e['bind']('isEnabled')['to'](_0x4e848a),_0x4c848e['on']('execute',()=>{_0x4e848a['execute'](_0x5b9c45);}),_0x4c848e;}['_createToolbarButton'](_0x4fca55){const {locale:_0x4dd163}=this['editor'],_0x52dd0b=this['editor']['plugins']['get']('ImageInsertUI'),_0x3c1a09=_0x4fca55[0x0],_0x1aeb62=this['_createButton'](_0x5dae27,_0x3c1a09['type']);return _0x1aeb62['icon']=_0x3c1a09['icon'],_0x1aeb62['bind']('label')['to'](_0x52dd0b,'isImageSelected',_0x1bc1ff=>_(_0x4dd163,_0x3c1a09['type'],_0x1bc1ff?'Replace':'Insert')['text']),_0x1aeb62['tooltip']=!0x0,_0x1aeb62;}['_createDropdownButtons'](_0x490e15){const {locale:_0x4a71f1}=this['editor'],_0xbaa4a8=this['editor']['plugins']['get']('ImageInsertUI');return _0x490e15['map'](_0x8f1c5d=>{const _0x422216=this['_createButton'](_0x5dae27,_0x8f1c5d['type']);return _0x422216['withText']=!0x0,_0x422216['icon']=_0x8f1c5d['icon'],_0x422216['bind']('label')['to'](_0xbaa4a8,'isImageSelected',_0x43d4b2=>_(_0x4a71f1,_0x8f1c5d['type'],_0x43d4b2?'Replace':'Insert')['text']),_0x422216;});}['_createMenuBarButtons'](_0x33f8db){return _0x33f8db['map'](_0x69d1bd=>{const _0x22ae27=this['_createButton'](_0x32f2df,_0x69d1bd['type']);return _0x22ae27['icon']=_0x69d1bd['icon'],_0x22ae27['label']=_0x69d1bd['shortText'],_0x22ae27;});}}class F extends _0x14606b{['focusTracker'];['focusCycler'];constructor(_0x59beb1){super(_0x59beb1),this['focusTracker']=new _0x4942b9(),this['focusCycler']=new _0x481aa7({'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(_0x10aa73,_0x5cde78){super(_0x10aa73),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-'+_0x5cde78}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xfe64f2,_0x49e743){const _0xbd46da=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x503ffc=>_0x503ffc<=_0x49e743)['map'](_0x18ccd2=>_0xfe64f2['replace'](/\/$/,'')+'/-/resize/'+_0x18ccd2+'x/\x20'+_0x18ccd2+'w');return{'imageFallbackUrl':_0xfe64f2,'imageSources':[{'srcset':_0xbd46da['join'](',\x20'),'sizes':'(max-width:\x20'+_0x49e743+'px)\x20100vw,\x20'+_0x49e743+'px','type':'image/webp'}]};}function S(_0x5d76e1,_0x246ea1,_0x3307be){const _0x7de243=_0x5d76e1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x7de243?parseInt(_0x7de243[0x1],0xa):_0x246ea1,'height':_0x7de243?parseInt(_0x7de243[0x2],0xa):_0x3307be};}function p(_0x17cba2,_0x1e240b){const _0x58cd28=new(_0x5505b1())(),_0x175522=_0x17cba2['plugins']['get']('ImageUtils'),_0x298f52=_0x17cba2['editing']['mapper']['toViewElement'](_0x1e240b),_0xac1070=_0x175522['findViewImgElement'](_0x298f52),_0xf27012=_0x17cba2['editing']['view']['domConverter']['viewToDom'](_0xac1070),_0x580f10=_0x1e240b['getAttribute']('width'),_0x4294dc=_0x1e240b['getAttribute']('height'),_0x272578='image-processing';_0x17cba2['editing']['view']['change'](_0x241493=>{_0x241493['addClass'](_0x272578,_0x298f52),_0x241493['setStyle']('aspect-ratio',_0x580f10+'/'+_0x4294dc,_0xac1070);}),_0x58cd28['listenTo'](_0xf27012,'load',()=>{_0x58cd28['stopListening'](_0xf27012,'load'),_0x17cba2['editing']['view']['change'](_0x4211c7=>{_0x4211c7['removeClass'](_0x272578,_0x298f52),_0x4211c7['removeStyle']('aspect-ratio',_0xac1070);});});}function G(_0x2b764d){if(Array['isArray'](_0x2b764d)){const _0x1a6003=_0x2b764d['map'](G);return _0x30fd20=>_0x1a6003['some'](_0x33d4fa=>_0x33d4fa(_0x30fd20));}if('origin'==_0x2b764d){const _0x3b3dc2=_0x1eaa8d['window']['location']['origin'];return _0x15e67b=>new URL(_0x15e67b,_0x1eaa8d['document']['baseURI'])['origin']==_0x3b3dc2;}return'function'==typeof _0x2b764d?_0x2b764d:_0x2b764d instanceof RegExp?_0x48ddf0=>!(!_0x48ddf0['match'](_0x2b764d)&&!_0x48ddf0['replace'](/^https?:\/\//,'')['match'](_0x2b764d)):()=>!0x1;}function A(_0x2c89b3,_0xae9daf){return _0x55af98(_0x2c89b3['target'])['includes'](_0xae9daf);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5a8f2d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2c2d47,_0xbd80d9,_0x14d625){super(),this['_editor']=_0x2c2d47,this['_editing']=_0xbd80d9,this['_dialog']=_0x2c2d47['plugins']['get'](_0x472fa3),this['_api']=_0xbd80d9['ctxElement']['getAPI'](),this['_type']=_0x14d625,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:_0x52ffc1,model:_0x377202}=this['_editor'],_0x448c7f=_0x377202['document']['selection']['getSelectedElement'](),_0x2cc527=_0x448c7f&&(_0x448c7f['is']('element','imageBlock')||_0x448c7f['is']('element','imageInline'));this['_formView']=new x(_0x52ffc1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5c3f1e,'title':_(_0x52ffc1,this['_type'],_0x2cc527?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1207c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e023a=>!A(_0x3e023a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4e7067}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x121654=>{const _0x55fb13=_0x4e7067['length'];for(const _0x1ac3dc of _0x4e7067){const _0x2a8a30=_0x1ac3dc===_0x4e7067[_0x55fb13-0x1],{cdnUrl:_0x516ea9,fileInfo:_0x572232}=_0x1ac3dc;if(!_0x516ea9||!_0x572232)continue;const {width:_0x4ae196,height:_0x159c5c}=_0x572232['imageInfo'],_0x5404cc=S(_0x516ea9,_0x4ae196,_0x159c5c),_0x592f63=C(_0x516ea9,_0x5404cc['width']),_0x2c0e64={'id':_0x572232['uuid'],'type':'image','attributes':{'imageDimension':_0x5404cc,..._0x592f63}};this['_insertAsset'](_0x2c0e64,_0x2a8a30,_0x121654);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x366a6f=>{'idle'===_0x366a6f['detail']['status']&&!_0x366a6f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2e6a9e,_0x231b1b,_0x2aef4e){const _0x28e722=this['_editor']['model']['document']['selection'],_0x1e6cdf=_0x28e722['getSelectedElement'](),_0x49fab4=!(!_0x1e6cdf||!_0x1e6cdf['is']('element','imageInline'));_0x2aef4e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2e6a9e,_0x49fab4),_0x231b1b||_0x2aef4e['setSelection'](_0x28e722['getLastPosition']());}['_insertImage'](_0x6c1a27,_0x46f522){const _0x408974=this['_editor'],{imageDimension:_0x108f17,imageFallbackUrl:_0x302804,imageSources:_0x35b85c}=_0x6c1a27['attributes'];_0x408974['execute']('insertImage',{'imageType':_0x46f522?'imageInline':null,'source':{'uploadcareImageId':_0x6c1a27['id'],'src':_0x302804,'sources':_0x35b85c,..._0x108f17}});}}class w extends _0x170658{['_editing'];['_controller']=null;static get['requires'](){return[_0x472fa3,o];}constructor(_0xaac898){super(_0xaac898),this['_editing']=_0xaac898['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x384130){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x384130);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x59faf1,..._0x436522}){return _0x24e36d(_0x59faf1,_0x436522);}static['getInfo'](_0x13424b,_0x3e82a4){return _0x4f3a6a(_0x13424b,_0x3e82a4);}}class f extends _0x537fe0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57c81f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2779cf=this['editor'];if(!!!_0x2779cf['config']['get']('uploadcare'))return;_0x2779cf['plugins']['get'](_0x57c81f)['createUploadAdapter']=_0x43bbb2=>new k(_0x43bbb2,_0x2779cf),_0x2779cf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6335fb,{imageElement:_0x2e402e,data:_0x9530e3})=>{_0x2779cf['model']['change'](_0x231dbf=>{_0x231dbf['setAttribute']('uploadcareImageId',_0x9530e3['uploadcareImageId'],_0x2e402e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3f5ea5,_0x107894){this['loader']=_0x3f5ea5,this['editor']=_0x107894,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a1c28=await this['loader']['file'];return j['upload']({'file':_0x4a1c28,'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':_0x43693b=>{_0x43693b&&_0x43693b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x43693b['value']);}})['then'](async _0x1f25c2=>{const {imageFallbackUrl:_0x26f61a,imageSources:_0x4966b8}=C(_0x1f25c2['cdnUrl'],_0x1f25c2['imageInfo']['width']);return{'uploadcareImageId':_0x1f25c2['uuid'],'default':_0x26f61a,'sources':_0x4966b8};})['catch'](()=>{const _0x58d2d8=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a1c28['name']+'.');return Promise['reject'](_0x58d2d8);});}['abort'](){this['controller']['abort']();}}class o extends _0x537fe0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x472fa3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x104428){super(_0x104428),this['ucContextId']=_0x64b027();}['init'](){const _0x2c0695=this['editor'];_0x2c0695['commands']['add']('uploadcare',new w(_0x2c0695));}['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 _0x23cfe2=_0x1eaa8d['document']['querySelector']('input[uploadcare-file-input]');_0x23cfe2&&_0x23cfe2['remove']();}),async function(_0x1274b3){const _0x559c9b=_0x1a5aa([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]),_0x44bb93=0x535f8c3a,_0x371ece=0x5358f1ca^_0x44bb93,_0x8a435=window[_0x1a5aa([0x44,0x61,0x74,0x65])][_0x1a5aa([0x6e,0x6f,0x77])](),_0x1d8245=_0x1274b3[_0x1a5aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3256a6=new window[(_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75e6b=>{_0x1d8245[_0x1a5aa([0x6f,0x6e,0x63,0x65])](_0x1a5aa([0x72,0x65,0x61,0x64,0x79]),_0x75e6b);}),_0x250b86={[_0x1a5aa([0x6b,0x74,0x79])]:_0x1a5aa([0x45,0x43]),[_0x1a5aa([0x75,0x73,0x65])]:_0x1a5aa([0x73,0x69,0x67]),[_0x1a5aa([0x63,0x72,0x76])]:_0x1a5aa([0x50,0x2d,0x32,0x35,0x36]),[_0x1a5aa([0x78])]:_0x1a5aa([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]),[_0x1a5aa([0x79])]:_0x1a5aa([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]),[_0x1a5aa([0x61,0x6c,0x67])]:_0x1a5aa([0x45,0x53,0x32,0x35,0x36])},_0x8afd3b=_0x1d8245[_0x1a5aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a5aa([0x67,0x65,0x74])](_0x1a5aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34d09b(){let _0x4645ce,_0x496377=null,_0x1f07d7=null;try{if(_0x8afd3b==_0x1a5aa([0x47,0x50,0x4c]))return _0x1a5aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4645ce=_0x35c3f6(),!_0x4645ce)return _0x1a5aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4645ce[_0x1a5aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f07d7=_0x1cc0a3(_0x4645ce[_0x1a5aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4645ce[_0x1a5aa([0x6a,0x74,0x69])])),await _0x3f454a()?_0x4d0c7d()?_0x5c12b3()?_0x1a5aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a390b()?(_0x4645ce[_0x1a5aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x496377=_0x1908bf(_0x1a5aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4645ce[_0x1a5aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x496377=_0x1908bf(_0x1a5aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c83cf()):_0x1a5aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a5aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a5aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c12b3(){const _0x3981e0=[_0x1a5aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a5aa([0x74,0x72,0x69,0x61,0x6c])][_0x1a5aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4645ce[_0x1a5aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8a435/0x3e8:0xe10*_0x371ece;return _0x4645ce[_0x1a5aa([0x65,0x78,0x70])]<_0x3981e0;}function _0x4d0c7d(){const _0x88e086=_0x4645ce[_0x1a5aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x88e086&&(!!_0x88e086[_0x1a5aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5aa([0x2a]))||!!_0x88e086[_0x1a5aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5aa([0x55,0x50,0x4c,0x43])));}function _0x3a390b(){const _0x2b1291=_0x4645ce[_0x1a5aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b1291||0x0==_0x2b1291[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34ddfd}=new URL(window[_0x1a5aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b1291[_0x1a5aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ddfd))return!0x0;const _0x434bb8=_0x34ddfd[_0x1a5aa([0x73,0x70,0x6c,0x69,0x74])](_0x1a5aa([0x2e]));return _0x2b1291[_0x1a5aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d91f7=>_0x1d91f7[_0x1a5aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5aa([0x2a])))[_0x1a5aa([0x6d,0x61,0x70])](_0x2d7ff2=>_0x2d7ff2[_0x1a5aa([0x73,0x70,0x6c,0x69,0x74])](_0x1a5aa([0x2e])))[_0x1a5aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe06cf4=>_0xe06cf4[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x434bb8[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a5aa([0x6d,0x61,0x70])](_0x531129=>Array(_0x434bb8[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x531129[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a5aa([0x66,0x69,0x6c,0x6c])](_0x531129[0x0]===_0x1a5aa([0x2a])?_0x1a5aa([0x2a]):'')[_0x1a5aa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x531129))[_0x1a5aa([0x73,0x6f,0x6d,0x65])](_0x1590e2=>_0x434bb8[_0x1a5aa([0x65,0x76,0x65,0x72,0x79])]((_0x26aacd,_0x5d3be0)=>_0x1590e2[_0x5d3be0]===_0x26aacd||_0x1590e2[_0x5d3be0]===_0x1a5aa([0x2a])));}function _0x1c83cf(){return _0x496377&&_0x1f07d7?new window[(_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41171e,_0x4742e9)=>{_0x496377[_0x1a5aa([0x74,0x68,0x65,0x6e])](_0x41171e,_0x4742e9),_0x1f07d7[_0x1a5aa([0x74,0x68,0x65,0x6e])](_0x4329ba=>{_0x4329ba!=_0x1a5aa([0x56,0x61,0x6c,0x69,0x64])&&_0x41171e(_0x4329ba);},_0x4742e9);}):_0x496377||_0x1f07d7||_0x1a5aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cc0a3(_0x370b7a,_0x3d4830){return new window[(_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29ee92=>{if(_0x1cefe6())return _0x29ee92(_0x1a5aa([0x56,0x61,0x6c,0x69,0x64]));_0x460a25(),_0x1d8245[_0x1a5aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a5aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x277969=!0x1;const _0x4b7bcc=_0x64b027();function _0x36a62c(_0xee11f3){return!!_0xee11f3&&(typeof _0xee11f3===_0x1a5aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xee11f3===_0x1a5aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xee11f3[_0x1a5aa([0x74,0x68,0x65,0x6e])]===_0x1a5aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xee11f3[_0x1a5aa([0x63,0x61,0x74,0x63,0x68])]===_0x1a5aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35f6e5(_0x48d1b2){_0x4fb737(_0x48d1b2)[_0x1a5aa([0x74,0x68,0x65,0x6e])](_0x3c586d=>{if(!_0x3c586d||_0x3c586d[_0x1a5aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a5aa([0x6f,0x6b]))return _0x1a5aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2806fd(_0x4dc61c(_0x4b7bcc+_0x3d4830))!=_0x3c586d[_0x1a5aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a5aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5aa([0x74,0x68,0x65,0x6e])](_0x5e377c=>(_0x585ee2(),_0x5e377c),()=>{const _0x41ecd4=_0x4d311d();return null==_0x41ecd4?(_0x585ee2(),_0x1a5aa([0x56,0x61,0x6c,0x69,0x64])):_0x1a5aa(_0x8a435-_0x41ecd4>(0x7753083a^_0x44bb93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5aa([0x74,0x68,0x65,0x6e])](_0x29ee92)[_0x1a5aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29ee92(_0x1a5aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c5708=0x536962ba^_0x44bb93;function _0x585ee2(){const _0x25ab1e=_0x1a5aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x2806fd(_0x4dc61c(_0x370b7a)),_0x309bb3=_0xd3193c(_0x2806fd(window[_0x1a5aa([0x4d,0x61,0x74,0x68])][_0x1a5aa([0x63,0x65,0x69,0x6c])](_0x8a435/_0x1c5708)));window[_0x1a5aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25ab1e,_0x309bb3);}function _0x4d311d(){const _0x5b4ca=_0x1a5aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x2806fd(_0x4dc61c(_0x370b7a)),_0x4a3db8=window[_0x1a5aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b4ca);return _0x4a3db8?window[_0x1a5aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3193c(_0x4a3db8),0x10)*_0x1c5708:null;}function _0x4fb737(_0x6fa598){return new window[(_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f98b1,_0x10d866)=>{_0x6fa598[_0x1a5aa([0x74,0x68,0x65,0x6e])](_0x1f98b1,_0x10d866),window[_0x1a5aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10d866,0x535e58fa^_0x44bb93);});}}_0x1d8245[_0x1a5aa([0x6f,0x6e])](_0x1a5aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5132f0,_0x37ae1d)=>{if(_0x37ae1d[0x0]!=_0x370b7a)return _0x29ee92(_0x1a5aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37ae1d[0x1]={..._0x37ae1d[0x1],[_0x1a5aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b7bcc};},{[_0x1a5aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5aa([0x68,0x69,0x67,0x68])}),_0x1d8245[_0x1a5aa([0x6f,0x6e])](_0x1a5aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25c0ee=>{_0x36a62c(_0x25c0ee[_0x1a5aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x277969=!0x0,_0x35f6e5(_0x25c0ee[_0x1a5aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a5aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5aa([0x6c,0x6f,0x77])}),_0x3256a6[_0x1a5aa([0x74,0x68,0x65,0x6e])](()=>{_0x277969||_0x29ee92(_0x1a5aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1cefe6(){return _0x1d8245[_0x1a5aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5aa([0x76,0x69,0x65,0x77])][_0x1a5aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a5aa([0x61,0x75,0x74,0x6f]);}function _0x460a25(){_0x1d8245[_0x1a5aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5aa([0x76,0x69,0x65,0x77])][_0x1a5aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5aa([0x61,0x75,0x74,0x6f]);}}function _0x1908bf(_0x4c6e56){const _0x24bdb3=[new window[(_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267ce5=>setTimeout(_0x267ce5,0x5356b2f6^_0x44bb93)),_0x3256a6[_0x1a5aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fe0db=>{let _0x292daf=0x0;_0x1d8245[_0x1a5aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5aa([0x6f,0x6e])](_0x1a5aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39892c,_0xbdb803)=>{_0xbdb803[0x0][_0x1a5aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x292daf++,_0x292daf==(0x535f89d2^_0x44bb93)&&(_0x1fe0db(),_0x39892c[_0x1a5aa([0x6f,0x66,0x66])]());});}))];return window[_0x1a5aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5aa([0x72,0x61,0x63,0x65])](_0x24bdb3)[_0x1a5aa([0x74,0x68,0x65,0x6e])](()=>_0x4c6e56);}async function _0x130ab5(){await _0x3256a6,_0x1d8245[_0x1a5aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x291ba4,_0x1d8245[_0x1a5aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x291ba4,_0x1d8245[_0x1a5aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a5aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x131dc6(_0x351eba){const _0x52890e=_0x1f1b81();_0x1d8245[_0x52890e]=_0x1a5aa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x351eba,_0x351eba!=_0x1a5aa([0x56,0x61,0x6c,0x69,0x64])&&_0x130ab5();}function _0x1f1b81(){const _0x4ea9af=window[_0x1a5aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a5aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a5aa([0x6e,0x6f,0x77])]())[_0x1a5aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a5aa([0x2e]),'');let _0x148a99=_0x1a5aa([0x68]);for(let _0x53d668=0x0;_0x53d668<_0x4ea9af[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53d668+=0x2){let _0x4f303a=window[_0x1a5aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ea9af[_0x1a5aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53d668,_0x53d668+0x2));_0x4f303a>=_0x559c9b[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f303a-=_0x559c9b[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x148a99+=_0x559c9b[_0x4f303a];}return _0x148a99;}function _0x35c3f6(){const _0x17890b=_0x8afd3b[_0x1a5aa([0x73,0x70,0x6c,0x69,0x74])](_0x1a5aa([0x2e]));if(0x3!=_0x17890b[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19d115(_0x17890b[0x1]);function _0x19d115(_0x5bef4e){const _0x51f442=_0x322066(_0x5bef4e);return _0x51f442&&_0xf6a8d5()?_0x51f442:null;function _0xf6a8d5(){const _0x5e2dc2=_0x51f442[_0x1a5aa([0x6a,0x74,0x69])],_0x4c885c=window[_0x1a5aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e2dc2[_0x1a5aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e2dc2[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19f726={..._0x51f442,[_0x1a5aa([0x6a,0x74,0x69])]:_0x5e2dc2[_0x1a5aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e2dc2[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19f726[_0x1a5aa([0x76,0x63])],_0x4dc61c(_0x19f726)==_0x4c885c;}}}async function _0x3f454a(){let _0x2eabf2=!0x0;try{const _0x2dc283=_0x8afd3b[_0x1a5aa([0x73,0x70,0x6c,0x69,0x74])](_0x1a5aa([0x2e])),[_0x4793f4,_0x213dc6,_0xea44e4]=_0x2dc283;return _0x1029f5(_0x4793f4),await _0x3eb4e5(_0x4793f4,_0x213dc6,_0xea44e4),_0x2eabf2;}catch{return!0x1;}function _0x1029f5(_0x2c83d1){const _0xb5b67=_0x322066(_0x2c83d1);_0xb5b67&&_0xb5b67[_0x1a5aa([0x61,0x6c,0x67])]==_0x1a5aa([0x45,0x53,0x32,0x35,0x36])||(_0x2eabf2=!0x1);}async function _0x3eb4e5(_0x1875de,_0x5e7a42,_0x1ecbba){const _0x2effc5=window[_0x1a5aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a5aa([0x66,0x72,0x6f,0x6d])](_0x247c0d(_0x1ecbba),_0x554e04=>_0x554e04[_0x1a5aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42f58a=new window[(_0x1a5aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a5aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1875de+_0x1a5aa([0x2e])+_0x5e7a42),_0x255206=window[_0x1a5aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a5aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x255206)return;const _0x1ad4f1=await _0x255206[_0x1a5aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a5aa([0x6a,0x77,0x6b]),_0x250b86,{[_0x1a5aa([0x6e,0x61,0x6d,0x65])]:_0x1a5aa([0x45,0x43,0x44,0x53,0x41]),[_0x1a5aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a5aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a5aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x255206[_0x1a5aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a5aa([0x6e,0x61,0x6d,0x65])]:_0x1a5aa([0x45,0x43,0x44,0x53,0x41]),[_0x1a5aa([0x68,0x61,0x73,0x68])]:{[_0x1a5aa([0x6e,0x61,0x6d,0x65])]:_0x1a5aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ad4f1,_0x2effc5,_0x42f58a)||(_0x2eabf2=!0x1);}}function _0x322066(_0x345f55){return _0x345f55[_0x1a5aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a5aa([0x65,0x79]))?JSON[_0x1a5aa([0x70,0x61,0x72,0x73,0x65])](_0x247c0d(_0x345f55)):null;}function _0x247c0d(_0x2c7ce5){return window[_0x1a5aa([0x61,0x74,0x6f,0x62])](_0x2c7ce5[_0x1a5aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a5aa([0x2b]))[_0x1a5aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a5aa([0x2f])));}function _0x4dc61c(_0x3706fb){let _0x148692=0x1505;function _0x1cd464(_0xfc8ab3){for(let _0x2f7935=0x0;_0x2f7935<_0xfc8ab3[_0x1a5aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f7935++){const _0x1f018b=_0xfc8ab3[_0x1a5aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f7935);_0x148692=(_0x148692<<0x5)+_0x148692+_0x1f018b,_0x148692&=_0x148692;}}function _0x4787e5(_0x2e0c43){Array[_0x1a5aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0c43)?_0x2e0c43[_0x1a5aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4787e5):_0x2e0c43&&typeof _0x2e0c43==_0x1a5aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a5aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0c43)[_0x1a5aa([0x73,0x6f,0x72,0x74])]()[_0x1a5aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d62ce,_0x4883cc])=>{_0x1cd464(_0x5d62ce),_0x4787e5(_0x4883cc);}):_0x1cd464(window[_0x1a5aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0c43));}return _0x4787e5(_0x3706fb),_0x148692>>>0x0;}function _0x2806fd(_0x2fabf2){return _0x2fabf2[_0x1a5aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a5aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a5aa([0x30]));}function _0xd3193c(_0xca7692){return _0xca7692[_0x1a5aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a5aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a5aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x291ba4(){}function _0x1a5aa(_0x1bd23a){return _0x1bd23a['map'](_0x477642=>String['fromCharCode'](_0x477642))['join']('');}_0x131dc6(await _0x34d09b());}(this);}['_initSchema'](){const _0x24232c=this['editor']['model']['schema'];_0x24232c['isRegistered']('imageBlock')&&_0x24232c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x24232c['isRegistered']('imageInline')&&_0x24232c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x271747=this['editor'];_0x271747['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x271747['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x367743=>_0x367743['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37cb42=_0x271747['commands']['get']('replaceImageSource');_0x37cb42&&this['listenTo'](_0x37cb42,'cleanupImage',(_0x35d683,[_0x12f606,_0x4b4ff5])=>{_0x12f606['removeAttribute']('uploadcareImageId',_0x4b4ff5);});}['_initConfig'](){const _0x2debdf=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4f0a3a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x38cad4(_0x1eaa8d['document'],'uc-config',{..._0x2debdf,'pubkey':_0x4f0a3a,'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']=_0x42f9dc=>{if('closeMax'==_0x42f9dc)return'#uc-icon-arrow-down';},_0x1eaa8d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x38cad4(_0x1eaa8d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1eaa8d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ec519=this['editor']['commands']['get']('insertImage');_0x5ec519&&this['listenTo'](_0x5ec519,'execute',()=>{const _0x45ff02=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45ff02&&_0x45ff02['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x45ff02);});});const _0x264231=this['editor']['commands']['get']('uploadcareImageReplace');_0x264231&&this['listenTo'](_0x264231,'execute',()=>{const _0x28c8ab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28c8ab&&_0x28c8ab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28c8ab);});});}}class tt extends _0x537fe0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f874e){super(_0x4f874e),_0x4f874e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3d1409['defineComponents'](_0x3d1409),this['_defineLocale']();}['_defineLocale'](){const _0x50cef7=this['editor']['config']['get']('uploadcare.locale'),_0x3ec1b7=this['editor']['locale']['contentLanguage'];_0x50cef7&&_0x3d1409['defineLocale'](_0x3ec1b7,_0x50cef7);}}class ii extends _0x14606b{constructor(_0x75f309){super(_0x75f309);const t=_0x75f309['t'],_0x37ea78=this['bindTemplate'],_0x13514c=new _0x152686();_0x13514c['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':[_0x13514c,{'text':_0x37ea78['to']('imageUploadProgress',_0x3e46e4=>t('Loading\x20image...')+'\x20('+(_0x3e46e4||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 _0x14606b{constructor(_0x2ecb4c){super(_0x2ecb4c);const t=_0x2ecb4c['t'];this['set']('errorType',null);const _0x392d63=new _0x5dae27(_0x2ecb4c);_0x392d63['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x392d63['withText']=!0x0,_0x392d63['class']='ck-button-action',_0x392d63['on']('execute',()=>{this['fire']('retry');}),_0x392d63['bind']('isVisible')['to'](this,'errorType',_0x2e0b37=>'NotFound'!==_0x2e0b37);const _0x240265=new _0xddcc2d();_0x240265['content']=_0x2c1ad6,_0x240265['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x35052e=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':[_0x240265,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x35052e['to']('errorType',_0x832c5e=>t('NotFound'!==_0x832c5e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x392d63]},{'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 _0x14606b{constructor(_0x3b45d9,_0x27de0b){super(_0x3b45d9);const _0x2b4b29=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x27de0b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2b4b29['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x154bc7,_0x516cbe,_0x208248){super(_0x154bc7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x154bc7),this['_errorView']=new ti(_0x154bc7),this['_editingView']=new ei(_0x154bc7,_0x208248),this['_focusableView']=new _0x14606b(_0x154bc7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x516cbe),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'],_0x24b4a1=>{this['_addUploadcareImageEditorListeners'](_0x24b4a1);});}),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'](_0x5cd440,_0x106404){const _0x25ac33='uc-cloud-image-editor',_0x477f97=_0x5cd440['querySelector'](_0x25ac33);if(_0x477f97)return _0x106404(_0x477f97);const _0x44d0d8=new MutationObserver(_0x3ee214=>{const _0x202eb2=_0x3ee214['filter'](_0x5d2f70=>_0x5d2f70['target']===_0x5cd440&&_0x5d2f70['addedNodes']['length']>0x0&&_0x5d2f70['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x25ac33);_0x202eb2['length']&&(_0x44d0d8['disconnect'](),_0x106404(_0x202eb2[0x0]['addedNodes'][0x0]));});_0x44d0d8['observe'](_0x5cd440,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3ec188){_0x3ec188['addEventListener']('apply',_0x4cf8c2=>{this['fire']('apply',{'imageSrc':_0x4cf8c2['detail']['cdnUrl']});}),_0x3ec188['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5a8f2d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3027a8,_0x367f84,_0x1aa124){super(),this['_editor']=_0x3027a8,this['_dialog']=_0x367f84,this['_imageElement']=_0x1aa124,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 _0x2dd7f5=this['_imageElement'],_0x2a8bcf=_0x2dd7f5['getAttribute']('uploadcareImageId'),_0x1008d8=_0x2dd7f5['getAttribute']('src');if(_0x2a8bcf)await this['_loadImageInfo'](_0x2a8bcf,_0x1008d8);else{if(this['_imageCache']['has'](_0x1008d8)){const _0x586543=this['_imageCache']['get'](_0x1008d8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x586543['url'],this['imageDimension']=_0x586543['dimension'],this['imageId']=_0x586543['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x13ff65}=this['_editor'],t=_0x13ff65['t'],_0x4330ad=new X(_0x13ff65,this['imageStatus'],this['_attributes']);_0x4330ad['bind']('status')['to'](this,'imageStatus'),_0x4330ad['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4330ad['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4330ad['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4330ad,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x49a58f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4330ad,'position':_0x1207c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4330ad['focus']();},'onHide':()=>{_0x4330ad['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x510962=>!A(_0x510962,_0x4330ad['element'])}});}['_loadImageInfo'](_0x342787,_0x1de352){return j['getInfo'](_0x342787,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x549eda=>{const {width:_0x4e0b7b,height:_0x2d146a}=_0x549eda['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1de352,this['imageDimension']={'width':_0x4e0b7b,'height':_0x2d146a},this['imageId']=_0x342787;})['catch'](_0xfa8531=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfa8531['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2cca18,_0x4015f7){return this['_getImageAsFile'](_0x2cca18)['then'](_0x16cf69=>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':_0x4015f7['signal'],'file':_0x16cf69,'onProgress':_0xc51f4f=>{_0xc51f4f&&_0xc51f4f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xc51f4f['value']));}}))['then'](_0x3ee9b3=>{const {width:_0x4dcf7a,height:_0x53241e}=_0x3ee9b3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ee9b3['cdnUrl'],this['imageDimension']={'width':_0x4dcf7a,'height':_0x53241e},this['imageId']=_0x3ee9b3['uuid'],this['imageUploadProgress']=null;const _0x2c2d3c=_0x2cca18['getAttribute']('src');this['_imageCache']['set'](_0x2c2d3c,{'id':_0x3ee9b3['uuid'],'url':_0x3ee9b3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xba0b10=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xba0b10['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x10f1d7,_0x309253){_0x10f1d7['on']('apply',(_0x1e8bbc,_0x26650e)=>{this['_replaceImage'](_0x309253,_0x26650e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x10f1d7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x10f1d7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f050f,_0x4a09d1,_0x2a7c58){const _0x3dbe63=this['_editor'],{width:_0x49f11a,height:_0x52d9b4}=S(_0x4a09d1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x8c6571,imageSources:_0x293357}=C(_0x4a09d1,_0x49f11a);_0x3dbe63['model']['change'](_0x428a16=>{if('$graveyard'===_0x1f050f['root']['rootName']){_0x3dbe63['execute']('insertImage',{'imageType':_0x1f050f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f050f['getAttributes']()),'uploadcareImageId':_0x2a7c58,'src':_0x8c6571,'sources':_0x293357,'width':_0x49f11a,'height':_0x52d9b4}});const _0x5ed992=_0x1f050f['getChildren']();_0x1f050f=_0x3dbe63['model']['document']['selection']['getSelectedElement']();for(const _0x4ac709 of _0x5ed992)_0x428a16['append'](_0x428a16['cloneElement'](_0x4ac709),_0x1f050f);}else _0x428a16['setSelection'](_0x1f050f,'on'),_0x3dbe63['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f050f['getAttributes']()),'uploadcareImageId':_0x2a7c58,'src':_0x8c6571,'sources':_0x293357,'width':_0x49f11a,'height':_0x52d9b4},_0x1f050f);_0x428a16['setSelection'](_0x1f050f,'on');});}async['_getImageAsFile'](_0x52a6b2){const _0x41179a=_0x1eaa8d['window'],_0x1c497c=_0x1eaa8d['document']['location']['href'],_0x5d3bf4=new _0x41179a['URL'](_0x52a6b2['getAttribute']('src'),_0x1c497c);if('data:'===_0x5d3bf4['protocol']){const _0xfe9357=_0x5d3bf4['href']['split'](','),_0x369473=_0xfe9357[0x0]['match'](/:(.*?);/)[0x1],_0x3b545e=_0x369473['split']('/')[0x1],_0x34798a=_0x41179a['atob'](_0xfe9357[_0xfe9357['length']-0x1]);let _0x1a088e=_0x34798a['length'];const _0x475b7f=new _0x41179a['Uint8Array'](_0x1a088e);for(;_0x1a088e--;)_0x475b7f[_0x1a088e]=_0x34798a['charCodeAt'](_0x1a088e);return new _0x41179a['File']([_0x475b7f],'image.'+_0x3b545e,{'type':_0x369473});}const _0x51dd8b=_0x5d3bf4['href']['split']('/'),_0x28e33b=_0x51dd8b[_0x51dd8b['length']-0x1],_0x3910be=_0x28e33b['split']('.')[0x1];return _0x41179a['fetch'](_0x5d3bf4['href'])['then'](_0x275c61=>_0x275c61['clone']()['blob']())['then'](_0x5e99d5=>new _0x41179a['File']([_0x5e99d5],_0x28e33b,{'type':'image/'+_0x3910be}));}}class O extends _0x170658{['imageEditController'];static get['requires'](){return[_0x472fa3];}['_isEditable'];constructor(_0x2765d1){super(_0x2765d1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2bb64f){const _0x554089=G(_0x2bb64f);return _0x392dd1=>!(!_0x392dd1||!_0x392dd1['is']('element','imageBlock')&&!_0x392dd1['is']('element','imageInline'))&&(!!_0x392dd1['hasAttribute']('uploadcareImageId')||!!_0x392dd1['hasAttribute']('src')&&_0x554089(_0x392dd1['getAttribute']('src')));}(_0x2765d1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5cf585=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5cf585);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x54b2b5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54b2b5&&(_0x54b2b5['is']('element','imageBlock')||_0x54b2b5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x472fa3),_0x54b2b5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x170658{['refresh'](){const _0x3f4791=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3f4791&&(_0x3f4791['is']('element','imageBlock')||_0x3f4791['is']('element','imageInline')));}['execute'](_0x3b8185){const _0x590eb5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2a09d3=>{_0x2a09d3['setAttributes'](_0x3b8185,_0x590eb5),_0x2a09d3['removeAttribute']('srcset',_0x590eb5),_0x2a09d3['removeAttribute']('sizes',_0x590eb5);});}}class m extends _0x537fe0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x21c33a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb30a63}=this;_0xb30a63['commands']['add']('uploadcareImageEdit',new O(_0xb30a63)),_0xb30a63['commands']['add']('uploadcareImageReplace',new R(_0xb30a63));}}class g extends _0x537fe0{['_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 _0x508e6f=this['editor'];_0x508e6f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2cb6a1=>{const _0x89db78=_0x508e6f['commands']['get']('uploadcareImageEdit'),_0x3008c1=new _0x5dae27(_0x2cb6a1),t=_0x2cb6a1['t'];return _0x3008c1['set']({'icon':_0x49a58f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3008c1['bind']('isEnabled')['to'](_0x89db78),_0x3008c1['bind']('isOn')['to'](_0x89db78,'isActive'),this['listenTo'](_0x3008c1,'execute',()=>{_0x508e6f['execute']('uploadcareImageEdit'),_0x508e6f['editing']['view']['focus']();}),_0x3008c1;}),this['_initConfig']();}['_initConfig'](){const _0x1e7fe1=_0x38cad4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e7fe1),this['listenTo'](this['editor'],'destroy',()=>{_0x1e7fe1['remove']();});}}class et extends _0x537fe0{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-
|
|
3
|
+
"version": "0.0.0-nightly-20260105.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20260105.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260105.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20260105.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260105.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260105.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260105.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260105.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20260105.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x145464=_0x267c;(function(_0x37843b,_0x3ebc2f){const _0x278c5c=_0x267c,_0x3317aa=_0x37843b();while(!![]){try{const _0x527a13=parseInt(_0x278c5c(0xbf))/0x1*(-parseInt(_0x278c5c(0xdc))/0x2)+-parseInt(_0x278c5c(0xb3))/0x3+-parseInt(_0x278c5c(0xcb))/0x4+-parseInt(_0x278c5c(0xf0))/0x5*(parseInt(_0x278c5c(0x101))/0x6)+parseInt(_0x278c5c(0xdd))/0x7*(parseInt(_0x278c5c(0xb0))/0x8)+parseInt(_0x278c5c(0xee))/0x9+parseInt(_0x278c5c(0x100))/0xa*(parseInt(_0x278c5c(0xbc))/0xb);if(_0x527a13===_0x3ebc2f)break;else _0x3317aa['push'](_0x3317aa['shift']());}catch(_0x4fc469){_0x3317aa['push'](_0x3317aa['shift']());}}}(_0x3775,0x23156));import{Plugin as _0x12e2b9}from'ckeditor5/src/core.js';import{Dialog as _0x2c24d7}from'ckeditor5/src/ui.js';import{createElement as _0x571ef0,global as _0x3d7f3e,uid as _0x2105d5}from'ckeditor5/src/utils.js';function _0x3775(){const _0x548b5c=['downcast','\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','1723446oGacOe','replaceImageSource','597395pnisIl','afterInit','iconHrefResolver','editing','execute','isRegistered','uploadcare','getSelectedElement','schema','locale','imageInline','get','once','#uc-icon-arrow-down','conversion','querySelector','80hnXJmA','12egstdQ','render','contentLanguage','for','ucContextId','1064XmOboc','config','map','461787qeykwZ','commands','appendChild','editor','document','uploadcare.pubkey','_ctxElement','body','configElement','384626jGsOQq','view','uploadcare.uploader','108ajIVem','attributeToAttribute','_initCtx','elementToAttribute','selection','requires','href','removeAttribute','imageBlock','uc-config','_initConfig','uploadcareImageId','221800HaEZXC','ctxElement','uploadcareImageReplace','_configElement','cleanupImage','listenTo','remove','fromCharCode','UploadcareEditing','insertImage','isOfficialPlugin','uploader-','PictureEditing','_initImageProcessingIndicator','getAttribute','init','_initConversion','366LnocKW','7399fLKVAp','_initSchema','input[uploadcare-file-input]','upcast','uc-upload-ctx-provider','data-uc-image-id','extend','model','isPremiumPlugin','true','closeMax','add','pluginName','destroy','join'];_0x3775=function(){return _0x548b5c;};return _0x3775();}import{UploadcareCommand as _0xc62a35}from'./uploadcarecommand.js';function _0x267c(_0x35cce8,_0x4d756f){const _0x37750a=_0x3775();return _0x267c=function(_0x267c72,_0x21f1eb){_0x267c72=_0x267c72-0xad;let _0x54f4c1=_0x37750a[_0x267c72];return _0x54f4c1;},_0x267c(_0x35cce8,_0x4d756f);}import{UploadcareUploadAdapter as _0x588d05}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d5ba5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x12e2b9{[_0x145464(0xce)]=null;[_0x145464(0xb9)]=null;static get[_0x145464(0xe9)](){const _0xfbfd30=_0x145464;return _0xfbfd30(0xd3);}static get[_0x145464(0xc4)](){const _0x1ea868=_0x145464;return[_0x1ea868(0xd7),_0x588d05,_0x2c24d7];}static get[_0x145464(0xd5)](){return!0x0;}static get[_0x145464(0xe5)](){return!0x0;}[_0x145464(0xaf)];get[_0x145464(0xbb)](){const _0x35c678=_0x145464;return this[_0x35c678(0xce)];}get[_0x145464(0xcc)](){const _0x471437=_0x145464;return this[_0x471437(0xb9)];}constructor(_0x3a0d8c){const _0x1120cb=_0x145464;super(_0x3a0d8c),this[_0x1120cb(0xaf)]=_0x2105d5();}[_0x145464(0xda)](){const _0x5283a8=_0x145464,_0x4d757e=this[_0x5283a8(0xb6)];_0x4d757e[_0x5283a8(0xb4)][_0x5283a8(0xe8)](_0x5283a8(0xf6),new _0xc62a35(_0x4d757e));}[_0x145464(0xf1)](){const _0x8a314e=_0x145464;this[_0x8a314e(0xde)](),this[_0x8a314e(0xdb)](),this[_0x8a314e(0xc9)](),this[_0x8a314e(0xc1)](),this[_0x8a314e(0xd8)](),this[_0x8a314e(0xd0)](this[_0x8a314e(0xb6)],_0x8a314e(0xea),()=>{const _0x6039e=_0x8a314e;this[_0x6039e(0xce)]&&(this[_0x6039e(0xce)][_0x6039e(0xd1)](),this[_0x6039e(0xce)]=null),this[_0x6039e(0xb9)]&&(this[_0x6039e(0xb9)][_0x6039e(0xd1)](),this[_0x6039e(0xb9)]=null);const _0x31efb0=_0x3d7f3e[_0x6039e(0xb7)][_0x6039e(0xff)](_0x6039e(0xdf));_0x31efb0&&_0x31efb0[_0x6039e(0xd1)]();}),async function(_0x1919d2){const _0x4a6be4=_0x154c71([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]),_0x4eb3cf=0x535f8c3a,_0x2afd57=0x5358f1e2^_0x4eb3cf,_0x21ec7c=window[_0x154c71([0x44,0x61,0x74,0x65])][_0x154c71([0x6e,0x6f,0x77])](),_0x308d43=_0x1919d2[_0x154c71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x445198=new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18dee0=>{_0x308d43[_0x154c71([0x6f,0x6e,0x63,0x65])](_0x154c71([0x72,0x65,0x61,0x64,0x79]),_0x18dee0);}),_0x33f5b8={[_0x154c71([0x6b,0x74,0x79])]:_0x154c71([0x45,0x43]),[_0x154c71([0x75,0x73,0x65])]:_0x154c71([0x73,0x69,0x67]),[_0x154c71([0x63,0x72,0x76])]:_0x154c71([0x50,0x2d,0x32,0x35,0x36]),[_0x154c71([0x78])]:_0x154c71([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]),[_0x154c71([0x79])]:_0x154c71([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]),[_0x154c71([0x61,0x6c,0x67])]:_0x154c71([0x45,0x53,0x32,0x35,0x36])},_0x55ca0f=_0x308d43[_0x154c71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x154c71([0x67,0x65,0x74])](_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fa33(){let _0x24ffd3,_0x32208b=null,_0x20aecc=null;try{if(_0x55ca0f==_0x154c71([0x47,0x50,0x4c]))return _0x154c71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24ffd3=_0x1eac83(),!_0x24ffd3)return _0x154c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24ffd3[_0x154c71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20aecc=_0x4d1b45(_0x24ffd3[_0x154c71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24ffd3[_0x154c71([0x6a,0x74,0x69])])),await _0xd00ef()?_0x4c34e2()?_0x62b083()?_0x154c71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43e573()?(_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x154c71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32208b=_0x1071b8(_0x154c71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x154c71([0x74,0x72,0x69,0x61,0x6c])&&(_0x32208b=_0x1071b8(_0x154c71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x433de1()):_0x154c71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x154c71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x154c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x154c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x62b083(){const _0x336364=[_0x154c71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x154c71([0x74,0x72,0x69,0x61,0x6c])][_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21ec7c/0x3e8:0xe10*_0x2afd57;return _0x24ffd3[_0x154c71([0x65,0x78,0x70])]<_0x336364;}function _0x4c34e2(){const _0x2ed1a7=_0x24ffd3[_0x154c71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ed1a7&&(!!_0x2ed1a7[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154c71([0x2a]))||!!_0x2ed1a7[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154c71([0x55,0x50,0x4c,0x43])));}function _0x43e573(){const _0x2498e3=_0x267c,_0x18329d=_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18329d||0x0==_0x18329d[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xec318e}=new URL(window[_0x154c71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2498e3(0xc5)]);if(_0x18329d[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec318e))return!0x0;const _0x22a813=_0xec318e[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e]));return _0x18329d[_0x154c71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ec9dc=>_0x5ec9dc[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154c71([0x2a])))[_0x154c71([0x6d,0x61,0x70])](_0x400e23=>_0x400e23[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e])))[_0x154c71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cf5d7=>_0x1cf5d7[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22a813[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x154c71([0x6d,0x61,0x70])](_0x4868f5=>Array(_0x22a813[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4868f5[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x154c71([0x66,0x69,0x6c,0x6c])](_0x4868f5[0x0]===_0x154c71([0x2a])?_0x154c71([0x2a]):'')[_0x154c71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4868f5))[_0x154c71([0x73,0x6f,0x6d,0x65])](_0x6d0208=>_0x22a813[_0x154c71([0x65,0x76,0x65,0x72,0x79])]((_0x3a34bc,_0x8e2845)=>_0x6d0208[_0x8e2845]===_0x3a34bc||_0x6d0208[_0x8e2845]===_0x154c71([0x2a])));}function _0x433de1(){return _0x32208b&&_0x20aecc?new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x504efe,_0xf117d9)=>{_0x32208b[_0x154c71([0x74,0x68,0x65,0x6e])](_0x504efe,_0xf117d9),_0x20aecc[_0x154c71([0x74,0x68,0x65,0x6e])](_0x556a90=>{_0x556a90!=_0x154c71([0x56,0x61,0x6c,0x69,0x64])&&_0x504efe(_0x556a90);},_0xf117d9);}):_0x32208b||_0x20aecc||_0x154c71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d1b45(_0x2424ac,_0xb73a16){return new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x579197=>{if(_0xffc3af())return _0x579197(_0x154c71([0x56,0x61,0x6c,0x69,0x64]));_0x2c0a28(),_0x308d43[_0x154c71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x154c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7afd49=!0x1;const _0x583cf7=_0x2105d5();function _0xe839c2(_0x24b459){return!!_0x24b459&&(typeof _0x24b459===_0x154c71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x24b459===_0x154c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x24b459[_0x154c71([0x74,0x68,0x65,0x6e])]===_0x154c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x24b459[_0x154c71([0x63,0x61,0x74,0x63,0x68])]===_0x154c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c972f(_0x43e75){_0x719636(_0x43e75)[_0x154c71([0x74,0x68,0x65,0x6e])](_0x60ad94=>{if(!_0x60ad94||_0x60ad94[_0x154c71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x154c71([0x6f,0x6b]))return _0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8a9fe(_0x4abb18(_0x583cf7+_0xb73a16))!=_0x60ad94[_0x154c71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x154c71([0x56,0x61,0x6c,0x69,0x64]);})[_0x154c71([0x74,0x68,0x65,0x6e])](_0x3cf3e5=>(_0x417ca3(),_0x3cf3e5),()=>{const _0x26c60f=_0x2e064a();return null==_0x26c60f?(_0x417ca3(),_0x154c71([0x56,0x61,0x6c,0x69,0x64])):_0x154c71(_0x21ec7c-_0x26c60f>(0x7753083a^_0x4eb3cf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x154c71([0x74,0x68,0x65,0x6e])](_0x579197)[_0x154c71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x579197(_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x296d0c=0x536962ba^_0x4eb3cf;function _0x417ca3(){const _0x1de784=_0x154c71([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a9fe(_0x4abb18(_0x2424ac)),_0x4eb91f=_0x3fcd0d(_0x8a9fe(window[_0x154c71([0x4d,0x61,0x74,0x68])][_0x154c71([0x63,0x65,0x69,0x6c])](_0x21ec7c/_0x296d0c)));window[_0x154c71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x154c71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1de784,_0x4eb91f);}function _0x2e064a(){const _0x21db3e=_0x154c71([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a9fe(_0x4abb18(_0x2424ac)),_0x48805b=window[_0x154c71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x154c71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21db3e);return _0x48805b?window[_0x154c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fcd0d(_0x48805b),0x10)*_0x296d0c:null;}function _0x719636(_0x6b8c84){return new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x156034,_0x56c6db)=>{_0x6b8c84[_0x154c71([0x74,0x68,0x65,0x6e])](_0x156034,_0x56c6db),window[_0x154c71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56c6db,0x535e58fa^_0x4eb3cf);});}}_0x308d43[_0x154c71([0x6f,0x6e])](_0x154c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f04e0,_0x3353c5)=>{if(_0x3353c5[0x0]!=_0x2424ac)return _0x579197(_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3353c5[0x1]={..._0x3353c5[0x1],[_0x154c71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x583cf7};},{[_0x154c71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x154c71([0x68,0x69,0x67,0x68])}),_0x308d43[_0x154c71([0x6f,0x6e])](_0x154c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32f431=>{_0xe839c2(_0x32f431[_0x154c71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7afd49=!0x0,_0x3c972f(_0x32f431[_0x154c71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x154c71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x154c71([0x6c,0x6f,0x77])}),_0x445198[_0x154c71([0x74,0x68,0x65,0x6e])](()=>{_0x7afd49||_0x579197(_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xffc3af(){return _0x308d43[_0x154c71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154c71([0x76,0x69,0x65,0x77])][_0x154c71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x154c71([0x61,0x75,0x74,0x6f]);}function _0x2c0a28(){_0x308d43[_0x154c71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154c71([0x76,0x69,0x65,0x77])][_0x154c71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x154c71([0x61,0x75,0x74,0x6f]);}}function _0x1071b8(_0x3707fe){const _0x106d1e=[new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ecfb1=>setTimeout(_0x4ecfb1,0x5356b2f6^_0x4eb3cf)),_0x445198[_0x154c71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x397cff=>{let _0xc825c4=0x0;_0x308d43[_0x154c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x154c71([0x6f,0x6e])](_0x154c71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4afb59,_0x6fde9a)=>{_0x6fde9a[0x0][_0x154c71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc825c4++,_0xc825c4==(0x535f89d2^_0x4eb3cf)&&(_0x397cff(),_0x4afb59[_0x154c71([0x6f,0x66,0x66])]());});}))];return window[_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x154c71([0x72,0x61,0x63,0x65])](_0x106d1e)[_0x154c71([0x74,0x68,0x65,0x6e])](()=>_0x3707fe);}async function _0x52c7a8(){await _0x445198,_0x308d43[_0x154c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x154c71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc899d6,_0x308d43[_0x154c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x154c71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc899d6,_0x308d43[_0x154c71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x154c71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fadb2(_0x542c64){const _0x50e3bc=_0x209882();_0x308d43[_0x50e3bc]=_0x154c71([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x542c64,_0x542c64!=_0x154c71([0x56,0x61,0x6c,0x69,0x64])&&_0x52c7a8();}function _0x209882(){const _0x530fa1=window[_0x154c71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x154c71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x154c71([0x6e,0x6f,0x77])]())[_0x154c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x154c71([0x2e]),'');let _0x4c9bc7=_0x154c71([0x68]);for(let _0x15bb57=0x0;_0x15bb57<_0x530fa1[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15bb57+=0x2){let _0x4b3d98=window[_0x154c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x530fa1[_0x154c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15bb57,_0x15bb57+0x2));_0x4b3d98>=_0x4a6be4[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b3d98-=_0x4a6be4[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c9bc7+=_0x4a6be4[_0x4b3d98];}return _0x4c9bc7;}function _0x1eac83(){const _0x3dd300=_0x55ca0f[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e]));if(0x3!=_0x3dd300[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58ef5e(_0x3dd300[0x1]);function _0x58ef5e(_0x907395){const _0x36316b=_0x1f471c(_0x907395);return _0x36316b&&_0x1f7be6()?_0x36316b:null;function _0x1f7be6(){const _0x2047ba=_0x36316b[_0x154c71([0x6a,0x74,0x69])],_0x2e741d=window[_0x154c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2047ba[_0x154c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2047ba[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe92657={..._0x36316b,[_0x154c71([0x6a,0x74,0x69])]:_0x2047ba[_0x154c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2047ba[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe92657[_0x154c71([0x76,0x63])],_0x4abb18(_0xe92657)==_0x2e741d;}}}async function _0xd00ef(){let _0x2ab95b=!0x0;try{const _0x50c7bb=_0x55ca0f[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e])),[_0x38f026,_0x5f0b41,_0x4b6db5]=_0x50c7bb;return _0x577d92(_0x38f026),await _0x501f7b(_0x38f026,_0x5f0b41,_0x4b6db5),_0x2ab95b;}catch{return!0x1;}function _0x577d92(_0x54df1b){const _0x5231b5=_0x1f471c(_0x54df1b);_0x5231b5&&_0x5231b5[_0x154c71([0x61,0x6c,0x67])]==_0x154c71([0x45,0x53,0x32,0x35,0x36])||(_0x2ab95b=!0x1);}async function _0x501f7b(_0x4e91d0,_0x44818a,_0x1d91fe){const _0x1508c1=window[_0x154c71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x154c71([0x66,0x72,0x6f,0x6d])](_0x13cfb4(_0x1d91fe),_0x49d2e8=>_0x49d2e8[_0x154c71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc68ba5=new window[(_0x154c71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x154c71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e91d0+_0x154c71([0x2e])+_0x44818a),_0x15a3f7=window[_0x154c71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x154c71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15a3f7)return;const _0x1a2f93=await _0x15a3f7[_0x154c71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x154c71([0x6a,0x77,0x6b]),_0x33f5b8,{[_0x154c71([0x6e,0x61,0x6d,0x65])]:_0x154c71([0x45,0x43,0x44,0x53,0x41]),[_0x154c71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x154c71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x154c71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15a3f7[_0x154c71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x154c71([0x6e,0x61,0x6d,0x65])]:_0x154c71([0x45,0x43,0x44,0x53,0x41]),[_0x154c71([0x68,0x61,0x73,0x68])]:{[_0x154c71([0x6e,0x61,0x6d,0x65])]:_0x154c71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a2f93,_0x1508c1,_0xc68ba5)||(_0x2ab95b=!0x1);}}function _0x1f471c(_0x35b75e){return _0x35b75e[_0x154c71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x154c71([0x65,0x79]))?JSON[_0x154c71([0x70,0x61,0x72,0x73,0x65])](_0x13cfb4(_0x35b75e)):null;}function _0x13cfb4(_0x39f85b){return window[_0x154c71([0x61,0x74,0x6f,0x62])](_0x39f85b[_0x154c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x154c71([0x2b]))[_0x154c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x154c71([0x2f])));}function _0x4abb18(_0x32f29b){let _0x21cb0c=0x1505;function _0x476c3d(_0x4ae7ce){for(let _0x5ccce4=0x0;_0x5ccce4<_0x4ae7ce[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ccce4++){const _0x19ac18=_0x4ae7ce[_0x154c71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ccce4);_0x21cb0c=(_0x21cb0c<<0x5)+_0x21cb0c+_0x19ac18,_0x21cb0c&=_0x21cb0c;}}function _0x3f4280(_0x23fe70){Array[_0x154c71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23fe70)?_0x23fe70[_0x154c71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f4280):_0x23fe70&&typeof _0x23fe70==_0x154c71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x154c71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23fe70)[_0x154c71([0x73,0x6f,0x72,0x74])]()[_0x154c71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e3210,_0xe0a587])=>{_0x476c3d(_0x5e3210),_0x3f4280(_0xe0a587);}):_0x476c3d(window[_0x154c71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23fe70));}return _0x3f4280(_0x32f29b),_0x21cb0c>>>0x0;}function _0x8a9fe(_0x422c4e){return _0x422c4e[_0x154c71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x154c71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x154c71([0x30]));}function _0x3fcd0d(_0x4ce00b){return _0x4ce00b[_0x154c71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x154c71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x154c71([0x6a,0x6f,0x69,0x6e])]('');}function _0xc899d6(){}function _0x154c71(_0x4b4ce2){const _0x4347fd=_0x267c;return _0x4b4ce2[_0x4347fd(0xb2)](_0x5534f5=>String[_0x4347fd(0xd2)](_0x5534f5))[_0x4347fd(0xeb)]('');}_0x1fadb2(await _0x30fa33());}(this);}[_0x145464(0xde)](){const _0x3021bc=_0x145464,_0x42f453=this[_0x3021bc(0xb6)][_0x3021bc(0xe4)][_0x3021bc(0xf8)];_0x42f453[_0x3021bc(0xf5)](_0x3021bc(0xc7))&&_0x42f453[_0x3021bc(0xe3)](_0x3021bc(0xc7),{'allowAttributes':[_0x3021bc(0xca)]}),_0x42f453[_0x3021bc(0xf5)](_0x3021bc(0xfa))&&_0x42f453[_0x3021bc(0xe3)](_0x3021bc(0xfa),{'allowAttributes':[_0x3021bc(0xca)]});}[_0x145464(0xdb)](){const _0x231010=_0x145464,_0x315017=this[_0x231010(0xb6)];_0x315017[_0x231010(0xfe)][_0x231010(0xae)](_0x231010(0xec))[_0x231010(0xc0)]({'model':_0x231010(0xca),'view':_0x231010(0xe2)}),_0x315017[_0x231010(0xfe)][_0x231010(0xae)](_0x231010(0xe0))[_0x231010(0xc2)]({'model':{'key':_0x231010(0xca),'value':_0x1826ae=>_0x1826ae[_0x231010(0xd9)](_0x231010(0xe2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ac901=_0x315017[_0x231010(0xb4)][_0x231010(0xfb)](_0x231010(0xef));_0x5ac901&&this[_0x231010(0xd0)](_0x5ac901,_0x231010(0xcf),(_0x23cd32,[_0x399523,_0x20cbd6])=>{const _0x2cc7e9=_0x231010;_0x399523[_0x2cc7e9(0xc6)](_0x2cc7e9(0xca),_0x20cbd6);});}[_0x145464(0xc9)](){const _0x547d29=_0x145464,_0x2baa47=this[_0x547d29(0xb6)][_0x547d29(0xb1)][_0x547d29(0xfb)](_0x547d29(0xbe))||{},_0x9cfe7d=this[_0x547d29(0xb6)][_0x547d29(0xb1)][_0x547d29(0xfb)](_0x547d29(0xb8))||'';this[_0x547d29(0xce)]=_0x571ef0(_0x3d7f3e[_0x547d29(0xb7)],_0x547d29(0xc8),{..._0x2baa47,'pubkey':_0x9cfe7d,'ctx-name':_0x547d29(0xd6)+this[_0x547d29(0xaf)],'sourceList':'','imgOnly':_0x547d29(0xe6),'removeCopyright':_0x547d29(0xe6),'localeName':this[_0x547d29(0xb6)][_0x547d29(0xf9)][_0x547d29(0xad)],'externalSourcesEmbedCss':_0x547d29(0xed)}),this[_0x547d29(0xce)][_0x547d29(0xf2)]=_0x3d3765=>{const _0x2c0fca=_0x547d29;if(_0x2c0fca(0xe7)==_0x3d3765)return _0x2c0fca(0xfd);},_0x3d7f3e[_0x547d29(0xb7)][_0x547d29(0xba)][_0x547d29(0xb5)](this[_0x547d29(0xce)]);}[_0x145464(0xc1)](){const _0x36a9d8=_0x145464;this[_0x36a9d8(0xb9)]=_0x571ef0(_0x3d7f3e[_0x36a9d8(0xb7)],_0x36a9d8(0xe1),{'ctx-name':_0x36a9d8(0xd6)+this[_0x36a9d8(0xaf)]}),_0x3d7f3e[_0x36a9d8(0xb7)][_0x36a9d8(0xba)][_0x36a9d8(0xb5)](this[_0x36a9d8(0xb9)]);}[_0x145464(0xd8)](){const _0x40e0a4=_0x145464,_0x1b6530=this[_0x40e0a4(0xb6)][_0x40e0a4(0xb4)][_0x40e0a4(0xfb)](_0x40e0a4(0xd4));_0x1b6530&&this[_0x40e0a4(0xd0)](_0x1b6530,_0x40e0a4(0xf4),()=>{const _0xd5953b=_0x40e0a4,_0x587c48=this[_0xd5953b(0xb6)][_0xd5953b(0xe4)][_0xd5953b(0xb7)][_0xd5953b(0xc3)][_0xd5953b(0xf7)]();_0x587c48&&_0x587c48[_0xd5953b(0xd9)](_0xd5953b(0xca))&&this[_0xd5953b(0xb6)][_0xd5953b(0xf3)][_0xd5953b(0xbd)][_0xd5953b(0xfc)](_0xd5953b(0x102),()=>{const _0x330692=_0xd5953b;_0x4d5ba5(this[_0x330692(0xb6)],_0x587c48);});});const _0xa6cce=this[_0x40e0a4(0xb6)][_0x40e0a4(0xb4)][_0x40e0a4(0xfb)](_0x40e0a4(0xcd));_0xa6cce&&this[_0x40e0a4(0xd0)](_0xa6cce,_0x40e0a4(0xf4),()=>{const _0x1d7f89=_0x40e0a4,_0x881251=this[_0x1d7f89(0xb6)][_0x1d7f89(0xe4)][_0x1d7f89(0xb7)][_0x1d7f89(0xc3)][_0x1d7f89(0xf7)]();_0x881251&&_0x881251[_0x1d7f89(0xd9)](_0x1d7f89(0xca))&&this[_0x1d7f89(0xb6)][_0x1d7f89(0xf3)][_0x1d7f89(0xbd)][_0x1d7f89(0xfc)](_0x1d7f89(0x102),()=>{const _0x5cd744=_0x1d7f89;_0x4d5ba5(this[_0x5cd744(0xb6)],_0x881251);});});}}
|
|
23
|
+
const _0x3c776b=_0x46b7;(function(_0x1a6bb6,_0x367a04){const _0x15a621=_0x46b7,_0x564b46=_0x1a6bb6();while(!![]){try{const _0x3ab9ac=-parseInt(_0x15a621(0x1f0))/0x1+-parseInt(_0x15a621(0x1c1))/0x2*(parseInt(_0x15a621(0x201))/0x3)+parseInt(_0x15a621(0x20b))/0x4*(-parseInt(_0x15a621(0x1d4))/0x5)+parseInt(_0x15a621(0x1fb))/0x6*(-parseInt(_0x15a621(0x1f1))/0x7)+parseInt(_0x15a621(0x1da))/0x8*(-parseInt(_0x15a621(0x202))/0x9)+parseInt(_0x15a621(0x206))/0xa+parseInt(_0x15a621(0x1fe))/0xb;if(_0x3ab9ac===_0x367a04)break;else _0x564b46['push'](_0x564b46['shift']());}catch(_0x237277){_0x564b46['push'](_0x564b46['shift']());}}}(_0x1753,0xd3dd2));import{Plugin as _0x57e60d}from'ckeditor5/src/core.js';function _0x1753(){const _0x5555a=['replaceImageSource','imageInline','querySelector','_initSchema','for','appendChild','downcast','_initImageProcessingIndicator','1544431HJgqbY','434AMiSSL','uploadcare.pubkey','selection','editor','destroy','map','upcast','uploadcare.uploader','true','_initConversion','11292bXMyRQ','view','pluginName','53635263WfoYvA','data-uc-image-id','conversion','2510751twWnLo','50211uNWyvG','document','render','body','811130vkthFd','uc-config','_initCtx','get','uploadcareImageReplace','4BLdMlI','iconHrefResolver','join','isOfficialPlugin','uploadcareImageId','init','ucContextId','UploadcareEditing','_configElement','afterInit','#uc-icon-arrow-down','getSelectedElement','2VsrNBK','removeAttribute','commands','add','listenTo','imageBlock','cleanupImage','\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','model','extend','isPremiumPlugin','ctxElement','config','PictureEditing','configElement','elementToAttribute','once','schema','editing','5696605pEtIpg','closeMax','uploader-','input[uploadcare-file-input]','uploadcare','attributeToAttribute','648fYPUlI','contentLanguage','fromCharCode','locale','remove','isRegistered','_ctxElement','_initConfig','execute','requires','uc-upload-ctx-provider','insertImage','href','getAttribute'];_0x1753=function(){return _0x5555a;};return _0x1753();}import{Dialog as _0x468353}from'ckeditor5/src/ui.js';import{createElement as _0x10cb33,global as _0x365182,uid as _0x519bc3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x234c49}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2e1967}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x401820}from'./utils/editingutils.js';function _0x46b7(_0x195295,_0x4eb1b6){const _0x175326=_0x1753();return _0x46b7=function(_0x46b7cf,_0x4301bc){_0x46b7cf=_0x46b7cf-0x1be;let _0x5305d6=_0x175326[_0x46b7cf];return _0x5305d6;},_0x46b7(_0x195295,_0x4eb1b6);}export class UploadcareEditing extends _0x57e60d{[_0x3c776b(0x213)]=null;[_0x3c776b(0x1e0)]=null;static get[_0x3c776b(0x1fd)](){const _0x1b1c3b=_0x3c776b;return _0x1b1c3b(0x212);}static get[_0x3c776b(0x1e3)](){const _0x136b3e=_0x3c776b;return[_0x136b3e(0x1ce),_0x2e1967,_0x468353];}static get[_0x3c776b(0x20e)](){return!0x0;}static get[_0x3c776b(0x1cb)](){return!0x0;}[_0x3c776b(0x211)];get[_0x3c776b(0x1cf)](){const _0x51f0bd=_0x3c776b;return this[_0x51f0bd(0x213)];}get[_0x3c776b(0x1cc)](){const _0x124e80=_0x3c776b;return this[_0x124e80(0x1e0)];}constructor(_0x5ca385){const _0x2eacd5=_0x3c776b;super(_0x5ca385),this[_0x2eacd5(0x211)]=_0x519bc3();}[_0x3c776b(0x210)](){const _0x1b1413=_0x3c776b,_0x3048ae=this[_0x1b1413(0x1f4)];_0x3048ae[_0x1b1413(0x1c3)][_0x1b1413(0x1c4)](_0x1b1413(0x1d8),new _0x234c49(_0x3048ae));}[_0x3c776b(0x1be)](){const _0x12517a=_0x3c776b;this[_0x12517a(0x1eb)](),this[_0x12517a(0x1fa)](),this[_0x12517a(0x1e1)](),this[_0x12517a(0x208)](),this[_0x12517a(0x1ef)](),this[_0x12517a(0x1c5)](this[_0x12517a(0x1f4)],_0x12517a(0x1f5),()=>{const _0x5ecc4d=_0x12517a;this[_0x5ecc4d(0x213)]&&(this[_0x5ecc4d(0x213)][_0x5ecc4d(0x1de)](),this[_0x5ecc4d(0x213)]=null),this[_0x5ecc4d(0x1e0)]&&(this[_0x5ecc4d(0x1e0)][_0x5ecc4d(0x1de)](),this[_0x5ecc4d(0x1e0)]=null);const _0x1968d9=_0x365182[_0x5ecc4d(0x203)][_0x5ecc4d(0x1ea)](_0x5ecc4d(0x1d7));_0x1968d9&&_0x1968d9[_0x5ecc4d(0x1de)]();}),async function(_0x2bb71a){const _0x20a6cb=_0x3172e7([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]),_0x245125=0x535f8c3a,_0x2e729a=0x5358f1ca^_0x245125,_0x5bdabf=window[_0x3172e7([0x44,0x61,0x74,0x65])][_0x3172e7([0x6e,0x6f,0x77])](),_0x1a5641=_0x2bb71a[_0x3172e7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47f5b7=new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x289ac7=>{_0x1a5641[_0x3172e7([0x6f,0x6e,0x63,0x65])](_0x3172e7([0x72,0x65,0x61,0x64,0x79]),_0x289ac7);}),_0x580cd6={[_0x3172e7([0x6b,0x74,0x79])]:_0x3172e7([0x45,0x43]),[_0x3172e7([0x75,0x73,0x65])]:_0x3172e7([0x73,0x69,0x67]),[_0x3172e7([0x63,0x72,0x76])]:_0x3172e7([0x50,0x2d,0x32,0x35,0x36]),[_0x3172e7([0x78])]:_0x3172e7([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]),[_0x3172e7([0x79])]:_0x3172e7([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]),[_0x3172e7([0x61,0x6c,0x67])]:_0x3172e7([0x45,0x53,0x32,0x35,0x36])},_0x58cb1f=_0x1a5641[_0x3172e7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3172e7([0x67,0x65,0x74])](_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x482f57(){let _0x43f38d,_0x4d8d79=null,_0x1fd881=null;try{if(_0x58cb1f==_0x3172e7([0x47,0x50,0x4c]))return _0x3172e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43f38d=_0x327137(),!_0x43f38d)return _0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43f38d[_0x3172e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fd881=_0x2d0b93(_0x43f38d[_0x3172e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43f38d[_0x3172e7([0x6a,0x74,0x69])])),await _0x409a0d()?_0x433359()?_0x1934af()?_0x3172e7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cef20()?(_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3172e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d8d79=_0x15ffff(_0x3172e7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3172e7([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d8d79=_0x15ffff(_0x3172e7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x232700()):_0x3172e7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3172e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1934af(){const _0x52740d=[_0x3172e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3172e7([0x74,0x72,0x69,0x61,0x6c])][_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bdabf/0x3e8:0xe10*_0x2e729a;return _0x43f38d[_0x3172e7([0x65,0x78,0x70])]<_0x52740d;}function _0x433359(){const _0x317e07=_0x43f38d[_0x3172e7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x317e07&&(!!_0x317e07[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x2a]))||!!_0x317e07[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x55,0x50,0x4c,0x43])));}function _0x4cef20(){const _0x31b40c=_0x46b7,_0x16e934=_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e934||0x0==_0x16e934[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37512e}=new URL(window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31b40c(0x1e6)]);if(_0x16e934[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37512e))return!0x0;const _0x12d857=_0x37512e[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e]));return _0x16e934[_0x3172e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12eba4=>_0x12eba4[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x2a])))[_0x3172e7([0x6d,0x61,0x70])](_0x3bc265=>_0x3bc265[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e])))[_0x3172e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9c2cfe=>_0x9c2cfe[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x12d857[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3172e7([0x6d,0x61,0x70])](_0x1e65cb=>Array(_0x12d857[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e65cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3172e7([0x66,0x69,0x6c,0x6c])](_0x1e65cb[0x0]===_0x3172e7([0x2a])?_0x3172e7([0x2a]):'')[_0x3172e7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e65cb))[_0x3172e7([0x73,0x6f,0x6d,0x65])](_0x246490=>_0x12d857[_0x3172e7([0x65,0x76,0x65,0x72,0x79])]((_0x420bf4,_0x10886f)=>_0x246490[_0x10886f]===_0x420bf4||_0x246490[_0x10886f]===_0x3172e7([0x2a])));}function _0x232700(){return _0x4d8d79&&_0x1fd881?new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x389d62,_0x365086)=>{_0x4d8d79[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x389d62,_0x365086),_0x1fd881[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x495908=>{_0x495908!=_0x3172e7([0x56,0x61,0x6c,0x69,0x64])&&_0x389d62(_0x495908);},_0x365086);}):_0x4d8d79||_0x1fd881||_0x3172e7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0b93(_0xade74e,_0x5cf74c){return new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561791=>{if(_0x23760f())return _0x561791(_0x3172e7([0x56,0x61,0x6c,0x69,0x64]));_0x2ab2e9(),_0x1a5641[_0x3172e7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c40ca=!0x1;const _0x449ca5=_0x519bc3();function _0x412ca3(_0x2632e6){return!!_0x2632e6&&(typeof _0x2632e6===_0x3172e7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2632e6===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2632e6[_0x3172e7([0x74,0x68,0x65,0x6e])]===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2632e6[_0x3172e7([0x63,0x61,0x74,0x63,0x68])]===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x419c62(_0x1851a2){_0x42c926(_0x1851a2)[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x5e995b=>{if(!_0x5e995b||_0x5e995b[_0x3172e7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3172e7([0x6f,0x6b]))return _0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x536463(_0x59c2ee(_0x449ca5+_0x5cf74c))!=_0x5e995b[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3172e7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x3f3fd6=>(_0x4ba8af(),_0x3f3fd6),()=>{const _0x10d0ee=_0x2fb474();return null==_0x10d0ee?(_0x4ba8af(),_0x3172e7([0x56,0x61,0x6c,0x69,0x64])):_0x3172e7(_0x5bdabf-_0x10d0ee>(0x7753083a^_0x245125)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x561791)[_0x3172e7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x380fac=0x536962ba^_0x245125;function _0x4ba8af(){const _0x124e64=_0x3172e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536463(_0x59c2ee(_0xade74e)),_0xdb9e61=_0x151267(_0x536463(window[_0x3172e7([0x4d,0x61,0x74,0x68])][_0x3172e7([0x63,0x65,0x69,0x6c])](_0x5bdabf/_0x380fac)));window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3172e7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124e64,_0xdb9e61);}function _0x2fb474(){const _0x2a2887=_0x3172e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536463(_0x59c2ee(_0xade74e)),_0x1b381c=window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3172e7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a2887);return _0x1b381c?window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151267(_0x1b381c),0x10)*_0x380fac:null;}function _0x42c926(_0xe7b15){return new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e6ae,_0x22a4df)=>{_0xe7b15[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x31e6ae,_0x22a4df),window[_0x3172e7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a4df,0x535e58fa^_0x245125);});}}_0x1a5641[_0x3172e7([0x6f,0x6e])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48c270,_0x40556d)=>{if(_0x40556d[0x0]!=_0xade74e)return _0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40556d[0x1]={..._0x40556d[0x1],[_0x3172e7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x449ca5};},{[_0x3172e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3172e7([0x68,0x69,0x67,0x68])}),_0x1a5641[_0x3172e7([0x6f,0x6e])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x354776=>{_0x412ca3(_0x354776[_0x3172e7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c40ca=!0x0,_0x419c62(_0x354776[_0x3172e7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3172e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3172e7([0x6c,0x6f,0x77])}),_0x47f5b7[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>{_0x5c40ca||_0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23760f(){return _0x1a5641[_0x3172e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3172e7([0x76,0x69,0x65,0x77])][_0x3172e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3172e7([0x61,0x75,0x74,0x6f]);}function _0x2ab2e9(){_0x1a5641[_0x3172e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3172e7([0x76,0x69,0x65,0x77])][_0x3172e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3172e7([0x61,0x75,0x74,0x6f]);}}function _0x15ffff(_0x491830){const _0x3e9d22=[new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8e18=>setTimeout(_0x4a8e18,0x5356b2f6^_0x245125)),_0x47f5b7[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf68d=>{let _0x4150c3=0x0;_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x6f,0x6e])](_0x3172e7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b5715,_0x596d8e)=>{_0x596d8e[0x0][_0x3172e7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4150c3++,_0x4150c3==(0x535f89d2^_0x245125)&&(_0x4cf68d(),_0x1b5715[_0x3172e7([0x6f,0x66,0x66])]());});}))];return window[_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3172e7([0x72,0x61,0x63,0x65])](_0x3e9d22)[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>_0x491830);}async function _0x3761f7(){await _0x47f5b7,_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa5e5dd,_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa5e5dd,_0x1a5641[_0x3172e7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23b57f(_0x3dbcec){const _0x4e9535=_0x4ecb18();_0x1a5641[_0x4e9535]=_0x3172e7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dbcec,_0x3dbcec!=_0x3172e7([0x56,0x61,0x6c,0x69,0x64])&&_0x3761f7();}function _0x4ecb18(){const _0x34c933=window[_0x3172e7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3172e7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3172e7([0x6e,0x6f,0x77])]())[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3172e7([0x2e]),'');let _0x4e8fac=_0x3172e7([0x68]);for(let _0x2086b7=0x0;_0x2086b7<_0x34c933[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2086b7+=0x2){let _0x325451=window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c933[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2086b7,_0x2086b7+0x2));_0x325451>=_0x20a6cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325451-=_0x20a6cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e8fac+=_0x20a6cb[_0x325451];}return _0x4e8fac;}function _0x327137(){const _0x447795=_0x58cb1f[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e]));if(0x3!=_0x447795[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ae8dd(_0x447795[0x1]);function _0x5ae8dd(_0x600d3c){const _0x5e3d12=_0x252645(_0x600d3c);return _0x5e3d12&&_0x93192e()?_0x5e3d12:null;function _0x93192e(){const _0x30989c=_0x5e3d12[_0x3172e7([0x6a,0x74,0x69])],_0x1a55d9=window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30989c[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30989c[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1329cc={..._0x5e3d12,[_0x3172e7([0x6a,0x74,0x69])]:_0x30989c[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30989c[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1329cc[_0x3172e7([0x76,0x63])],_0x59c2ee(_0x1329cc)==_0x1a55d9;}}}async function _0x409a0d(){let _0x317517=!0x0;try{const _0x2dbfbc=_0x58cb1f[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e])),[_0x2519a1,_0x1a3f0f,_0x4d84a0]=_0x2dbfbc;return _0x137edb(_0x2519a1),await _0x383c6d(_0x2519a1,_0x1a3f0f,_0x4d84a0),_0x317517;}catch{return!0x1;}function _0x137edb(_0x506b0c){const _0x2f6a33=_0x252645(_0x506b0c);_0x2f6a33&&_0x2f6a33[_0x3172e7([0x61,0x6c,0x67])]==_0x3172e7([0x45,0x53,0x32,0x35,0x36])||(_0x317517=!0x1);}async function _0x383c6d(_0x4fa268,_0x37d548,_0x59cbdd){const _0x4a30e8=window[_0x3172e7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3172e7([0x66,0x72,0x6f,0x6d])](_0xb20dcf(_0x59cbdd),_0x39feed=>_0x39feed[_0x3172e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x153a4f=new window[(_0x3172e7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3172e7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fa268+_0x3172e7([0x2e])+_0x37d548),_0x4ac306=window[_0x3172e7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3172e7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ac306)return;const _0x40ab55=await _0x4ac306[_0x3172e7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3172e7([0x6a,0x77,0x6b]),_0x580cd6,{[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x45,0x43,0x44,0x53,0x41]),[_0x3172e7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3172e7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ac306[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x45,0x43,0x44,0x53,0x41]),[_0x3172e7([0x68,0x61,0x73,0x68])]:{[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ab55,_0x4a30e8,_0x153a4f)||(_0x317517=!0x1);}}function _0x252645(_0x57a3d0){return _0x57a3d0[_0x3172e7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3172e7([0x65,0x79]))?JSON[_0x3172e7([0x70,0x61,0x72,0x73,0x65])](_0xb20dcf(_0x57a3d0)):null;}function _0xb20dcf(_0x459d83){return window[_0x3172e7([0x61,0x74,0x6f,0x62])](_0x459d83[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3172e7([0x2b]))[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3172e7([0x2f])));}function _0x59c2ee(_0x2a7613){let _0x2a706c=0x1505;function _0x274031(_0x23f0d0){for(let _0x5ae0a6=0x0;_0x5ae0a6<_0x23f0d0[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ae0a6++){const _0x576d66=_0x23f0d0[_0x3172e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ae0a6);_0x2a706c=(_0x2a706c<<0x5)+_0x2a706c+_0x576d66,_0x2a706c&=_0x2a706c;}}function _0x50c897(_0x511a76){Array[_0x3172e7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x511a76)?_0x511a76[_0x3172e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50c897):_0x511a76&&typeof _0x511a76==_0x3172e7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3172e7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x511a76)[_0x3172e7([0x73,0x6f,0x72,0x74])]()[_0x3172e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55b21f,_0x3c6458])=>{_0x274031(_0x55b21f),_0x50c897(_0x3c6458);}):_0x274031(window[_0x3172e7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x511a76));}return _0x50c897(_0x2a7613),_0x2a706c>>>0x0;}function _0x536463(_0x106beb){return _0x106beb[_0x3172e7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3172e7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3172e7([0x30]));}function _0x151267(_0x396a99){return _0x396a99[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3172e7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3172e7([0x6a,0x6f,0x69,0x6e])]('');}function _0xa5e5dd(){}function _0x3172e7(_0x4145e5){const _0x49b5fb=_0x46b7;return _0x4145e5[_0x49b5fb(0x1f6)](_0x26f6d0=>String[_0x49b5fb(0x1dc)](_0x26f6d0))[_0x49b5fb(0x20d)]('');}_0x23b57f(await _0x482f57());}(this);}[_0x3c776b(0x1eb)](){const _0x442520=_0x3c776b,_0x45a268=this[_0x442520(0x1f4)][_0x442520(0x1c9)][_0x442520(0x1d2)];_0x45a268[_0x442520(0x1df)](_0x442520(0x1c6))&&_0x45a268[_0x442520(0x1ca)](_0x442520(0x1c6),{'allowAttributes':[_0x442520(0x20f)]}),_0x45a268[_0x442520(0x1df)](_0x442520(0x1e9))&&_0x45a268[_0x442520(0x1ca)](_0x442520(0x1e9),{'allowAttributes':[_0x442520(0x20f)]});}[_0x3c776b(0x1fa)](){const _0x4d67b0=_0x3c776b,_0x4dae5d=this[_0x4d67b0(0x1f4)];_0x4dae5d[_0x4d67b0(0x200)][_0x4d67b0(0x1ec)](_0x4d67b0(0x1ee))[_0x4d67b0(0x1d9)]({'model':_0x4d67b0(0x20f),'view':_0x4d67b0(0x1ff)}),_0x4dae5d[_0x4d67b0(0x200)][_0x4d67b0(0x1ec)](_0x4d67b0(0x1f7))[_0x4d67b0(0x1d0)]({'model':{'key':_0x4d67b0(0x20f),'value':_0x89c082=>_0x89c082[_0x4d67b0(0x1e7)](_0x4d67b0(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20804c=_0x4dae5d[_0x4d67b0(0x1c3)][_0x4d67b0(0x209)](_0x4d67b0(0x1e8));_0x20804c&&this[_0x4d67b0(0x1c5)](_0x20804c,_0x4d67b0(0x1c7),(_0x3cea6c,[_0x34e950,_0x508362])=>{const _0xb9638f=_0x4d67b0;_0x34e950[_0xb9638f(0x1c2)](_0xb9638f(0x20f),_0x508362);});}[_0x3c776b(0x1e1)](){const _0x35ad2a=_0x3c776b,_0x46b20c=this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1cd)][_0x35ad2a(0x209)](_0x35ad2a(0x1f8))||{},_0x515bbe=this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1cd)][_0x35ad2a(0x209)](_0x35ad2a(0x1f2))||'';this[_0x35ad2a(0x213)]=_0x10cb33(_0x365182[_0x35ad2a(0x203)],_0x35ad2a(0x207),{..._0x46b20c,'pubkey':_0x515bbe,'ctx-name':_0x35ad2a(0x1d6)+this[_0x35ad2a(0x211)],'sourceList':'','imgOnly':_0x35ad2a(0x1f9),'removeCopyright':_0x35ad2a(0x1f9),'localeName':this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1dd)][_0x35ad2a(0x1db)],'externalSourcesEmbedCss':_0x35ad2a(0x1c8)}),this[_0x35ad2a(0x213)][_0x35ad2a(0x20c)]=_0x1ce8b1=>{const _0x2cde45=_0x35ad2a;if(_0x2cde45(0x1d5)==_0x1ce8b1)return _0x2cde45(0x1bf);},_0x365182[_0x35ad2a(0x203)][_0x35ad2a(0x205)][_0x35ad2a(0x1ed)](this[_0x35ad2a(0x213)]);}[_0x3c776b(0x208)](){const _0x152f59=_0x3c776b;this[_0x152f59(0x1e0)]=_0x10cb33(_0x365182[_0x152f59(0x203)],_0x152f59(0x1e4),{'ctx-name':_0x152f59(0x1d6)+this[_0x152f59(0x211)]}),_0x365182[_0x152f59(0x203)][_0x152f59(0x205)][_0x152f59(0x1ed)](this[_0x152f59(0x1e0)]);}[_0x3c776b(0x1ef)](){const _0x456f5b=_0x3c776b,_0x5bc739=this[_0x456f5b(0x1f4)][_0x456f5b(0x1c3)][_0x456f5b(0x209)](_0x456f5b(0x1e5));_0x5bc739&&this[_0x456f5b(0x1c5)](_0x5bc739,_0x456f5b(0x1e2),()=>{const _0x216b67=_0x456f5b,_0x2015ba=this[_0x216b67(0x1f4)][_0x216b67(0x1c9)][_0x216b67(0x203)][_0x216b67(0x1f3)][_0x216b67(0x1c0)]();_0x2015ba&&_0x2015ba[_0x216b67(0x1e7)](_0x216b67(0x20f))&&this[_0x216b67(0x1f4)][_0x216b67(0x1d3)][_0x216b67(0x1fc)][_0x216b67(0x1d1)](_0x216b67(0x204),()=>{const _0x2fe63c=_0x216b67;_0x401820(this[_0x2fe63c(0x1f4)],_0x2015ba);});});const _0x2f64f5=this[_0x456f5b(0x1f4)][_0x456f5b(0x1c3)][_0x456f5b(0x209)](_0x456f5b(0x20a));_0x2f64f5&&this[_0x456f5b(0x1c5)](_0x2f64f5,_0x456f5b(0x1e2),()=>{const _0x13cbae=_0x456f5b,_0x30919b=this[_0x13cbae(0x1f4)][_0x13cbae(0x1c9)][_0x13cbae(0x203)][_0x13cbae(0x1f3)][_0x13cbae(0x1c0)]();_0x30919b&&_0x30919b[_0x13cbae(0x1e7)](_0x13cbae(0x20f))&&this[_0x13cbae(0x1f4)][_0x13cbae(0x1d3)][_0x13cbae(0x1fc)][_0x13cbae(0x1d1)](_0x13cbae(0x204),()=>{const _0x2d144a=_0x13cbae;_0x401820(this[_0x2d144a(0x1f4)],_0x30919b);});});}}
|