@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251221.0 → 0.0.0-nightly-next-20251222.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 _0x179bd4,Command as _0x39353c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x308422,IconGooglePhotos as _0x1d4a54,IconGoogleDrive as _0x2a72af,IconFacebook as _0xd5cff6,IconDropbox as _0x4e7d4b,IconUploadcareLink as _0x56a4b7,IconUploadcareImageUpload as _0x112a2f,IconError as _0x17fed6,IconUploadcareImageEdit as _0x10e15c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xa141df,MenuBarMenuListItemButtonView as _0x111bc9,View as _0x586a59,FocusCycler as _0x9b0640,Dialog as _0x4ee9dc,DialogViewPosition as _0x2141c9,SpinnerView as _0x401f5e,IconView as _0x461957,Notification as _0x586ef3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45e8b9,DomEmitterMixin as _0x159910,global as _0x4e3eff,getAncestors as _0x50b1e8,ObservableMixin as _0xc46a9f,uid as _0x129896,createElement as _0x1fdbaf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x442319}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xb5e49e,info as _0x3eeac7}from'@uploadcare/upload-client';import*as _0xa2dede from'@uploadcare/file-uploader';var i=function(_0x2f2cb9){return _0x2f2cb9['Local']='local',_0x2f2cb9['URL']='url',_0x2f2cb9['Dropbox']='dropbox',_0x2f2cb9['GDrive']='gdrive',_0x2f2cb9['Facebook']='facebook',_0x2f2cb9['GPhotos']='gphotos',_0x2f2cb9['OneDrive']='onedrive',_0x2f2cb9;}({});function _(_0x4ff800,_0x16775b,_0xae33de){const t=_0x4ff800['t'],_0x2ddcd7=_0x4ff800['t'];switch(_0x16775b){case i['Local']:return{'text':_0x2ddcd7('Insert'===_0xae33de?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ddcd7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xae33de?_0x2ddcd7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ddcd7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xae33de?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xae33de?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xae33de?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xae33de?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xae33de?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x16775b;}}class e extends _0x179bd4{['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 _0x22e778=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x488df4;for(const _0x1212b3 in _0x22e778){const _0x58083a=_0x1212b3,_0x3b363a=_0x22e778[_0x58083a];if('uploadcareLicenseKeyValid'==_0x3b363a||'uploadcareLicenseKeyInvalid'==_0x3b363a||'uploadcareLicenseKeyExpired'==_0x3b363a||'uploadcareLicenseKeyDomainLimit'==_0x3b363a||'uploadcareLicenseKeyNotAllowed'==_0x3b363a||'uploadcareLicenseKeyEvaluationLimit'==_0x3b363a||'uploadcareLicenseKeyTrialLimit'==_0x3b363a||'uploadcareLicenseKeyUsageLimit'==_0x3b363a){delete _0x22e778[_0x58083a],_0x488df4=_0x3b363a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x488df4&&_0x22e778['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x488df4&&_0x22e778['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x488df4&&_0x22e778['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x488df4&&_0x22e778['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x488df4&&_0x22e778['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x488df4&&_0x22e778['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x488df4&&_0x22e778['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xc3a325}=this,_0x2c5ac9=_0xc3a325['commands']['get']('uploadcare');if(!_0x2c5ac9)return;const _0x177547=this['_normalizeConfigSourceList'](_0xc3a325['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xcabc06,_0x40d164)=>{const _0x32847f=this['_getIntegrationKey'](_0x40d164['type']);return _0xcabc06[_0x32847f]||(_0xcabc06[_0x32847f]=[]),_0xcabc06[_0x32847f]['push'](_0x40d164),_0xcabc06;},{});_0xc3a325['plugins']['has']('ImageInsertUI')&&_0xc3a325['commands']['get']('uploadcare')&&Object['entries'](_0x177547)['forEach'](([_0x393039,_0x4269ec])=>{_0xc3a325['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x393039,'observable':()=>_0x2c5ac9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4269ec),'formViewCreator':()=>this['_createDropdownButtons'](_0x4269ec),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4269ec),'override':'assetManager'!==_0x393039});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x358e0d){const {locale:_0x4e9f6a}=this['editor'];return _0x358e0d['map'](_0x3dab25=>{const _0x575e22=_(_0x4e9f6a,_0x3dab25,'Insert');switch(_0x3dab25){case i['Local']:return{'icon':_0x112a2f,'type':i['Local'],..._0x575e22};case i['URL']:return{'icon':_0x56a4b7,'type':i['URL'],..._0x575e22};case i['Dropbox']:return{'icon':_0x4e7d4b,'type':i['Dropbox'],..._0x575e22};case i['Facebook']:return{'icon':_0xd5cff6,'type':i['Facebook'],..._0x575e22};case i['GDrive']:return{'icon':_0x2a72af,'type':i['GDrive'],..._0x575e22};case i['GPhotos']:return{'icon':_0x1d4a54,'type':i['GPhotos'],..._0x575e22};case i['OneDrive']:return{'icon':_0x308422,'type':i['OneDrive'],..._0x575e22};}});}['_getIntegrationKey'](_0x40fc60){switch(_0x40fc60){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45f841,_0x40e88d){const _0x12cf2c=this['editor'],_0xea4492=new _0x45f841(_0x12cf2c['locale']),_0xa64906=_0x12cf2c['commands']['get']('uploadcare');return _0xea4492['bind']('isEnabled')['to'](_0xa64906),_0xea4492['on']('execute',()=>{_0xa64906['execute'](_0x40e88d);}),_0xea4492;}['_createToolbarButton'](_0x53e2e3){const {locale:_0xcf7d7c}=this['editor'],_0x21667f=this['editor']['plugins']['get']('ImageInsertUI'),_0x3adc97=_0x53e2e3[0x0],_0x21a35a=this['_createButton'](_0xa141df,_0x3adc97['type']);return _0x21a35a['icon']=_0x3adc97['icon'],_0x21a35a['bind']('label')['to'](_0x21667f,'isImageSelected',_0x30846b=>_(_0xcf7d7c,_0x3adc97['type'],_0x30846b?'Replace':'Insert')['text']),_0x21a35a['tooltip']=!0x0,_0x21a35a;}['_createDropdownButtons'](_0xbfc068){const {locale:_0x28751a}=this['editor'],_0x1b5f53=this['editor']['plugins']['get']('ImageInsertUI');return _0xbfc068['map'](_0x571748=>{const _0x26dbc1=this['_createButton'](_0xa141df,_0x571748['type']);return _0x26dbc1['withText']=!0x0,_0x26dbc1['icon']=_0x571748['icon'],_0x26dbc1['bind']('label')['to'](_0x1b5f53,'isImageSelected',_0x29b32a=>_(_0x28751a,_0x571748['type'],_0x29b32a?'Replace':'Insert')['text']),_0x26dbc1;});}['_createMenuBarButtons'](_0x6cce71){return _0x6cce71['map'](_0xd4cfc2=>{const _0x4e94af=this['_createButton'](_0x111bc9,_0xd4cfc2['type']);return _0x4e94af['icon']=_0xd4cfc2['icon'],_0x4e94af['label']=_0xd4cfc2['shortText'],_0x4e94af;});}}class F extends _0x586a59{['focusTracker'];['focusCycler'];constructor(_0x81e29e){super(_0x81e29e),this['focusTracker']=new _0x45e8b9(),this['focusCycler']=new _0x9b0640({'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(_0x2b207f,_0x4863c9){super(_0x2b207f),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-'+_0x4863c9}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3b89ae,_0x58be15){const _0x2a70b8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x218ad0=>_0x218ad0<=_0x58be15)['map'](_0x122da1=>_0x3b89ae['replace'](/\/$/,'')+'/-/resize/'+_0x122da1+'x/\x20'+_0x122da1+'w');return{'imageFallbackUrl':_0x3b89ae,'imageSources':[{'srcset':_0x2a70b8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x58be15+'px)\x20100vw,\x20'+_0x58be15+'px','type':'image/webp'}]};}function S(_0x168e0a,_0x269a2a,_0x1707d1){const _0x136a3d=_0x168e0a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x136a3d?parseInt(_0x136a3d[0x1],0xa):_0x269a2a,'height':_0x136a3d?parseInt(_0x136a3d[0x2],0xa):_0x1707d1};}function p(_0x462be9,_0xd7c9cb){const _0x34bb2f=new(_0x159910())(),_0x584b9f=_0x462be9['plugins']['get']('ImageUtils'),_0xb30983=_0x462be9['editing']['mapper']['toViewElement'](_0xd7c9cb),_0x4f8582=_0x584b9f['findViewImgElement'](_0xb30983),_0x331ce0=_0x462be9['editing']['view']['domConverter']['viewToDom'](_0x4f8582),_0x10c34d=_0xd7c9cb['getAttribute']('width'),_0x3d05c4=_0xd7c9cb['getAttribute']('height'),_0x1e5746='image-processing';_0x462be9['editing']['view']['change'](_0x144070=>{_0x144070['addClass'](_0x1e5746,_0xb30983),_0x144070['setStyle']('aspect-ratio',_0x10c34d+'/'+_0x3d05c4,_0x4f8582);}),_0x34bb2f['listenTo'](_0x331ce0,'load',()=>{_0x34bb2f['stopListening'](_0x331ce0,'load'),_0x462be9['editing']['view']['change'](_0x3eb37f=>{_0x3eb37f['removeClass'](_0x1e5746,_0xb30983),_0x3eb37f['removeStyle']('aspect-ratio',_0x4f8582);});});}function G(_0x42307d){if(Array['isArray'](_0x42307d)){const _0x1a9cca=_0x42307d['map'](G);return _0x295c85=>_0x1a9cca['some'](_0x1b59ab=>_0x1b59ab(_0x295c85));}if('origin'==_0x42307d){const _0x598ef6=_0x4e3eff['window']['location']['origin'];return _0x12ae18=>new URL(_0x12ae18,_0x4e3eff['document']['baseURI'])['origin']==_0x598ef6;}return'function'==typeof _0x42307d?_0x42307d:_0x42307d instanceof RegExp?_0x24964f=>!(!_0x24964f['match'](_0x42307d)&&!_0x24964f['replace'](/^https?:\/\//,'')['match'](_0x42307d)):()=>!0x1;}function A(_0x5d23cb,_0x469e20){return _0x50b1e8(_0x5d23cb['target'])['includes'](_0x469e20);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xc46a9f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x590fcc,_0x358b19,_0x42358d){super(),this['_editor']=_0x590fcc,this['_editing']=_0x358b19,this['_dialog']=_0x590fcc['plugins']['get'](_0x4ee9dc),this['_api']=_0x358b19['ctxElement']['getAPI'](),this['_type']=_0x42358d,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:_0x130753,model:_0x495dac}=this['_editor'],_0x445e14=_0x495dac['document']['selection']['getSelectedElement'](),_0x5909a8=_0x445e14&&(_0x445e14['is']('element','imageBlock')||_0x445e14['is']('element','imageInline'));this['_formView']=new x(_0x130753,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x112a2f,'title':_(_0x130753,this['_type'],_0x5909a8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2141c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ed3e9=>!A(_0x1ed3e9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x145d7e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x352021=>{const _0x38d1b2=_0x145d7e['length'];for(const _0x450211 of _0x145d7e){const _0x31a414=_0x450211===_0x145d7e[_0x38d1b2-0x1],{cdnUrl:_0x4287b8,fileInfo:_0x125200}=_0x450211;if(!_0x4287b8||!_0x125200)continue;const {width:_0x224647,height:_0x35eb48}=_0x125200['imageInfo'],_0x4cdb1b=S(_0x4287b8,_0x224647,_0x35eb48),_0x182c91=C(_0x4287b8,_0x4cdb1b['width']),_0x4b4d4f={'id':_0x125200['uuid'],'type':'image','attributes':{'imageDimension':_0x4cdb1b,..._0x182c91}};this['_insertAsset'](_0x4b4d4f,_0x31a414,_0x352021);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6c94b3=>{'idle'===_0x6c94b3['detail']['status']&&!_0x6c94b3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x57a245,_0x154d24,_0x3aaa15){const _0x5e8fc5=this['_editor']['model']['document']['selection'],_0x17c2d6=_0x5e8fc5['getSelectedElement'](),_0x5550fe=!(!_0x17c2d6||!_0x17c2d6['is']('element','imageInline'));_0x3aaa15['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x57a245,_0x5550fe),_0x154d24||_0x3aaa15['setSelection'](_0x5e8fc5['getLastPosition']());}['_insertImage'](_0x6cfebd,_0x3685a8){const _0x55ceb1=this['_editor'],{imageDimension:_0x14dc86,imageFallbackUrl:_0x1c52ae,imageSources:_0x52f65e}=_0x6cfebd['attributes'];_0x55ceb1['execute']('insertImage',{'imageType':_0x3685a8?'imageInline':null,'source':{'uploadcareImageId':_0x6cfebd['id'],'src':_0x1c52ae,'sources':_0x52f65e,..._0x14dc86}});}}class w extends _0x39353c{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ee9dc,o];}constructor(_0x26357f){super(_0x26357f),this['_editing']=_0x26357f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x36bb21){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x36bb21);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xf422e6,..._0x4a526e}){return _0xb5e49e(_0xf422e6,_0x4a526e);}static['getInfo'](_0x4a140b,_0x1a6242){return _0x3eeac7(_0x4a140b,_0x1a6242);}}class f extends _0x179bd4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x442319,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x383f83=this['editor'];if(!!!_0x383f83['config']['get']('uploadcare'))return;_0x383f83['plugins']['get'](_0x442319)['createUploadAdapter']=_0x583bcc=>new k(_0x583bcc,_0x383f83),_0x383f83['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29ec58,{imageElement:_0x2c76f,data:_0x2f090e})=>{_0x383f83['model']['change'](_0x2180ff=>{_0x2180ff['setAttribute']('uploadcareImageId',_0x2f090e['uploadcareImageId'],_0x2c76f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2e5969,_0x5dd3a2){this['loader']=_0x2e5969,this['editor']=_0x5dd3a2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x43f5e3=await this['loader']['file'];return j['upload']({'file':_0x43f5e3,'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':_0x53eef4=>{_0x53eef4&&_0x53eef4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53eef4['value']);}})['then'](async _0x44d527=>{const {imageFallbackUrl:_0x4557ea,imageSources:_0xba096c}=C(_0x44d527['cdnUrl'],_0x44d527['imageInfo']['width']);return{'uploadcareImageId':_0x44d527['uuid'],'default':_0x4557ea,'sources':_0xba096c};})['catch'](()=>{const _0xe930d6=t('Cannot\x20upload\x20file:')+('\x20'+_0x43f5e3['name']+'.');return Promise['reject'](_0xe930d6);});}['abort'](){this['controller']['abort']();}}class o extends _0x179bd4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4ee9dc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3e9238){super(_0x3e9238),this['ucContextId']=_0x129896();}['init'](){const _0x4e04b7=this['editor'];_0x4e04b7['commands']['add']('uploadcare',new w(_0x4e04b7));}['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 _0x11cf54=_0x4e3eff['document']['querySelector']('input[uploadcare-file-input]');_0x11cf54&&_0x11cf54['remove']();}),async function(_0xd3aaa0){const _0x141030=_0x5df16([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]),_0x52f253=0x535f8c3a,_0x31f5bc=0x5358f0b2^_0x52f253,_0x4cd762=window[_0x5df16([0x44,0x61,0x74,0x65])][_0x5df16([0x6e,0x6f,0x77])](),_0x18b188=_0xd3aaa0[_0x5df16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x120448=new window[(_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15ea39=>{_0x18b188[_0x5df16([0x6f,0x6e,0x63,0x65])](_0x5df16([0x72,0x65,0x61,0x64,0x79]),_0x15ea39);}),_0x1fc926={[_0x5df16([0x6b,0x74,0x79])]:_0x5df16([0x45,0x43]),[_0x5df16([0x75,0x73,0x65])]:_0x5df16([0x73,0x69,0x67]),[_0x5df16([0x63,0x72,0x76])]:_0x5df16([0x50,0x2d,0x32,0x35,0x36]),[_0x5df16([0x78])]:_0x5df16([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]),[_0x5df16([0x79])]:_0x5df16([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]),[_0x5df16([0x61,0x6c,0x67])]:_0x5df16([0x45,0x53,0x32,0x35,0x36])},_0x1d7311=_0x18b188[_0x5df16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5df16([0x67,0x65,0x74])](_0x5df16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2eb25e(){let _0x27cda2,_0x47f89d=null,_0x9671ec=null;try{if(_0x1d7311==_0x5df16([0x47,0x50,0x4c]))return _0x5df16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27cda2=_0x24f3a6(),!_0x27cda2)return _0x5df16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27cda2[_0x5df16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9671ec=_0x2f2c46(_0x27cda2[_0x5df16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27cda2[_0x5df16([0x6a,0x74,0x69])])),await _0x567b3f()?_0x337e56()?_0x5023fa()?_0x5df16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x182d5d()?(_0x27cda2[_0x5df16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5df16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47f89d=_0x13836e(_0x5df16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27cda2[_0x5df16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5df16([0x74,0x72,0x69,0x61,0x6c])&&(_0x47f89d=_0x13836e(_0x5df16([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d8bde()):_0x5df16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5df16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5df16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5df16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5023fa(){const _0x1059b7=[_0x5df16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5df16([0x74,0x72,0x69,0x61,0x6c])][_0x5df16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27cda2[_0x5df16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cd762/0x3e8:0xe10*_0x31f5bc;return _0x27cda2[_0x5df16([0x65,0x78,0x70])]<_0x1059b7;}function _0x337e56(){const _0x28c135=_0x27cda2[_0x5df16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28c135&&(!!_0x28c135[_0x5df16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5df16([0x2a]))||!!_0x28c135[_0x5df16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5df16([0x55,0x50,0x4c,0x43])));}function _0x182d5d(){const _0x30fd62=_0x27cda2[_0x5df16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30fd62||0x0==_0x30fd62[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x535f8c}=new URL(window[_0x5df16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30fd62[_0x5df16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535f8c))return!0x0;const _0x56ffb2=_0x535f8c[_0x5df16([0x73,0x70,0x6c,0x69,0x74])](_0x5df16([0x2e]));return _0x30fd62[_0x5df16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5026c3=>_0x5026c3[_0x5df16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5df16([0x2a])))[_0x5df16([0x6d,0x61,0x70])](_0x3ce326=>_0x3ce326[_0x5df16([0x73,0x70,0x6c,0x69,0x74])](_0x5df16([0x2e])))[_0x5df16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11960c=>_0x11960c[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56ffb2[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5df16([0x6d,0x61,0x70])](_0x2ffac4=>Array(_0x56ffb2[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ffac4[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5df16([0x66,0x69,0x6c,0x6c])](_0x2ffac4[0x0]===_0x5df16([0x2a])?_0x5df16([0x2a]):'')[_0x5df16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ffac4))[_0x5df16([0x73,0x6f,0x6d,0x65])](_0x2e28c3=>_0x56ffb2[_0x5df16([0x65,0x76,0x65,0x72,0x79])]((_0x5898e1,_0x2b943d)=>_0x2e28c3[_0x2b943d]===_0x5898e1||_0x2e28c3[_0x2b943d]===_0x5df16([0x2a])));}function _0x1d8bde(){return _0x47f89d&&_0x9671ec?new window[(_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d3c73,_0x24e6ee)=>{_0x47f89d[_0x5df16([0x74,0x68,0x65,0x6e])](_0x3d3c73,_0x24e6ee),_0x9671ec[_0x5df16([0x74,0x68,0x65,0x6e])](_0x52e1b0=>{_0x52e1b0!=_0x5df16([0x56,0x61,0x6c,0x69,0x64])&&_0x3d3c73(_0x52e1b0);},_0x24e6ee);}):_0x47f89d||_0x9671ec||_0x5df16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f2c46(_0x49bbe3,_0x4b4ea4){return new window[(_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xefd03=>{if(_0x4a6460())return _0xefd03(_0x5df16([0x56,0x61,0x6c,0x69,0x64]));_0x2eddbb(),_0x18b188[_0x5df16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5df16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x425490=!0x1;const _0x3804dd=_0x129896();function _0x2c8484(_0x27563d){return!!_0x27563d&&(typeof _0x27563d===_0x5df16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x27563d===_0x5df16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x27563d[_0x5df16([0x74,0x68,0x65,0x6e])]===_0x5df16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x27563d[_0x5df16([0x63,0x61,0x74,0x63,0x68])]===_0x5df16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32eca5(_0x200e90){_0x3653c8(_0x200e90)[_0x5df16([0x74,0x68,0x65,0x6e])](_0x3d844b=>{if(!_0x3d844b||_0x3d844b[_0x5df16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5df16([0x6f,0x6b]))return _0x5df16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x151226(_0x5bacfa(_0x3804dd+_0x4b4ea4))!=_0x3d844b[_0x5df16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5df16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5df16([0x56,0x61,0x6c,0x69,0x64]);})[_0x5df16([0x74,0x68,0x65,0x6e])](_0x167676=>(_0x261233(),_0x167676),()=>{const _0x370297=_0x15b9c4();return null==_0x370297?(_0x261233(),_0x5df16([0x56,0x61,0x6c,0x69,0x64])):_0x5df16(_0x4cd762-_0x370297>(0x7753083a^_0x52f253)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5df16([0x74,0x68,0x65,0x6e])](_0xefd03)[_0x5df16([0x63,0x61,0x74,0x63,0x68])](()=>{_0xefd03(_0x5df16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1be540=0x536962ba^_0x52f253;function _0x261233(){const _0x556ee1=_0x5df16([0x6c,0x6c,0x63,0x74,0x2d])+_0x151226(_0x5bacfa(_0x49bbe3)),_0x465938=_0x5947a3(_0x151226(window[_0x5df16([0x4d,0x61,0x74,0x68])][_0x5df16([0x63,0x65,0x69,0x6c])](_0x4cd762/_0x1be540)));window[_0x5df16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5df16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x556ee1,_0x465938);}function _0x15b9c4(){const _0x3a92a9=_0x5df16([0x6c,0x6c,0x63,0x74,0x2d])+_0x151226(_0x5bacfa(_0x49bbe3)),_0x1faf51=window[_0x5df16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5df16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a92a9);return _0x1faf51?window[_0x5df16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5947a3(_0x1faf51),0x10)*_0x1be540:null;}function _0x3653c8(_0x2e622d){return new window[(_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d2126,_0x811ed9)=>{_0x2e622d[_0x5df16([0x74,0x68,0x65,0x6e])](_0x1d2126,_0x811ed9),window[_0x5df16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x811ed9,0x535e58fa^_0x52f253);});}}_0x18b188[_0x5df16([0x6f,0x6e])](_0x5df16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a927f,_0x47b31b)=>{if(_0x47b31b[0x0]!=_0x49bbe3)return _0xefd03(_0x5df16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47b31b[0x1]={..._0x47b31b[0x1],[_0x5df16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3804dd};},{[_0x5df16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5df16([0x68,0x69,0x67,0x68])}),_0x18b188[_0x5df16([0x6f,0x6e])](_0x5df16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b3d98=>{_0x2c8484(_0x5b3d98[_0x5df16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x425490=!0x0,_0x32eca5(_0x5b3d98[_0x5df16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5df16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5df16([0x6c,0x6f,0x77])}),_0x120448[_0x5df16([0x74,0x68,0x65,0x6e])](()=>{_0x425490||_0xefd03(_0x5df16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a6460(){return _0x18b188[_0x5df16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5df16([0x76,0x69,0x65,0x77])][_0x5df16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5df16([0x61,0x75,0x74,0x6f]);}function _0x2eddbb(){_0x18b188[_0x5df16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5df16([0x76,0x69,0x65,0x77])][_0x5df16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5df16([0x61,0x75,0x74,0x6f]);}}function _0x13836e(_0x659d97){const _0x19b9e7=[new window[(_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x276c1a=>setTimeout(_0x276c1a,0x5356b2f6^_0x52f253)),_0x120448[_0x5df16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21ee08=>{let _0x2f40de=0x0;_0x18b188[_0x5df16([0x6d,0x6f,0x64,0x65,0x6c])][_0x5df16([0x6f,0x6e])](_0x5df16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22f048,_0x74eab6)=>{_0x74eab6[0x0][_0x5df16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f40de++,_0x2f40de==(0x535f89d2^_0x52f253)&&(_0x21ee08(),_0x22f048[_0x5df16([0x6f,0x66,0x66])]());});}))];return window[_0x5df16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5df16([0x72,0x61,0x63,0x65])](_0x19b9e7)[_0x5df16([0x74,0x68,0x65,0x6e])](()=>_0x659d97);}async function _0x4a98dc(){await _0x120448,_0x18b188[_0x5df16([0x6d,0x6f,0x64,0x65,0x6c])][_0x5df16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x92ef7f,_0x18b188[_0x5df16([0x6d,0x6f,0x64,0x65,0x6c])][_0x5df16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x92ef7f,_0x18b188[_0x5df16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5df16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xeac546(_0x1ea76f){const _0x21f214=_0x3850cb();_0x18b188[_0x21f214]=_0x5df16([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ea76f,_0x1ea76f!=_0x5df16([0x56,0x61,0x6c,0x69,0x64])&&_0x4a98dc();}function _0x3850cb(){const _0xe393aa=window[_0x5df16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5df16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5df16([0x6e,0x6f,0x77])]())[_0x5df16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5df16([0x2e]),'');let _0x1d8db0=_0x5df16([0x68]);for(let _0x3a2a0c=0x0;_0x3a2a0c<_0xe393aa[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a2a0c+=0x2){let _0x4f16c=window[_0x5df16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe393aa[_0x5df16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a2a0c,_0x3a2a0c+0x2));_0x4f16c>=_0x141030[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f16c-=_0x141030[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d8db0+=_0x141030[_0x4f16c];}return _0x1d8db0;}function _0x24f3a6(){const _0x38fd3e=_0x1d7311[_0x5df16([0x73,0x70,0x6c,0x69,0x74])](_0x5df16([0x2e]));if(0x3!=_0x38fd3e[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fbe33(_0x38fd3e[0x1]);function _0x4fbe33(_0x9df890){const _0x4b30e6=_0x1f5b67(_0x9df890);return _0x4b30e6&&_0x44e244()?_0x4b30e6:null;function _0x44e244(){const _0xc9bfb6=_0x4b30e6[_0x5df16([0x6a,0x74,0x69])],_0x1bb48f=window[_0x5df16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc9bfb6[_0x5df16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc9bfb6[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e857f={..._0x4b30e6,[_0x5df16([0x6a,0x74,0x69])]:_0xc9bfb6[_0x5df16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc9bfb6[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e857f[_0x5df16([0x76,0x63])],_0x5bacfa(_0x3e857f)==_0x1bb48f;}}}async function _0x567b3f(){let _0x2b6fbd=!0x0;try{const _0x2c3b7f=_0x1d7311[_0x5df16([0x73,0x70,0x6c,0x69,0x74])](_0x5df16([0x2e])),[_0x20b031,_0x1567bb,_0x5e2281]=_0x2c3b7f;return _0x1b667c(_0x20b031),await _0x55fd92(_0x20b031,_0x1567bb,_0x5e2281),_0x2b6fbd;}catch{return!0x1;}function _0x1b667c(_0x533c87){const _0x46ad72=_0x1f5b67(_0x533c87);_0x46ad72&&_0x46ad72[_0x5df16([0x61,0x6c,0x67])]==_0x5df16([0x45,0x53,0x32,0x35,0x36])||(_0x2b6fbd=!0x1);}async function _0x55fd92(_0x1d9a88,_0xa87b3e,_0x126f03){const _0x32efee=window[_0x5df16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5df16([0x66,0x72,0x6f,0x6d])](_0x4e51fb(_0x126f03),_0x3ece81=>_0x3ece81[_0x5df16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cc56c=new window[(_0x5df16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5df16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d9a88+_0x5df16([0x2e])+_0xa87b3e),_0x50bb20=window[_0x5df16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5df16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50bb20)return;const _0x450b84=await _0x50bb20[_0x5df16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5df16([0x6a,0x77,0x6b]),_0x1fc926,{[_0x5df16([0x6e,0x61,0x6d,0x65])]:_0x5df16([0x45,0x43,0x44,0x53,0x41]),[_0x5df16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5df16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5df16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50bb20[_0x5df16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5df16([0x6e,0x61,0x6d,0x65])]:_0x5df16([0x45,0x43,0x44,0x53,0x41]),[_0x5df16([0x68,0x61,0x73,0x68])]:{[_0x5df16([0x6e,0x61,0x6d,0x65])]:_0x5df16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x450b84,_0x32efee,_0x3cc56c)||(_0x2b6fbd=!0x1);}}function _0x1f5b67(_0x5ab249){return _0x5ab249[_0x5df16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5df16([0x65,0x79]))?JSON[_0x5df16([0x70,0x61,0x72,0x73,0x65])](_0x4e51fb(_0x5ab249)):null;}function _0x4e51fb(_0x5ba6fd){return window[_0x5df16([0x61,0x74,0x6f,0x62])](_0x5ba6fd[_0x5df16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5df16([0x2b]))[_0x5df16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5df16([0x2f])));}function _0x5bacfa(_0x101338){let _0x1db1b8=0x1505;function _0x2d3c49(_0xd3247c){for(let _0x1e0723=0x0;_0x1e0723<_0xd3247c[_0x5df16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e0723++){const _0x98f3e3=_0xd3247c[_0x5df16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e0723);_0x1db1b8=(_0x1db1b8<<0x5)+_0x1db1b8+_0x98f3e3,_0x1db1b8&=_0x1db1b8;}}function _0x2c2b0d(_0x4a5e41){Array[_0x5df16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a5e41)?_0x4a5e41[_0x5df16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c2b0d):_0x4a5e41&&typeof _0x4a5e41==_0x5df16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5df16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a5e41)[_0x5df16([0x73,0x6f,0x72,0x74])]()[_0x5df16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2193cd,_0x6efd26])=>{_0x2d3c49(_0x2193cd),_0x2c2b0d(_0x6efd26);}):_0x2d3c49(window[_0x5df16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a5e41));}return _0x2c2b0d(_0x101338),_0x1db1b8>>>0x0;}function _0x151226(_0x4c5701){return _0x4c5701[_0x5df16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5df16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5df16([0x30]));}function _0x5947a3(_0xa2d853){return _0xa2d853[_0x5df16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5df16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5df16([0x6a,0x6f,0x69,0x6e])]('');}function _0x92ef7f(){}function _0x5df16(_0x4b97b){return _0x4b97b['map'](_0x1844d0=>String['fromCharCode'](_0x1844d0))['join']('');}_0xeac546(await _0x2eb25e());}(this);}['_initSchema'](){const _0x8c0367=this['editor']['model']['schema'];_0x8c0367['isRegistered']('imageBlock')&&_0x8c0367['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x8c0367['isRegistered']('imageInline')&&_0x8c0367['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x38ce99=this['editor'];_0x38ce99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x38ce99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x444cce=>_0x444cce['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1efaac=_0x38ce99['commands']['get']('replaceImageSource');_0x1efaac&&this['listenTo'](_0x1efaac,'cleanupImage',(_0x12aa5c,[_0x155162,_0x1b06c5])=>{_0x155162['removeAttribute']('uploadcareImageId',_0x1b06c5);});}['_initConfig'](){const _0x1faea7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x321801=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1fdbaf(_0x4e3eff['document'],'uc-config',{..._0x1faea7,'pubkey':_0x321801,'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']=_0x5e0bf1=>{if('closeMax'==_0x5e0bf1)return'#uc-icon-arrow-down';},_0x4e3eff['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1fdbaf(_0x4e3eff['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4e3eff['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x211cb4=this['editor']['commands']['get']('insertImage');_0x211cb4&&this['listenTo'](_0x211cb4,'execute',()=>{const _0x2a3ab8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a3ab8&&_0x2a3ab8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a3ab8);});});const _0x17ac24=this['editor']['commands']['get']('uploadcareImageReplace');_0x17ac24&&this['listenTo'](_0x17ac24,'execute',()=>{const _0x3f4195=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f4195&&_0x3f4195['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3f4195);});});}}class tt extends _0x179bd4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b81c0){super(_0x4b81c0),_0x4b81c0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xa2dede['defineComponents'](_0xa2dede),this['_defineLocale']();}['_defineLocale'](){const _0xe4c22c=this['editor']['config']['get']('uploadcare.locale'),_0x388bca=this['editor']['locale']['contentLanguage'];_0xe4c22c&&_0xa2dede['defineLocale'](_0x388bca,_0xe4c22c);}}class ii extends _0x586a59{constructor(_0x1bb68d){super(_0x1bb68d);const t=_0x1bb68d['t'],_0x495008=this['bindTemplate'],_0x1cac6f=new _0x401f5e();_0x1cac6f['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':[_0x1cac6f,{'text':_0x495008['to']('imageUploadProgress',_0x226023=>t('Loading\x20image...')+'\x20('+(_0x226023||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 _0x586a59{constructor(_0xae924f){super(_0xae924f);const t=_0xae924f['t'];this['set']('errorType',null);const _0x4deb40=new _0xa141df(_0xae924f);_0x4deb40['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4deb40['withText']=!0x0,_0x4deb40['class']='ck-button-action',_0x4deb40['on']('execute',()=>{this['fire']('retry');}),_0x4deb40['bind']('isVisible')['to'](this,'errorType',_0xa9e3e5=>'NotFound'!==_0xa9e3e5);const _0xc204e7=new _0x461957();_0xc204e7['content']=_0x17fed6,_0xc204e7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c16eb=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':[_0xc204e7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c16eb['to']('errorType',_0x2ff5ac=>t('NotFound'!==_0x2ff5ac?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4deb40]},{'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 _0x586a59{constructor(_0x2b3869,_0x495ea2){super(_0x2b3869);const _0x9d2333=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x495ea2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x9d2333['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1a7da4,_0x9553ee,_0x322417){super(_0x1a7da4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1a7da4),this['_errorView']=new ti(_0x1a7da4),this['_editingView']=new ei(_0x1a7da4,_0x322417),this['_focusableView']=new _0x586a59(_0x1a7da4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x9553ee),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'],_0x159b2b=>{this['_addUploadcareImageEditorListeners'](_0x159b2b);});}),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'](_0x1fbb6e,_0x322c1d){const _0x293c41='uc-cloud-image-editor',_0x42cca9=_0x1fbb6e['querySelector'](_0x293c41);if(_0x42cca9)return _0x322c1d(_0x42cca9);const _0x52f35f=new MutationObserver(_0x35741d=>{const _0x289632=_0x35741d['filter'](_0x87902=>_0x87902['target']===_0x1fbb6e&&_0x87902['addedNodes']['length']>0x0&&_0x87902['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x293c41);_0x289632['length']&&(_0x52f35f['disconnect'](),_0x322c1d(_0x289632[0x0]['addedNodes'][0x0]));});_0x52f35f['observe'](_0x1fbb6e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf36581){_0xf36581['addEventListener']('apply',_0x2d3b1b=>{this['fire']('apply',{'imageSrc':_0x2d3b1b['detail']['cdnUrl']});}),_0xf36581['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xc46a9f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x313825,_0x2bc3f9,_0x5872e3){super(),this['_editor']=_0x313825,this['_dialog']=_0x2bc3f9,this['_imageElement']=_0x5872e3,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 _0x555411=this['_imageElement'],_0x1ed20a=_0x555411['getAttribute']('uploadcareImageId'),_0x33a47d=_0x555411['getAttribute']('src');if(_0x1ed20a)await this['_loadImageInfo'](_0x1ed20a,_0x33a47d);else{if(this['_imageCache']['has'](_0x33a47d)){const _0xa3c366=this['_imageCache']['get'](_0x33a47d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa3c366['url'],this['imageDimension']=_0xa3c366['dimension'],this['imageId']=_0xa3c366['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x468fa8}=this['_editor'],t=_0x468fa8['t'],_0x1015d9=new X(_0x468fa8,this['imageStatus'],this['_attributes']);_0x1015d9['bind']('status')['to'](this,'imageStatus'),_0x1015d9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1015d9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1015d9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1015d9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10e15c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1015d9,'position':_0x2141c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1015d9['focus']();},'onHide':()=>{_0x1015d9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d3f89=>!A(_0x2d3f89,_0x1015d9['element'])}});}['_loadImageInfo'](_0x2c80e3,_0x33e31b){return j['getInfo'](_0x2c80e3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3317b9=>{const {width:_0x1821a4,height:_0x3e17b5}=_0x3317b9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33e31b,this['imageDimension']={'width':_0x1821a4,'height':_0x3e17b5},this['imageId']=_0x2c80e3;})['catch'](_0x5dfe7f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dfe7f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4d4f4e,_0x4a7f11){return this['_getImageAsFile'](_0x4d4f4e)['then'](_0x427160=>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':_0x4a7f11['signal'],'file':_0x427160,'onProgress':_0x3850a8=>{_0x3850a8&&_0x3850a8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3850a8['value']));}}))['then'](_0x4d1e66=>{const {width:_0x3a5343,height:_0x16a1ff}=_0x4d1e66['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d1e66['cdnUrl'],this['imageDimension']={'width':_0x3a5343,'height':_0x16a1ff},this['imageId']=_0x4d1e66['uuid'],this['imageUploadProgress']=null;const _0x3ee0f3=_0x4d4f4e['getAttribute']('src');this['_imageCache']['set'](_0x3ee0f3,{'id':_0x4d1e66['uuid'],'url':_0x4d1e66['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x431b8d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x431b8d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2ac3c1,_0x57fde1){_0x2ac3c1['on']('apply',(_0x24d9f3,_0x4010be)=>{this['_replaceImage'](_0x57fde1,_0x4010be['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2ac3c1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2ac3c1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x412555,_0x404f39,_0x1ab391){const _0xc835e3=this['_editor'],{width:_0x2d5493,height:_0x12d762}=S(_0x404f39,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x269a1a,imageSources:_0x214d58}=C(_0x404f39,_0x2d5493);_0xc835e3['model']['change'](_0xc7021=>{if('$graveyard'===_0x412555['root']['rootName']){_0xc835e3['execute']('insertImage',{'imageType':_0x412555['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x412555['getAttributes']()),'uploadcareImageId':_0x1ab391,'src':_0x269a1a,'sources':_0x214d58,'width':_0x2d5493,'height':_0x12d762}});const _0x109772=_0x412555['getChildren']();_0x412555=_0xc835e3['model']['document']['selection']['getSelectedElement']();for(const _0x1a2977 of _0x109772)_0xc7021['append'](_0xc7021['cloneElement'](_0x1a2977),_0x412555);}else _0xc7021['setSelection'](_0x412555,'on'),_0xc835e3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x412555['getAttributes']()),'uploadcareImageId':_0x1ab391,'src':_0x269a1a,'sources':_0x214d58,'width':_0x2d5493,'height':_0x12d762},_0x412555);_0xc7021['setSelection'](_0x412555,'on');});}async['_getImageAsFile'](_0x81dc2a){const _0xf9b976=_0x4e3eff['window'],_0x22d7c5=_0x4e3eff['document']['location']['href'],_0x469799=new _0xf9b976['URL'](_0x81dc2a['getAttribute']('src'),_0x22d7c5);if('data:'===_0x469799['protocol']){const _0x5da099=_0x469799['href']['split'](','),_0x38c28a=_0x5da099[0x0]['match'](/:(.*?);/)[0x1],_0x4b97cc=_0x38c28a['split']('/')[0x1],_0x5572c0=_0xf9b976['atob'](_0x5da099[_0x5da099['length']-0x1]);let _0x151902=_0x5572c0['length'];const _0x4f1840=new _0xf9b976['Uint8Array'](_0x151902);for(;_0x151902--;)_0x4f1840[_0x151902]=_0x5572c0['charCodeAt'](_0x151902);return new _0xf9b976['File']([_0x4f1840],'image.'+_0x4b97cc,{'type':_0x38c28a});}const _0x338de1=_0x469799['href']['split']('/'),_0x164f2e=_0x338de1[_0x338de1['length']-0x1],_0x1510c0=_0x164f2e['split']('.')[0x1];return _0xf9b976['fetch'](_0x469799['href'])['then'](_0x23cf0b=>_0x23cf0b['clone']()['blob']())['then'](_0x56fff2=>new _0xf9b976['File']([_0x56fff2],_0x164f2e,{'type':'image/'+_0x1510c0}));}}class O extends _0x39353c{['imageEditController'];static get['requires'](){return[_0x4ee9dc];}['_isEditable'];constructor(_0x2f98a6){super(_0x2f98a6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3de8fe){const _0x1754df=G(_0x3de8fe);return _0x3d5f03=>!(!_0x3d5f03||!_0x3d5f03['is']('element','imageBlock')&&!_0x3d5f03['is']('element','imageInline'))&&(!!_0x3d5f03['hasAttribute']('uploadcareImageId')||!!_0x3d5f03['hasAttribute']('src')&&_0x1754df(_0x3d5f03['getAttribute']('src')));}(_0x2f98a6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e4a4b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e4a4b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x17b29b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17b29b&&(_0x17b29b['is']('element','imageBlock')||_0x17b29b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4ee9dc),_0x17b29b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x39353c{['refresh'](){const _0x54534d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x54534d&&(_0x54534d['is']('element','imageBlock')||_0x54534d['is']('element','imageInline')));}['execute'](_0x59092e){const _0x552d20=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x46d9f3=>{_0x46d9f3['setAttributes'](_0x59092e,_0x552d20),_0x46d9f3['removeAttribute']('srcset',_0x552d20),_0x46d9f3['removeAttribute']('sizes',_0x552d20);});}}class m extends _0x179bd4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x586ef3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x142c65}=this;_0x142c65['commands']['add']('uploadcareImageEdit',new O(_0x142c65)),_0x142c65['commands']['add']('uploadcareImageReplace',new R(_0x142c65));}}class g extends _0x179bd4{['_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 _0x472cb5=this['editor'];_0x472cb5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f7696=>{const _0x3604e4=_0x472cb5['commands']['get']('uploadcareImageEdit'),_0x1b14e4=new _0xa141df(_0x1f7696),t=_0x1f7696['t'];return _0x1b14e4['set']({'icon':_0x10e15c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1b14e4['bind']('isEnabled')['to'](_0x3604e4),_0x1b14e4['bind']('isOn')['to'](_0x3604e4,'isActive'),this['listenTo'](_0x1b14e4,'execute',()=>{_0x472cb5['execute']('uploadcareImageEdit'),_0x472cb5['editing']['view']['focus']();}),_0x1b14e4;}),this['_initConfig']();}['_initConfig'](){const _0xd3ab90=_0x1fdbaf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xd3ab90),this['listenTo'](this['editor'],'destroy',()=>{_0xd3ab90['remove']();});}}class et extends _0x179bd4{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 _0x364ca2,Command as _0xb237c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x19fe79,IconGooglePhotos as _0x2954b3,IconGoogleDrive as _0x3745f4,IconFacebook as _0x457c97,IconDropbox as _0x741428,IconUploadcareLink as _0x3b0e83,IconUploadcareImageUpload as _0x32f41b,IconError as _0x3bd909,IconUploadcareImageEdit as _0x348dcd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5dee32,MenuBarMenuListItemButtonView as _0x3ce907,View as _0xa01812,FocusCycler as _0xfb06ca,Dialog as _0x34599f,DialogViewPosition as _0x5094ed,SpinnerView as _0x51ef56,IconView as _0x19d957,Notification as _0x149b1a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x407248,DomEmitterMixin as _0x17b886,global as _0x4d5004,getAncestors as _0x3df752,ObservableMixin as _0x2d7af9,uid as _0x341f45,createElement as _0x4ec3cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x303450}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4e2608,info as _0x11bf49}from'@uploadcare/upload-client';import*as _0x5b517e from'@uploadcare/file-uploader';var i=function(_0x31072f){return _0x31072f['Local']='local',_0x31072f['URL']='url',_0x31072f['Dropbox']='dropbox',_0x31072f['GDrive']='gdrive',_0x31072f['Facebook']='facebook',_0x31072f['GPhotos']='gphotos',_0x31072f['OneDrive']='onedrive',_0x31072f;}({});function _(_0x32fa09,_0x5ee091,_0x38be52){const t=_0x32fa09['t'],_0x4cf329=_0x32fa09['t'];switch(_0x5ee091){case i['Local']:return{'text':_0x4cf329('Insert'===_0x38be52?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4cf329('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x38be52?_0x4cf329('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4cf329('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x38be52?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x38be52?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x38be52?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x38be52?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x38be52?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5ee091;}}class e extends _0x364ca2{['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 _0x44e437=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fa2cd;for(const _0x554e86 in _0x44e437){const _0x27f8c3=_0x554e86,_0xa92288=_0x44e437[_0x27f8c3];if('uploadcareLicenseKeyValid'==_0xa92288||'uploadcareLicenseKeyInvalid'==_0xa92288||'uploadcareLicenseKeyExpired'==_0xa92288||'uploadcareLicenseKeyDomainLimit'==_0xa92288||'uploadcareLicenseKeyNotAllowed'==_0xa92288||'uploadcareLicenseKeyEvaluationLimit'==_0xa92288||'uploadcareLicenseKeyTrialLimit'==_0xa92288||'uploadcareLicenseKeyUsageLimit'==_0xa92288){delete _0x44e437[_0x27f8c3],_0x2fa2cd=_0xa92288,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2fa2cd&&_0x44e437['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2fa2cd&&_0x44e437['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2fa2cd&&_0x44e437['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2fa2cd&&_0x44e437['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2fa2cd&&_0x44e437['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2fa2cd&&_0x44e437['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2fa2cd&&_0x44e437['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5cc306}=this,_0x4f9f4d=_0x5cc306['commands']['get']('uploadcare');if(!_0x4f9f4d)return;const _0x1feb55=this['_normalizeConfigSourceList'](_0x5cc306['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x159177,_0x4dc708)=>{const _0x5f472a=this['_getIntegrationKey'](_0x4dc708['type']);return _0x159177[_0x5f472a]||(_0x159177[_0x5f472a]=[]),_0x159177[_0x5f472a]['push'](_0x4dc708),_0x159177;},{});_0x5cc306['plugins']['has']('ImageInsertUI')&&_0x5cc306['commands']['get']('uploadcare')&&Object['entries'](_0x1feb55)['forEach'](([_0x4edf0b,_0x4989f5])=>{_0x5cc306['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4edf0b,'observable':()=>_0x4f9f4d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4989f5),'formViewCreator':()=>this['_createDropdownButtons'](_0x4989f5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4989f5),'override':'assetManager'!==_0x4edf0b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2cc3c4){const {locale:_0x541b3b}=this['editor'];return _0x2cc3c4['map'](_0x4cad4a=>{const _0x17fc7d=_(_0x541b3b,_0x4cad4a,'Insert');switch(_0x4cad4a){case i['Local']:return{'icon':_0x32f41b,'type':i['Local'],..._0x17fc7d};case i['URL']:return{'icon':_0x3b0e83,'type':i['URL'],..._0x17fc7d};case i['Dropbox']:return{'icon':_0x741428,'type':i['Dropbox'],..._0x17fc7d};case i['Facebook']:return{'icon':_0x457c97,'type':i['Facebook'],..._0x17fc7d};case i['GDrive']:return{'icon':_0x3745f4,'type':i['GDrive'],..._0x17fc7d};case i['GPhotos']:return{'icon':_0x2954b3,'type':i['GPhotos'],..._0x17fc7d};case i['OneDrive']:return{'icon':_0x19fe79,'type':i['OneDrive'],..._0x17fc7d};}});}['_getIntegrationKey'](_0x47519d){switch(_0x47519d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x845110,_0xc20d30){const _0x3f2e24=this['editor'],_0x78ca2=new _0x845110(_0x3f2e24['locale']),_0x2c0f02=_0x3f2e24['commands']['get']('uploadcare');return _0x78ca2['bind']('isEnabled')['to'](_0x2c0f02),_0x78ca2['on']('execute',()=>{_0x2c0f02['execute'](_0xc20d30);}),_0x78ca2;}['_createToolbarButton'](_0x3524e1){const {locale:_0x34ddff}=this['editor'],_0x2a5ec1=this['editor']['plugins']['get']('ImageInsertUI'),_0x53669b=_0x3524e1[0x0],_0x2bcc0a=this['_createButton'](_0x5dee32,_0x53669b['type']);return _0x2bcc0a['icon']=_0x53669b['icon'],_0x2bcc0a['bind']('label')['to'](_0x2a5ec1,'isImageSelected',_0xed7d25=>_(_0x34ddff,_0x53669b['type'],_0xed7d25?'Replace':'Insert')['text']),_0x2bcc0a['tooltip']=!0x0,_0x2bcc0a;}['_createDropdownButtons'](_0x4c1b9f){const {locale:_0x40807a}=this['editor'],_0x183917=this['editor']['plugins']['get']('ImageInsertUI');return _0x4c1b9f['map'](_0x4e9b07=>{const _0x58b801=this['_createButton'](_0x5dee32,_0x4e9b07['type']);return _0x58b801['withText']=!0x0,_0x58b801['icon']=_0x4e9b07['icon'],_0x58b801['bind']('label')['to'](_0x183917,'isImageSelected',_0x84ac37=>_(_0x40807a,_0x4e9b07['type'],_0x84ac37?'Replace':'Insert')['text']),_0x58b801;});}['_createMenuBarButtons'](_0x5c872){return _0x5c872['map'](_0x10b062=>{const _0x13e77d=this['_createButton'](_0x3ce907,_0x10b062['type']);return _0x13e77d['icon']=_0x10b062['icon'],_0x13e77d['label']=_0x10b062['shortText'],_0x13e77d;});}}class F extends _0xa01812{['focusTracker'];['focusCycler'];constructor(_0x198b7b){super(_0x198b7b),this['focusTracker']=new _0x407248(),this['focusCycler']=new _0xfb06ca({'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(_0x1bd3b7,_0x3d8f8e){super(_0x1bd3b7),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-'+_0x3d8f8e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1a3a1f,_0x2aaf84){const _0x369c48=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4db922=>_0x4db922<=_0x2aaf84)['map'](_0xcd07f4=>_0x1a3a1f['replace'](/\/$/,'')+'/-/resize/'+_0xcd07f4+'x/\x20'+_0xcd07f4+'w');return{'imageFallbackUrl':_0x1a3a1f,'imageSources':[{'srcset':_0x369c48['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2aaf84+'px)\x20100vw,\x20'+_0x2aaf84+'px','type':'image/webp'}]};}function S(_0x3e611b,_0x322289,_0x47229f){const _0xc38e27=_0x3e611b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xc38e27?parseInt(_0xc38e27[0x1],0xa):_0x322289,'height':_0xc38e27?parseInt(_0xc38e27[0x2],0xa):_0x47229f};}function p(_0x3e6497,_0x175eab){const _0xf554e9=new(_0x17b886())(),_0x2468f8=_0x3e6497['plugins']['get']('ImageUtils'),_0x1a7f97=_0x3e6497['editing']['mapper']['toViewElement'](_0x175eab),_0x2a91ab=_0x2468f8['findViewImgElement'](_0x1a7f97),_0x2ff8ac=_0x3e6497['editing']['view']['domConverter']['viewToDom'](_0x2a91ab),_0x10a194=_0x175eab['getAttribute']('width'),_0x3a0ef0=_0x175eab['getAttribute']('height'),_0x4f3024='image-processing';_0x3e6497['editing']['view']['change'](_0x1e6d0a=>{_0x1e6d0a['addClass'](_0x4f3024,_0x1a7f97),_0x1e6d0a['setStyle']('aspect-ratio',_0x10a194+'/'+_0x3a0ef0,_0x2a91ab);}),_0xf554e9['listenTo'](_0x2ff8ac,'load',()=>{_0xf554e9['stopListening'](_0x2ff8ac,'load'),_0x3e6497['editing']['view']['change'](_0x536718=>{_0x536718['removeClass'](_0x4f3024,_0x1a7f97),_0x536718['removeStyle']('aspect-ratio',_0x2a91ab);});});}function G(_0x570e9a){if(Array['isArray'](_0x570e9a)){const _0x2140af=_0x570e9a['map'](G);return _0x27143e=>_0x2140af['some'](_0x3fe987=>_0x3fe987(_0x27143e));}if('origin'==_0x570e9a){const _0x28acf5=_0x4d5004['window']['location']['origin'];return _0x585217=>new URL(_0x585217,_0x4d5004['document']['baseURI'])['origin']==_0x28acf5;}return'function'==typeof _0x570e9a?_0x570e9a:_0x570e9a instanceof RegExp?_0x581b6f=>!(!_0x581b6f['match'](_0x570e9a)&&!_0x581b6f['replace'](/^https?:\/\//,'')['match'](_0x570e9a)):()=>!0x1;}function A(_0x8e7d89,_0xf06755){return _0x3df752(_0x8e7d89['target'])['includes'](_0xf06755);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d7af9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x451bb0,_0x5cbcc8,_0x15ca3e){super(),this['_editor']=_0x451bb0,this['_editing']=_0x5cbcc8,this['_dialog']=_0x451bb0['plugins']['get'](_0x34599f),this['_api']=_0x5cbcc8['ctxElement']['getAPI'](),this['_type']=_0x15ca3e,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:_0x486d4c,model:_0x4c5d4f}=this['_editor'],_0x4f0bd1=_0x4c5d4f['document']['selection']['getSelectedElement'](),_0xb0d814=_0x4f0bd1&&(_0x4f0bd1['is']('element','imageBlock')||_0x4f0bd1['is']('element','imageInline'));this['_formView']=new x(_0x486d4c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32f41b,'title':_(_0x486d4c,this['_type'],_0xb0d814?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5094ed['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1180b8=>!A(_0x1180b8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xc58f03}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4b13e0=>{const _0x5e8e59=_0xc58f03['length'];for(const _0x4d418c of _0xc58f03){const _0x4da3c8=_0x4d418c===_0xc58f03[_0x5e8e59-0x1],{cdnUrl:_0x315d5e,fileInfo:_0x217a79}=_0x4d418c;if(!_0x315d5e||!_0x217a79)continue;const {width:_0x27c8f2,height:_0x3a0ee3}=_0x217a79['imageInfo'],_0x46c350=S(_0x315d5e,_0x27c8f2,_0x3a0ee3),_0x419233=C(_0x315d5e,_0x46c350['width']),_0x42738f={'id':_0x217a79['uuid'],'type':'image','attributes':{'imageDimension':_0x46c350,..._0x419233}};this['_insertAsset'](_0x42738f,_0x4da3c8,_0x4b13e0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x548912=>{'idle'===_0x548912['detail']['status']&&!_0x548912['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1d0eeb,_0xfd7a09,_0x39e82c){const _0x51462d=this['_editor']['model']['document']['selection'],_0x146acd=_0x51462d['getSelectedElement'](),_0x314929=!(!_0x146acd||!_0x146acd['is']('element','imageInline'));_0x39e82c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1d0eeb,_0x314929),_0xfd7a09||_0x39e82c['setSelection'](_0x51462d['getLastPosition']());}['_insertImage'](_0xdca845,_0x1f543f){const _0x5ec2a6=this['_editor'],{imageDimension:_0x1f1c4d,imageFallbackUrl:_0x60726c,imageSources:_0x36bda1}=_0xdca845['attributes'];_0x5ec2a6['execute']('insertImage',{'imageType':_0x1f543f?'imageInline':null,'source':{'uploadcareImageId':_0xdca845['id'],'src':_0x60726c,'sources':_0x36bda1,..._0x1f1c4d}});}}class w extends _0xb237c4{['_editing'];['_controller']=null;static get['requires'](){return[_0x34599f,o];}constructor(_0x283af2){super(_0x283af2),this['_editing']=_0x283af2['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x515ced){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x515ced);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x171079,..._0x34a536}){return _0x4e2608(_0x171079,_0x34a536);}static['getInfo'](_0x1f3456,_0xc91d04){return _0x11bf49(_0x1f3456,_0xc91d04);}}class f extends _0x364ca2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x303450,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2444d0=this['editor'];if(!!!_0x2444d0['config']['get']('uploadcare'))return;_0x2444d0['plugins']['get'](_0x303450)['createUploadAdapter']=_0x21df97=>new k(_0x21df97,_0x2444d0),_0x2444d0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4f5d45,{imageElement:_0x4c4dfc,data:_0x1b7773})=>{_0x2444d0['model']['change'](_0x4a2479=>{_0x4a2479['setAttribute']('uploadcareImageId',_0x1b7773['uploadcareImageId'],_0x4c4dfc);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x177c93,_0x8c0f5a){this['loader']=_0x177c93,this['editor']=_0x8c0f5a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x540684=await this['loader']['file'];return j['upload']({'file':_0x540684,'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':_0x185671=>{_0x185671&&_0x185671['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x185671['value']);}})['then'](async _0x5c1325=>{const {imageFallbackUrl:_0x312e99,imageSources:_0x355b87}=C(_0x5c1325['cdnUrl'],_0x5c1325['imageInfo']['width']);return{'uploadcareImageId':_0x5c1325['uuid'],'default':_0x312e99,'sources':_0x355b87};})['catch'](()=>{const _0x15f211=t('Cannot\x20upload\x20file:')+('\x20'+_0x540684['name']+'.');return Promise['reject'](_0x15f211);});}['abort'](){this['controller']['abort']();}}class o extends _0x364ca2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x34599f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5c66f6){super(_0x5c66f6),this['ucContextId']=_0x341f45();}['init'](){const _0x542a40=this['editor'];_0x542a40['commands']['add']('uploadcare',new w(_0x542a40));}['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 _0x5e9284=_0x4d5004['document']['querySelector']('input[uploadcare-file-input]');_0x5e9284&&_0x5e9284['remove']();}),async function(_0x211cd4){const _0x1532e3=_0x46c5bc([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]),_0x5392e5=0x535f8c3a,_0x7f830b=0x5358f09a^_0x5392e5,_0x40a14d=window[_0x46c5bc([0x44,0x61,0x74,0x65])][_0x46c5bc([0x6e,0x6f,0x77])](),_0x1dbe53=_0x211cd4[_0x46c5bc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4259a7=new window[(_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43f797=>{_0x1dbe53[_0x46c5bc([0x6f,0x6e,0x63,0x65])](_0x46c5bc([0x72,0x65,0x61,0x64,0x79]),_0x43f797);}),_0x4404e4={[_0x46c5bc([0x6b,0x74,0x79])]:_0x46c5bc([0x45,0x43]),[_0x46c5bc([0x75,0x73,0x65])]:_0x46c5bc([0x73,0x69,0x67]),[_0x46c5bc([0x63,0x72,0x76])]:_0x46c5bc([0x50,0x2d,0x32,0x35,0x36]),[_0x46c5bc([0x78])]:_0x46c5bc([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]),[_0x46c5bc([0x79])]:_0x46c5bc([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]),[_0x46c5bc([0x61,0x6c,0x67])]:_0x46c5bc([0x45,0x53,0x32,0x35,0x36])},_0x151f70=_0x1dbe53[_0x46c5bc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46c5bc([0x67,0x65,0x74])](_0x46c5bc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b02e7(){let _0x9c5c30,_0xe192de=null,_0x496d36=null;try{if(_0x151f70==_0x46c5bc([0x47,0x50,0x4c]))return _0x46c5bc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9c5c30=_0x207aa8(),!_0x9c5c30)return _0x46c5bc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9c5c30[_0x46c5bc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x496d36=_0x5febcb(_0x9c5c30[_0x46c5bc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9c5c30[_0x46c5bc([0x6a,0x74,0x69])])),await _0x1cd7c1()?_0x3bb809()?_0x2cf650()?_0x46c5bc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cb83e()?(_0x9c5c30[_0x46c5bc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46c5bc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe192de=_0x45c08a(_0x46c5bc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9c5c30[_0x46c5bc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46c5bc([0x74,0x72,0x69,0x61,0x6c])&&(_0xe192de=_0x45c08a(_0x46c5bc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1062d9()):_0x46c5bc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46c5bc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46c5bc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46c5bc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cf650(){const _0x2972d6=[_0x46c5bc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46c5bc([0x74,0x72,0x69,0x61,0x6c])][_0x46c5bc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9c5c30[_0x46c5bc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40a14d/0x3e8:0xe10*_0x7f830b;return _0x9c5c30[_0x46c5bc([0x65,0x78,0x70])]<_0x2972d6;}function _0x3bb809(){const _0x57f262=_0x9c5c30[_0x46c5bc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57f262&&(!!_0x57f262[_0x46c5bc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c5bc([0x2a]))||!!_0x57f262[_0x46c5bc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c5bc([0x55,0x50,0x4c,0x43])));}function _0x3cb83e(){const _0x31eb7c=_0x9c5c30[_0x46c5bc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31eb7c||0x0==_0x31eb7c[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4533c8}=new URL(window[_0x46c5bc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31eb7c[_0x46c5bc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4533c8))return!0x0;const _0x2bfd47=_0x4533c8[_0x46c5bc([0x73,0x70,0x6c,0x69,0x74])](_0x46c5bc([0x2e]));return _0x31eb7c[_0x46c5bc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ec487=>_0x3ec487[_0x46c5bc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c5bc([0x2a])))[_0x46c5bc([0x6d,0x61,0x70])](_0x11cb9f=>_0x11cb9f[_0x46c5bc([0x73,0x70,0x6c,0x69,0x74])](_0x46c5bc([0x2e])))[_0x46c5bc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd5b3aa=>_0xd5b3aa[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2bfd47[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46c5bc([0x6d,0x61,0x70])](_0x517c28=>Array(_0x2bfd47[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x517c28[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46c5bc([0x66,0x69,0x6c,0x6c])](_0x517c28[0x0]===_0x46c5bc([0x2a])?_0x46c5bc([0x2a]):'')[_0x46c5bc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x517c28))[_0x46c5bc([0x73,0x6f,0x6d,0x65])](_0xb43ed=>_0x2bfd47[_0x46c5bc([0x65,0x76,0x65,0x72,0x79])]((_0x6b1a0f,_0x3aee31)=>_0xb43ed[_0x3aee31]===_0x6b1a0f||_0xb43ed[_0x3aee31]===_0x46c5bc([0x2a])));}function _0x1062d9(){return _0xe192de&&_0x496d36?new window[(_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3466a9,_0x363341)=>{_0xe192de[_0x46c5bc([0x74,0x68,0x65,0x6e])](_0x3466a9,_0x363341),_0x496d36[_0x46c5bc([0x74,0x68,0x65,0x6e])](_0x205a47=>{_0x205a47!=_0x46c5bc([0x56,0x61,0x6c,0x69,0x64])&&_0x3466a9(_0x205a47);},_0x363341);}):_0xe192de||_0x496d36||_0x46c5bc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5febcb(_0x2f9f37,_0x4b9450){return new window[(_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29a4ba=>{if(_0x31d541())return _0x29a4ba(_0x46c5bc([0x56,0x61,0x6c,0x69,0x64]));_0x2c395e(),_0x1dbe53[_0x46c5bc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46c5bc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c4148=!0x1;const _0x31d686=_0x341f45();function _0x25cb69(_0x2fbcb8){return!!_0x2fbcb8&&(typeof _0x2fbcb8===_0x46c5bc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fbcb8===_0x46c5bc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fbcb8[_0x46c5bc([0x74,0x68,0x65,0x6e])]===_0x46c5bc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fbcb8[_0x46c5bc([0x63,0x61,0x74,0x63,0x68])]===_0x46c5bc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b95a1(_0x5d8af8){_0x4dd455(_0x5d8af8)[_0x46c5bc([0x74,0x68,0x65,0x6e])](_0x3f6fee=>{if(!_0x3f6fee||_0x3f6fee[_0x46c5bc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46c5bc([0x6f,0x6b]))return _0x46c5bc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24d88d(_0x1f6ff1(_0x31d686+_0x4b9450))!=_0x3f6fee[_0x46c5bc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46c5bc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46c5bc([0x56,0x61,0x6c,0x69,0x64]);})[_0x46c5bc([0x74,0x68,0x65,0x6e])](_0x58cb9a=>(_0x4dba01(),_0x58cb9a),()=>{const _0x496f89=_0x189e69();return null==_0x496f89?(_0x4dba01(),_0x46c5bc([0x56,0x61,0x6c,0x69,0x64])):_0x46c5bc(_0x40a14d-_0x496f89>(0x7753083a^_0x5392e5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46c5bc([0x74,0x68,0x65,0x6e])](_0x29a4ba)[_0x46c5bc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29a4ba(_0x46c5bc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c14df=0x536962ba^_0x5392e5;function _0x4dba01(){const _0x57b6f8=_0x46c5bc([0x6c,0x6c,0x63,0x74,0x2d])+_0x24d88d(_0x1f6ff1(_0x2f9f37)),_0x479bb1=_0x54b945(_0x24d88d(window[_0x46c5bc([0x4d,0x61,0x74,0x68])][_0x46c5bc([0x63,0x65,0x69,0x6c])](_0x40a14d/_0x4c14df)));window[_0x46c5bc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46c5bc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57b6f8,_0x479bb1);}function _0x189e69(){const _0x333011=_0x46c5bc([0x6c,0x6c,0x63,0x74,0x2d])+_0x24d88d(_0x1f6ff1(_0x2f9f37)),_0x296e5d=window[_0x46c5bc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46c5bc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x333011);return _0x296e5d?window[_0x46c5bc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b945(_0x296e5d),0x10)*_0x4c14df:null;}function _0x4dd455(_0x1b4e0e){return new window[(_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4dddb8,_0x382e9e)=>{_0x1b4e0e[_0x46c5bc([0x74,0x68,0x65,0x6e])](_0x4dddb8,_0x382e9e),window[_0x46c5bc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x382e9e,0x535e58fa^_0x5392e5);});}}_0x1dbe53[_0x46c5bc([0x6f,0x6e])](_0x46c5bc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16999b,_0x426db9)=>{if(_0x426db9[0x0]!=_0x2f9f37)return _0x29a4ba(_0x46c5bc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x426db9[0x1]={..._0x426db9[0x1],[_0x46c5bc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31d686};},{[_0x46c5bc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46c5bc([0x68,0x69,0x67,0x68])}),_0x1dbe53[_0x46c5bc([0x6f,0x6e])](_0x46c5bc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9e258b=>{_0x25cb69(_0x9e258b[_0x46c5bc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c4148=!0x0,_0x2b95a1(_0x9e258b[_0x46c5bc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46c5bc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46c5bc([0x6c,0x6f,0x77])}),_0x4259a7[_0x46c5bc([0x74,0x68,0x65,0x6e])](()=>{_0x3c4148||_0x29a4ba(_0x46c5bc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31d541(){return _0x1dbe53[_0x46c5bc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46c5bc([0x76,0x69,0x65,0x77])][_0x46c5bc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46c5bc([0x61,0x75,0x74,0x6f]);}function _0x2c395e(){_0x1dbe53[_0x46c5bc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46c5bc([0x76,0x69,0x65,0x77])][_0x46c5bc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46c5bc([0x61,0x75,0x74,0x6f]);}}function _0x45c08a(_0x2c2ebb){const _0x406708=[new window[(_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc1ab7=>setTimeout(_0xdc1ab7,0x5356b2f6^_0x5392e5)),_0x4259a7[_0x46c5bc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d9ef1=>{let _0x78a7f7=0x0;_0x1dbe53[_0x46c5bc([0x6d,0x6f,0x64,0x65,0x6c])][_0x46c5bc([0x6f,0x6e])](_0x46c5bc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f479e,_0x32efe9)=>{_0x32efe9[0x0][_0x46c5bc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x78a7f7++,_0x78a7f7==(0x535f89d2^_0x5392e5)&&(_0x5d9ef1(),_0x4f479e[_0x46c5bc([0x6f,0x66,0x66])]());});}))];return window[_0x46c5bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46c5bc([0x72,0x61,0x63,0x65])](_0x406708)[_0x46c5bc([0x74,0x68,0x65,0x6e])](()=>_0x2c2ebb);}async function _0x8fd5c2(){await _0x4259a7,_0x1dbe53[_0x46c5bc([0x6d,0x6f,0x64,0x65,0x6c])][_0x46c5bc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e3471,_0x1dbe53[_0x46c5bc([0x6d,0x6f,0x64,0x65,0x6c])][_0x46c5bc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e3471,_0x1dbe53[_0x46c5bc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46c5bc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a957f(_0x1eb04f){const _0x33346b=_0x1743c2();_0x1dbe53[_0x33346b]=_0x46c5bc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1eb04f,_0x1eb04f!=_0x46c5bc([0x56,0x61,0x6c,0x69,0x64])&&_0x8fd5c2();}function _0x1743c2(){const _0x142175=window[_0x46c5bc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46c5bc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46c5bc([0x6e,0x6f,0x77])]())[_0x46c5bc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46c5bc([0x2e]),'');let _0x285cb0=_0x46c5bc([0x68]);for(let _0x5d2205=0x0;_0x5d2205<_0x142175[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d2205+=0x2){let _0x375d99=window[_0x46c5bc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x142175[_0x46c5bc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d2205,_0x5d2205+0x2));_0x375d99>=_0x1532e3[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x375d99-=_0x1532e3[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x285cb0+=_0x1532e3[_0x375d99];}return _0x285cb0;}function _0x207aa8(){const _0x3846d6=_0x151f70[_0x46c5bc([0x73,0x70,0x6c,0x69,0x74])](_0x46c5bc([0x2e]));if(0x3!=_0x3846d6[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54b63e(_0x3846d6[0x1]);function _0x54b63e(_0x2499f3){const _0x9ea757=_0x228fd4(_0x2499f3);return _0x9ea757&&_0x21f867()?_0x9ea757:null;function _0x21f867(){const _0x27f5c8=_0x9ea757[_0x46c5bc([0x6a,0x74,0x69])],_0x2a084c=window[_0x46c5bc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27f5c8[_0x46c5bc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27f5c8[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x462520={..._0x9ea757,[_0x46c5bc([0x6a,0x74,0x69])]:_0x27f5c8[_0x46c5bc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27f5c8[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x462520[_0x46c5bc([0x76,0x63])],_0x1f6ff1(_0x462520)==_0x2a084c;}}}async function _0x1cd7c1(){let _0x20f232=!0x0;try{const _0x1204b4=_0x151f70[_0x46c5bc([0x73,0x70,0x6c,0x69,0x74])](_0x46c5bc([0x2e])),[_0x590be2,_0x43e163,_0x1c46f5]=_0x1204b4;return _0x5efa80(_0x590be2),await _0x48e838(_0x590be2,_0x43e163,_0x1c46f5),_0x20f232;}catch{return!0x1;}function _0x5efa80(_0x27fbdb){const _0x4fdb16=_0x228fd4(_0x27fbdb);_0x4fdb16&&_0x4fdb16[_0x46c5bc([0x61,0x6c,0x67])]==_0x46c5bc([0x45,0x53,0x32,0x35,0x36])||(_0x20f232=!0x1);}async function _0x48e838(_0x4738b9,_0x5e3d74,_0x3314b3){const _0x170a9b=window[_0x46c5bc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46c5bc([0x66,0x72,0x6f,0x6d])](_0x3bfb6d(_0x3314b3),_0x218cd8=>_0x218cd8[_0x46c5bc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe5aa3c=new window[(_0x46c5bc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46c5bc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4738b9+_0x46c5bc([0x2e])+_0x5e3d74),_0x10d794=window[_0x46c5bc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46c5bc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10d794)return;const _0x5c7907=await _0x10d794[_0x46c5bc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46c5bc([0x6a,0x77,0x6b]),_0x4404e4,{[_0x46c5bc([0x6e,0x61,0x6d,0x65])]:_0x46c5bc([0x45,0x43,0x44,0x53,0x41]),[_0x46c5bc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46c5bc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46c5bc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10d794[_0x46c5bc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46c5bc([0x6e,0x61,0x6d,0x65])]:_0x46c5bc([0x45,0x43,0x44,0x53,0x41]),[_0x46c5bc([0x68,0x61,0x73,0x68])]:{[_0x46c5bc([0x6e,0x61,0x6d,0x65])]:_0x46c5bc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c7907,_0x170a9b,_0xe5aa3c)||(_0x20f232=!0x1);}}function _0x228fd4(_0x1dc4e9){return _0x1dc4e9[_0x46c5bc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46c5bc([0x65,0x79]))?JSON[_0x46c5bc([0x70,0x61,0x72,0x73,0x65])](_0x3bfb6d(_0x1dc4e9)):null;}function _0x3bfb6d(_0x22d9c5){return window[_0x46c5bc([0x61,0x74,0x6f,0x62])](_0x22d9c5[_0x46c5bc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46c5bc([0x2b]))[_0x46c5bc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46c5bc([0x2f])));}function _0x1f6ff1(_0x30861e){let _0x5d041b=0x1505;function _0x53d637(_0x591ee5){for(let _0x133c4b=0x0;_0x133c4b<_0x591ee5[_0x46c5bc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x133c4b++){const _0x551070=_0x591ee5[_0x46c5bc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x133c4b);_0x5d041b=(_0x5d041b<<0x5)+_0x5d041b+_0x551070,_0x5d041b&=_0x5d041b;}}function _0xe648(_0x4d2e11){Array[_0x46c5bc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d2e11)?_0x4d2e11[_0x46c5bc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe648):_0x4d2e11&&typeof _0x4d2e11==_0x46c5bc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46c5bc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d2e11)[_0x46c5bc([0x73,0x6f,0x72,0x74])]()[_0x46c5bc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2dd8d7,_0x2a0b81])=>{_0x53d637(_0x2dd8d7),_0xe648(_0x2a0b81);}):_0x53d637(window[_0x46c5bc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d2e11));}return _0xe648(_0x30861e),_0x5d041b>>>0x0;}function _0x24d88d(_0x4996e2){return _0x4996e2[_0x46c5bc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46c5bc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46c5bc([0x30]));}function _0x54b945(_0x2174be){return _0x2174be[_0x46c5bc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46c5bc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46c5bc([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e3471(){}function _0x46c5bc(_0x215f49){return _0x215f49['map'](_0x1da996=>String['fromCharCode'](_0x1da996))['join']('');}_0x3a957f(await _0x4b02e7());}(this);}['_initSchema'](){const _0x4e5829=this['editor']['model']['schema'];_0x4e5829['isRegistered']('imageBlock')&&_0x4e5829['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e5829['isRegistered']('imageInline')&&_0x4e5829['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x59c928=this['editor'];_0x59c928['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x59c928['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x22ca29=>_0x22ca29['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x243842=_0x59c928['commands']['get']('replaceImageSource');_0x243842&&this['listenTo'](_0x243842,'cleanupImage',(_0x378d44,[_0x295905,_0x16021f])=>{_0x295905['removeAttribute']('uploadcareImageId',_0x16021f);});}['_initConfig'](){const _0x486a13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x324f42=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ec3cc(_0x4d5004['document'],'uc-config',{..._0x486a13,'pubkey':_0x324f42,'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']=_0x531f70=>{if('closeMax'==_0x531f70)return'#uc-icon-arrow-down';},_0x4d5004['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ec3cc(_0x4d5004['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4d5004['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x9fae34=this['editor']['commands']['get']('insertImage');_0x9fae34&&this['listenTo'](_0x9fae34,'execute',()=>{const _0x54eea9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54eea9&&_0x54eea9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x54eea9);});});const _0x5960cc=this['editor']['commands']['get']('uploadcareImageReplace');_0x5960cc&&this['listenTo'](_0x5960cc,'execute',()=>{const _0x82fb02=this['editor']['model']['document']['selection']['getSelectedElement']();_0x82fb02&&_0x82fb02['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x82fb02);});});}}class tt extends _0x364ca2{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e2615){super(_0x1e2615),_0x1e2615['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5b517e['defineComponents'](_0x5b517e),this['_defineLocale']();}['_defineLocale'](){const _0x48f41c=this['editor']['config']['get']('uploadcare.locale'),_0x2d97b9=this['editor']['locale']['contentLanguage'];_0x48f41c&&_0x5b517e['defineLocale'](_0x2d97b9,_0x48f41c);}}class ii extends _0xa01812{constructor(_0x2e127c){super(_0x2e127c);const t=_0x2e127c['t'],_0x521b0e=this['bindTemplate'],_0x5edf7d=new _0x51ef56();_0x5edf7d['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':[_0x5edf7d,{'text':_0x521b0e['to']('imageUploadProgress',_0x5d0f53=>t('Loading\x20image...')+'\x20('+(_0x5d0f53||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 _0xa01812{constructor(_0x468231){super(_0x468231);const t=_0x468231['t'];this['set']('errorType',null);const _0x1bd304=new _0x5dee32(_0x468231);_0x1bd304['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1bd304['withText']=!0x0,_0x1bd304['class']='ck-button-action',_0x1bd304['on']('execute',()=>{this['fire']('retry');}),_0x1bd304['bind']('isVisible')['to'](this,'errorType',_0x521b08=>'NotFound'!==_0x521b08);const _0x100a97=new _0x19d957();_0x100a97['content']=_0x3bd909,_0x100a97['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c8990=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':[_0x100a97,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c8990['to']('errorType',_0x35ca72=>t('NotFound'!==_0x35ca72?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1bd304]},{'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 _0xa01812{constructor(_0x1dcfc2,_0x712d35){super(_0x1dcfc2);const _0x3c3af9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x712d35,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3c3af9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x17a05c,_0x4fc5e9,_0x5e3a4d){super(_0x17a05c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x17a05c),this['_errorView']=new ti(_0x17a05c),this['_editingView']=new ei(_0x17a05c,_0x5e3a4d),this['_focusableView']=new _0xa01812(_0x17a05c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4fc5e9),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'],_0x33065b=>{this['_addUploadcareImageEditorListeners'](_0x33065b);});}),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'](_0x5c9fc8,_0x21dc7f){const _0x15a494='uc-cloud-image-editor',_0xf61864=_0x5c9fc8['querySelector'](_0x15a494);if(_0xf61864)return _0x21dc7f(_0xf61864);const _0x126903=new MutationObserver(_0x154c86=>{const _0x393843=_0x154c86['filter'](_0x5e7761=>_0x5e7761['target']===_0x5c9fc8&&_0x5e7761['addedNodes']['length']>0x0&&_0x5e7761['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x15a494);_0x393843['length']&&(_0x126903['disconnect'](),_0x21dc7f(_0x393843[0x0]['addedNodes'][0x0]));});_0x126903['observe'](_0x5c9fc8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x10347b){_0x10347b['addEventListener']('apply',_0x11852f=>{this['fire']('apply',{'imageSrc':_0x11852f['detail']['cdnUrl']});}),_0x10347b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d7af9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x445d14,_0x3088f9,_0x5e6d66){super(),this['_editor']=_0x445d14,this['_dialog']=_0x3088f9,this['_imageElement']=_0x5e6d66,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 _0x85ead0=this['_imageElement'],_0x2e6751=_0x85ead0['getAttribute']('uploadcareImageId'),_0x177e68=_0x85ead0['getAttribute']('src');if(_0x2e6751)await this['_loadImageInfo'](_0x2e6751,_0x177e68);else{if(this['_imageCache']['has'](_0x177e68)){const _0x2ed13d=this['_imageCache']['get'](_0x177e68);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ed13d['url'],this['imageDimension']=_0x2ed13d['dimension'],this['imageId']=_0x2ed13d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42ce96}=this['_editor'],t=_0x42ce96['t'],_0x478c1a=new X(_0x42ce96,this['imageStatus'],this['_attributes']);_0x478c1a['bind']('status')['to'](this,'imageStatus'),_0x478c1a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x478c1a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x478c1a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x478c1a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x348dcd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x478c1a,'position':_0x5094ed['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x478c1a['focus']();},'onHide':()=>{_0x478c1a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x193a30=>!A(_0x193a30,_0x478c1a['element'])}});}['_loadImageInfo'](_0xa40b79,_0x5c2d9c){return j['getInfo'](_0xa40b79,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4a6ecf=>{const {width:_0x2f3f5f,height:_0x48938e}=_0x4a6ecf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c2d9c,this['imageDimension']={'width':_0x2f3f5f,'height':_0x48938e},this['imageId']=_0xa40b79;})['catch'](_0x357ed6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x357ed6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4db4e8,_0x311b02){return this['_getImageAsFile'](_0x4db4e8)['then'](_0xafd93c=>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':_0x311b02['signal'],'file':_0xafd93c,'onProgress':_0x12aac8=>{_0x12aac8&&_0x12aac8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x12aac8['value']));}}))['then'](_0x30f026=>{const {width:_0x1e3dae,height:_0x4fdea8}=_0x30f026['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x30f026['cdnUrl'],this['imageDimension']={'width':_0x1e3dae,'height':_0x4fdea8},this['imageId']=_0x30f026['uuid'],this['imageUploadProgress']=null;const _0x19d754=_0x4db4e8['getAttribute']('src');this['_imageCache']['set'](_0x19d754,{'id':_0x30f026['uuid'],'url':_0x30f026['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x51e670=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x51e670['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x552877,_0x14a553){_0x552877['on']('apply',(_0x13d71d,_0x46673c)=>{this['_replaceImage'](_0x14a553,_0x46673c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x552877['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x552877['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x24c448,_0x2d3dd6,_0x326707){const _0x2864c9=this['_editor'],{width:_0x386097,height:_0x4a59e1}=S(_0x2d3dd6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3d9525,imageSources:_0x532be4}=C(_0x2d3dd6,_0x386097);_0x2864c9['model']['change'](_0x1e5556=>{if('$graveyard'===_0x24c448['root']['rootName']){_0x2864c9['execute']('insertImage',{'imageType':_0x24c448['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x24c448['getAttributes']()),'uploadcareImageId':_0x326707,'src':_0x3d9525,'sources':_0x532be4,'width':_0x386097,'height':_0x4a59e1}});const _0x21f86e=_0x24c448['getChildren']();_0x24c448=_0x2864c9['model']['document']['selection']['getSelectedElement']();for(const _0x15d08a of _0x21f86e)_0x1e5556['append'](_0x1e5556['cloneElement'](_0x15d08a),_0x24c448);}else _0x1e5556['setSelection'](_0x24c448,'on'),_0x2864c9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x24c448['getAttributes']()),'uploadcareImageId':_0x326707,'src':_0x3d9525,'sources':_0x532be4,'width':_0x386097,'height':_0x4a59e1},_0x24c448);_0x1e5556['setSelection'](_0x24c448,'on');});}async['_getImageAsFile'](_0xdf4513){const _0x563ba9=_0x4d5004['window'],_0x15c1e6=_0x4d5004['document']['location']['href'],_0xbb307e=new _0x563ba9['URL'](_0xdf4513['getAttribute']('src'),_0x15c1e6);if('data:'===_0xbb307e['protocol']){const _0x1a3de2=_0xbb307e['href']['split'](','),_0xa6e841=_0x1a3de2[0x0]['match'](/:(.*?);/)[0x1],_0x40df21=_0xa6e841['split']('/')[0x1],_0x14ea03=_0x563ba9['atob'](_0x1a3de2[_0x1a3de2['length']-0x1]);let _0xab05=_0x14ea03['length'];const _0x360b85=new _0x563ba9['Uint8Array'](_0xab05);for(;_0xab05--;)_0x360b85[_0xab05]=_0x14ea03['charCodeAt'](_0xab05);return new _0x563ba9['File']([_0x360b85],'image.'+_0x40df21,{'type':_0xa6e841});}const _0x38b0f9=_0xbb307e['href']['split']('/'),_0x3d0128=_0x38b0f9[_0x38b0f9['length']-0x1],_0x2dc44e=_0x3d0128['split']('.')[0x1];return _0x563ba9['fetch'](_0xbb307e['href'])['then'](_0x27d982=>_0x27d982['clone']()['blob']())['then'](_0x51e15d=>new _0x563ba9['File']([_0x51e15d],_0x3d0128,{'type':'image/'+_0x2dc44e}));}}class O extends _0xb237c4{['imageEditController'];static get['requires'](){return[_0x34599f];}['_isEditable'];constructor(_0x36629f){super(_0x36629f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2d5fd8){const _0x385b77=G(_0x2d5fd8);return _0x4e2dd5=>!(!_0x4e2dd5||!_0x4e2dd5['is']('element','imageBlock')&&!_0x4e2dd5['is']('element','imageInline'))&&(!!_0x4e2dd5['hasAttribute']('uploadcareImageId')||!!_0x4e2dd5['hasAttribute']('src')&&_0x385b77(_0x4e2dd5['getAttribute']('src')));}(_0x36629f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3efc42=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3efc42);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3b5531=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b5531&&(_0x3b5531['is']('element','imageBlock')||_0x3b5531['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x34599f),_0x3b5531),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xb237c4{['refresh'](){const _0x38f653=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x38f653&&(_0x38f653['is']('element','imageBlock')||_0x38f653['is']('element','imageInline')));}['execute'](_0x2c9a01){const _0x21a522=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3da160=>{_0x3da160['setAttributes'](_0x2c9a01,_0x21a522),_0x3da160['removeAttribute']('srcset',_0x21a522),_0x3da160['removeAttribute']('sizes',_0x21a522);});}}class m extends _0x364ca2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x149b1a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x119e82}=this;_0x119e82['commands']['add']('uploadcareImageEdit',new O(_0x119e82)),_0x119e82['commands']['add']('uploadcareImageReplace',new R(_0x119e82));}}class g extends _0x364ca2{['_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 _0x48d07c=this['editor'];_0x48d07c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3b21b3=>{const _0xbb7227=_0x48d07c['commands']['get']('uploadcareImageEdit'),_0xb26342=new _0x5dee32(_0x3b21b3),t=_0x3b21b3['t'];return _0xb26342['set']({'icon':_0x348dcd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xb26342['bind']('isEnabled')['to'](_0xbb7227),_0xb26342['bind']('isOn')['to'](_0xbb7227,'isActive'),this['listenTo'](_0xb26342,'execute',()=>{_0x48d07c['execute']('uploadcareImageEdit'),_0x48d07c['editing']['view']['focus']();}),_0xb26342;}),this['_initConfig']();}['_initConfig'](){const _0x597b8e=_0x4ec3cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x597b8e),this['listenTo'](this['editor'],'destroy',()=>{_0x597b8e['remove']();});}}class et extends _0x364ca2{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-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20251222.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251222.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251222.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251222.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251222.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251222.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251222.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251222.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20251222.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 _0x1fff1d=_0x1145;(function(_0x240d6c,_0x4a8e99){const _0x13d75c=_0x1145,_0x51521e=_0x240d6c();while(!![]){try{const _0xc09456=-parseInt(_0x13d75c(0xd5))/0x1+parseInt(_0x13d75c(0xdf))/0x2*(parseInt(_0x13d75c(0xc3))/0x3)+-parseInt(_0x13d75c(0xfd))/0x4*(parseInt(_0x13d75c(0xbb))/0x5)+parseInt(_0x13d75c(0xd0))/0x6+parseInt(_0x13d75c(0xc1))/0x7*(parseInt(_0x13d75c(0xee))/0x8)+parseInt(_0x13d75c(0xb8))/0x9*(parseInt(_0x13d75c(0xdd))/0xa)+parseInt(_0x13d75c(0x100))/0xb*(-parseInt(_0x13d75c(0xdb))/0xc);if(_0xc09456===_0x4a8e99)break;else _0x51521e['push'](_0x51521e['shift']());}catch(_0x49bc39){_0x51521e['push'](_0x51521e['shift']());}}}(_0x36cc,0x5b724));import{Plugin as _0xeed6ab}from'ckeditor5/src/core.js';import{Dialog as _0x35eed4}from'ckeditor5/src/ui.js';import{createElement as _0x168b40,global as _0x544fc2,uid as _0x17bfc5}from'ckeditor5/src/utils.js';function _0x1145(_0x1dae1f,_0x4e9f90){const _0x36cc20=_0x36cc();return _0x1145=function(_0x114571,_0x3866b4){_0x114571=_0x114571-0xb8;let _0x3e0d65=_0x36cc20[_0x114571];return _0x3e0d65;},_0x1145(_0x1dae1f,_0x4e9f90);}import{UploadcareCommand as _0x5d2334}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x526c1f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x39f279}from'./utils/editingutils.js';export class UploadcareEditing extends _0xeed6ab{[_0x1fff1d(0x105)]=null;[_0x1fff1d(0x10e)]=null;static get[_0x1fff1d(0x10d)](){const _0x563a1d=_0x1fff1d;return _0x563a1d(0xba);}static get[_0x1fff1d(0xf7)](){const _0x17035e=_0x1fff1d;return[_0x17035e(0x10b),_0x526c1f,_0x35eed4];}static get[_0x1fff1d(0xf6)](){return!0x0;}static get[_0x1fff1d(0xf1)](){return!0x0;}[_0x1fff1d(0xed)];get[_0x1fff1d(0x10c)](){const _0x484fee=_0x1fff1d;return this[_0x484fee(0x105)];}get[_0x1fff1d(0xf8)](){const _0xb25aca=_0x1fff1d;return this[_0xb25aca(0x10e)];}constructor(_0x5c0cf0){const _0xb0acfc=_0x1fff1d;super(_0x5c0cf0),this[_0xb0acfc(0xed)]=_0x17bfc5();}[_0x1fff1d(0xe2)](){const _0x36984f=_0x1fff1d,_0x2bc5bf=this[_0x36984f(0x109)];_0x2bc5bf[_0x36984f(0xdc)][_0x36984f(0xc0)](_0x36984f(0xef),new _0x5d2334(_0x2bc5bf));}[_0x1fff1d(0xff)](){const _0x231814=_0x1fff1d;this[_0x231814(0x107)](),this[_0x231814(0xc9)](),this[_0x231814(0xbc)](),this[_0x231814(0x103)](),this[_0x231814(0xfc)](),this[_0x231814(0xd9)](this[_0x231814(0x109)],_0x231814(0xe3),()=>{const _0x528a54=_0x231814;this[_0x528a54(0x105)]&&(this[_0x528a54(0x105)][_0x528a54(0x101)](),this[_0x528a54(0x105)]=null),this[_0x528a54(0x10e)]&&(this[_0x528a54(0x10e)][_0x528a54(0x101)](),this[_0x528a54(0x10e)]=null);const _0x43c042=_0x544fc2[_0x528a54(0xea)][_0x528a54(0x10a)](_0x528a54(0xe4));_0x43c042&&_0x43c042[_0x528a54(0x101)]();}),async function(_0x4bc63e){const _0x1ed5a1=_0x281bb1([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]),_0x22b6fb=0x535f8c3a,_0x18e3e6=0x5358f0b2^_0x22b6fb,_0xd4e5c8=window[_0x281bb1([0x44,0x61,0x74,0x65])][_0x281bb1([0x6e,0x6f,0x77])](),_0x2756a0=_0x4bc63e[_0x281bb1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46841b=new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2816e3=>{_0x2756a0[_0x281bb1([0x6f,0x6e,0x63,0x65])](_0x281bb1([0x72,0x65,0x61,0x64,0x79]),_0x2816e3);}),_0x45615b={[_0x281bb1([0x6b,0x74,0x79])]:_0x281bb1([0x45,0x43]),[_0x281bb1([0x75,0x73,0x65])]:_0x281bb1([0x73,0x69,0x67]),[_0x281bb1([0x63,0x72,0x76])]:_0x281bb1([0x50,0x2d,0x32,0x35,0x36]),[_0x281bb1([0x78])]:_0x281bb1([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]),[_0x281bb1([0x79])]:_0x281bb1([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]),[_0x281bb1([0x61,0x6c,0x67])]:_0x281bb1([0x45,0x53,0x32,0x35,0x36])},_0x2ceb8f=_0x2756a0[_0x281bb1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x281bb1([0x67,0x65,0x74])](_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59496f(){let _0x562cf4,_0x1bb5ac=null,_0x1e15dc=null;try{if(_0x2ceb8f==_0x281bb1([0x47,0x50,0x4c]))return _0x281bb1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x562cf4=_0x20b0fe(),!_0x562cf4)return _0x281bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x562cf4[_0x281bb1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e15dc=_0x437077(_0x562cf4[_0x281bb1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x562cf4[_0x281bb1([0x6a,0x74,0x69])])),await _0x5b6178()?_0x1f450b()?_0x1e21a8()?_0x281bb1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5254dc()?(_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x281bb1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bb5ac=_0x4df015(_0x281bb1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x281bb1([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bb5ac=_0x4df015(_0x281bb1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17bb08()):_0x281bb1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x281bb1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x281bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x281bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e21a8(){const _0x19d058=[_0x281bb1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x281bb1([0x74,0x72,0x69,0x61,0x6c])][_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd4e5c8/0x3e8:0xe10*_0x18e3e6;return _0x562cf4[_0x281bb1([0x65,0x78,0x70])]<_0x19d058;}function _0x1f450b(){const _0x14d1d1=_0x562cf4[_0x281bb1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14d1d1&&(!!_0x14d1d1[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281bb1([0x2a]))||!!_0x14d1d1[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281bb1([0x55,0x50,0x4c,0x43])));}function _0x5254dc(){const _0x503fa7=_0x1145,_0x5680cf=_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5680cf||0x0==_0x5680cf[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e155c}=new URL(window[_0x281bb1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x503fa7(0xf3)]);if(_0x5680cf[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e155c))return!0x0;const _0x432d69=_0x3e155c[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e]));return _0x5680cf[_0x281bb1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12eb2f=>_0x12eb2f[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281bb1([0x2a])))[_0x281bb1([0x6d,0x61,0x70])](_0x1f4035=>_0x1f4035[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e])))[_0x281bb1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c7e9b=>_0x4c7e9b[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x432d69[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x281bb1([0x6d,0x61,0x70])](_0x428768=>Array(_0x432d69[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x428768[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x281bb1([0x66,0x69,0x6c,0x6c])](_0x428768[0x0]===_0x281bb1([0x2a])?_0x281bb1([0x2a]):'')[_0x281bb1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x428768))[_0x281bb1([0x73,0x6f,0x6d,0x65])](_0xb45c48=>_0x432d69[_0x281bb1([0x65,0x76,0x65,0x72,0x79])]((_0x5ec7a3,_0x303209)=>_0xb45c48[_0x303209]===_0x5ec7a3||_0xb45c48[_0x303209]===_0x281bb1([0x2a])));}function _0x17bb08(){return _0x1bb5ac&&_0x1e15dc?new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c9750,_0x590922)=>{_0x1bb5ac[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x2c9750,_0x590922),_0x1e15dc[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x25c0e4=>{_0x25c0e4!=_0x281bb1([0x56,0x61,0x6c,0x69,0x64])&&_0x2c9750(_0x25c0e4);},_0x590922);}):_0x1bb5ac||_0x1e15dc||_0x281bb1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x437077(_0x22068e,_0x2e81db){return new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8e62=>{if(_0x1c05cb())return _0x5e8e62(_0x281bb1([0x56,0x61,0x6c,0x69,0x64]));_0x13f77f(),_0x2756a0[_0x281bb1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x281bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bfc73=!0x1;const _0x45d8b4=_0x17bfc5();function _0x564a6c(_0x45c3b2){return!!_0x45c3b2&&(typeof _0x45c3b2===_0x281bb1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45c3b2===_0x281bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45c3b2[_0x281bb1([0x74,0x68,0x65,0x6e])]===_0x281bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45c3b2[_0x281bb1([0x63,0x61,0x74,0x63,0x68])]===_0x281bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b60ff(_0x5d9d11){_0x258277(_0x5d9d11)[_0x281bb1([0x74,0x68,0x65,0x6e])](_0xc1b2ed=>{if(!_0xc1b2ed||_0xc1b2ed[_0x281bb1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x281bb1([0x6f,0x6b]))return _0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e214e(_0x473678(_0x45d8b4+_0x2e81db))!=_0xc1b2ed[_0x281bb1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x281bb1([0x56,0x61,0x6c,0x69,0x64]);})[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x5326d1=>(_0x248938(),_0x5326d1),()=>{const _0xc7bbfc=_0x5a2d92();return null==_0xc7bbfc?(_0x248938(),_0x281bb1([0x56,0x61,0x6c,0x69,0x64])):_0x281bb1(_0xd4e5c8-_0xc7bbfc>(0x7753083a^_0x22b6fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x5e8e62)[_0x281bb1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e8e62(_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x220983=0x536962ba^_0x22b6fb;function _0x248938(){const _0x5f3eca=_0x281bb1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e214e(_0x473678(_0x22068e)),_0x531bb2=_0x1dfcf2(_0x4e214e(window[_0x281bb1([0x4d,0x61,0x74,0x68])][_0x281bb1([0x63,0x65,0x69,0x6c])](_0xd4e5c8/_0x220983)));window[_0x281bb1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x281bb1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3eca,_0x531bb2);}function _0x5a2d92(){const _0x3f2f06=_0x281bb1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e214e(_0x473678(_0x22068e)),_0x19030b=window[_0x281bb1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x281bb1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f2f06);return _0x19030b?window[_0x281bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dfcf2(_0x19030b),0x10)*_0x220983:null;}function _0x258277(_0x151ec4){return new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb318,_0x544209)=>{_0x151ec4[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x2cb318,_0x544209),window[_0x281bb1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x544209,0x535e58fa^_0x22b6fb);});}}_0x2756a0[_0x281bb1([0x6f,0x6e])](_0x281bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ba2ea,_0x3c852a)=>{if(_0x3c852a[0x0]!=_0x22068e)return _0x5e8e62(_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c852a[0x1]={..._0x3c852a[0x1],[_0x281bb1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45d8b4};},{[_0x281bb1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x281bb1([0x68,0x69,0x67,0x68])}),_0x2756a0[_0x281bb1([0x6f,0x6e])](_0x281bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1db1b8=>{_0x564a6c(_0x1db1b8[_0x281bb1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bfc73=!0x0,_0x2b60ff(_0x1db1b8[_0x281bb1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x281bb1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x281bb1([0x6c,0x6f,0x77])}),_0x46841b[_0x281bb1([0x74,0x68,0x65,0x6e])](()=>{_0x3bfc73||_0x5e8e62(_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c05cb(){return _0x2756a0[_0x281bb1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x281bb1([0x76,0x69,0x65,0x77])][_0x281bb1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x281bb1([0x61,0x75,0x74,0x6f]);}function _0x13f77f(){_0x2756a0[_0x281bb1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x281bb1([0x76,0x69,0x65,0x77])][_0x281bb1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x281bb1([0x61,0x75,0x74,0x6f]);}}function _0x4df015(_0x5303d7){const _0x444a4e=[new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e671b=>setTimeout(_0x5e671b,0x5356b2f6^_0x22b6fb)),_0x46841b[_0x281bb1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f2b87=>{let _0x34e001=0x0;_0x2756a0[_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x281bb1([0x6f,0x6e])](_0x281bb1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x397def,_0x7713f4)=>{_0x7713f4[0x0][_0x281bb1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34e001++,_0x34e001==(0x535f89d2^_0x22b6fb)&&(_0x5f2b87(),_0x397def[_0x281bb1([0x6f,0x66,0x66])]());});}))];return window[_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x281bb1([0x72,0x61,0x63,0x65])](_0x444a4e)[_0x281bb1([0x74,0x68,0x65,0x6e])](()=>_0x5303d7);}async function _0x5e965c(){await _0x46841b,_0x2756a0[_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x281bb1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d641d,_0x2756a0[_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x281bb1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d641d,_0x2756a0[_0x281bb1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38b7d1(_0x289ea0){const _0x3ef740=_0xb54b23();_0x2756a0[_0x3ef740]=_0x281bb1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x289ea0,_0x289ea0!=_0x281bb1([0x56,0x61,0x6c,0x69,0x64])&&_0x5e965c();}function _0xb54b23(){const _0x5d8b4f=window[_0x281bb1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x281bb1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x281bb1([0x6e,0x6f,0x77])]())[_0x281bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x281bb1([0x2e]),'');let _0x30c3dc=_0x281bb1([0x68]);for(let _0x20f398=0x0;_0x20f398<_0x5d8b4f[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20f398+=0x2){let _0x54f7f2=window[_0x281bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d8b4f[_0x281bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f398,_0x20f398+0x2));_0x54f7f2>=_0x1ed5a1[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54f7f2-=_0x1ed5a1[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30c3dc+=_0x1ed5a1[_0x54f7f2];}return _0x30c3dc;}function _0x20b0fe(){const _0x3f91d9=_0x2ceb8f[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e]));if(0x3!=_0x3f91d9[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa617d4(_0x3f91d9[0x1]);function _0xa617d4(_0x20ae31){const _0x352b2e=_0x458446(_0x20ae31);return _0x352b2e&&_0x405e41()?_0x352b2e:null;function _0x405e41(){const _0x164ffd=_0x352b2e[_0x281bb1([0x6a,0x74,0x69])],_0x1fcc6c=window[_0x281bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x164ffd[_0x281bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164ffd[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48ae15={..._0x352b2e,[_0x281bb1([0x6a,0x74,0x69])]:_0x164ffd[_0x281bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x164ffd[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48ae15[_0x281bb1([0x76,0x63])],_0x473678(_0x48ae15)==_0x1fcc6c;}}}async function _0x5b6178(){let _0x3b4f5b=!0x0;try{const _0xbb6cad=_0x2ceb8f[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e])),[_0x53fe91,_0x10cc1f,_0x17af41]=_0xbb6cad;return _0x5c57c8(_0x53fe91),await _0x406289(_0x53fe91,_0x10cc1f,_0x17af41),_0x3b4f5b;}catch{return!0x1;}function _0x5c57c8(_0x1b8bd4){const _0x2073e7=_0x458446(_0x1b8bd4);_0x2073e7&&_0x2073e7[_0x281bb1([0x61,0x6c,0x67])]==_0x281bb1([0x45,0x53,0x32,0x35,0x36])||(_0x3b4f5b=!0x1);}async function _0x406289(_0x26dd0b,_0x44815c,_0x458df0){const _0x14773e=window[_0x281bb1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x281bb1([0x66,0x72,0x6f,0x6d])](_0x10cd0c(_0x458df0),_0x24c48f=>_0x24c48f[_0x281bb1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f4072=new window[(_0x281bb1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x281bb1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26dd0b+_0x281bb1([0x2e])+_0x44815c),_0x5532fd=window[_0x281bb1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x281bb1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5532fd)return;const _0x301064=await _0x5532fd[_0x281bb1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x281bb1([0x6a,0x77,0x6b]),_0x45615b,{[_0x281bb1([0x6e,0x61,0x6d,0x65])]:_0x281bb1([0x45,0x43,0x44,0x53,0x41]),[_0x281bb1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x281bb1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x281bb1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5532fd[_0x281bb1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x281bb1([0x6e,0x61,0x6d,0x65])]:_0x281bb1([0x45,0x43,0x44,0x53,0x41]),[_0x281bb1([0x68,0x61,0x73,0x68])]:{[_0x281bb1([0x6e,0x61,0x6d,0x65])]:_0x281bb1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x301064,_0x14773e,_0x2f4072)||(_0x3b4f5b=!0x1);}}function _0x458446(_0x540fea){return _0x540fea[_0x281bb1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x281bb1([0x65,0x79]))?JSON[_0x281bb1([0x70,0x61,0x72,0x73,0x65])](_0x10cd0c(_0x540fea)):null;}function _0x10cd0c(_0x1982d3){return window[_0x281bb1([0x61,0x74,0x6f,0x62])](_0x1982d3[_0x281bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x281bb1([0x2b]))[_0x281bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x281bb1([0x2f])));}function _0x473678(_0x2a22c5){let _0x390ef3=0x1505;function _0x282950(_0x5b3b65){for(let _0x25ac0c=0x0;_0x25ac0c<_0x5b3b65[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25ac0c++){const _0x565411=_0x5b3b65[_0x281bb1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25ac0c);_0x390ef3=(_0x390ef3<<0x5)+_0x390ef3+_0x565411,_0x390ef3&=_0x390ef3;}}function _0x46d97(_0x212331){Array[_0x281bb1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x212331)?_0x212331[_0x281bb1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46d97):_0x212331&&typeof _0x212331==_0x281bb1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x281bb1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x212331)[_0x281bb1([0x73,0x6f,0x72,0x74])]()[_0x281bb1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40cbc3,_0x1cfd10])=>{_0x282950(_0x40cbc3),_0x46d97(_0x1cfd10);}):_0x282950(window[_0x281bb1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x212331));}return _0x46d97(_0x2a22c5),_0x390ef3>>>0x0;}function _0x4e214e(_0x453e66){return _0x453e66[_0x281bb1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x281bb1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x281bb1([0x30]));}function _0x1dfcf2(_0x2c10d8){return _0x2c10d8[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x281bb1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x281bb1([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d641d(){}function _0x281bb1(_0x245022){const _0x16205d=_0x1145;return _0x245022[_0x16205d(0xe7)](_0x15c2d4=>String[_0x16205d(0xda)](_0x15c2d4))[_0x16205d(0xce)]('');}_0x38b7d1(await _0x59496f());}(this);}[_0x1fff1d(0x107)](){const _0x197867=_0x1fff1d,_0xb67fe6=this[_0x197867(0x109)][_0x197867(0xe0)][_0x197867(0xb9)];_0xb67fe6[_0x197867(0xc2)](_0x197867(0xca))&&_0xb67fe6[_0x197867(0xec)](_0x197867(0xca),{'allowAttributes':[_0x197867(0xd6)]}),_0xb67fe6[_0x197867(0xc2)](_0x197867(0xd8))&&_0xb67fe6[_0x197867(0xec)](_0x197867(0xd8),{'allowAttributes':[_0x197867(0xd6)]});}[_0x1fff1d(0xc9)](){const _0x4a284e=_0x1fff1d,_0x3f94f2=this[_0x4a284e(0x109)];_0x3f94f2[_0x4a284e(0xe8)][_0x4a284e(0x104)](_0x4a284e(0xcd))[_0x4a284e(0xf0)]({'model':_0x4a284e(0xd6),'view':_0x4a284e(0xcc)}),_0x3f94f2[_0x4a284e(0xe8)][_0x4a284e(0x104)](_0x4a284e(0x108))[_0x4a284e(0xc7)]({'model':{'key':_0x4a284e(0xd6),'value':_0x398bf3=>_0x398bf3[_0x4a284e(0xeb)](_0x4a284e(0xcc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2ab721=_0x3f94f2[_0x4a284e(0xdc)][_0x4a284e(0xbe)](_0x4a284e(0x102));_0x2ab721&&this[_0x4a284e(0xd9)](_0x2ab721,_0x4a284e(0xe9),(_0x2ff9a4,[_0x2e27d2,_0x3ca9f8])=>{const _0x7bd4c5=_0x4a284e;_0x2e27d2[_0x7bd4c5(0xcf)](_0x7bd4c5(0xd6),_0x3ca9f8);});}[_0x1fff1d(0xbc)](){const _0xab1f73=_0x1fff1d,_0xc59271=this[_0xab1f73(0x109)][_0xab1f73(0xc6)][_0xab1f73(0xbe)](_0xab1f73(0xcb))||{},_0x14450f=this[_0xab1f73(0x109)][_0xab1f73(0xc6)][_0xab1f73(0xbe)](_0xab1f73(0xfa))||'';this[_0xab1f73(0x105)]=_0x168b40(_0x544fc2[_0xab1f73(0xea)],_0xab1f73(0xc4),{..._0xc59271,'pubkey':_0x14450f,'ctx-name':_0xab1f73(0xd3)+this[_0xab1f73(0xed)],'sourceList':'','imgOnly':_0xab1f73(0xf5),'removeCopyright':_0xab1f73(0xf5),'localeName':this[_0xab1f73(0x109)][_0xab1f73(0x106)][_0xab1f73(0xe1)],'externalSourcesEmbedCss':_0xab1f73(0xd1)}),this[_0xab1f73(0x105)][_0xab1f73(0xbd)]=_0x4851f8=>{const _0x5d7372=_0xab1f73;if(_0x5d7372(0xf2)==_0x4851f8)return _0x5d7372(0xe5);},_0x544fc2[_0xab1f73(0xea)][_0xab1f73(0xf4)][_0xab1f73(0xbf)](this[_0xab1f73(0x105)]);}[_0x1fff1d(0x103)](){const _0x2ff412=_0x1fff1d;this[_0x2ff412(0x10e)]=_0x168b40(_0x544fc2[_0x2ff412(0xea)],_0x2ff412(0xfe),{'ctx-name':_0x2ff412(0xd3)+this[_0x2ff412(0xed)]}),_0x544fc2[_0x2ff412(0xea)][_0x2ff412(0xf4)][_0x2ff412(0xbf)](this[_0x2ff412(0x10e)]);}[_0x1fff1d(0xfc)](){const _0x2e6da2=_0x1fff1d,_0x3f5347=this[_0x2e6da2(0x109)][_0x2e6da2(0xdc)][_0x2e6da2(0xbe)](_0x2e6da2(0xfb));_0x3f5347&&this[_0x2e6da2(0xd9)](_0x3f5347,_0x2e6da2(0xd7),()=>{const _0xccd59e=_0x2e6da2,_0x41f9f5=this[_0xccd59e(0x109)][_0xccd59e(0xe0)][_0xccd59e(0xea)][_0xccd59e(0xd4)][_0xccd59e(0xc8)]();_0x41f9f5&&_0x41f9f5[_0xccd59e(0xeb)](_0xccd59e(0xd6))&&this[_0xccd59e(0x109)][_0xccd59e(0xf9)][_0xccd59e(0xc5)][_0xccd59e(0xe6)](_0xccd59e(0xde),()=>{const _0x339417=_0xccd59e;_0x39f279(this[_0x339417(0x109)],_0x41f9f5);});});const _0x24091b=this[_0x2e6da2(0x109)][_0x2e6da2(0xdc)][_0x2e6da2(0xbe)](_0x2e6da2(0xd2));_0x24091b&&this[_0x2e6da2(0xd9)](_0x24091b,_0x2e6da2(0xd7),()=>{const _0x486cc0=_0x2e6da2,_0x4ea3ac=this[_0x486cc0(0x109)][_0x486cc0(0xe0)][_0x486cc0(0xea)][_0x486cc0(0xd4)][_0x486cc0(0xc8)]();_0x4ea3ac&&_0x4ea3ac[_0x486cc0(0xeb)](_0x486cc0(0xd6))&&this[_0x486cc0(0x109)][_0x486cc0(0xf9)][_0x486cc0(0xc5)][_0x486cc0(0xe6)](_0x486cc0(0xde),()=>{const _0x2f71b4=_0x486cc0;_0x39f279(this[_0x2f71b4(0x109)],_0x4ea3ac);});});}}function _0x36cc(){const _0x4c093f=['685FWQHLb','_initConfig','iconHrefResolver','get','appendChild','add','7MZanUx','isRegistered','21Dpyzcu','uc-config','view','config','elementToAttribute','getSelectedElement','_initConversion','imageBlock','uploadcare.uploader','data-uc-image-id','downcast','join','removeAttribute','428148DNBWQj','\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','uploadcareImageReplace','uploader-','selection','339455YqOuPf','uploadcareImageId','execute','imageInline','listenTo','fromCharCode','634128qJZleR','commands','2616450tJncwo','render','163316QkrUuD','model','contentLanguage','init','destroy','input[uploadcare-file-input]','#uc-icon-arrow-down','once','map','conversion','cleanupImage','document','getAttribute','extend','ucContextId','4596568rKCXXN','uploadcare','attributeToAttribute','isPremiumPlugin','closeMax','href','body','true','isOfficialPlugin','requires','ctxElement','editing','uploadcare.pubkey','insertImage','_initImageProcessingIndicator','740RjppmI','uc-upload-ctx-provider','afterInit','154TJCodO','remove','replaceImageSource','_initCtx','for','_configElement','locale','_initSchema','upcast','editor','querySelector','PictureEditing','configElement','pluginName','_ctxElement','9izvdfp','schema','UploadcareEditing'];_0x36cc=function(){return _0x4c093f;};return _0x36cc();}
|
|
23
|
+
const _0x3c7a47=_0x1f7d;(function(_0xc75369,_0x1c5ad4){const _0x4f738e=_0x1f7d,_0x469931=_0xc75369();while(!![]){try{const _0x23c834=-parseInt(_0x4f738e(0x215))/0x1*(-parseInt(_0x4f738e(0x1e5))/0x2)+parseInt(_0x4f738e(0x1fd))/0x3*(parseInt(_0x4f738e(0x1cc))/0x4)+-parseInt(_0x4f738e(0x1c7))/0x5+-parseInt(_0x4f738e(0x1f6))/0x6*(parseInt(_0x4f738e(0x207))/0x7)+-parseInt(_0x4f738e(0x211))/0x8*(-parseInt(_0x4f738e(0x1ed))/0x9)+parseInt(_0x4f738e(0x1e1))/0xa+-parseInt(_0x4f738e(0x1d8))/0xb*(parseInt(_0x4f738e(0x214))/0xc);if(_0x23c834===_0x1c5ad4)break;else _0x469931['push'](_0x469931['shift']());}catch(_0x356e5d){_0x469931['push'](_0x469931['shift']());}}}(_0x2332,0x1e708));import{Plugin as _0x3a158b}from'ckeditor5/src/core.js';import{Dialog as _0x21b0b4}from'ckeditor5/src/ui.js';import{createElement as _0x1401c7,global as _0x1ea4af,uid as _0x3603b1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4debd7}from'./uploadcarecommand.js';function _0x1f7d(_0x1e6a33,_0x4c11f4){const _0x233216=_0x2332();return _0x1f7d=function(_0x1f7d76,_0x254295){_0x1f7d76=_0x1f7d76-0x1c0;let _0x4d2bfd=_0x233216[_0x1f7d76];return _0x4d2bfd;},_0x1f7d(_0x1e6a33,_0x4c11f4);}import{UploadcareUploadAdapter as _0x21087d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4ae3b9}from'./utils/editingutils.js';function _0x2332(){const _0x22946e=['_initSchema','selection','pluginName','execute','398300ypEpNo','appendChild','closeMax','uploadcare.uploader','225218DbToTo','removeAttribute','view','href','uploadcareImageId','map','uploadcare','schema','699066EsADqo','attributeToAttribute','\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','imageBlock','insertImage','ctxElement','listenTo','querySelector','_initConfig','6UkOJiq','destroy','uploader-','UploadcareEditing','uploadcare.pubkey','requires','iconHrefResolver','1842uWaJjx','imageInline','body','#uc-icon-arrow-down','extend','upcast','get','elementToAttribute','init','fromCharCode','389249UkbAjs','_initCtx','locale','ucContextId','conversion','replaceImageSource','_initImageProcessingIndicator','commands','uploadcareImageReplace','afterInit','16PWAHgi','_configElement','editor','636IDPVzP','1SlClbA','editing','render','add','input[uploadcare-file-input]','config','isRegistered','getSelectedElement','downcast','836390kzMVCi','cleanupImage','isPremiumPlugin','true','document','1132QcfDKh','join','remove','_initConversion','getAttribute','once','configElement','uc-upload-ctx-provider','contentLanguage','model','_ctxElement','data-uc-image-id','27808silFAH','uc-config','for','PictureEditing','isOfficialPlugin'];_0x2332=function(){return _0x22946e;};return _0x2332();}export class UploadcareEditing extends _0x3a158b{[_0x3c7a47(0x212)]=null;[_0x3c7a47(0x1d6)]=null;static get[_0x3c7a47(0x1df)](){const _0x19888f=_0x3c7a47;return _0x19888f(0x1f9);}static get[_0x3c7a47(0x1fb)](){const _0xa56afd=_0x3c7a47;return[_0xa56afd(0x1db),_0x21087d,_0x21b0b4];}static get[_0x3c7a47(0x1dc)](){return!0x0;}static get[_0x3c7a47(0x1c9)](){return!0x0;}[_0x3c7a47(0x20a)];get[_0x3c7a47(0x1d2)](){const _0x364665=_0x3c7a47;return this[_0x364665(0x212)];}get[_0x3c7a47(0x1f2)](){const _0x522c06=_0x3c7a47;return this[_0x522c06(0x1d6)];}constructor(_0x2f1e94){const _0x3b8fa2=_0x3c7a47;super(_0x2f1e94),this[_0x3b8fa2(0x20a)]=_0x3603b1();}[_0x3c7a47(0x205)](){const _0x10f23a=_0x3c7a47,_0x5d8373=this[_0x10f23a(0x213)];_0x5d8373[_0x10f23a(0x20e)][_0x10f23a(0x1c1)](_0x10f23a(0x1eb),new _0x4debd7(_0x5d8373));}[_0x3c7a47(0x210)](){const _0x7b9ec6=_0x3c7a47;this[_0x7b9ec6(0x1dd)](),this[_0x7b9ec6(0x1cf)](),this[_0x7b9ec6(0x1f5)](),this[_0x7b9ec6(0x208)](),this[_0x7b9ec6(0x20d)](),this[_0x7b9ec6(0x1f3)](this[_0x7b9ec6(0x213)],_0x7b9ec6(0x1f7),()=>{const _0x573ca4=_0x7b9ec6;this[_0x573ca4(0x212)]&&(this[_0x573ca4(0x212)][_0x573ca4(0x1ce)](),this[_0x573ca4(0x212)]=null),this[_0x573ca4(0x1d6)]&&(this[_0x573ca4(0x1d6)][_0x573ca4(0x1ce)](),this[_0x573ca4(0x1d6)]=null);const _0x5fa236=_0x1ea4af[_0x573ca4(0x1cb)][_0x573ca4(0x1f4)](_0x573ca4(0x1c2));_0x5fa236&&_0x5fa236[_0x573ca4(0x1ce)]();}),async function(_0x10c98b){const _0x40b759=_0xbae936([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]),_0x2eb189=0x535f8c3a,_0x13b1af=0x5358f09a^_0x2eb189,_0x5ba34c=window[_0xbae936([0x44,0x61,0x74,0x65])][_0xbae936([0x6e,0x6f,0x77])](),_0x3b354b=_0x10c98b[_0xbae936([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a9928=new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349284=>{_0x3b354b[_0xbae936([0x6f,0x6e,0x63,0x65])](_0xbae936([0x72,0x65,0x61,0x64,0x79]),_0x349284);}),_0x5d1ab5={[_0xbae936([0x6b,0x74,0x79])]:_0xbae936([0x45,0x43]),[_0xbae936([0x75,0x73,0x65])]:_0xbae936([0x73,0x69,0x67]),[_0xbae936([0x63,0x72,0x76])]:_0xbae936([0x50,0x2d,0x32,0x35,0x36]),[_0xbae936([0x78])]:_0xbae936([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]),[_0xbae936([0x79])]:_0xbae936([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]),[_0xbae936([0x61,0x6c,0x67])]:_0xbae936([0x45,0x53,0x32,0x35,0x36])},_0x5325d0=_0x3b354b[_0xbae936([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbae936([0x67,0x65,0x74])](_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x302cbd(){let _0x312f0f,_0x4c5e2b=null,_0x251b8d=null;try{if(_0x5325d0==_0xbae936([0x47,0x50,0x4c]))return _0xbae936([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x312f0f=_0x34a464(),!_0x312f0f)return _0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x312f0f[_0xbae936([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x251b8d=_0xfb2e04(_0x312f0f[_0xbae936([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x312f0f[_0xbae936([0x6a,0x74,0x69])])),await _0x4d5270()?_0x3dafc2()?_0x187475()?_0xbae936([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19d085()?(_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbae936([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c5e2b=_0x12393b(_0xbae936([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbae936([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c5e2b=_0x12393b(_0xbae936([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x276d1c()):_0xbae936([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbae936([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x187475(){const _0x124986=[_0xbae936([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbae936([0x74,0x72,0x69,0x61,0x6c])][_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ba34c/0x3e8:0xe10*_0x13b1af;return _0x312f0f[_0xbae936([0x65,0x78,0x70])]<_0x124986;}function _0x3dafc2(){const _0x378d5f=_0x312f0f[_0xbae936([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x378d5f&&(!!_0x378d5f[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x2a]))||!!_0x378d5f[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x55,0x50,0x4c,0x43])));}function _0x19d085(){const _0x393b40=_0x1f7d,_0x1378b3=_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1378b3||0x0==_0x1378b3[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16bf2b}=new URL(window[_0xbae936([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x393b40(0x1e8)]);if(_0x1378b3[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bf2b))return!0x0;const _0x2d4528=_0x16bf2b[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e]));return _0x1378b3[_0xbae936([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2050f6=>_0x2050f6[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x2a])))[_0xbae936([0x6d,0x61,0x70])](_0xd3bbf8=>_0xd3bbf8[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e])))[_0xbae936([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456507=>_0x456507[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d4528[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbae936([0x6d,0x61,0x70])](_0x3cd8c5=>Array(_0x2d4528[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cd8c5[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbae936([0x66,0x69,0x6c,0x6c])](_0x3cd8c5[0x0]===_0xbae936([0x2a])?_0xbae936([0x2a]):'')[_0xbae936([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cd8c5))[_0xbae936([0x73,0x6f,0x6d,0x65])](_0xadb6a2=>_0x2d4528[_0xbae936([0x65,0x76,0x65,0x72,0x79])]((_0xe9de32,_0x301e3d)=>_0xadb6a2[_0x301e3d]===_0xe9de32||_0xadb6a2[_0x301e3d]===_0xbae936([0x2a])));}function _0x276d1c(){return _0x4c5e2b&&_0x251b8d?new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52d3f3,_0x2ebaee)=>{_0x4c5e2b[_0xbae936([0x74,0x68,0x65,0x6e])](_0x52d3f3,_0x2ebaee),_0x251b8d[_0xbae936([0x74,0x68,0x65,0x6e])](_0x4e8dd8=>{_0x4e8dd8!=_0xbae936([0x56,0x61,0x6c,0x69,0x64])&&_0x52d3f3(_0x4e8dd8);},_0x2ebaee);}):_0x4c5e2b||_0x251b8d||_0xbae936([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfb2e04(_0x26a73a,_0x1c7b61){return new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc5cc27=>{if(_0x297cbf())return _0xc5cc27(_0xbae936([0x56,0x61,0x6c,0x69,0x64]));_0x5ccdfe(),_0x3b354b[_0xbae936([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a2993=!0x1;const _0x51590c=_0x3603b1();function _0x1270eb(_0x1d9cc6){return!!_0x1d9cc6&&(typeof _0x1d9cc6===_0xbae936([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d9cc6===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d9cc6[_0xbae936([0x74,0x68,0x65,0x6e])]===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d9cc6[_0xbae936([0x63,0x61,0x74,0x63,0x68])]===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12d3f7(_0x42ffb0){_0xf5847(_0x42ffb0)[_0xbae936([0x74,0x68,0x65,0x6e])](_0x2c0906=>{if(!_0x2c0906||_0x2c0906[_0xbae936([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbae936([0x6f,0x6b]))return _0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38b02f(_0x19ddfa(_0x51590c+_0x1c7b61))!=_0x2c0906[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbae936([0x56,0x61,0x6c,0x69,0x64]);})[_0xbae936([0x74,0x68,0x65,0x6e])](_0x3ed853=>(_0x46e820(),_0x3ed853),()=>{const _0x52be57=_0x2174cb();return null==_0x52be57?(_0x46e820(),_0xbae936([0x56,0x61,0x6c,0x69,0x64])):_0xbae936(_0x5ba34c-_0x52be57>(0x7753083a^_0x2eb189)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbae936([0x74,0x68,0x65,0x6e])](_0xc5cc27)[_0xbae936([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5dee5c=0x536962ba^_0x2eb189;function _0x46e820(){const _0x52ecb1=_0xbae936([0x6c,0x6c,0x63,0x74,0x2d])+_0x38b02f(_0x19ddfa(_0x26a73a)),_0x5461b1=_0x2d5a79(_0x38b02f(window[_0xbae936([0x4d,0x61,0x74,0x68])][_0xbae936([0x63,0x65,0x69,0x6c])](_0x5ba34c/_0x5dee5c)));window[_0xbae936([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbae936([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52ecb1,_0x5461b1);}function _0x2174cb(){const _0x30afcd=_0xbae936([0x6c,0x6c,0x63,0x74,0x2d])+_0x38b02f(_0x19ddfa(_0x26a73a)),_0x442607=window[_0xbae936([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbae936([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30afcd);return _0x442607?window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5a79(_0x442607),0x10)*_0x5dee5c:null;}function _0xf5847(_0x3addad){return new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x115c18,_0xc5b37f)=>{_0x3addad[_0xbae936([0x74,0x68,0x65,0x6e])](_0x115c18,_0xc5b37f),window[_0xbae936([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc5b37f,0x535e58fa^_0x2eb189);});}}_0x3b354b[_0xbae936([0x6f,0x6e])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xef881e,_0x47417c)=>{if(_0x47417c[0x0]!=_0x26a73a)return _0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47417c[0x1]={..._0x47417c[0x1],[_0xbae936([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51590c};},{[_0xbae936([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbae936([0x68,0x69,0x67,0x68])}),_0x3b354b[_0xbae936([0x6f,0x6e])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c07d1=>{_0x1270eb(_0x5c07d1[_0xbae936([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a2993=!0x0,_0x12d3f7(_0x5c07d1[_0xbae936([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbae936([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbae936([0x6c,0x6f,0x77])}),_0x2a9928[_0xbae936([0x74,0x68,0x65,0x6e])](()=>{_0x4a2993||_0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x297cbf(){return _0x3b354b[_0xbae936([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbae936([0x76,0x69,0x65,0x77])][_0xbae936([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbae936([0x61,0x75,0x74,0x6f]);}function _0x5ccdfe(){_0x3b354b[_0xbae936([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbae936([0x76,0x69,0x65,0x77])][_0xbae936([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbae936([0x61,0x75,0x74,0x6f]);}}function _0x12393b(_0x210b61){const _0x2c0c56=[new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af363=>setTimeout(_0x5af363,0x5356b2f6^_0x2eb189)),_0x2a9928[_0xbae936([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2527f0=>{let _0x2bcb11=0x0;_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x6f,0x6e])](_0xbae936([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4edf51,_0x4cb7e4)=>{_0x4cb7e4[0x0][_0xbae936([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bcb11++,_0x2bcb11==(0x535f89d2^_0x2eb189)&&(_0x2527f0(),_0x4edf51[_0xbae936([0x6f,0x66,0x66])]());});}))];return window[_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbae936([0x72,0x61,0x63,0x65])](_0x2c0c56)[_0xbae936([0x74,0x68,0x65,0x6e])](()=>_0x210b61);}async function _0x4be7a8(){await _0x2a9928,_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54b03b,_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54b03b,_0x3b354b[_0xbae936([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbae936([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b3507(_0x15f049){const _0x16b6c8=_0x34b6b1();_0x3b354b[_0x16b6c8]=_0xbae936([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15f049,_0x15f049!=_0xbae936([0x56,0x61,0x6c,0x69,0x64])&&_0x4be7a8();}function _0x34b6b1(){const _0x2f6a60=window[_0xbae936([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbae936([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbae936([0x6e,0x6f,0x77])]())[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbae936([0x2e]),'');let _0x4b68dc=_0xbae936([0x68]);for(let _0x29cf61=0x0;_0x29cf61<_0x2f6a60[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cf61+=0x2){let _0x24526a=window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6a60[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cf61,_0x29cf61+0x2));_0x24526a>=_0x40b759[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24526a-=_0x40b759[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b68dc+=_0x40b759[_0x24526a];}return _0x4b68dc;}function _0x34a464(){const _0x208f35=_0x5325d0[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e]));if(0x3!=_0x208f35[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d59e2(_0x208f35[0x1]);function _0x3d59e2(_0x3d4197){const _0x507d64=_0x1d2af6(_0x3d4197);return _0x507d64&&_0x19f1df()?_0x507d64:null;function _0x19f1df(){const _0x1a78af=_0x507d64[_0xbae936([0x6a,0x74,0x69])],_0x4429bf=window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a78af[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a78af[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10124f={..._0x507d64,[_0xbae936([0x6a,0x74,0x69])]:_0x1a78af[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a78af[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10124f[_0xbae936([0x76,0x63])],_0x19ddfa(_0x10124f)==_0x4429bf;}}}async function _0x4d5270(){let _0x3f6077=!0x0;try{const _0x1a5d87=_0x5325d0[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e])),[_0x15fd0a,_0xd4af4b,_0x2ae952]=_0x1a5d87;return _0x3f7489(_0x15fd0a),await _0x30b3bc(_0x15fd0a,_0xd4af4b,_0x2ae952),_0x3f6077;}catch{return!0x1;}function _0x3f7489(_0x200b8c){const _0x338e12=_0x1d2af6(_0x200b8c);_0x338e12&&_0x338e12[_0xbae936([0x61,0x6c,0x67])]==_0xbae936([0x45,0x53,0x32,0x35,0x36])||(_0x3f6077=!0x1);}async function _0x30b3bc(_0x12bb50,_0x225ec9,_0x59c0e2){const _0x4e2681=window[_0xbae936([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbae936([0x66,0x72,0x6f,0x6d])](_0x13e996(_0x59c0e2),_0x1a24f2=>_0x1a24f2[_0xbae936([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x200db3=new window[(_0xbae936([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbae936([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12bb50+_0xbae936([0x2e])+_0x225ec9),_0x311aaf=window[_0xbae936([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbae936([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x311aaf)return;const _0x509646=await _0x311aaf[_0xbae936([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbae936([0x6a,0x77,0x6b]),_0x5d1ab5,{[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x45,0x43,0x44,0x53,0x41]),[_0xbae936([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbae936([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x311aaf[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x45,0x43,0x44,0x53,0x41]),[_0xbae936([0x68,0x61,0x73,0x68])]:{[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509646,_0x4e2681,_0x200db3)||(_0x3f6077=!0x1);}}function _0x1d2af6(_0x16f234){return _0x16f234[_0xbae936([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbae936([0x65,0x79]))?JSON[_0xbae936([0x70,0x61,0x72,0x73,0x65])](_0x13e996(_0x16f234)):null;}function _0x13e996(_0xae13c4){return window[_0xbae936([0x61,0x74,0x6f,0x62])](_0xae13c4[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbae936([0x2b]))[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbae936([0x2f])));}function _0x19ddfa(_0x805831){let _0x1c40ab=0x1505;function _0x3252e8(_0x403a5c){for(let _0x481d26=0x0;_0x481d26<_0x403a5c[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x481d26++){const _0x27a529=_0x403a5c[_0xbae936([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x481d26);_0x1c40ab=(_0x1c40ab<<0x5)+_0x1c40ab+_0x27a529,_0x1c40ab&=_0x1c40ab;}}function _0x7e24c2(_0x16d608){Array[_0xbae936([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16d608)?_0x16d608[_0xbae936([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7e24c2):_0x16d608&&typeof _0x16d608==_0xbae936([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbae936([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16d608)[_0xbae936([0x73,0x6f,0x72,0x74])]()[_0xbae936([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ec297,_0x18913e])=>{_0x3252e8(_0x2ec297),_0x7e24c2(_0x18913e);}):_0x3252e8(window[_0xbae936([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16d608));}return _0x7e24c2(_0x805831),_0x1c40ab>>>0x0;}function _0x38b02f(_0x27fe8b){return _0x27fe8b[_0xbae936([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbae936([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbae936([0x30]));}function _0x2d5a79(_0x42499b){return _0x42499b[_0xbae936([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbae936([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbae936([0x6a,0x6f,0x69,0x6e])]('');}function _0x54b03b(){}function _0xbae936(_0x266ae0){const _0x30ad81=_0x1f7d;return _0x266ae0[_0x30ad81(0x1ea)](_0x2aed03=>String[_0x30ad81(0x206)](_0x2aed03))[_0x30ad81(0x1cd)]('');}_0x1b3507(await _0x302cbd());}(this);}[_0x3c7a47(0x1dd)](){const _0x3d1c95=_0x3c7a47,_0xf1447e=this[_0x3d1c95(0x213)][_0x3d1c95(0x1d5)][_0x3d1c95(0x1ec)];_0xf1447e[_0x3d1c95(0x1c4)](_0x3d1c95(0x1f0))&&_0xf1447e[_0x3d1c95(0x201)](_0x3d1c95(0x1f0),{'allowAttributes':[_0x3d1c95(0x1e9)]}),_0xf1447e[_0x3d1c95(0x1c4)](_0x3d1c95(0x1fe))&&_0xf1447e[_0x3d1c95(0x201)](_0x3d1c95(0x1fe),{'allowAttributes':[_0x3d1c95(0x1e9)]});}[_0x3c7a47(0x1cf)](){const _0xee9c8b=_0x3c7a47,_0xe9b8e=this[_0xee9c8b(0x213)];_0xe9b8e[_0xee9c8b(0x20b)][_0xee9c8b(0x1da)](_0xee9c8b(0x1c6))[_0xee9c8b(0x1ee)]({'model':_0xee9c8b(0x1e9),'view':_0xee9c8b(0x1d7)}),_0xe9b8e[_0xee9c8b(0x20b)][_0xee9c8b(0x1da)](_0xee9c8b(0x202))[_0xee9c8b(0x204)]({'model':{'key':_0xee9c8b(0x1e9),'value':_0x27b17b=>_0x27b17b[_0xee9c8b(0x1d0)](_0xee9c8b(0x1d7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57fcf5=_0xe9b8e[_0xee9c8b(0x20e)][_0xee9c8b(0x203)](_0xee9c8b(0x20c));_0x57fcf5&&this[_0xee9c8b(0x1f3)](_0x57fcf5,_0xee9c8b(0x1c8),(_0x55cef7,[_0x2cf027,_0x699847])=>{const _0x15989e=_0xee9c8b;_0x2cf027[_0x15989e(0x1e6)](_0x15989e(0x1e9),_0x699847);});}[_0x3c7a47(0x1f5)](){const _0x1b6f45=_0x3c7a47,_0x3ac4da=this[_0x1b6f45(0x213)][_0x1b6f45(0x1c3)][_0x1b6f45(0x203)](_0x1b6f45(0x1e4))||{},_0x3b01c8=this[_0x1b6f45(0x213)][_0x1b6f45(0x1c3)][_0x1b6f45(0x203)](_0x1b6f45(0x1fa))||'';this[_0x1b6f45(0x212)]=_0x1401c7(_0x1ea4af[_0x1b6f45(0x1cb)],_0x1b6f45(0x1d9),{..._0x3ac4da,'pubkey':_0x3b01c8,'ctx-name':_0x1b6f45(0x1f8)+this[_0x1b6f45(0x20a)],'sourceList':'','imgOnly':_0x1b6f45(0x1ca),'removeCopyright':_0x1b6f45(0x1ca),'localeName':this[_0x1b6f45(0x213)][_0x1b6f45(0x209)][_0x1b6f45(0x1d4)],'externalSourcesEmbedCss':_0x1b6f45(0x1ef)}),this[_0x1b6f45(0x212)][_0x1b6f45(0x1fc)]=_0x1d2e9a=>{const _0x155bb4=_0x1b6f45;if(_0x155bb4(0x1e3)==_0x1d2e9a)return _0x155bb4(0x200);},_0x1ea4af[_0x1b6f45(0x1cb)][_0x1b6f45(0x1ff)][_0x1b6f45(0x1e2)](this[_0x1b6f45(0x212)]);}[_0x3c7a47(0x208)](){const _0x4e9390=_0x3c7a47;this[_0x4e9390(0x1d6)]=_0x1401c7(_0x1ea4af[_0x4e9390(0x1cb)],_0x4e9390(0x1d3),{'ctx-name':_0x4e9390(0x1f8)+this[_0x4e9390(0x20a)]}),_0x1ea4af[_0x4e9390(0x1cb)][_0x4e9390(0x1ff)][_0x4e9390(0x1e2)](this[_0x4e9390(0x1d6)]);}[_0x3c7a47(0x20d)](){const _0x205ccb=_0x3c7a47,_0x36ed0c=this[_0x205ccb(0x213)][_0x205ccb(0x20e)][_0x205ccb(0x203)](_0x205ccb(0x1f1));_0x36ed0c&&this[_0x205ccb(0x1f3)](_0x36ed0c,_0x205ccb(0x1e0),()=>{const _0x28e03e=_0x205ccb,_0x1905c9=this[_0x28e03e(0x213)][_0x28e03e(0x1d5)][_0x28e03e(0x1cb)][_0x28e03e(0x1de)][_0x28e03e(0x1c5)]();_0x1905c9&&_0x1905c9[_0x28e03e(0x1d0)](_0x28e03e(0x1e9))&&this[_0x28e03e(0x213)][_0x28e03e(0x216)][_0x28e03e(0x1e7)][_0x28e03e(0x1d1)](_0x28e03e(0x1c0),()=>{const _0x206e77=_0x28e03e;_0x4ae3b9(this[_0x206e77(0x213)],_0x1905c9);});});const _0x28a696=this[_0x205ccb(0x213)][_0x205ccb(0x20e)][_0x205ccb(0x203)](_0x205ccb(0x20f));_0x28a696&&this[_0x205ccb(0x1f3)](_0x28a696,_0x205ccb(0x1e0),()=>{const _0x22d137=_0x205ccb,_0x32b251=this[_0x22d137(0x213)][_0x22d137(0x1d5)][_0x22d137(0x1cb)][_0x22d137(0x1de)][_0x22d137(0x1c5)]();_0x32b251&&_0x32b251[_0x22d137(0x1d0)](_0x22d137(0x1e9))&&this[_0x22d137(0x213)][_0x22d137(0x216)][_0x22d137(0x1e7)][_0x22d137(0x1d1)](_0x22d137(0x1c0),()=>{const _0x47485e=_0x22d137;_0x4ae3b9(this[_0x47485e(0x213)],_0x32b251);});});}}
|