@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251227.0 → 0.0.0-nightly-20251228.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 _0x2723b6,Command as _0x3491f9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x14a7a9,IconGooglePhotos as _0x42481c,IconGoogleDrive as _0x1220da,IconFacebook as _0x11b3a7,IconDropbox as _0x3f3fa6,IconUploadcareLink as _0xaf475a,IconUploadcareImageUpload as _0x263869,IconError as _0x5c31d1,IconUploadcareImageEdit as _0x49d7ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc5e45d,MenuBarMenuListItemButtonView as _0x3728ec,View as _0x16f752,FocusCycler as _0x1974f2,Dialog as _0x191ec3,DialogViewPosition as _0x18a93e,SpinnerView as _0x263800,IconView as _0x2f5edc,Notification as _0x336fc8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x255547,DomEmitterMixin as _0x2c7ff7,global as _0x3f302c,getAncestors as _0x4212e9,ObservableMixin as _0x294507,uid as _0x5ecf0a,createElement as _0x377327}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xbc6b6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4dfdf3,info as _0x27e77f}from'@uploadcare/upload-client';import*as _0x53db37 from'@uploadcare/file-uploader';var i=function(_0x3404eb){return _0x3404eb['Local']='local',_0x3404eb['URL']='url',_0x3404eb['Dropbox']='dropbox',_0x3404eb['GDrive']='gdrive',_0x3404eb['Facebook']='facebook',_0x3404eb['GPhotos']='gphotos',_0x3404eb['OneDrive']='onedrive',_0x3404eb;}({});function _(_0x29542c,_0x477bb4,_0x96b20c){const t=_0x29542c['t'],_0xc74fc5=_0x29542c['t'];switch(_0x477bb4){case i['Local']:return{'text':_0xc74fc5('Insert'===_0x96b20c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xc74fc5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x96b20c?_0xc74fc5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xc74fc5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x477bb4;}}class e extends _0x2723b6{['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 _0x5b16c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x561592;for(const _0x309ae6 in _0x5b16c4){const _0x4e4b3f=_0x309ae6,_0xbdb2bf=_0x5b16c4[_0x4e4b3f];if('uploadcareLicenseKeyValid'==_0xbdb2bf||'uploadcareLicenseKeyInvalid'==_0xbdb2bf||'uploadcareLicenseKeyExpired'==_0xbdb2bf||'uploadcareLicenseKeyDomainLimit'==_0xbdb2bf||'uploadcareLicenseKeyNotAllowed'==_0xbdb2bf||'uploadcareLicenseKeyEvaluationLimit'==_0xbdb2bf||'uploadcareLicenseKeyTrialLimit'==_0xbdb2bf||'uploadcareLicenseKeyUsageLimit'==_0xbdb2bf){delete _0x5b16c4[_0x4e4b3f],_0x561592=_0xbdb2bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x561592&&_0x5b16c4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x561592&&_0x5b16c4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x561592&&_0x5b16c4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb4645a}=this,_0x6d531f=_0xb4645a['commands']['get']('uploadcare');if(!_0x6d531f)return;const _0x428d22=this['_normalizeConfigSourceList'](_0xb4645a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b87e9,_0x5d873f)=>{const _0x115a8b=this['_getIntegrationKey'](_0x5d873f['type']);return _0x5b87e9[_0x115a8b]||(_0x5b87e9[_0x115a8b]=[]),_0x5b87e9[_0x115a8b]['push'](_0x5d873f),_0x5b87e9;},{});_0xb4645a['plugins']['has']('ImageInsertUI')&&_0xb4645a['commands']['get']('uploadcare')&&Object['entries'](_0x428d22)['forEach'](([_0x309fd8,_0x3fa937])=>{_0xb4645a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x309fd8,'observable':()=>_0x6d531f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3fa937),'formViewCreator':()=>this['_createDropdownButtons'](_0x3fa937),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3fa937),'override':'assetManager'!==_0x309fd8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12a4c1){const {locale:_0x5961d0}=this['editor'];return _0x12a4c1['map'](_0x534536=>{const _0x2c9df4=_(_0x5961d0,_0x534536,'Insert');switch(_0x534536){case i['Local']:return{'icon':_0x263869,'type':i['Local'],..._0x2c9df4};case i['URL']:return{'icon':_0xaf475a,'type':i['URL'],..._0x2c9df4};case i['Dropbox']:return{'icon':_0x3f3fa6,'type':i['Dropbox'],..._0x2c9df4};case i['Facebook']:return{'icon':_0x11b3a7,'type':i['Facebook'],..._0x2c9df4};case i['GDrive']:return{'icon':_0x1220da,'type':i['GDrive'],..._0x2c9df4};case i['GPhotos']:return{'icon':_0x42481c,'type':i['GPhotos'],..._0x2c9df4};case i['OneDrive']:return{'icon':_0x14a7a9,'type':i['OneDrive'],..._0x2c9df4};}});}['_getIntegrationKey'](_0x3ab53c){switch(_0x3ab53c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4731cd,_0x2f6346){const _0x3639aa=this['editor'],_0x3923c9=new _0x4731cd(_0x3639aa['locale']),_0x5ada56=_0x3639aa['commands']['get']('uploadcare');return _0x3923c9['bind']('isEnabled')['to'](_0x5ada56),_0x3923c9['on']('execute',()=>{_0x5ada56['execute'](_0x2f6346);}),_0x3923c9;}['_createToolbarButton'](_0x27af4d){const {locale:_0x247c1b}=this['editor'],_0x5f0bf2=this['editor']['plugins']['get']('ImageInsertUI'),_0x2f8d52=_0x27af4d[0x0],_0x51ee98=this['_createButton'](_0xc5e45d,_0x2f8d52['type']);return _0x51ee98['icon']=_0x2f8d52['icon'],_0x51ee98['bind']('label')['to'](_0x5f0bf2,'isImageSelected',_0x4b0486=>_(_0x247c1b,_0x2f8d52['type'],_0x4b0486?'Replace':'Insert')['text']),_0x51ee98['tooltip']=!0x0,_0x51ee98;}['_createDropdownButtons'](_0x585d97){const {locale:_0x5746be}=this['editor'],_0x6532b7=this['editor']['plugins']['get']('ImageInsertUI');return _0x585d97['map'](_0x3afa75=>{const _0x528abb=this['_createButton'](_0xc5e45d,_0x3afa75['type']);return _0x528abb['withText']=!0x0,_0x528abb['icon']=_0x3afa75['icon'],_0x528abb['bind']('label')['to'](_0x6532b7,'isImageSelected',_0x29fe23=>_(_0x5746be,_0x3afa75['type'],_0x29fe23?'Replace':'Insert')['text']),_0x528abb;});}['_createMenuBarButtons'](_0x2fd3f1){return _0x2fd3f1['map'](_0x4a04ea=>{const _0x30faa9=this['_createButton'](_0x3728ec,_0x4a04ea['type']);return _0x30faa9['icon']=_0x4a04ea['icon'],_0x30faa9['label']=_0x4a04ea['shortText'],_0x30faa9;});}}class F extends _0x16f752{['focusTracker'];['focusCycler'];constructor(_0x451bdb){super(_0x451bdb),this['focusTracker']=new _0x255547(),this['focusCycler']=new _0x1974f2({'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(_0x42c384,_0x25f69b){super(_0x42c384),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-'+_0x25f69b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1c117e,_0x2b6ae9){const _0x8e35ac=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58eb88=>_0x58eb88<=_0x2b6ae9)['map'](_0x52d352=>_0x1c117e['replace'](/\/$/,'')+'/-/resize/'+_0x52d352+'x/\x20'+_0x52d352+'w');return{'imageFallbackUrl':_0x1c117e,'imageSources':[{'srcset':_0x8e35ac['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2b6ae9+'px)\x20100vw,\x20'+_0x2b6ae9+'px','type':'image/webp'}]};}function S(_0x5b1805,_0x1ce299,_0x5f31e6){const _0x141263=_0x5b1805['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x141263?parseInt(_0x141263[0x1],0xa):_0x1ce299,'height':_0x141263?parseInt(_0x141263[0x2],0xa):_0x5f31e6};}function p(_0x2834c0,_0x24cee1){const _0x1fc2f2=new(_0x2c7ff7())(),_0x2d53f7=_0x2834c0['plugins']['get']('ImageUtils'),_0xa0ce9d=_0x2834c0['editing']['mapper']['toViewElement'](_0x24cee1),_0x427f9e=_0x2d53f7['findViewImgElement'](_0xa0ce9d),_0x555654=_0x2834c0['editing']['view']['domConverter']['viewToDom'](_0x427f9e),_0x331e11=_0x24cee1['getAttribute']('width'),_0x5bcd49=_0x24cee1['getAttribute']('height'),_0x5ac9bd='image-processing';_0x2834c0['editing']['view']['change'](_0x353eb9=>{_0x353eb9['addClass'](_0x5ac9bd,_0xa0ce9d),_0x353eb9['setStyle']('aspect-ratio',_0x331e11+'/'+_0x5bcd49,_0x427f9e);}),_0x1fc2f2['listenTo'](_0x555654,'load',()=>{_0x1fc2f2['stopListening'](_0x555654,'load'),_0x2834c0['editing']['view']['change'](_0x1ae528=>{_0x1ae528['removeClass'](_0x5ac9bd,_0xa0ce9d),_0x1ae528['removeStyle']('aspect-ratio',_0x427f9e);});});}function G(_0x30570b){if(Array['isArray'](_0x30570b)){const _0x2d971=_0x30570b['map'](G);return _0x30fb96=>_0x2d971['some'](_0x968d6f=>_0x968d6f(_0x30fb96));}if('origin'==_0x30570b){const _0x4e4814=_0x3f302c['window']['location']['origin'];return _0x26fe12=>new URL(_0x26fe12,_0x3f302c['document']['baseURI'])['origin']==_0x4e4814;}return'function'==typeof _0x30570b?_0x30570b:_0x30570b instanceof RegExp?_0xa57c56=>!(!_0xa57c56['match'](_0x30570b)&&!_0xa57c56['replace'](/^https?:\/\//,'')['match'](_0x30570b)):()=>!0x1;}function A(_0x6df0cb,_0x4fe065){return _0x4212e9(_0x6df0cb['target'])['includes'](_0x4fe065);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x294507(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf477a4,_0x2fa673,_0x56ba86){super(),this['_editor']=_0xf477a4,this['_editing']=_0x2fa673,this['_dialog']=_0xf477a4['plugins']['get'](_0x191ec3),this['_api']=_0x2fa673['ctxElement']['getAPI'](),this['_type']=_0x56ba86,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:_0x368640,model:_0x3b8896}=this['_editor'],_0x102ad0=_0x3b8896['document']['selection']['getSelectedElement'](),_0x520238=_0x102ad0&&(_0x102ad0['is']('element','imageBlock')||_0x102ad0['is']('element','imageInline'));this['_formView']=new x(_0x368640,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x263869,'title':_(_0x368640,this['_type'],_0x520238?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18a93e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57f998=>!A(_0x57f998,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x56aa47}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x499213=>{const _0x23aa7e=_0x56aa47['length'];for(const _0x2a4546 of _0x56aa47){const _0x49adae=_0x2a4546===_0x56aa47[_0x23aa7e-0x1],{cdnUrl:_0x25364d,fileInfo:_0x43c603}=_0x2a4546;if(!_0x25364d||!_0x43c603)continue;const {width:_0x57c53a,height:_0x448f90}=_0x43c603['imageInfo'],_0x27bb5a=S(_0x25364d,_0x57c53a,_0x448f90),_0x3c4909=C(_0x25364d,_0x27bb5a['width']),_0x1905c8={'id':_0x43c603['uuid'],'type':'image','attributes':{'imageDimension':_0x27bb5a,..._0x3c4909}};this['_insertAsset'](_0x1905c8,_0x49adae,_0x499213);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4218c5=>{'idle'===_0x4218c5['detail']['status']&&!_0x4218c5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xc8e6d6,_0xfc7b73,_0x1550ca){const _0x4772f9=this['_editor']['model']['document']['selection'],_0x1cc721=_0x4772f9['getSelectedElement'](),_0x39a61f=!(!_0x1cc721||!_0x1cc721['is']('element','imageInline'));_0x1550ca['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc8e6d6,_0x39a61f),_0xfc7b73||_0x1550ca['setSelection'](_0x4772f9['getLastPosition']());}['_insertImage'](_0x5a0206,_0x185339){const _0x1160d3=this['_editor'],{imageDimension:_0x26d8c3,imageFallbackUrl:_0x403532,imageSources:_0x45c425}=_0x5a0206['attributes'];_0x1160d3['execute']('insertImage',{'imageType':_0x185339?'imageInline':null,'source':{'uploadcareImageId':_0x5a0206['id'],'src':_0x403532,'sources':_0x45c425,..._0x26d8c3}});}}class w extends _0x3491f9{['_editing'];['_controller']=null;static get['requires'](){return[_0x191ec3,o];}constructor(_0x46ce25){super(_0x46ce25),this['_editing']=_0x46ce25['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x465b9a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x465b9a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4d785e,..._0x15caba}){return _0x4dfdf3(_0x4d785e,_0x15caba);}static['getInfo'](_0x58e718,_0x10e9cc){return _0x27e77f(_0x58e718,_0x10e9cc);}}class f extends _0x2723b6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbc6b6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x139e47=this['editor'];if(!!!_0x139e47['config']['get']('uploadcare'))return;_0x139e47['plugins']['get'](_0xbc6b6e)['createUploadAdapter']=_0x1b4aea=>new k(_0x1b4aea,_0x139e47),_0x139e47['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x368ea3,{imageElement:_0x3872b9,data:_0x274baa})=>{_0x139e47['model']['change'](_0x3bdc47=>{_0x3bdc47['setAttribute']('uploadcareImageId',_0x274baa['uploadcareImageId'],_0x3872b9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ffad3,_0x2dc7fa){this['loader']=_0x4ffad3,this['editor']=_0x2dc7fa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x56adba=await this['loader']['file'];return j['upload']({'file':_0x56adba,'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':_0x5e4eb0=>{_0x5e4eb0&&_0x5e4eb0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e4eb0['value']);}})['then'](async _0x1f9dcf=>{const {imageFallbackUrl:_0x3268b5,imageSources:_0x4e88e5}=C(_0x1f9dcf['cdnUrl'],_0x1f9dcf['imageInfo']['width']);return{'uploadcareImageId':_0x1f9dcf['uuid'],'default':_0x3268b5,'sources':_0x4e88e5};})['catch'](()=>{const _0x111ed3=t('Cannot\x20upload\x20file:')+('\x20'+_0x56adba['name']+'.');return Promise['reject'](_0x111ed3);});}['abort'](){this['controller']['abort']();}}class o extends _0x2723b6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x191ec3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3cecac){super(_0x3cecac),this['ucContextId']=_0x5ecf0a();}['init'](){const _0x1a4d61=this['editor'];_0x1a4d61['commands']['add']('uploadcare',new w(_0x1a4d61));}['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 _0x3c6db3=_0x3f302c['document']['querySelector']('input[uploadcare-file-input]');_0x3c6db3&&_0x3c6db3['remove']();}),async function(_0x2fad82){const _0x249da2=_0x6b9b45([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]),_0x5345bc=0x535f8c3a,_0x12e3e3=0x5358f122^_0x5345bc,_0x469d45=window[_0x6b9b45([0x44,0x61,0x74,0x65])][_0x6b9b45([0x6e,0x6f,0x77])](),_0x49fed4=_0x2fad82[_0x6b9b45([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ed2e4=new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329fc3=>{_0x49fed4[_0x6b9b45([0x6f,0x6e,0x63,0x65])](_0x6b9b45([0x72,0x65,0x61,0x64,0x79]),_0x329fc3);}),_0x4402b2={[_0x6b9b45([0x6b,0x74,0x79])]:_0x6b9b45([0x45,0x43]),[_0x6b9b45([0x75,0x73,0x65])]:_0x6b9b45([0x73,0x69,0x67]),[_0x6b9b45([0x63,0x72,0x76])]:_0x6b9b45([0x50,0x2d,0x32,0x35,0x36]),[_0x6b9b45([0x78])]:_0x6b9b45([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]),[_0x6b9b45([0x79])]:_0x6b9b45([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]),[_0x6b9b45([0x61,0x6c,0x67])]:_0x6b9b45([0x45,0x53,0x32,0x35,0x36])},_0x1c7386=_0x49fed4[_0x6b9b45([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6b9b45([0x67,0x65,0x74])](_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17bb6e(){let _0x3e7359,_0x7d81bf=null,_0x595404=null;try{if(_0x1c7386==_0x6b9b45([0x47,0x50,0x4c]))return _0x6b9b45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e7359=_0x22d91c(),!_0x3e7359)return _0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e7359[_0x6b9b45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x595404=_0xdaa1ba(_0x3e7359[_0x6b9b45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e7359[_0x6b9b45([0x6a,0x74,0x69])])),await _0x260911()?_0x3096f5()?_0x20492f()?_0x6b9b45([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf73318()?(_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b9b45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7d81bf=_0x43af71(_0x6b9b45([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b9b45([0x74,0x72,0x69,0x61,0x6c])&&(_0x7d81bf=_0x43af71(_0x6b9b45([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x578a0c()):_0x6b9b45([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6b9b45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20492f(){const _0x43a97a=[_0x6b9b45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6b9b45([0x74,0x72,0x69,0x61,0x6c])][_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x469d45/0x3e8:0xe10*_0x12e3e3;return _0x3e7359[_0x6b9b45([0x65,0x78,0x70])]<_0x43a97a;}function _0x3096f5(){const _0x24e5d5=_0x3e7359[_0x6b9b45([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24e5d5&&(!!_0x24e5d5[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x2a]))||!!_0x24e5d5[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x55,0x50,0x4c,0x43])));}function _0xf73318(){const _0x377522=_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x377522||0x0==_0x377522[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3751af}=new URL(window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x377522[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3751af))return!0x0;const _0x5877f3=_0x3751af[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e]));return _0x377522[_0x6b9b45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19e23a=>_0x19e23a[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x2a])))[_0x6b9b45([0x6d,0x61,0x70])](_0x51a334=>_0x51a334[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e])))[_0x6b9b45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f4f39=>_0x2f4f39[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5877f3[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6b9b45([0x6d,0x61,0x70])](_0x4ec518=>Array(_0x5877f3[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ec518[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6b9b45([0x66,0x69,0x6c,0x6c])](_0x4ec518[0x0]===_0x6b9b45([0x2a])?_0x6b9b45([0x2a]):'')[_0x6b9b45([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ec518))[_0x6b9b45([0x73,0x6f,0x6d,0x65])](_0x742f82=>_0x5877f3[_0x6b9b45([0x65,0x76,0x65,0x72,0x79])]((_0x25b99f,_0x1ce637)=>_0x742f82[_0x1ce637]===_0x25b99f||_0x742f82[_0x1ce637]===_0x6b9b45([0x2a])));}function _0x578a0c(){return _0x7d81bf&&_0x595404?new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6eae,_0xc52516)=>{_0x7d81bf[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0xed6eae,_0xc52516),_0x595404[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x17dc47=>{_0x17dc47!=_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])&&_0xed6eae(_0x17dc47);},_0xc52516);}):_0x7d81bf||_0x595404||_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdaa1ba(_0x1e30de,_0x45c718){return new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153136=>{if(_0x5e2b33())return _0x153136(_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]));_0x11299e(),_0x49fed4[_0x6b9b45([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e83e4=!0x1;const _0x346a1d=_0x5ecf0a();function _0x4507b0(_0x31d700){return!!_0x31d700&&(typeof _0x31d700===_0x6b9b45([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31d700===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31d700[_0x6b9b45([0x74,0x68,0x65,0x6e])]===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31d700[_0x6b9b45([0x63,0x61,0x74,0x63,0x68])]===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fdabf(_0x2da543){_0x474316(_0x2da543)[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x217a67=>{if(!_0x217a67||_0x217a67[_0x6b9b45([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6b9b45([0x6f,0x6b]))return _0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43b8e3(_0x3e3c21(_0x346a1d+_0x45c718))!=_0x217a67[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]);})[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x2eada7=>(_0x20ab38(),_0x2eada7),()=>{const _0x77bf37=_0x53d3d0();return null==_0x77bf37?(_0x20ab38(),_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])):_0x6b9b45(_0x469d45-_0x77bf37>(0x7753083a^_0x5345bc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x153136)[_0x6b9b45([0x63,0x61,0x74,0x63,0x68])](()=>{_0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4274e2=0x536962ba^_0x5345bc;function _0x20ab38(){const _0x432e4d=_0x6b9b45([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b8e3(_0x3e3c21(_0x1e30de)),_0x2138ed=_0x1aeb25(_0x43b8e3(window[_0x6b9b45([0x4d,0x61,0x74,0x68])][_0x6b9b45([0x63,0x65,0x69,0x6c])](_0x469d45/_0x4274e2)));window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b9b45([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432e4d,_0x2138ed);}function _0x53d3d0(){const _0x51b60f=_0x6b9b45([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b8e3(_0x3e3c21(_0x1e30de)),_0x4563ee=window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b9b45([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51b60f);return _0x4563ee?window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aeb25(_0x4563ee),0x10)*_0x4274e2:null;}function _0x474316(_0x228615){return new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50eb63,_0xef1e42)=>{_0x228615[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x50eb63,_0xef1e42),window[_0x6b9b45([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xef1e42,0x535e58fa^_0x5345bc);});}}_0x49fed4[_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a63d0,_0x44f7d2)=>{if(_0x44f7d2[0x0]!=_0x1e30de)return _0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44f7d2[0x1]={..._0x44f7d2[0x1],[_0x6b9b45([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x346a1d};},{[_0x6b9b45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b9b45([0x68,0x69,0x67,0x68])}),_0x49fed4[_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5733=>{_0x4507b0(_0x3e5733[_0x6b9b45([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e83e4=!0x0,_0x1fdabf(_0x3e5733[_0x6b9b45([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6b9b45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b9b45([0x6c,0x6f,0x77])}),_0x1ed2e4[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>{_0x3e83e4||_0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e2b33(){return _0x49fed4[_0x6b9b45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b9b45([0x76,0x69,0x65,0x77])][_0x6b9b45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6b9b45([0x61,0x75,0x74,0x6f]);}function _0x11299e(){_0x49fed4[_0x6b9b45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b9b45([0x76,0x69,0x65,0x77])][_0x6b9b45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6b9b45([0x61,0x75,0x74,0x6f]);}}function _0x43af71(_0x5af9e4){const _0x3bfa8c=[new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8370=>setTimeout(_0x3e8370,0x5356b2f6^_0x5345bc)),_0x1ed2e4[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e27d=>{let _0x3db720=0x0;_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15804c,_0xe72acd)=>{_0xe72acd[0x0][_0x6b9b45([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3db720++,_0x3db720==(0x535f89d2^_0x5345bc)&&(_0x31e27d(),_0x15804c[_0x6b9b45([0x6f,0x66,0x66])]());});}))];return window[_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6b9b45([0x72,0x61,0x63,0x65])](_0x3bfa8c)[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>_0x5af9e4);}async function _0x57e21a(){await _0x1ed2e4,_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1723c5,_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1723c5,_0x49fed4[_0x6b9b45([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e07d0(_0x2a9d6e){const _0x121b2a=_0x144c29();_0x49fed4[_0x121b2a]=_0x6b9b45([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a9d6e,_0x2a9d6e!=_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])&&_0x57e21a();}function _0x144c29(){const _0x410a87=window[_0x6b9b45([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6b9b45([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6b9b45([0x6e,0x6f,0x77])]())[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6b9b45([0x2e]),'');let _0x3f4d9a=_0x6b9b45([0x68]);for(let _0x22c4ff=0x0;_0x22c4ff<_0x410a87[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22c4ff+=0x2){let _0x5527f9=window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410a87[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22c4ff,_0x22c4ff+0x2));_0x5527f9>=_0x249da2[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5527f9-=_0x249da2[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4d9a+=_0x249da2[_0x5527f9];}return _0x3f4d9a;}function _0x22d91c(){const _0x190093=_0x1c7386[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e]));if(0x3!=_0x190093[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e84e0(_0x190093[0x1]);function _0x4e84e0(_0x94b19f){const _0x48521e=_0x3b1b44(_0x94b19f);return _0x48521e&&_0x37a061()?_0x48521e:null;function _0x37a061(){const _0x179858=_0x48521e[_0x6b9b45([0x6a,0x74,0x69])],_0x37ee4c=window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x179858[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x179858[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22873c={..._0x48521e,[_0x6b9b45([0x6a,0x74,0x69])]:_0x179858[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x179858[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22873c[_0x6b9b45([0x76,0x63])],_0x3e3c21(_0x22873c)==_0x37ee4c;}}}async function _0x260911(){let _0x3bea70=!0x0;try{const _0x2d8382=_0x1c7386[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e])),[_0x45e690,_0x3c33d0,_0x5969c3]=_0x2d8382;return _0x4e5100(_0x45e690),await _0x112424(_0x45e690,_0x3c33d0,_0x5969c3),_0x3bea70;}catch{return!0x1;}function _0x4e5100(_0x156d9e){const _0x342626=_0x3b1b44(_0x156d9e);_0x342626&&_0x342626[_0x6b9b45([0x61,0x6c,0x67])]==_0x6b9b45([0x45,0x53,0x32,0x35,0x36])||(_0x3bea70=!0x1);}async function _0x112424(_0x336102,_0x311381,_0x6402d1){const _0x4d5831=window[_0x6b9b45([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6b9b45([0x66,0x72,0x6f,0x6d])](_0xe42081(_0x6402d1),_0x4fc55b=>_0x4fc55b[_0x6b9b45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x250830=new window[(_0x6b9b45([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6b9b45([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336102+_0x6b9b45([0x2e])+_0x311381),_0x3b3d46=window[_0x6b9b45([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6b9b45([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b3d46)return;const _0x4b34e0=await _0x3b3d46[_0x6b9b45([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6b9b45([0x6a,0x77,0x6b]),_0x4402b2,{[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x45,0x43,0x44,0x53,0x41]),[_0x6b9b45([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6b9b45([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b3d46[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x45,0x43,0x44,0x53,0x41]),[_0x6b9b45([0x68,0x61,0x73,0x68])]:{[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b34e0,_0x4d5831,_0x250830)||(_0x3bea70=!0x1);}}function _0x3b1b44(_0x3d5cb1){return _0x3d5cb1[_0x6b9b45([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6b9b45([0x65,0x79]))?JSON[_0x6b9b45([0x70,0x61,0x72,0x73,0x65])](_0xe42081(_0x3d5cb1)):null;}function _0xe42081(_0x4f7805){return window[_0x6b9b45([0x61,0x74,0x6f,0x62])](_0x4f7805[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6b9b45([0x2b]))[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6b9b45([0x2f])));}function _0x3e3c21(_0x4e64cc){let _0x54dda0=0x1505;function _0x3bf396(_0x188e34){for(let _0x210450=0x0;_0x210450<_0x188e34[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x210450++){const _0x455569=_0x188e34[_0x6b9b45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x210450);_0x54dda0=(_0x54dda0<<0x5)+_0x54dda0+_0x455569,_0x54dda0&=_0x54dda0;}}function _0x17ed96(_0x173365){Array[_0x6b9b45([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x173365)?_0x173365[_0x6b9b45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17ed96):_0x173365&&typeof _0x173365==_0x6b9b45([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6b9b45([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x173365)[_0x6b9b45([0x73,0x6f,0x72,0x74])]()[_0x6b9b45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ca95d,_0x32a99c])=>{_0x3bf396(_0x2ca95d),_0x17ed96(_0x32a99c);}):_0x3bf396(window[_0x6b9b45([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x173365));}return _0x17ed96(_0x4e64cc),_0x54dda0>>>0x0;}function _0x43b8e3(_0x4c13fe){return _0x4c13fe[_0x6b9b45([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6b9b45([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6b9b45([0x30]));}function _0x1aeb25(_0x3a006e){return _0x3a006e[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6b9b45([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6b9b45([0x6a,0x6f,0x69,0x6e])]('');}function _0x1723c5(){}function _0x6b9b45(_0x38812a){return _0x38812a['map'](_0x3ac8c9=>String['fromCharCode'](_0x3ac8c9))['join']('');}_0x1e07d0(await _0x17bb6e());}(this);}['_initSchema'](){const _0x381a56=this['editor']['model']['schema'];_0x381a56['isRegistered']('imageBlock')&&_0x381a56['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x381a56['isRegistered']('imageInline')&&_0x381a56['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3829d1=this['editor'];_0x3829d1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3829d1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x563db6=>_0x563db6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7a347d=_0x3829d1['commands']['get']('replaceImageSource');_0x7a347d&&this['listenTo'](_0x7a347d,'cleanupImage',(_0x9554de,[_0x54af2c,_0x214890])=>{_0x54af2c['removeAttribute']('uploadcareImageId',_0x214890);});}['_initConfig'](){const _0x57c0e1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55dd8a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x377327(_0x3f302c['document'],'uc-config',{..._0x57c0e1,'pubkey':_0x55dd8a,'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']=_0x14699b=>{if('closeMax'==_0x14699b)return'#uc-icon-arrow-down';},_0x3f302c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x377327(_0x3f302c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3f302c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3e6ed2=this['editor']['commands']['get']('insertImage');_0x3e6ed2&&this['listenTo'](_0x3e6ed2,'execute',()=>{const _0x125f17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x125f17&&_0x125f17['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x125f17);});});const _0x5e42c5=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e42c5&&this['listenTo'](_0x5e42c5,'execute',()=>{const _0x5e14c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e14c4&&_0x5e14c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e14c4);});});}}class tt extends _0x2723b6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38ee21){super(_0x38ee21),_0x38ee21['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x53db37['defineComponents'](_0x53db37),this['_defineLocale']();}['_defineLocale'](){const _0x41accf=this['editor']['config']['get']('uploadcare.locale'),_0x5ef5c0=this['editor']['locale']['contentLanguage'];_0x41accf&&_0x53db37['defineLocale'](_0x5ef5c0,_0x41accf);}}class ii extends _0x16f752{constructor(_0x354d26){super(_0x354d26);const t=_0x354d26['t'],_0x481258=this['bindTemplate'],_0x49e874=new _0x263800();_0x49e874['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':[_0x49e874,{'text':_0x481258['to']('imageUploadProgress',_0xb70321=>t('Loading\x20image...')+'\x20('+(_0xb70321||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 _0x16f752{constructor(_0x45c7a4){super(_0x45c7a4);const t=_0x45c7a4['t'];this['set']('errorType',null);const _0x4de42a=new _0xc5e45d(_0x45c7a4);_0x4de42a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4de42a['withText']=!0x0,_0x4de42a['class']='ck-button-action',_0x4de42a['on']('execute',()=>{this['fire']('retry');}),_0x4de42a['bind']('isVisible')['to'](this,'errorType',_0x43d43a=>'NotFound'!==_0x43d43a);const _0x23647d=new _0x2f5edc();_0x23647d['content']=_0x5c31d1,_0x23647d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16f4cf=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':[_0x23647d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16f4cf['to']('errorType',_0x489a67=>t('NotFound'!==_0x489a67?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4de42a]},{'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 _0x16f752{constructor(_0xaaf8ce,_0x5d0a7c){super(_0xaaf8ce);const _0x421449=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5d0a7c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x421449['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198cde,_0x38f471,_0x2e16bc){super(_0x198cde),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198cde),this['_errorView']=new ti(_0x198cde),this['_editingView']=new ei(_0x198cde,_0x2e16bc),this['_focusableView']=new _0x16f752(_0x198cde),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x38f471),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'],_0x1b5aac=>{this['_addUploadcareImageEditorListeners'](_0x1b5aac);});}),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'](_0x51dd8d,_0x476e6d){const _0x207ae4='uc-cloud-image-editor',_0x1d8511=_0x51dd8d['querySelector'](_0x207ae4);if(_0x1d8511)return _0x476e6d(_0x1d8511);const _0xb553ab=new MutationObserver(_0x159581=>{const _0x24d63d=_0x159581['filter'](_0x290c9e=>_0x290c9e['target']===_0x51dd8d&&_0x290c9e['addedNodes']['length']>0x0&&_0x290c9e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x207ae4);_0x24d63d['length']&&(_0xb553ab['disconnect'](),_0x476e6d(_0x24d63d[0x0]['addedNodes'][0x0]));});_0xb553ab['observe'](_0x51dd8d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2f79cf){_0x2f79cf['addEventListener']('apply',_0x50e191=>{this['fire']('apply',{'imageSrc':_0x50e191['detail']['cdnUrl']});}),_0x2f79cf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x294507(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x348f6b,_0xfdb516,_0x43195d){super(),this['_editor']=_0x348f6b,this['_dialog']=_0xfdb516,this['_imageElement']=_0x43195d,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 _0x216659=this['_imageElement'],_0x419130=_0x216659['getAttribute']('uploadcareImageId'),_0x19d397=_0x216659['getAttribute']('src');if(_0x419130)await this['_loadImageInfo'](_0x419130,_0x19d397);else{if(this['_imageCache']['has'](_0x19d397)){const _0x49c47e=this['_imageCache']['get'](_0x19d397);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49c47e['url'],this['imageDimension']=_0x49c47e['dimension'],this['imageId']=_0x49c47e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x46d33f}=this['_editor'],t=_0x46d33f['t'],_0xf5fcb2=new X(_0x46d33f,this['imageStatus'],this['_attributes']);_0xf5fcb2['bind']('status')['to'](this,'imageStatus'),_0xf5fcb2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf5fcb2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf5fcb2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf5fcb2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x49d7ae,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf5fcb2,'position':_0x18a93e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf5fcb2['focus']();},'onHide':()=>{_0xf5fcb2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x160316=>!A(_0x160316,_0xf5fcb2['element'])}});}['_loadImageInfo'](_0x1577a5,_0x3f368a){return j['getInfo'](_0x1577a5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5e193e=>{const {width:_0x40a6b6,height:_0x1940b2}=_0x5e193e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f368a,this['imageDimension']={'width':_0x40a6b6,'height':_0x1940b2},this['imageId']=_0x1577a5;})['catch'](_0x3f32cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f32cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x20bb4a,_0x4f9ab3){return this['_getImageAsFile'](_0x20bb4a)['then'](_0x4e6337=>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':_0x4f9ab3['signal'],'file':_0x4e6337,'onProgress':_0x4dbfc0=>{_0x4dbfc0&&_0x4dbfc0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4dbfc0['value']));}}))['then'](_0x3d06f1=>{const {width:_0x26489f,height:_0x2bd680}=_0x3d06f1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d06f1['cdnUrl'],this['imageDimension']={'width':_0x26489f,'height':_0x2bd680},this['imageId']=_0x3d06f1['uuid'],this['imageUploadProgress']=null;const _0x44a198=_0x20bb4a['getAttribute']('src');this['_imageCache']['set'](_0x44a198,{'id':_0x3d06f1['uuid'],'url':_0x3d06f1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1e2bac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e2bac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46c39e,_0x5c0fe7){_0x46c39e['on']('apply',(_0x42d5b4,_0x3d5706)=>{this['_replaceImage'](_0x5c0fe7,_0x3d5706['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46c39e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46c39e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b5711,_0x1367e4,_0x45054e){const _0x519fd3=this['_editor'],{width:_0x2bb726,height:_0x61c941}=S(_0x1367e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2d89da,imageSources:_0x5a44f1}=C(_0x1367e4,_0x2bb726);_0x519fd3['model']['change'](_0xcbd078=>{if('$graveyard'===_0x5b5711['root']['rootName']){_0x519fd3['execute']('insertImage',{'imageType':_0x5b5711['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b5711['getAttributes']()),'uploadcareImageId':_0x45054e,'src':_0x2d89da,'sources':_0x5a44f1,'width':_0x2bb726,'height':_0x61c941}});const _0x58e15d=_0x5b5711['getChildren']();_0x5b5711=_0x519fd3['model']['document']['selection']['getSelectedElement']();for(const _0x1896e4 of _0x58e15d)_0xcbd078['append'](_0xcbd078['cloneElement'](_0x1896e4),_0x5b5711);}else _0xcbd078['setSelection'](_0x5b5711,'on'),_0x519fd3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b5711['getAttributes']()),'uploadcareImageId':_0x45054e,'src':_0x2d89da,'sources':_0x5a44f1,'width':_0x2bb726,'height':_0x61c941},_0x5b5711);_0xcbd078['setSelection'](_0x5b5711,'on');});}async['_getImageAsFile'](_0x274ace){const _0x49d390=_0x3f302c['window'],_0x2649a6=_0x3f302c['document']['location']['href'],_0xe0f5b0=new _0x49d390['URL'](_0x274ace['getAttribute']('src'),_0x2649a6);if('data:'===_0xe0f5b0['protocol']){const _0x33fd12=_0xe0f5b0['href']['split'](','),_0x361fb0=_0x33fd12[0x0]['match'](/:(.*?);/)[0x1],_0x157492=_0x361fb0['split']('/')[0x1],_0x8bab64=_0x49d390['atob'](_0x33fd12[_0x33fd12['length']-0x1]);let _0x41c618=_0x8bab64['length'];const _0x3e74e6=new _0x49d390['Uint8Array'](_0x41c618);for(;_0x41c618--;)_0x3e74e6[_0x41c618]=_0x8bab64['charCodeAt'](_0x41c618);return new _0x49d390['File']([_0x3e74e6],'image.'+_0x157492,{'type':_0x361fb0});}const _0x1a4b13=_0xe0f5b0['href']['split']('/'),_0x20569e=_0x1a4b13[_0x1a4b13['length']-0x1],_0x48a957=_0x20569e['split']('.')[0x1];return _0x49d390['fetch'](_0xe0f5b0['href'])['then'](_0x3af2b3=>_0x3af2b3['clone']()['blob']())['then'](_0x5d9aa7=>new _0x49d390['File']([_0x5d9aa7],_0x20569e,{'type':'image/'+_0x48a957}));}}class O extends _0x3491f9{['imageEditController'];static get['requires'](){return[_0x191ec3];}['_isEditable'];constructor(_0xdf8889){super(_0xdf8889),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x489caf){const _0x19c976=G(_0x489caf);return _0xc80211=>!(!_0xc80211||!_0xc80211['is']('element','imageBlock')&&!_0xc80211['is']('element','imageInline'))&&(!!_0xc80211['hasAttribute']('uploadcareImageId')||!!_0xc80211['hasAttribute']('src')&&_0x19c976(_0xc80211['getAttribute']('src')));}(_0xdf8889['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e71db=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e71db);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1371b7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1371b7&&(_0x1371b7['is']('element','imageBlock')||_0x1371b7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x191ec3),_0x1371b7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3491f9{['refresh'](){const _0x265769=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x265769&&(_0x265769['is']('element','imageBlock')||_0x265769['is']('element','imageInline')));}['execute'](_0x4fbd4d){const _0x738578=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d0ef5=>{_0x2d0ef5['setAttributes'](_0x4fbd4d,_0x738578),_0x2d0ef5['removeAttribute']('srcset',_0x738578),_0x2d0ef5['removeAttribute']('sizes',_0x738578);});}}class m extends _0x2723b6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x336fc8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x290efd}=this;_0x290efd['commands']['add']('uploadcareImageEdit',new O(_0x290efd)),_0x290efd['commands']['add']('uploadcareImageReplace',new R(_0x290efd));}}class g extends _0x2723b6{['_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 _0xbfea45=this['editor'];_0xbfea45['ui']['componentFactory']['add']('uploadcareImageEdit',_0x594c1a=>{const _0x3db8f1=_0xbfea45['commands']['get']('uploadcareImageEdit'),_0x2d8a48=new _0xc5e45d(_0x594c1a),t=_0x594c1a['t'];return _0x2d8a48['set']({'icon':_0x49d7ae,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d8a48['bind']('isEnabled')['to'](_0x3db8f1),_0x2d8a48['bind']('isOn')['to'](_0x3db8f1,'isActive'),this['listenTo'](_0x2d8a48,'execute',()=>{_0xbfea45['execute']('uploadcareImageEdit'),_0xbfea45['editing']['view']['focus']();}),_0x2d8a48;}),this['_initConfig']();}['_initConfig'](){const _0xda3e32=_0x377327(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xda3e32),this['listenTo'](this['editor'],'destroy',()=>{_0xda3e32['remove']();});}}class et extends _0x2723b6{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 _0x2e71c4,Command as _0x4d9c62}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x540390,IconGooglePhotos as _0xf593d7,IconGoogleDrive as _0x56d6a1,IconFacebook as _0xd324dd,IconDropbox as _0x5f4035,IconUploadcareLink as _0x414c40,IconUploadcareImageUpload as _0x4678b0,IconError as _0x4de147,IconUploadcareImageEdit as _0x206ac3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x38bd2e,MenuBarMenuListItemButtonView as _0x1e27cb,View as _0x523b30,FocusCycler as _0x1e66f5,Dialog as _0x2790d8,DialogViewPosition as _0x21f8af,SpinnerView as _0xa0abdc,IconView as _0x31c21e,Notification as _0x3f5224}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x393a17,DomEmitterMixin as _0x1a645f,global as _0x432d86,getAncestors as _0x228f2a,ObservableMixin as _0x1f9344,uid as _0x3b3034,createElement as _0x545486}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x27eb93}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1db3af,info as _0x2516e3}from'@uploadcare/upload-client';import*as _0x841330 from'@uploadcare/file-uploader';var i=function(_0xc2d260){return _0xc2d260['Local']='local',_0xc2d260['URL']='url',_0xc2d260['Dropbox']='dropbox',_0xc2d260['GDrive']='gdrive',_0xc2d260['Facebook']='facebook',_0xc2d260['GPhotos']='gphotos',_0xc2d260['OneDrive']='onedrive',_0xc2d260;}({});function _(_0x4a262d,_0x30b09d,_0x593f74){const t=_0x4a262d['t'],_0x5b4b54=_0x4a262d['t'];switch(_0x30b09d){case i['Local']:return{'text':_0x5b4b54('Insert'===_0x593f74?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b4b54('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x593f74?_0x5b4b54('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b4b54('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30b09d;}}class e extends _0x2e71c4{['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 _0x2ab871=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a7f91;for(const _0x752b62 in _0x2ab871){const _0x54714c=_0x752b62,_0x1571d5=_0x2ab871[_0x54714c];if('uploadcareLicenseKeyValid'==_0x1571d5||'uploadcareLicenseKeyInvalid'==_0x1571d5||'uploadcareLicenseKeyExpired'==_0x1571d5||'uploadcareLicenseKeyDomainLimit'==_0x1571d5||'uploadcareLicenseKeyNotAllowed'==_0x1571d5||'uploadcareLicenseKeyEvaluationLimit'==_0x1571d5||'uploadcareLicenseKeyTrialLimit'==_0x1571d5||'uploadcareLicenseKeyUsageLimit'==_0x1571d5){delete _0x2ab871[_0x54714c],_0x5a7f91=_0x1571d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5a7f91&&_0x2ab871['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5a7f91&&_0x2ab871['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5a7f91&&_0x2ab871['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18bd26}=this,_0x454a75=_0x18bd26['commands']['get']('uploadcare');if(!_0x454a75)return;const _0x4e5938=this['_normalizeConfigSourceList'](_0x18bd26['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x393712,_0x360c2a)=>{const _0x524258=this['_getIntegrationKey'](_0x360c2a['type']);return _0x393712[_0x524258]||(_0x393712[_0x524258]=[]),_0x393712[_0x524258]['push'](_0x360c2a),_0x393712;},{});_0x18bd26['plugins']['has']('ImageInsertUI')&&_0x18bd26['commands']['get']('uploadcare')&&Object['entries'](_0x4e5938)['forEach'](([_0x1b27ee,_0x25c1e1])=>{_0x18bd26['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1b27ee,'observable':()=>_0x454a75,'buttonViewCreator':()=>this['_createToolbarButton'](_0x25c1e1),'formViewCreator':()=>this['_createDropdownButtons'](_0x25c1e1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x25c1e1),'override':'assetManager'!==_0x1b27ee});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1371a9){const {locale:_0x44defb}=this['editor'];return _0x1371a9['map'](_0x34cbbc=>{const _0xcbb5cf=_(_0x44defb,_0x34cbbc,'Insert');switch(_0x34cbbc){case i['Local']:return{'icon':_0x4678b0,'type':i['Local'],..._0xcbb5cf};case i['URL']:return{'icon':_0x414c40,'type':i['URL'],..._0xcbb5cf};case i['Dropbox']:return{'icon':_0x5f4035,'type':i['Dropbox'],..._0xcbb5cf};case i['Facebook']:return{'icon':_0xd324dd,'type':i['Facebook'],..._0xcbb5cf};case i['GDrive']:return{'icon':_0x56d6a1,'type':i['GDrive'],..._0xcbb5cf};case i['GPhotos']:return{'icon':_0xf593d7,'type':i['GPhotos'],..._0xcbb5cf};case i['OneDrive']:return{'icon':_0x540390,'type':i['OneDrive'],..._0xcbb5cf};}});}['_getIntegrationKey'](_0x157e8c){switch(_0x157e8c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38771b,_0x6887a1){const _0x3a988a=this['editor'],_0x255576=new _0x38771b(_0x3a988a['locale']),_0x1544a4=_0x3a988a['commands']['get']('uploadcare');return _0x255576['bind']('isEnabled')['to'](_0x1544a4),_0x255576['on']('execute',()=>{_0x1544a4['execute'](_0x6887a1);}),_0x255576;}['_createToolbarButton'](_0x1a3b57){const {locale:_0x3b11e9}=this['editor'],_0x55751d=this['editor']['plugins']['get']('ImageInsertUI'),_0x15af75=_0x1a3b57[0x0],_0x3e1592=this['_createButton'](_0x38bd2e,_0x15af75['type']);return _0x3e1592['icon']=_0x15af75['icon'],_0x3e1592['bind']('label')['to'](_0x55751d,'isImageSelected',_0x14b606=>_(_0x3b11e9,_0x15af75['type'],_0x14b606?'Replace':'Insert')['text']),_0x3e1592['tooltip']=!0x0,_0x3e1592;}['_createDropdownButtons'](_0x5c1443){const {locale:_0x5cc092}=this['editor'],_0x289e1d=this['editor']['plugins']['get']('ImageInsertUI');return _0x5c1443['map'](_0x25dc21=>{const _0xf7aede=this['_createButton'](_0x38bd2e,_0x25dc21['type']);return _0xf7aede['withText']=!0x0,_0xf7aede['icon']=_0x25dc21['icon'],_0xf7aede['bind']('label')['to'](_0x289e1d,'isImageSelected',_0x1b485c=>_(_0x5cc092,_0x25dc21['type'],_0x1b485c?'Replace':'Insert')['text']),_0xf7aede;});}['_createMenuBarButtons'](_0xee33d2){return _0xee33d2['map'](_0xfe349d=>{const _0x5f4f2c=this['_createButton'](_0x1e27cb,_0xfe349d['type']);return _0x5f4f2c['icon']=_0xfe349d['icon'],_0x5f4f2c['label']=_0xfe349d['shortText'],_0x5f4f2c;});}}class F extends _0x523b30{['focusTracker'];['focusCycler'];constructor(_0xfe3c65){super(_0xfe3c65),this['focusTracker']=new _0x393a17(),this['focusCycler']=new _0x1e66f5({'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(_0x4e93d1,_0xa2f688){super(_0x4e93d1),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-'+_0xa2f688}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x11bada,_0x478ab5){const _0x500b8c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x288319=>_0x288319<=_0x478ab5)['map'](_0x122add=>_0x11bada['replace'](/\/$/,'')+'/-/resize/'+_0x122add+'x/\x20'+_0x122add+'w');return{'imageFallbackUrl':_0x11bada,'imageSources':[{'srcset':_0x500b8c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x478ab5+'px)\x20100vw,\x20'+_0x478ab5+'px','type':'image/webp'}]};}function S(_0x5a328d,_0x3d148d,_0x5f1c08){const _0x128f38=_0x5a328d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x128f38?parseInt(_0x128f38[0x1],0xa):_0x3d148d,'height':_0x128f38?parseInt(_0x128f38[0x2],0xa):_0x5f1c08};}function p(_0x2d732b,_0x5e6ffc){const _0x42bf2f=new(_0x1a645f())(),_0x2301ac=_0x2d732b['plugins']['get']('ImageUtils'),_0x552963=_0x2d732b['editing']['mapper']['toViewElement'](_0x5e6ffc),_0x56888b=_0x2301ac['findViewImgElement'](_0x552963),_0x577e9e=_0x2d732b['editing']['view']['domConverter']['viewToDom'](_0x56888b),_0x4589f2=_0x5e6ffc['getAttribute']('width'),_0x506c20=_0x5e6ffc['getAttribute']('height'),_0x293bd5='image-processing';_0x2d732b['editing']['view']['change'](_0x290eca=>{_0x290eca['addClass'](_0x293bd5,_0x552963),_0x290eca['setStyle']('aspect-ratio',_0x4589f2+'/'+_0x506c20,_0x56888b);}),_0x42bf2f['listenTo'](_0x577e9e,'load',()=>{_0x42bf2f['stopListening'](_0x577e9e,'load'),_0x2d732b['editing']['view']['change'](_0x3a5f7b=>{_0x3a5f7b['removeClass'](_0x293bd5,_0x552963),_0x3a5f7b['removeStyle']('aspect-ratio',_0x56888b);});});}function G(_0x44fa86){if(Array['isArray'](_0x44fa86)){const _0x38d775=_0x44fa86['map'](G);return _0x396497=>_0x38d775['some'](_0x143001=>_0x143001(_0x396497));}if('origin'==_0x44fa86){const _0x48dabf=_0x432d86['window']['location']['origin'];return _0x192e15=>new URL(_0x192e15,_0x432d86['document']['baseURI'])['origin']==_0x48dabf;}return'function'==typeof _0x44fa86?_0x44fa86:_0x44fa86 instanceof RegExp?_0x136c54=>!(!_0x136c54['match'](_0x44fa86)&&!_0x136c54['replace'](/^https?:\/\//,'')['match'](_0x44fa86)):()=>!0x1;}function A(_0x29c816,_0x369778){return _0x228f2a(_0x29c816['target'])['includes'](_0x369778);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f9344(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x223c4d,_0x34d6d1,_0x36207a){super(),this['_editor']=_0x223c4d,this['_editing']=_0x34d6d1,this['_dialog']=_0x223c4d['plugins']['get'](_0x2790d8),this['_api']=_0x34d6d1['ctxElement']['getAPI'](),this['_type']=_0x36207a,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:_0x3cbfc5,model:_0x8a591}=this['_editor'],_0x27a6eb=_0x8a591['document']['selection']['getSelectedElement'](),_0x39d166=_0x27a6eb&&(_0x27a6eb['is']('element','imageBlock')||_0x27a6eb['is']('element','imageInline'));this['_formView']=new x(_0x3cbfc5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4678b0,'title':_(_0x3cbfc5,this['_type'],_0x39d166?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x21f8af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d4e2c=>!A(_0x3d4e2c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x51fc61}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x45ff45=>{const _0x5cb34f=_0x51fc61['length'];for(const _0x5e3504 of _0x51fc61){const _0x288c4c=_0x5e3504===_0x51fc61[_0x5cb34f-0x1],{cdnUrl:_0x5322b2,fileInfo:_0x4d62ac}=_0x5e3504;if(!_0x5322b2||!_0x4d62ac)continue;const {width:_0x1a2fd8,height:_0x264256}=_0x4d62ac['imageInfo'],_0x3b8406=S(_0x5322b2,_0x1a2fd8,_0x264256),_0x1de2fb=C(_0x5322b2,_0x3b8406['width']),_0x501aad={'id':_0x4d62ac['uuid'],'type':'image','attributes':{'imageDimension':_0x3b8406,..._0x1de2fb}};this['_insertAsset'](_0x501aad,_0x288c4c,_0x45ff45);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x419be6=>{'idle'===_0x419be6['detail']['status']&&!_0x419be6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2007a7,_0xe2d82e,_0x378a9b){const _0x25969b=this['_editor']['model']['document']['selection'],_0x390cdf=_0x25969b['getSelectedElement'](),_0x34764d=!(!_0x390cdf||!_0x390cdf['is']('element','imageInline'));_0x378a9b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2007a7,_0x34764d),_0xe2d82e||_0x378a9b['setSelection'](_0x25969b['getLastPosition']());}['_insertImage'](_0xc25b0e,_0x22070d){const _0x3f8925=this['_editor'],{imageDimension:_0x37b918,imageFallbackUrl:_0x559ef0,imageSources:_0x32b431}=_0xc25b0e['attributes'];_0x3f8925['execute']('insertImage',{'imageType':_0x22070d?'imageInline':null,'source':{'uploadcareImageId':_0xc25b0e['id'],'src':_0x559ef0,'sources':_0x32b431,..._0x37b918}});}}class w extends _0x4d9c62{['_editing'];['_controller']=null;static get['requires'](){return[_0x2790d8,o];}constructor(_0x56f90d){super(_0x56f90d),this['_editing']=_0x56f90d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5c4e9e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5c4e9e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5894fa,..._0x15b6f8}){return _0x1db3af(_0x5894fa,_0x15b6f8);}static['getInfo'](_0x38af09,_0x345cfb){return _0x2516e3(_0x38af09,_0x345cfb);}}class f extends _0x2e71c4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x27eb93,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xce05d0=this['editor'];if(!!!_0xce05d0['config']['get']('uploadcare'))return;_0xce05d0['plugins']['get'](_0x27eb93)['createUploadAdapter']=_0x9331ef=>new k(_0x9331ef,_0xce05d0),_0xce05d0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd7133e,{imageElement:_0x12a70e,data:_0x4e336c})=>{_0xce05d0['model']['change'](_0x37ba04=>{_0x37ba04['setAttribute']('uploadcareImageId',_0x4e336c['uploadcareImageId'],_0x12a70e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2525f4,_0x45c72d){this['loader']=_0x2525f4,this['editor']=_0x45c72d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2c9cf8=await this['loader']['file'];return j['upload']({'file':_0x2c9cf8,'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':_0x3e6aea=>{_0x3e6aea&&_0x3e6aea['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e6aea['value']);}})['then'](async _0x20d6e4=>{const {imageFallbackUrl:_0x7e0703,imageSources:_0x57403b}=C(_0x20d6e4['cdnUrl'],_0x20d6e4['imageInfo']['width']);return{'uploadcareImageId':_0x20d6e4['uuid'],'default':_0x7e0703,'sources':_0x57403b};})['catch'](()=>{const _0x2f93e1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2c9cf8['name']+'.');return Promise['reject'](_0x2f93e1);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e71c4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2790d8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x560e70){super(_0x560e70),this['ucContextId']=_0x3b3034();}['init'](){const _0x36201a=this['editor'];_0x36201a['commands']['add']('uploadcare',new w(_0x36201a));}['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 _0x5805ef=_0x432d86['document']['querySelector']('input[uploadcare-file-input]');_0x5805ef&&_0x5805ef['remove']();}),async function(_0x42f42d){const _0x423360=_0x47af32([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]),_0x425d8b=0x535f8c3a,_0x4f6021=0x5358f10a^_0x425d8b,_0x43867a=window[_0x47af32([0x44,0x61,0x74,0x65])][_0x47af32([0x6e,0x6f,0x77])](),_0x4b24f8=_0x42f42d[_0x47af32([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fdbe3=new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5657=>{_0x4b24f8[_0x47af32([0x6f,0x6e,0x63,0x65])](_0x47af32([0x72,0x65,0x61,0x64,0x79]),_0x5f5657);}),_0xba8019={[_0x47af32([0x6b,0x74,0x79])]:_0x47af32([0x45,0x43]),[_0x47af32([0x75,0x73,0x65])]:_0x47af32([0x73,0x69,0x67]),[_0x47af32([0x63,0x72,0x76])]:_0x47af32([0x50,0x2d,0x32,0x35,0x36]),[_0x47af32([0x78])]:_0x47af32([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]),[_0x47af32([0x79])]:_0x47af32([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]),[_0x47af32([0x61,0x6c,0x67])]:_0x47af32([0x45,0x53,0x32,0x35,0x36])},_0x583cf2=_0x4b24f8[_0x47af32([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47af32([0x67,0x65,0x74])](_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2018d7(){let _0x218e47,_0x95fbbf=null,_0x4f9f79=null;try{if(_0x583cf2==_0x47af32([0x47,0x50,0x4c]))return _0x47af32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x218e47=_0x5666a1(),!_0x218e47)return _0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x218e47[_0x47af32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f9f79=_0x53afda(_0x218e47[_0x47af32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x218e47[_0x47af32([0x6a,0x74,0x69])])),await _0x457342()?_0x4b3ce7()?_0x5da0a3()?_0x47af32([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x346f8b()?(_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47af32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x95fbbf=_0x47add3(_0x47af32([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47af32([0x74,0x72,0x69,0x61,0x6c])&&(_0x95fbbf=_0x47add3(_0x47af32([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x517966()):_0x47af32([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47af32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5da0a3(){const _0x2f2657=[_0x47af32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47af32([0x74,0x72,0x69,0x61,0x6c])][_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43867a/0x3e8:0xe10*_0x4f6021;return _0x218e47[_0x47af32([0x65,0x78,0x70])]<_0x2f2657;}function _0x4b3ce7(){const _0x4307ca=_0x218e47[_0x47af32([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4307ca&&(!!_0x4307ca[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x2a]))||!!_0x4307ca[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x55,0x50,0x4c,0x43])));}function _0x346f8b(){const _0x59d785=_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59d785||0x0==_0x59d785[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be897}=new URL(window[_0x47af32([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59d785[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be897))return!0x0;const _0x515995=_0x4be897[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e]));return _0x59d785[_0x47af32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41c44d=>_0x41c44d[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x2a])))[_0x47af32([0x6d,0x61,0x70])](_0x4de2eb=>_0x4de2eb[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e])))[_0x47af32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a92a0=>_0x4a92a0[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x515995[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47af32([0x6d,0x61,0x70])](_0x27aef0=>Array(_0x515995[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27aef0[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47af32([0x66,0x69,0x6c,0x6c])](_0x27aef0[0x0]===_0x47af32([0x2a])?_0x47af32([0x2a]):'')[_0x47af32([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27aef0))[_0x47af32([0x73,0x6f,0x6d,0x65])](_0x11fdad=>_0x515995[_0x47af32([0x65,0x76,0x65,0x72,0x79])]((_0x9ba44f,_0x2b7d8d)=>_0x11fdad[_0x2b7d8d]===_0x9ba44f||_0x11fdad[_0x2b7d8d]===_0x47af32([0x2a])));}function _0x517966(){return _0x95fbbf&&_0x4f9f79?new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13745a,_0x3b1221)=>{_0x95fbbf[_0x47af32([0x74,0x68,0x65,0x6e])](_0x13745a,_0x3b1221),_0x4f9f79[_0x47af32([0x74,0x68,0x65,0x6e])](_0x3e0a82=>{_0x3e0a82!=_0x47af32([0x56,0x61,0x6c,0x69,0x64])&&_0x13745a(_0x3e0a82);},_0x3b1221);}):_0x95fbbf||_0x4f9f79||_0x47af32([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53afda(_0x507b0e,_0x407ffd){return new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387b4f=>{if(_0x14e8f2())return _0x387b4f(_0x47af32([0x56,0x61,0x6c,0x69,0x64]));_0x5ab301(),_0x4b24f8[_0x47af32([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36f8df=!0x1;const _0xe0d358=_0x3b3034();function _0x2183b4(_0x18376e){return!!_0x18376e&&(typeof _0x18376e===_0x47af32([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18376e===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18376e[_0x47af32([0x74,0x68,0x65,0x6e])]===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18376e[_0x47af32([0x63,0x61,0x74,0x63,0x68])]===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10c61f(_0x2387ab){_0x30310c(_0x2387ab)[_0x47af32([0x74,0x68,0x65,0x6e])](_0x4a9857=>{if(!_0x4a9857||_0x4a9857[_0x47af32([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47af32([0x6f,0x6b]))return _0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5655b1(_0x3e34cb(_0xe0d358+_0x407ffd))!=_0x4a9857[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47af32([0x56,0x61,0x6c,0x69,0x64]);})[_0x47af32([0x74,0x68,0x65,0x6e])](_0x389825=>(_0x3a8fc5(),_0x389825),()=>{const _0x5f0900=_0x3ad40d();return null==_0x5f0900?(_0x3a8fc5(),_0x47af32([0x56,0x61,0x6c,0x69,0x64])):_0x47af32(_0x43867a-_0x5f0900>(0x7753083a^_0x425d8b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47af32([0x74,0x68,0x65,0x6e])](_0x387b4f)[_0x47af32([0x63,0x61,0x74,0x63,0x68])](()=>{_0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c5f2e=0x536962ba^_0x425d8b;function _0x3a8fc5(){const _0x4f350b=_0x47af32([0x6c,0x6c,0x63,0x74,0x2d])+_0x5655b1(_0x3e34cb(_0x507b0e)),_0x24e77d=_0x4295ae(_0x5655b1(window[_0x47af32([0x4d,0x61,0x74,0x68])][_0x47af32([0x63,0x65,0x69,0x6c])](_0x43867a/_0x4c5f2e)));window[_0x47af32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47af32([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f350b,_0x24e77d);}function _0x3ad40d(){const _0x20ba33=_0x47af32([0x6c,0x6c,0x63,0x74,0x2d])+_0x5655b1(_0x3e34cb(_0x507b0e)),_0x3c9e84=window[_0x47af32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47af32([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20ba33);return _0x3c9e84?window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4295ae(_0x3c9e84),0x10)*_0x4c5f2e:null;}function _0x30310c(_0x5779c9){return new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c4e7,_0x43e757)=>{_0x5779c9[_0x47af32([0x74,0x68,0x65,0x6e])](_0x54c4e7,_0x43e757),window[_0x47af32([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43e757,0x535e58fa^_0x425d8b);});}}_0x4b24f8[_0x47af32([0x6f,0x6e])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x326c3e,_0x22ed0c)=>{if(_0x22ed0c[0x0]!=_0x507b0e)return _0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22ed0c[0x1]={..._0x22ed0c[0x1],[_0x47af32([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe0d358};},{[_0x47af32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47af32([0x68,0x69,0x67,0x68])}),_0x4b24f8[_0x47af32([0x6f,0x6e])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38343a=>{_0x2183b4(_0x38343a[_0x47af32([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36f8df=!0x0,_0x10c61f(_0x38343a[_0x47af32([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47af32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47af32([0x6c,0x6f,0x77])}),_0x3fdbe3[_0x47af32([0x74,0x68,0x65,0x6e])](()=>{_0x36f8df||_0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14e8f2(){return _0x4b24f8[_0x47af32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47af32([0x76,0x69,0x65,0x77])][_0x47af32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47af32([0x61,0x75,0x74,0x6f]);}function _0x5ab301(){_0x4b24f8[_0x47af32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47af32([0x76,0x69,0x65,0x77])][_0x47af32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47af32([0x61,0x75,0x74,0x6f]);}}function _0x47add3(_0x3fb3a0){const _0x21e628=[new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155c90=>setTimeout(_0x155c90,0x5356b2f6^_0x425d8b)),_0x3fdbe3[_0x47af32([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fd0b1=>{let _0x430466=0x0;_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x6f,0x6e])](_0x47af32([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26ff71,_0x3720e9)=>{_0x3720e9[0x0][_0x47af32([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x430466++,_0x430466==(0x535f89d2^_0x425d8b)&&(_0x1fd0b1(),_0x26ff71[_0x47af32([0x6f,0x66,0x66])]());});}))];return window[_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47af32([0x72,0x61,0x63,0x65])](_0x21e628)[_0x47af32([0x74,0x68,0x65,0x6e])](()=>_0x3fb3a0);}async function _0x193bf2(){await _0x3fdbe3,_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21ec85,_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21ec85,_0x4b24f8[_0x47af32([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47af32([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f4c6(_0x4f3c70){const _0x5b261c=_0x50db80();_0x4b24f8[_0x5b261c]=_0x47af32([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f3c70,_0x4f3c70!=_0x47af32([0x56,0x61,0x6c,0x69,0x64])&&_0x193bf2();}function _0x50db80(){const _0x2a86f5=window[_0x47af32([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47af32([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47af32([0x6e,0x6f,0x77])]())[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47af32([0x2e]),'');let _0x3dbab1=_0x47af32([0x68]);for(let _0x4dfec6=0x0;_0x4dfec6<_0x2a86f5[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dfec6+=0x2){let _0x2f3f55=window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a86f5[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dfec6,_0x4dfec6+0x2));_0x2f3f55>=_0x423360[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f3f55-=_0x423360[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3dbab1+=_0x423360[_0x2f3f55];}return _0x3dbab1;}function _0x5666a1(){const _0x339ef1=_0x583cf2[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e]));if(0x3!=_0x339ef1[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47d5ae(_0x339ef1[0x1]);function _0x47d5ae(_0x20ca6b){const _0x23ade6=_0x559ad2(_0x20ca6b);return _0x23ade6&&_0x463623()?_0x23ade6:null;function _0x463623(){const _0x2c48f4=_0x23ade6[_0x47af32([0x6a,0x74,0x69])],_0x4ee395=window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c48f4[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c48f4[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x415ddc={..._0x23ade6,[_0x47af32([0x6a,0x74,0x69])]:_0x2c48f4[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c48f4[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x415ddc[_0x47af32([0x76,0x63])],_0x3e34cb(_0x415ddc)==_0x4ee395;}}}async function _0x457342(){let _0x16e0a0=!0x0;try{const _0x583be9=_0x583cf2[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e])),[_0x5f47c4,_0x5172b6,_0x280fdd]=_0x583be9;return _0x318013(_0x5f47c4),await _0x506484(_0x5f47c4,_0x5172b6,_0x280fdd),_0x16e0a0;}catch{return!0x1;}function _0x318013(_0x495de5){const _0x5e7377=_0x559ad2(_0x495de5);_0x5e7377&&_0x5e7377[_0x47af32([0x61,0x6c,0x67])]==_0x47af32([0x45,0x53,0x32,0x35,0x36])||(_0x16e0a0=!0x1);}async function _0x506484(_0x4f632e,_0x4837fa,_0x59d8d0){const _0x35e23e=window[_0x47af32([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47af32([0x66,0x72,0x6f,0x6d])](_0x33acbd(_0x59d8d0),_0x1cb3f4=>_0x1cb3f4[_0x47af32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x473038=new window[(_0x47af32([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47af32([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f632e+_0x47af32([0x2e])+_0x4837fa),_0x19a977=window[_0x47af32([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47af32([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19a977)return;const _0x5581d8=await _0x19a977[_0x47af32([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47af32([0x6a,0x77,0x6b]),_0xba8019,{[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x45,0x43,0x44,0x53,0x41]),[_0x47af32([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47af32([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19a977[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x45,0x43,0x44,0x53,0x41]),[_0x47af32([0x68,0x61,0x73,0x68])]:{[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5581d8,_0x35e23e,_0x473038)||(_0x16e0a0=!0x1);}}function _0x559ad2(_0x3eff45){return _0x3eff45[_0x47af32([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47af32([0x65,0x79]))?JSON[_0x47af32([0x70,0x61,0x72,0x73,0x65])](_0x33acbd(_0x3eff45)):null;}function _0x33acbd(_0x22ff98){return window[_0x47af32([0x61,0x74,0x6f,0x62])](_0x22ff98[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47af32([0x2b]))[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47af32([0x2f])));}function _0x3e34cb(_0x501820){let _0x1254cd=0x1505;function _0x54e3cc(_0x4bbe54){for(let _0x37038f=0x0;_0x37038f<_0x4bbe54[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37038f++){const _0x38c4f7=_0x4bbe54[_0x47af32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37038f);_0x1254cd=(_0x1254cd<<0x5)+_0x1254cd+_0x38c4f7,_0x1254cd&=_0x1254cd;}}function _0x36b00a(_0x276eaa){Array[_0x47af32([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x276eaa)?_0x276eaa[_0x47af32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36b00a):_0x276eaa&&typeof _0x276eaa==_0x47af32([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47af32([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x276eaa)[_0x47af32([0x73,0x6f,0x72,0x74])]()[_0x47af32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11f20b,_0x119588])=>{_0x54e3cc(_0x11f20b),_0x36b00a(_0x119588);}):_0x54e3cc(window[_0x47af32([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x276eaa));}return _0x36b00a(_0x501820),_0x1254cd>>>0x0;}function _0x5655b1(_0x4a539b){return _0x4a539b[_0x47af32([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47af32([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47af32([0x30]));}function _0x4295ae(_0x3db0b4){return _0x3db0b4[_0x47af32([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47af32([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47af32([0x6a,0x6f,0x69,0x6e])]('');}function _0x21ec85(){}function _0x47af32(_0x37c5cd){return _0x37c5cd['map'](_0x32bba9=>String['fromCharCode'](_0x32bba9))['join']('');}_0x21f4c6(await _0x2018d7());}(this);}['_initSchema'](){const _0xcfa0a0=this['editor']['model']['schema'];_0xcfa0a0['isRegistered']('imageBlock')&&_0xcfa0a0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xcfa0a0['isRegistered']('imageInline')&&_0xcfa0a0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xf062ad=this['editor'];_0xf062ad['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xf062ad['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5631ba=>_0x5631ba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17c6d9=_0xf062ad['commands']['get']('replaceImageSource');_0x17c6d9&&this['listenTo'](_0x17c6d9,'cleanupImage',(_0x7b91f3,[_0x412b1c,_0x184b5c])=>{_0x412b1c['removeAttribute']('uploadcareImageId',_0x184b5c);});}['_initConfig'](){const _0x27a10a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2944c7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x545486(_0x432d86['document'],'uc-config',{..._0x27a10a,'pubkey':_0x2944c7,'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']=_0x1e10ad=>{if('closeMax'==_0x1e10ad)return'#uc-icon-arrow-down';},_0x432d86['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x545486(_0x432d86['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x432d86['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4aa9b6=this['editor']['commands']['get']('insertImage');_0x4aa9b6&&this['listenTo'](_0x4aa9b6,'execute',()=>{const _0xbbf05d=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbbf05d&&_0xbbf05d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xbbf05d);});});const _0x2cbe1b=this['editor']['commands']['get']('uploadcareImageReplace');_0x2cbe1b&&this['listenTo'](_0x2cbe1b,'execute',()=>{const _0x2f829a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f829a&&_0x2f829a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f829a);});});}}class tt extends _0x2e71c4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e4de5){super(_0x5e4de5),_0x5e4de5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x841330['defineComponents'](_0x841330),this['_defineLocale']();}['_defineLocale'](){const _0x32dcfd=this['editor']['config']['get']('uploadcare.locale'),_0x5c0b20=this['editor']['locale']['contentLanguage'];_0x32dcfd&&_0x841330['defineLocale'](_0x5c0b20,_0x32dcfd);}}class ii extends _0x523b30{constructor(_0x159d7e){super(_0x159d7e);const t=_0x159d7e['t'],_0x4f7ca3=this['bindTemplate'],_0x1dec4a=new _0xa0abdc();_0x1dec4a['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':[_0x1dec4a,{'text':_0x4f7ca3['to']('imageUploadProgress',_0x2fe4b0=>t('Loading\x20image...')+'\x20('+(_0x2fe4b0||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 _0x523b30{constructor(_0x47889d){super(_0x47889d);const t=_0x47889d['t'];this['set']('errorType',null);const _0x5a3421=new _0x38bd2e(_0x47889d);_0x5a3421['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a3421['withText']=!0x0,_0x5a3421['class']='ck-button-action',_0x5a3421['on']('execute',()=>{this['fire']('retry');}),_0x5a3421['bind']('isVisible')['to'](this,'errorType',_0x45dcb0=>'NotFound'!==_0x45dcb0);const _0x2b2fd8=new _0x31c21e();_0x2b2fd8['content']=_0x4de147,_0x2b2fd8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31af97=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':[_0x2b2fd8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31af97['to']('errorType',_0x379699=>t('NotFound'!==_0x379699?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a3421]},{'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 _0x523b30{constructor(_0xab6511,_0x5ad920){super(_0xab6511);const _0x398056=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5ad920,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x398056['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x31d64f,_0x1ac826,_0x366c9e){super(_0x31d64f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x31d64f),this['_errorView']=new ti(_0x31d64f),this['_editingView']=new ei(_0x31d64f,_0x366c9e),this['_focusableView']=new _0x523b30(_0x31d64f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1ac826),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'],_0x27b8da=>{this['_addUploadcareImageEditorListeners'](_0x27b8da);});}),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'](_0x5697a5,_0x1106dc){const _0x5152ff='uc-cloud-image-editor',_0xb9fcf1=_0x5697a5['querySelector'](_0x5152ff);if(_0xb9fcf1)return _0x1106dc(_0xb9fcf1);const _0x280252=new MutationObserver(_0x4235e7=>{const _0x4599c9=_0x4235e7['filter'](_0x3121aa=>_0x3121aa['target']===_0x5697a5&&_0x3121aa['addedNodes']['length']>0x0&&_0x3121aa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5152ff);_0x4599c9['length']&&(_0x280252['disconnect'](),_0x1106dc(_0x4599c9[0x0]['addedNodes'][0x0]));});_0x280252['observe'](_0x5697a5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x487a09){_0x487a09['addEventListener']('apply',_0x49c131=>{this['fire']('apply',{'imageSrc':_0x49c131['detail']['cdnUrl']});}),_0x487a09['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f9344(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4dbbbe,_0x5316f5,_0x633ac1){super(),this['_editor']=_0x4dbbbe,this['_dialog']=_0x5316f5,this['_imageElement']=_0x633ac1,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 _0x57f94d=this['_imageElement'],_0x256364=_0x57f94d['getAttribute']('uploadcareImageId'),_0x2c52a0=_0x57f94d['getAttribute']('src');if(_0x256364)await this['_loadImageInfo'](_0x256364,_0x2c52a0);else{if(this['_imageCache']['has'](_0x2c52a0)){const _0x583e5b=this['_imageCache']['get'](_0x2c52a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x583e5b['url'],this['imageDimension']=_0x583e5b['dimension'],this['imageId']=_0x583e5b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52e32c}=this['_editor'],t=_0x52e32c['t'],_0x439a5c=new X(_0x52e32c,this['imageStatus'],this['_attributes']);_0x439a5c['bind']('status')['to'](this,'imageStatus'),_0x439a5c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x439a5c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x439a5c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x439a5c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x206ac3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x439a5c,'position':_0x21f8af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x439a5c['focus']();},'onHide':()=>{_0x439a5c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1fe58d=>!A(_0x1fe58d,_0x439a5c['element'])}});}['_loadImageInfo'](_0x1e7e44,_0x16a2fd){return j['getInfo'](_0x1e7e44,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5d04e7=>{const {width:_0xbdf224,height:_0x3b5ffe}=_0x5d04e7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16a2fd,this['imageDimension']={'width':_0xbdf224,'height':_0x3b5ffe},this['imageId']=_0x1e7e44;})['catch'](_0x3b964b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b964b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xb850b0,_0x12e2b5){return this['_getImageAsFile'](_0xb850b0)['then'](_0x138a3b=>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':_0x12e2b5['signal'],'file':_0x138a3b,'onProgress':_0x6c447=>{_0x6c447&&_0x6c447['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x6c447['value']));}}))['then'](_0x40b04b=>{const {width:_0x13d7d4,height:_0x3cbeb3}=_0x40b04b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40b04b['cdnUrl'],this['imageDimension']={'width':_0x13d7d4,'height':_0x3cbeb3},this['imageId']=_0x40b04b['uuid'],this['imageUploadProgress']=null;const _0x678e6a=_0xb850b0['getAttribute']('src');this['_imageCache']['set'](_0x678e6a,{'id':_0x40b04b['uuid'],'url':_0x40b04b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4fbe4b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fbe4b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x407425,_0x44c715){_0x407425['on']('apply',(_0x2dedfb,_0x6153a)=>{this['_replaceImage'](_0x44c715,_0x6153a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x407425['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x407425['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xb49992,_0x456d69,_0x112a04){const _0x3555b6=this['_editor'],{width:_0xa62866,height:_0x3712b7}=S(_0x456d69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2059c9,imageSources:_0x2fd509}=C(_0x456d69,_0xa62866);_0x3555b6['model']['change'](_0x8ef475=>{if('$graveyard'===_0xb49992['root']['rootName']){_0x3555b6['execute']('insertImage',{'imageType':_0xb49992['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xb49992['getAttributes']()),'uploadcareImageId':_0x112a04,'src':_0x2059c9,'sources':_0x2fd509,'width':_0xa62866,'height':_0x3712b7}});const _0x51a715=_0xb49992['getChildren']();_0xb49992=_0x3555b6['model']['document']['selection']['getSelectedElement']();for(const _0x3322a9 of _0x51a715)_0x8ef475['append'](_0x8ef475['cloneElement'](_0x3322a9),_0xb49992);}else _0x8ef475['setSelection'](_0xb49992,'on'),_0x3555b6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xb49992['getAttributes']()),'uploadcareImageId':_0x112a04,'src':_0x2059c9,'sources':_0x2fd509,'width':_0xa62866,'height':_0x3712b7},_0xb49992);_0x8ef475['setSelection'](_0xb49992,'on');});}async['_getImageAsFile'](_0x31cb3e){const _0x5ebc69=_0x432d86['window'],_0x3bdafb=_0x432d86['document']['location']['href'],_0x18e736=new _0x5ebc69['URL'](_0x31cb3e['getAttribute']('src'),_0x3bdafb);if('data:'===_0x18e736['protocol']){const _0x3211f6=_0x18e736['href']['split'](','),_0x29862c=_0x3211f6[0x0]['match'](/:(.*?);/)[0x1],_0x5ac4b6=_0x29862c['split']('/')[0x1],_0x3bbb07=_0x5ebc69['atob'](_0x3211f6[_0x3211f6['length']-0x1]);let _0x4600c1=_0x3bbb07['length'];const _0x4c5813=new _0x5ebc69['Uint8Array'](_0x4600c1);for(;_0x4600c1--;)_0x4c5813[_0x4600c1]=_0x3bbb07['charCodeAt'](_0x4600c1);return new _0x5ebc69['File']([_0x4c5813],'image.'+_0x5ac4b6,{'type':_0x29862c});}const _0x4e10f5=_0x18e736['href']['split']('/'),_0x3b746c=_0x4e10f5[_0x4e10f5['length']-0x1],_0x1bf82b=_0x3b746c['split']('.')[0x1];return _0x5ebc69['fetch'](_0x18e736['href'])['then'](_0x315260=>_0x315260['clone']()['blob']())['then'](_0x181d8b=>new _0x5ebc69['File']([_0x181d8b],_0x3b746c,{'type':'image/'+_0x1bf82b}));}}class O extends _0x4d9c62{['imageEditController'];static get['requires'](){return[_0x2790d8];}['_isEditable'];constructor(_0x2d25b8){super(_0x2d25b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1c677f){const _0x98f413=G(_0x1c677f);return _0x8fd091=>!(!_0x8fd091||!_0x8fd091['is']('element','imageBlock')&&!_0x8fd091['is']('element','imageInline'))&&(!!_0x8fd091['hasAttribute']('uploadcareImageId')||!!_0x8fd091['hasAttribute']('src')&&_0x98f413(_0x8fd091['getAttribute']('src')));}(_0x2d25b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x39896b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x39896b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x44e630=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44e630&&(_0x44e630['is']('element','imageBlock')||_0x44e630['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2790d8),_0x44e630),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4d9c62{['refresh'](){const _0x10e35e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x10e35e&&(_0x10e35e['is']('element','imageBlock')||_0x10e35e['is']('element','imageInline')));}['execute'](_0x4102cd){const _0x12c503=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x457ed8=>{_0x457ed8['setAttributes'](_0x4102cd,_0x12c503),_0x457ed8['removeAttribute']('srcset',_0x12c503),_0x457ed8['removeAttribute']('sizes',_0x12c503);});}}class m extends _0x2e71c4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3f5224,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8cc688}=this;_0x8cc688['commands']['add']('uploadcareImageEdit',new O(_0x8cc688)),_0x8cc688['commands']['add']('uploadcareImageReplace',new R(_0x8cc688));}}class g extends _0x2e71c4{['_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 _0x28abd4=this['editor'];_0x28abd4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f32d4=>{const _0x336950=_0x28abd4['commands']['get']('uploadcareImageEdit'),_0x42eb85=new _0x38bd2e(_0x2f32d4),t=_0x2f32d4['t'];return _0x42eb85['set']({'icon':_0x206ac3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x42eb85['bind']('isEnabled')['to'](_0x336950),_0x42eb85['bind']('isOn')['to'](_0x336950,'isActive'),this['listenTo'](_0x42eb85,'execute',()=>{_0x28abd4['execute']('uploadcareImageEdit'),_0x28abd4['editing']['view']['focus']();}),_0x42eb85;}),this['_initConfig']();}['_initConfig'](){const _0x31d79b=_0x545486(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31d79b),this['listenTo'](this['editor'],'destroy',()=>{_0x31d79b['remove']();});}}class et extends _0x2e71c4{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-20251228.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-20251228.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251228.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251228.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251228.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251228.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251228.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251228.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251228.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 _0x1f4eb0=_0x580d;(function(_0x205b4e,_0x3cbcca){const _0x4a3c06=_0x580d,_0x3be843=_0x205b4e();while(!![]){try{const _0x4dd3f9=parseInt(_0x4a3c06(0xa7))/0x1+-parseInt(_0x4a3c06(0xb4))/0x2+-parseInt(_0x4a3c06(0xf1))/0x3*(-parseInt(_0x4a3c06(0xae))/0x4)+-parseInt(_0x4a3c06(0xf7))/0x5+parseInt(_0x4a3c06(0xc1))/0x6*(-parseInt(_0x4a3c06(0xc9))/0x7)+-parseInt(_0x4a3c06(0xe7))/0x8*(-parseInt(_0x4a3c06(0xba))/0x9)+-parseInt(_0x4a3c06(0xee))/0xa*(-parseInt(_0x4a3c06(0xc0))/0xb);if(_0x4dd3f9===_0x3cbcca)break;else _0x3be843['push'](_0x3be843['shift']());}catch(_0xc3d102){_0x3be843['push'](_0x3be843['shift']());}}}(_0x5be0,0xdec29));import{Plugin as _0xb1dbae}from'ckeditor5/src/core.js';import{Dialog as _0x449b62}from'ckeditor5/src/ui.js';import{createElement as _0x3b7332,global as _0x5d8335,uid as _0x1ead40}from'ckeditor5/src/utils.js';function _0x580d(_0x2df81a,_0x5479b5){const _0x5be0ec=_0x5be0();return _0x580d=function(_0x580d5f,_0x281881){_0x580d5f=_0x580d5f-0xa5;let _0x18be37=_0x5be0ec[_0x580d5f];return _0x18be37;},_0x580d(_0x2df81a,_0x5479b5);}import{UploadcareCommand as _0x9ac18a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x507f15}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3d2cb9}from'./utils/editingutils.js';export class UploadcareEditing extends _0xb1dbae{[_0x1f4eb0(0xe0)]=null;[_0x1f4eb0(0xdb)]=null;static get[_0x1f4eb0(0xf3)](){const _0x4fa7b1=_0x1f4eb0;return _0x4fa7b1(0xf0);}static get[_0x1f4eb0(0xf4)](){const _0x2256d0=_0x1f4eb0;return[_0x2256d0(0xdc),_0x507f15,_0x449b62];}static get[_0x1f4eb0(0xe3)](){return!0x0;}static get[_0x1f4eb0(0xd8)](){return!0x0;}[_0x1f4eb0(0xe2)];get[_0x1f4eb0(0xe9)](){const _0x2b90a6=_0x1f4eb0;return this[_0x2b90a6(0xe0)];}get[_0x1f4eb0(0xf8)](){const _0x37029d=_0x1f4eb0;return this[_0x37029d(0xdb)];}constructor(_0x454cbd){const _0x113f01=_0x1f4eb0;super(_0x454cbd),this[_0x113f01(0xe2)]=_0x1ead40();}[_0x1f4eb0(0xa8)](){const _0x9af40b=_0x1f4eb0,_0x3da37a=this[_0x9af40b(0xbc)];_0x3da37a[_0x9af40b(0xa6)][_0x9af40b(0xcf)](_0x9af40b(0xc3),new _0x9ac18a(_0x3da37a));}[_0x1f4eb0(0xc5)](){const _0x1f336f=_0x1f4eb0;this[_0x1f336f(0xac)](),this[_0x1f336f(0xcc)](),this[_0x1f336f(0xe5)](),this[_0x1f336f(0xd2)](),this[_0x1f336f(0xbd)](),this[_0x1f336f(0xbf)](this[_0x1f336f(0xbc)],_0x1f336f(0xce),()=>{const _0x1cfd83=_0x1f336f;this[_0x1cfd83(0xe0)]&&(this[_0x1cfd83(0xe0)][_0x1cfd83(0xb2)](),this[_0x1cfd83(0xe0)]=null),this[_0x1cfd83(0xdb)]&&(this[_0x1cfd83(0xdb)][_0x1cfd83(0xb2)](),this[_0x1cfd83(0xdb)]=null);const _0x22245c=_0x5d8335[_0x1cfd83(0xec)][_0x1cfd83(0xb7)](_0x1cfd83(0xd5));_0x22245c&&_0x22245c[_0x1cfd83(0xb2)]();}),async function(_0x338ae7){const _0x40820c=_0x4404d2([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]),_0x4dfb35=0x535f8c3a,_0x5d2a0f=0x5358f122^_0x4dfb35,_0x34c038=window[_0x4404d2([0x44,0x61,0x74,0x65])][_0x4404d2([0x6e,0x6f,0x77])](),_0x3210c0=_0x338ae7[_0x4404d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567dcb=new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1782a2=>{_0x3210c0[_0x4404d2([0x6f,0x6e,0x63,0x65])](_0x4404d2([0x72,0x65,0x61,0x64,0x79]),_0x1782a2);}),_0x5b2719={[_0x4404d2([0x6b,0x74,0x79])]:_0x4404d2([0x45,0x43]),[_0x4404d2([0x75,0x73,0x65])]:_0x4404d2([0x73,0x69,0x67]),[_0x4404d2([0x63,0x72,0x76])]:_0x4404d2([0x50,0x2d,0x32,0x35,0x36]),[_0x4404d2([0x78])]:_0x4404d2([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]),[_0x4404d2([0x79])]:_0x4404d2([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]),[_0x4404d2([0x61,0x6c,0x67])]:_0x4404d2([0x45,0x53,0x32,0x35,0x36])},_0x2a75e8=_0x3210c0[_0x4404d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4404d2([0x67,0x65,0x74])](_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a63f3(){let _0x1b89c0,_0xeb23bd=null,_0x11fdd9=null;try{if(_0x2a75e8==_0x4404d2([0x47,0x50,0x4c]))return _0x4404d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b89c0=_0x410bac(),!_0x1b89c0)return _0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b89c0[_0x4404d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11fdd9=_0x28aeb8(_0x1b89c0[_0x4404d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b89c0[_0x4404d2([0x6a,0x74,0x69])])),await _0x5b0608()?_0x790c02()?_0x3fb50d()?_0x4404d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d7438()?(_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4404d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeb23bd=_0x2b3324(_0x4404d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4404d2([0x74,0x72,0x69,0x61,0x6c])&&(_0xeb23bd=_0x2b3324(_0x4404d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22f172()):_0x4404d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4404d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fb50d(){const _0xeb6742=[_0x4404d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4404d2([0x74,0x72,0x69,0x61,0x6c])][_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34c038/0x3e8:0xe10*_0x5d2a0f;return _0x1b89c0[_0x4404d2([0x65,0x78,0x70])]<_0xeb6742;}function _0x790c02(){const _0x51bcc5=_0x1b89c0[_0x4404d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51bcc5&&(!!_0x51bcc5[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x2a]))||!!_0x51bcc5[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x55,0x50,0x4c,0x43])));}function _0x3d7438(){const _0x5949aa=_0x580d,_0x3c5767=_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c5767||0x0==_0x3c5767[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31107c}=new URL(window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5949aa(0xde)]);if(_0x3c5767[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31107c))return!0x0;const _0x5bdb4=_0x31107c[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e]));return _0x3c5767[_0x4404d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49410d=>_0x49410d[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x2a])))[_0x4404d2([0x6d,0x61,0x70])](_0x2902e5=>_0x2902e5[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e])))[_0x4404d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce5ff=>_0x2ce5ff[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5bdb4[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4404d2([0x6d,0x61,0x70])](_0x160e5c=>Array(_0x5bdb4[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x160e5c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4404d2([0x66,0x69,0x6c,0x6c])](_0x160e5c[0x0]===_0x4404d2([0x2a])?_0x4404d2([0x2a]):'')[_0x4404d2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x160e5c))[_0x4404d2([0x73,0x6f,0x6d,0x65])](_0x17cf73=>_0x5bdb4[_0x4404d2([0x65,0x76,0x65,0x72,0x79])]((_0x37c243,_0x518525)=>_0x17cf73[_0x518525]===_0x37c243||_0x17cf73[_0x518525]===_0x4404d2([0x2a])));}function _0x22f172(){return _0xeb23bd&&_0x11fdd9?new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dc1d9,_0x534b1a)=>{_0xeb23bd[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x3dc1d9,_0x534b1a),_0x11fdd9[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x578c10=>{_0x578c10!=_0x4404d2([0x56,0x61,0x6c,0x69,0x64])&&_0x3dc1d9(_0x578c10);},_0x534b1a);}):_0xeb23bd||_0x11fdd9||_0x4404d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28aeb8(_0x5b23ae,_0x853fd6){return new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b8b5=>{if(_0xb12935())return _0x54b8b5(_0x4404d2([0x56,0x61,0x6c,0x69,0x64]));_0x40bad4(),_0x3210c0[_0x4404d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47b2b9=!0x1;const _0x430203=_0x1ead40();function _0x10f1c6(_0x109d3a){return!!_0x109d3a&&(typeof _0x109d3a===_0x4404d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x109d3a===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x109d3a[_0x4404d2([0x74,0x68,0x65,0x6e])]===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x109d3a[_0x4404d2([0x63,0x61,0x74,0x63,0x68])]===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1be02a(_0x643c){_0x325470(_0x643c)[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x26bc56=>{if(!_0x26bc56||_0x26bc56[_0x4404d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4404d2([0x6f,0x6b]))return _0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3821b9(_0x1a0a2c(_0x430203+_0x853fd6))!=_0x26bc56[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4404d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x21a0d9=>(_0x43bced(),_0x21a0d9),()=>{const _0x2c3b19=_0x550264();return null==_0x2c3b19?(_0x43bced(),_0x4404d2([0x56,0x61,0x6c,0x69,0x64])):_0x4404d2(_0x34c038-_0x2c3b19>(0x7753083a^_0x4dfb35)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x54b8b5)[_0x4404d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xabc8d1=0x536962ba^_0x4dfb35;function _0x43bced(){const _0x820582=_0x4404d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3821b9(_0x1a0a2c(_0x5b23ae)),_0x5046c8=_0x11bb7b(_0x3821b9(window[_0x4404d2([0x4d,0x61,0x74,0x68])][_0x4404d2([0x63,0x65,0x69,0x6c])](_0x34c038/_0xabc8d1)));window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4404d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x820582,_0x5046c8);}function _0x550264(){const _0x80de1a=_0x4404d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3821b9(_0x1a0a2c(_0x5b23ae)),_0x29eed3=window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4404d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x80de1a);return _0x29eed3?window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11bb7b(_0x29eed3),0x10)*_0xabc8d1:null;}function _0x325470(_0x75406){return new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c02bf,_0x29c4ee)=>{_0x75406[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x2c02bf,_0x29c4ee),window[_0x4404d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29c4ee,0x535e58fa^_0x4dfb35);});}}_0x3210c0[_0x4404d2([0x6f,0x6e])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x190eb7,_0xb3c593)=>{if(_0xb3c593[0x0]!=_0x5b23ae)return _0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb3c593[0x1]={..._0xb3c593[0x1],[_0x4404d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x430203};},{[_0x4404d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4404d2([0x68,0x69,0x67,0x68])}),_0x3210c0[_0x4404d2([0x6f,0x6e])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x199a7d=>{_0x10f1c6(_0x199a7d[_0x4404d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47b2b9=!0x0,_0x1be02a(_0x199a7d[_0x4404d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4404d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4404d2([0x6c,0x6f,0x77])}),_0x567dcb[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>{_0x47b2b9||_0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb12935(){return _0x3210c0[_0x4404d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4404d2([0x76,0x69,0x65,0x77])][_0x4404d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4404d2([0x61,0x75,0x74,0x6f]);}function _0x40bad4(){_0x3210c0[_0x4404d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4404d2([0x76,0x69,0x65,0x77])][_0x4404d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4404d2([0x61,0x75,0x74,0x6f]);}}function _0x2b3324(_0xb5fe32){const _0x316e66=[new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df36e=>setTimeout(_0x3df36e,0x5356b2f6^_0x4dfb35)),_0x567dcb[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47a653=>{let _0x47322f=0x0;_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x6f,0x6e])](_0x4404d2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x267551,_0x4d64b4)=>{_0x4d64b4[0x0][_0x4404d2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47322f++,_0x47322f==(0x535f89d2^_0x4dfb35)&&(_0x47a653(),_0x267551[_0x4404d2([0x6f,0x66,0x66])]());});}))];return window[_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4404d2([0x72,0x61,0x63,0x65])](_0x316e66)[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>_0xb5fe32);}async function _0x5d6916(){await _0x567dcb,_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd358de,_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd358de,_0x3210c0[_0x4404d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80efb6(_0x45ff51){const _0x24d263=_0x5ad844();_0x3210c0[_0x24d263]=_0x4404d2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45ff51,_0x45ff51!=_0x4404d2([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6916();}function _0x5ad844(){const _0x47289e=window[_0x4404d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4404d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4404d2([0x6e,0x6f,0x77])]())[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4404d2([0x2e]),'');let _0x5daaf2=_0x4404d2([0x68]);for(let _0x58abdf=0x0;_0x58abdf<_0x47289e[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58abdf+=0x2){let _0x1dd341=window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47289e[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58abdf,_0x58abdf+0x2));_0x1dd341>=_0x40820c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1dd341-=_0x40820c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5daaf2+=_0x40820c[_0x1dd341];}return _0x5daaf2;}function _0x410bac(){const _0x36ec26=_0x2a75e8[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e]));if(0x3!=_0x36ec26[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e46e4(_0x36ec26[0x1]);function _0x1e46e4(_0x593529){const _0x1da897=_0x41dc91(_0x593529);return _0x1da897&&_0x303018()?_0x1da897:null;function _0x303018(){const _0x15d380=_0x1da897[_0x4404d2([0x6a,0x74,0x69])],_0x235e62=window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d380[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d380[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10a7f5={..._0x1da897,[_0x4404d2([0x6a,0x74,0x69])]:_0x15d380[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15d380[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10a7f5[_0x4404d2([0x76,0x63])],_0x1a0a2c(_0x10a7f5)==_0x235e62;}}}async function _0x5b0608(){let _0x1d69dc=!0x0;try{const _0x275366=_0x2a75e8[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e])),[_0x4971b3,_0xf05cb6,_0x565d34]=_0x275366;return _0x3d1972(_0x4971b3),await _0x1f74d8(_0x4971b3,_0xf05cb6,_0x565d34),_0x1d69dc;}catch{return!0x1;}function _0x3d1972(_0x481d62){const _0x5d38a4=_0x41dc91(_0x481d62);_0x5d38a4&&_0x5d38a4[_0x4404d2([0x61,0x6c,0x67])]==_0x4404d2([0x45,0x53,0x32,0x35,0x36])||(_0x1d69dc=!0x1);}async function _0x1f74d8(_0x147d58,_0x570586,_0x35ba1c){const _0x135440=window[_0x4404d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4404d2([0x66,0x72,0x6f,0x6d])](_0x22a32b(_0x35ba1c),_0x3dda37=>_0x3dda37[_0x4404d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x461455=new window[(_0x4404d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4404d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x147d58+_0x4404d2([0x2e])+_0x570586),_0x585a5d=window[_0x4404d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4404d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x585a5d)return;const _0x28ac13=await _0x585a5d[_0x4404d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4404d2([0x6a,0x77,0x6b]),_0x5b2719,{[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x45,0x43,0x44,0x53,0x41]),[_0x4404d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4404d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x585a5d[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x45,0x43,0x44,0x53,0x41]),[_0x4404d2([0x68,0x61,0x73,0x68])]:{[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28ac13,_0x135440,_0x461455)||(_0x1d69dc=!0x1);}}function _0x41dc91(_0x5bbfb8){return _0x5bbfb8[_0x4404d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4404d2([0x65,0x79]))?JSON[_0x4404d2([0x70,0x61,0x72,0x73,0x65])](_0x22a32b(_0x5bbfb8)):null;}function _0x22a32b(_0x522c58){return window[_0x4404d2([0x61,0x74,0x6f,0x62])](_0x522c58[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4404d2([0x2b]))[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4404d2([0x2f])));}function _0x1a0a2c(_0x6c0e83){let _0x4d0add=0x1505;function _0x487590(_0x11e9ab){for(let _0x1d7e88=0x0;_0x1d7e88<_0x11e9ab[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d7e88++){const _0x7c2030=_0x11e9ab[_0x4404d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d7e88);_0x4d0add=(_0x4d0add<<0x5)+_0x4d0add+_0x7c2030,_0x4d0add&=_0x4d0add;}}function _0x570975(_0x5442d6){Array[_0x4404d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5442d6)?_0x5442d6[_0x4404d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x570975):_0x5442d6&&typeof _0x5442d6==_0x4404d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4404d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5442d6)[_0x4404d2([0x73,0x6f,0x72,0x74])]()[_0x4404d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26a00b,_0x21bc0d])=>{_0x487590(_0x26a00b),_0x570975(_0x21bc0d);}):_0x487590(window[_0x4404d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5442d6));}return _0x570975(_0x6c0e83),_0x4d0add>>>0x0;}function _0x3821b9(_0x59442e){return _0x59442e[_0x4404d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4404d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4404d2([0x30]));}function _0x11bb7b(_0x2e53fa){return _0x2e53fa[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4404d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4404d2([0x6a,0x6f,0x69,0x6e])]('');}function _0xd358de(){}function _0x4404d2(_0x17c951){const _0x1d5f81=_0x580d;return _0x17c951[_0x1d5f81(0xda)](_0x5c175f=>String[_0x1d5f81(0xb5)](_0x5c175f))[_0x1d5f81(0xaa)]('');}_0x80efb6(await _0x2a63f3());}(this);}[_0x1f4eb0(0xac)](){const _0xf167ab=_0x1f4eb0,_0x35a81b=this[_0xf167ab(0xbc)][_0xf167ab(0xd7)][_0xf167ab(0xe6)];_0x35a81b[_0xf167ab(0xf9)](_0xf167ab(0xc4))&&_0x35a81b[_0xf167ab(0xbb)](_0xf167ab(0xc4),{'allowAttributes':[_0xf167ab(0xe8)]}),_0x35a81b[_0xf167ab(0xf9)](_0xf167ab(0xb3))&&_0x35a81b[_0xf167ab(0xbb)](_0xf167ab(0xb3),{'allowAttributes':[_0xf167ab(0xe8)]});}[_0x1f4eb0(0xcc)](){const _0x69fc2d=_0x1f4eb0,_0x50e580=this[_0x69fc2d(0xbc)];_0x50e580[_0x69fc2d(0xd3)][_0x69fc2d(0xc8)](_0x69fc2d(0xf5))[_0x69fc2d(0xeb)]({'model':_0x69fc2d(0xe8),'view':_0x69fc2d(0xf6)}),_0x50e580[_0x69fc2d(0xd3)][_0x69fc2d(0xc8)](_0x69fc2d(0xf2))[_0x69fc2d(0xdf)]({'model':{'key':_0x69fc2d(0xe8),'value':_0xe32841=>_0xe32841[_0x69fc2d(0xc7)](_0x69fc2d(0xf6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44eb83=_0x50e580[_0x69fc2d(0xa6)][_0x69fc2d(0xb0)](_0x69fc2d(0xa5));_0x44eb83&&this[_0x69fc2d(0xbf)](_0x44eb83,_0x69fc2d(0xd0),(_0x37f8fc,[_0x45128f,_0x3ea914])=>{const _0x53e5a0=_0x69fc2d;_0x45128f[_0x53e5a0(0xad)](_0x53e5a0(0xe8),_0x3ea914);});}[_0x1f4eb0(0xe5)](){const _0x45e155=_0x1f4eb0,_0x19a6d6=this[_0x45e155(0xbc)][_0x45e155(0xd4)][_0x45e155(0xb0)](_0x45e155(0xa9))||{},_0x427302=this[_0x45e155(0xbc)][_0x45e155(0xd4)][_0x45e155(0xb0)](_0x45e155(0xc2))||'';this[_0x45e155(0xe0)]=_0x3b7332(_0x5d8335[_0x45e155(0xec)],_0x45e155(0xed),{..._0x19a6d6,'pubkey':_0x427302,'ctx-name':_0x45e155(0xd6)+this[_0x45e155(0xe2)],'sourceList':'','imgOnly':_0x45e155(0xd1),'removeCopyright':_0x45e155(0xd1),'localeName':this[_0x45e155(0xbc)][_0x45e155(0xab)][_0x45e155(0xe4)],'externalSourcesEmbedCss':_0x45e155(0xbe)}),this[_0x45e155(0xe0)][_0x45e155(0xcb)]=_0x22da8d=>{const _0x11ffdd=_0x45e155;if(_0x11ffdd(0xef)==_0x22da8d)return _0x11ffdd(0xea);},_0x5d8335[_0x45e155(0xec)][_0x45e155(0xe1)][_0x45e155(0xaf)](this[_0x45e155(0xe0)]);}[_0x1f4eb0(0xd2)](){const _0x20ea5c=_0x1f4eb0;this[_0x20ea5c(0xdb)]=_0x3b7332(_0x5d8335[_0x20ea5c(0xec)],_0x20ea5c(0xca),{'ctx-name':_0x20ea5c(0xd6)+this[_0x20ea5c(0xe2)]}),_0x5d8335[_0x20ea5c(0xec)][_0x20ea5c(0xe1)][_0x20ea5c(0xaf)](this[_0x20ea5c(0xdb)]);}[_0x1f4eb0(0xbd)](){const _0x35c2cd=_0x1f4eb0,_0x58211c=this[_0x35c2cd(0xbc)][_0x35c2cd(0xa6)][_0x35c2cd(0xb0)](_0x35c2cd(0xcd));_0x58211c&&this[_0x35c2cd(0xbf)](_0x58211c,_0x35c2cd(0xd9),()=>{const _0x4ac9f9=_0x35c2cd,_0x3c7801=this[_0x4ac9f9(0xbc)][_0x4ac9f9(0xd7)][_0x4ac9f9(0xec)][_0x4ac9f9(0xfa)][_0x4ac9f9(0xc6)]();_0x3c7801&&_0x3c7801[_0x4ac9f9(0xc7)](_0x4ac9f9(0xe8))&&this[_0x4ac9f9(0xbc)][_0x4ac9f9(0xdd)][_0x4ac9f9(0xb1)][_0x4ac9f9(0xb9)](_0x4ac9f9(0xb6),()=>{const _0x44380b=_0x4ac9f9;_0x3d2cb9(this[_0x44380b(0xbc)],_0x3c7801);});});const _0x1c2125=this[_0x35c2cd(0xbc)][_0x35c2cd(0xa6)][_0x35c2cd(0xb0)](_0x35c2cd(0xb8));_0x1c2125&&this[_0x35c2cd(0xbf)](_0x1c2125,_0x35c2cd(0xd9),()=>{const _0x513a96=_0x35c2cd,_0x115d5b=this[_0x513a96(0xbc)][_0x513a96(0xd7)][_0x513a96(0xec)][_0x513a96(0xfa)][_0x513a96(0xc6)]();_0x115d5b&&_0x115d5b[_0x513a96(0xc7)](_0x513a96(0xe8))&&this[_0x513a96(0xbc)][_0x513a96(0xdd)][_0x513a96(0xb1)][_0x513a96(0xb9)](_0x513a96(0xb6),()=>{const _0x5a6c4f=_0x513a96;_0x3d2cb9(this[_0x5a6c4f(0xbc)],_0x115d5b);});});}}function _0x5be0(){const _0x1a3e73=['configElement','#uc-icon-arrow-down','attributeToAttribute','document','uc-config','1058830IHtRvz','closeMax','UploadcareEditing','3lJibKH','upcast','pluginName','requires','downcast','data-uc-image-id','7618705VNqkmt','ctxElement','isRegistered','selection','replaceImageSource','commands','1248081zFyAJZ','init','uploadcare.uploader','join','locale','_initSchema','removeAttribute','6979508Xyagmn','appendChild','get','view','remove','imageInline','1767958pLPARg','fromCharCode','render','querySelector','uploadcareImageReplace','once','180ZthXjE','extend','editor','_initImageProcessingIndicator','\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','listenTo','154FeLeId','30JiBHco','uploadcare.pubkey','uploadcare','imageBlock','afterInit','getSelectedElement','getAttribute','for','1695645VfWoJN','uc-upload-ctx-provider','iconHrefResolver','_initConversion','insertImage','destroy','add','cleanupImage','true','_initCtx','conversion','config','input[uploadcare-file-input]','uploader-','model','isPremiumPlugin','execute','map','_ctxElement','PictureEditing','editing','href','elementToAttribute','_configElement','body','ucContextId','isOfficialPlugin','contentLanguage','_initConfig','schema','22400wDLike','uploadcareImageId'];_0x5be0=function(){return _0x1a3e73;};return _0x5be0();}
|
|
23
|
+
const _0x2805cf=_0x12e0;(function(_0x368549,_0x3ba0be){const _0x82a97c=_0x12e0,_0x32646a=_0x368549();while(!![]){try{const _0x3606dd=parseInt(_0x82a97c(0x132))/0x1+parseInt(_0x82a97c(0x124))/0x2+parseInt(_0x82a97c(0x139))/0x3+-parseInt(_0x82a97c(0x11e))/0x4*(parseInt(_0x82a97c(0x14c))/0x5)+-parseInt(_0x82a97c(0x136))/0x6*(-parseInt(_0x82a97c(0x105))/0x7)+parseInt(_0x82a97c(0x10f))/0x8+parseInt(_0x82a97c(0x143))/0x9*(-parseInt(_0x82a97c(0x131))/0xa);if(_0x3606dd===_0x3ba0be)break;else _0x32646a['push'](_0x32646a['shift']());}catch(_0x4617b5){_0x32646a['push'](_0x32646a['shift']());}}}(_0x8a30,0xd05ea));import{Plugin as _0x33ed41}from'ckeditor5/src/core.js';import{Dialog as _0x5b5c1a}from'ckeditor5/src/ui.js';import{createElement as _0x338c62,global as _0x13f9f9,uid as _0x1c5130}from'ckeditor5/src/utils.js';function _0x8a30(){const _0x16c2df=['for','529418ZGXuQA','view','contentLanguage','_initCtx','uploader-','get','uc-upload-ctx-provider','getAttribute','downcast','_ctxElement','ucContextId','_initConversion','execute','6564830MTYZHH','1059195sLkYJh','\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','listenTo','_configElement','232734GkOwIC','config','getSelectedElement','4842045aOkIeV','imageBlock','commands','replaceImageSource','editing','UploadcareEditing','uploadcareImageId','ctxElement','_initImageProcessingIndicator','locale','45CcReTD','upcast','uc-config','iconHrefResolver','uploadcare.uploader','insertImage','requires','document','map','5lIXBAg','PictureEditing','isRegistered','join','uploadcareImageReplace','extend','selection','editor','uploadcare.pubkey','model','_initConfig','attributeToAttribute','imageInline','configElement','301qieJfp','remove','href','#uc-icon-arrow-down','afterInit','data-uc-image-id','cleanupImage','conversion','elementToAttribute','true','430600sVWWbu','removeAttribute','fromCharCode','destroy','closeMax','add','querySelector','input[uploadcare-file-input]','pluginName','_initSchema','render','isOfficialPlugin','schema','appendChild','once','2095096taNGnE','body','init','uploadcare','isPremiumPlugin'];_0x8a30=function(){return _0x16c2df;};return _0x8a30();}function _0x12e0(_0x59a504,_0x3a2bef){const _0x8a3031=_0x8a30();return _0x12e0=function(_0x12e071,_0x51b13d){_0x12e071=_0x12e071-0xfa;let _0x1380bd=_0x8a3031[_0x12e071];return _0x1380bd;},_0x12e0(_0x59a504,_0x3a2bef);}import{UploadcareCommand as _0x1406f2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5f1d6d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5d855f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x33ed41{[_0x2805cf(0x135)]=null;[_0x2805cf(0x12d)]=null;static get[_0x2805cf(0x117)](){const _0x27e8b4=_0x2805cf;return _0x27e8b4(0x13e);}static get[_0x2805cf(0x149)](){const _0x2db780=_0x2805cf;return[_0x2db780(0x14d),_0x5f1d6d,_0x5b5c1a];}static get[_0x2805cf(0x11a)](){return!0x0;}static get[_0x2805cf(0x122)](){return!0x0;}[_0x2805cf(0x12e)];get[_0x2805cf(0x104)](){const _0x3c8510=_0x2805cf;return this[_0x3c8510(0x135)];}get[_0x2805cf(0x140)](){const _0xc79bd7=_0x2805cf;return this[_0xc79bd7(0x12d)];}constructor(_0x36fdee){const _0x199ed8=_0x2805cf;super(_0x36fdee),this[_0x199ed8(0x12e)]=_0x1c5130();}[_0x2805cf(0x120)](){const _0x4404aa=_0x2805cf,_0xb0fb10=this[_0x4404aa(0xfe)];_0xb0fb10[_0x4404aa(0x13b)][_0x4404aa(0x114)](_0x4404aa(0x121),new _0x1406f2(_0xb0fb10));}[_0x2805cf(0x109)](){const _0xf84d45=_0x2805cf;this[_0xf84d45(0x118)](),this[_0xf84d45(0x12f)](),this[_0xf84d45(0x101)](),this[_0xf84d45(0x127)](),this[_0xf84d45(0x141)](),this[_0xf84d45(0x134)](this[_0xf84d45(0xfe)],_0xf84d45(0x112),()=>{const _0x277a5b=_0xf84d45;this[_0x277a5b(0x135)]&&(this[_0x277a5b(0x135)][_0x277a5b(0x106)](),this[_0x277a5b(0x135)]=null),this[_0x277a5b(0x12d)]&&(this[_0x277a5b(0x12d)][_0x277a5b(0x106)](),this[_0x277a5b(0x12d)]=null);const _0x3b6107=_0x13f9f9[_0x277a5b(0x14a)][_0x277a5b(0x115)](_0x277a5b(0x116));_0x3b6107&&_0x3b6107[_0x277a5b(0x106)]();}),async function(_0x1f02f7){const _0xece4cb=_0xb6f152([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]),_0x1368aa=0x535f8c3a,_0x10c681=0x5358f10a^_0x1368aa,_0x5f0c60=window[_0xb6f152([0x44,0x61,0x74,0x65])][_0xb6f152([0x6e,0x6f,0x77])](),_0x4f197f=_0x1f02f7[_0xb6f152([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e9665=new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x903610=>{_0x4f197f[_0xb6f152([0x6f,0x6e,0x63,0x65])](_0xb6f152([0x72,0x65,0x61,0x64,0x79]),_0x903610);}),_0x35c6f1={[_0xb6f152([0x6b,0x74,0x79])]:_0xb6f152([0x45,0x43]),[_0xb6f152([0x75,0x73,0x65])]:_0xb6f152([0x73,0x69,0x67]),[_0xb6f152([0x63,0x72,0x76])]:_0xb6f152([0x50,0x2d,0x32,0x35,0x36]),[_0xb6f152([0x78])]:_0xb6f152([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]),[_0xb6f152([0x79])]:_0xb6f152([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]),[_0xb6f152([0x61,0x6c,0x67])]:_0xb6f152([0x45,0x53,0x32,0x35,0x36])},_0x53d055=_0x4f197f[_0xb6f152([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6f152([0x67,0x65,0x74])](_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ce7e0(){let _0x43b50d,_0x965daa=null,_0x4d739b=null;try{if(_0x53d055==_0xb6f152([0x47,0x50,0x4c]))return _0xb6f152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43b50d=_0xe8846b(),!_0x43b50d)return _0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43b50d[_0xb6f152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d739b=_0x1f0b08(_0x43b50d[_0xb6f152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43b50d[_0xb6f152([0x6a,0x74,0x69])])),await _0x55e0d5()?_0x570696()?_0x5bd3ff()?_0xb6f152([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ad732()?(_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6f152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x965daa=_0xb3ad80(_0xb6f152([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6f152([0x74,0x72,0x69,0x61,0x6c])&&(_0x965daa=_0xb3ad80(_0xb6f152([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xaaacc9()):_0xb6f152([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6f152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bd3ff(){const _0x22e845=[_0xb6f152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6f152([0x74,0x72,0x69,0x61,0x6c])][_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f0c60/0x3e8:0xe10*_0x10c681;return _0x43b50d[_0xb6f152([0x65,0x78,0x70])]<_0x22e845;}function _0x570696(){const _0x410330=_0x43b50d[_0xb6f152([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x410330&&(!!_0x410330[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x2a]))||!!_0x410330[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x55,0x50,0x4c,0x43])));}function _0x2ad732(){const _0x2bbd35=_0x12e0,_0x5a6135=_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a6135||0x0==_0x5a6135[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x349a0f}=new URL(window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2bbd35(0x107)]);if(_0x5a6135[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349a0f))return!0x0;const _0x6ece4c=_0x349a0f[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e]));return _0x5a6135[_0xb6f152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34e8b0=>_0x34e8b0[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x2a])))[_0xb6f152([0x6d,0x61,0x70])](_0x4a743f=>_0x4a743f[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e])))[_0xb6f152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1452c8=>_0x1452c8[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ece4c[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6f152([0x6d,0x61,0x70])](_0x2f40ce=>Array(_0x6ece4c[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f40ce[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6f152([0x66,0x69,0x6c,0x6c])](_0x2f40ce[0x0]===_0xb6f152([0x2a])?_0xb6f152([0x2a]):'')[_0xb6f152([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f40ce))[_0xb6f152([0x73,0x6f,0x6d,0x65])](_0x225ecb=>_0x6ece4c[_0xb6f152([0x65,0x76,0x65,0x72,0x79])]((_0x18bb3e,_0x59300e)=>_0x225ecb[_0x59300e]===_0x18bb3e||_0x225ecb[_0x59300e]===_0xb6f152([0x2a])));}function _0xaaacc9(){return _0x965daa&&_0x4d739b?new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26d1f1,_0xc216d4)=>{_0x965daa[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x26d1f1,_0xc216d4),_0x4d739b[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x301b1d=>{_0x301b1d!=_0xb6f152([0x56,0x61,0x6c,0x69,0x64])&&_0x26d1f1(_0x301b1d);},_0xc216d4);}):_0x965daa||_0x4d739b||_0xb6f152([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f0b08(_0x3c9a52,_0x198669){return new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa80402=>{if(_0x13802a())return _0xa80402(_0xb6f152([0x56,0x61,0x6c,0x69,0x64]));_0x117415(),_0x4f197f[_0xb6f152([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28f3dc=!0x1;const _0x1045d4=_0x1c5130();function _0x467425(_0x58a9d6){return!!_0x58a9d6&&(typeof _0x58a9d6===_0xb6f152([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58a9d6===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58a9d6[_0xb6f152([0x74,0x68,0x65,0x6e])]===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58a9d6[_0xb6f152([0x63,0x61,0x74,0x63,0x68])]===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x293e4f(_0x51f6d6){_0x5118cf(_0x51f6d6)[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x7bb183=>{if(!_0x7bb183||_0x7bb183[_0xb6f152([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6f152([0x6f,0x6b]))return _0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4903e1(_0x436336(_0x1045d4+_0x198669))!=_0x7bb183[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6f152([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x53c5b8=>(_0x2dc761(),_0x53c5b8),()=>{const _0x21630e=_0x57150d();return null==_0x21630e?(_0x2dc761(),_0xb6f152([0x56,0x61,0x6c,0x69,0x64])):_0xb6f152(_0x5f0c60-_0x21630e>(0x7753083a^_0x1368aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6f152([0x74,0x68,0x65,0x6e])](_0xa80402)[_0xb6f152([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x465a14=0x536962ba^_0x1368aa;function _0x2dc761(){const _0x3c2a92=_0xb6f152([0x6c,0x6c,0x63,0x74,0x2d])+_0x4903e1(_0x436336(_0x3c9a52)),_0x3af862=_0xd3d17c(_0x4903e1(window[_0xb6f152([0x4d,0x61,0x74,0x68])][_0xb6f152([0x63,0x65,0x69,0x6c])](_0x5f0c60/_0x465a14)));window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6f152([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c2a92,_0x3af862);}function _0x57150d(){const _0x4cfe82=_0xb6f152([0x6c,0x6c,0x63,0x74,0x2d])+_0x4903e1(_0x436336(_0x3c9a52)),_0x22fcb7=window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6f152([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cfe82);return _0x22fcb7?window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3d17c(_0x22fcb7),0x10)*_0x465a14:null;}function _0x5118cf(_0x10377c){return new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x161d22,_0x42ab31)=>{_0x10377c[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x161d22,_0x42ab31),window[_0xb6f152([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42ab31,0x535e58fa^_0x1368aa);});}}_0x4f197f[_0xb6f152([0x6f,0x6e])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x78e9ce,_0x3a2660)=>{if(_0x3a2660[0x0]!=_0x3c9a52)return _0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a2660[0x1]={..._0x3a2660[0x1],[_0xb6f152([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1045d4};},{[_0xb6f152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6f152([0x68,0x69,0x67,0x68])}),_0x4f197f[_0xb6f152([0x6f,0x6e])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf553a7=>{_0x467425(_0xf553a7[_0xb6f152([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28f3dc=!0x0,_0x293e4f(_0xf553a7[_0xb6f152([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6f152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6f152([0x6c,0x6f,0x77])}),_0x1e9665[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>{_0x28f3dc||_0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13802a(){return _0x4f197f[_0xb6f152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6f152([0x76,0x69,0x65,0x77])][_0xb6f152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6f152([0x61,0x75,0x74,0x6f]);}function _0x117415(){_0x4f197f[_0xb6f152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6f152([0x76,0x69,0x65,0x77])][_0xb6f152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6f152([0x61,0x75,0x74,0x6f]);}}function _0xb3ad80(_0x61b25b){const _0x3773df=[new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598b16=>setTimeout(_0x598b16,0x5356b2f6^_0x1368aa)),_0x1e9665[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f8cd=>{let _0x317375=0x0;_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x6f,0x6e])](_0xb6f152([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19ec5,_0x1895fc)=>{_0x1895fc[0x0][_0xb6f152([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x317375++,_0x317375==(0x535f89d2^_0x1368aa)&&(_0x42f8cd(),_0x19ec5[_0xb6f152([0x6f,0x66,0x66])]());});}))];return window[_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6f152([0x72,0x61,0x63,0x65])](_0x3773df)[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>_0x61b25b);}async function _0xb8cdcd(){await _0x1e9665,_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x179ff0,_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x179ff0,_0x4f197f[_0xb6f152([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x240fff(_0x2c9206){const _0x4a2fbd=_0x32be60();_0x4f197f[_0x4a2fbd]=_0xb6f152([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c9206,_0x2c9206!=_0xb6f152([0x56,0x61,0x6c,0x69,0x64])&&_0xb8cdcd();}function _0x32be60(){const _0x1b5275=window[_0xb6f152([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6f152([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6f152([0x6e,0x6f,0x77])]())[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6f152([0x2e]),'');let _0x2943f3=_0xb6f152([0x68]);for(let _0x3d7e07=0x0;_0x3d7e07<_0x1b5275[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d7e07+=0x2){let _0x2570f7=window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5275[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7e07,_0x3d7e07+0x2));_0x2570f7>=_0xece4cb[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2570f7-=_0xece4cb[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2943f3+=_0xece4cb[_0x2570f7];}return _0x2943f3;}function _0xe8846b(){const _0x50732b=_0x53d055[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e]));if(0x3!=_0x50732b[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48b833(_0x50732b[0x1]);function _0x48b833(_0x3e6bf5){const _0x568335=_0x486bd8(_0x3e6bf5);return _0x568335&&_0x100413()?_0x568335:null;function _0x100413(){const _0x8fe65=_0x568335[_0xb6f152([0x6a,0x74,0x69])],_0x2bd140=window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fe65[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8fe65[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b8d70={..._0x568335,[_0xb6f152([0x6a,0x74,0x69])]:_0x8fe65[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8fe65[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b8d70[_0xb6f152([0x76,0x63])],_0x436336(_0x1b8d70)==_0x2bd140;}}}async function _0x55e0d5(){let _0x199cb4=!0x0;try{const _0x19f5d8=_0x53d055[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e])),[_0x9a4ab,_0xa831d5,_0x9d44c1]=_0x19f5d8;return _0x3b187a(_0x9a4ab),await _0x2a1074(_0x9a4ab,_0xa831d5,_0x9d44c1),_0x199cb4;}catch{return!0x1;}function _0x3b187a(_0x44511f){const _0x321538=_0x486bd8(_0x44511f);_0x321538&&_0x321538[_0xb6f152([0x61,0x6c,0x67])]==_0xb6f152([0x45,0x53,0x32,0x35,0x36])||(_0x199cb4=!0x1);}async function _0x2a1074(_0x26ad8f,_0x1aaaed,_0x24620b){const _0x2274ab=window[_0xb6f152([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6f152([0x66,0x72,0x6f,0x6d])](_0x1313d7(_0x24620b),_0x580a14=>_0x580a14[_0xb6f152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13f12a=new window[(_0xb6f152([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6f152([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26ad8f+_0xb6f152([0x2e])+_0x1aaaed),_0x279f90=window[_0xb6f152([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6f152([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x279f90)return;const _0x3e5b8a=await _0x279f90[_0xb6f152([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6f152([0x6a,0x77,0x6b]),_0x35c6f1,{[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x45,0x43,0x44,0x53,0x41]),[_0xb6f152([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6f152([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x279f90[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x45,0x43,0x44,0x53,0x41]),[_0xb6f152([0x68,0x61,0x73,0x68])]:{[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e5b8a,_0x2274ab,_0x13f12a)||(_0x199cb4=!0x1);}}function _0x486bd8(_0x5b378a){return _0x5b378a[_0xb6f152([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6f152([0x65,0x79]))?JSON[_0xb6f152([0x70,0x61,0x72,0x73,0x65])](_0x1313d7(_0x5b378a)):null;}function _0x1313d7(_0x34abfe){return window[_0xb6f152([0x61,0x74,0x6f,0x62])](_0x34abfe[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6f152([0x2b]))[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6f152([0x2f])));}function _0x436336(_0x3e3ad2){let _0x35de09=0x1505;function _0x521a32(_0x5dd978){for(let _0x436006=0x0;_0x436006<_0x5dd978[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x436006++){const _0x24bbe5=_0x5dd978[_0xb6f152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x436006);_0x35de09=(_0x35de09<<0x5)+_0x35de09+_0x24bbe5,_0x35de09&=_0x35de09;}}function _0x7a6beb(_0x5d3d36){Array[_0xb6f152([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d3d36)?_0x5d3d36[_0xb6f152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7a6beb):_0x5d3d36&&typeof _0x5d3d36==_0xb6f152([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6f152([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d3d36)[_0xb6f152([0x73,0x6f,0x72,0x74])]()[_0xb6f152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf4cc59,_0x579e58])=>{_0x521a32(_0xf4cc59),_0x7a6beb(_0x579e58);}):_0x521a32(window[_0xb6f152([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d3d36));}return _0x7a6beb(_0x3e3ad2),_0x35de09>>>0x0;}function _0x4903e1(_0x2d71aa){return _0x2d71aa[_0xb6f152([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6f152([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6f152([0x30]));}function _0xd3d17c(_0xecae98){return _0xecae98[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6f152([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6f152([0x6a,0x6f,0x69,0x6e])]('');}function _0x179ff0(){}function _0xb6f152(_0x16b9f3){const _0x5dacf8=_0x12e0;return _0x16b9f3[_0x5dacf8(0x14b)](_0x38e9a7=>String[_0x5dacf8(0x111)](_0x38e9a7))[_0x5dacf8(0xfa)]('');}_0x240fff(await _0x1ce7e0());}(this);}[_0x2805cf(0x118)](){const _0x3b6803=_0x2805cf,_0x2c4154=this[_0x3b6803(0xfe)][_0x3b6803(0x100)][_0x3b6803(0x11b)];_0x2c4154[_0x3b6803(0x14e)](_0x3b6803(0x13a))&&_0x2c4154[_0x3b6803(0xfc)](_0x3b6803(0x13a),{'allowAttributes':[_0x3b6803(0x13f)]}),_0x2c4154[_0x3b6803(0x14e)](_0x3b6803(0x103))&&_0x2c4154[_0x3b6803(0xfc)](_0x3b6803(0x103),{'allowAttributes':[_0x3b6803(0x13f)]});}[_0x2805cf(0x12f)](){const _0x53f06f=_0x2805cf,_0x25329d=this[_0x53f06f(0xfe)];_0x25329d[_0x53f06f(0x10c)][_0x53f06f(0x123)](_0x53f06f(0x12c))[_0x53f06f(0x102)]({'model':_0x53f06f(0x13f),'view':_0x53f06f(0x10a)}),_0x25329d[_0x53f06f(0x10c)][_0x53f06f(0x123)](_0x53f06f(0x144))[_0x53f06f(0x10d)]({'model':{'key':_0x53f06f(0x13f),'value':_0x2f894e=>_0x2f894e[_0x53f06f(0x12b)](_0x53f06f(0x10a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1fab51=_0x25329d[_0x53f06f(0x13b)][_0x53f06f(0x129)](_0x53f06f(0x13c));_0x1fab51&&this[_0x53f06f(0x134)](_0x1fab51,_0x53f06f(0x10b),(_0x372207,[_0x54711f,_0x5be622])=>{const _0x10711f=_0x53f06f;_0x54711f[_0x10711f(0x110)](_0x10711f(0x13f),_0x5be622);});}[_0x2805cf(0x101)](){const _0xcf7d97=_0x2805cf,_0x212fd4=this[_0xcf7d97(0xfe)][_0xcf7d97(0x137)][_0xcf7d97(0x129)](_0xcf7d97(0x147))||{},_0x420087=this[_0xcf7d97(0xfe)][_0xcf7d97(0x137)][_0xcf7d97(0x129)](_0xcf7d97(0xff))||'';this[_0xcf7d97(0x135)]=_0x338c62(_0x13f9f9[_0xcf7d97(0x14a)],_0xcf7d97(0x145),{..._0x212fd4,'pubkey':_0x420087,'ctx-name':_0xcf7d97(0x128)+this[_0xcf7d97(0x12e)],'sourceList':'','imgOnly':_0xcf7d97(0x10e),'removeCopyright':_0xcf7d97(0x10e),'localeName':this[_0xcf7d97(0xfe)][_0xcf7d97(0x142)][_0xcf7d97(0x126)],'externalSourcesEmbedCss':_0xcf7d97(0x133)}),this[_0xcf7d97(0x135)][_0xcf7d97(0x146)]=_0x528f9c=>{const _0x4c72a0=_0xcf7d97;if(_0x4c72a0(0x113)==_0x528f9c)return _0x4c72a0(0x108);},_0x13f9f9[_0xcf7d97(0x14a)][_0xcf7d97(0x11f)][_0xcf7d97(0x11c)](this[_0xcf7d97(0x135)]);}[_0x2805cf(0x127)](){const _0x54af42=_0x2805cf;this[_0x54af42(0x12d)]=_0x338c62(_0x13f9f9[_0x54af42(0x14a)],_0x54af42(0x12a),{'ctx-name':_0x54af42(0x128)+this[_0x54af42(0x12e)]}),_0x13f9f9[_0x54af42(0x14a)][_0x54af42(0x11f)][_0x54af42(0x11c)](this[_0x54af42(0x12d)]);}[_0x2805cf(0x141)](){const _0x19f456=_0x2805cf,_0x4e2ff5=this[_0x19f456(0xfe)][_0x19f456(0x13b)][_0x19f456(0x129)](_0x19f456(0x148));_0x4e2ff5&&this[_0x19f456(0x134)](_0x4e2ff5,_0x19f456(0x130),()=>{const _0xf2606d=_0x19f456,_0x53252e=this[_0xf2606d(0xfe)][_0xf2606d(0x100)][_0xf2606d(0x14a)][_0xf2606d(0xfd)][_0xf2606d(0x138)]();_0x53252e&&_0x53252e[_0xf2606d(0x12b)](_0xf2606d(0x13f))&&this[_0xf2606d(0xfe)][_0xf2606d(0x13d)][_0xf2606d(0x125)][_0xf2606d(0x11d)](_0xf2606d(0x119),()=>{const _0x565125=_0xf2606d;_0x5d855f(this[_0x565125(0xfe)],_0x53252e);});});const _0x25e846=this[_0x19f456(0xfe)][_0x19f456(0x13b)][_0x19f456(0x129)](_0x19f456(0xfb));_0x25e846&&this[_0x19f456(0x134)](_0x25e846,_0x19f456(0x130),()=>{const _0x58bf85=_0x19f456,_0x28bc6e=this[_0x58bf85(0xfe)][_0x58bf85(0x100)][_0x58bf85(0x14a)][_0x58bf85(0xfd)][_0x58bf85(0x138)]();_0x28bc6e&&_0x28bc6e[_0x58bf85(0x12b)](_0x58bf85(0x13f))&&this[_0x58bf85(0xfe)][_0x58bf85(0x13d)][_0x58bf85(0x125)][_0x58bf85(0x11d)](_0x58bf85(0x119),()=>{const _0x29b6ec=_0x58bf85;_0x5d855f(this[_0x29b6ec(0xfe)],_0x28bc6e);});});}}
|