@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250920.0 → 0.0.0-nightly-20250922.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 _0x108b89,Command as _0x33bd10}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x8a6980,IconGooglePhotos as _0x32845b,IconGoogleDrive as _0x4cf376,IconFacebook as _0x30d35a,IconDropbox as _0x14879a,IconUploadcareLink as _0x107ab1,IconUploadcareImageUpload as _0x5299d2,IconError as _0x4da509,IconUploadcareImageEdit as _0x1e82f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd4b68c,MenuBarMenuListItemButtonView as _0x21602b,View as _0x2ff5d5,FocusCycler as _0x4fd6e0,Dialog as _0x11b1e1,DialogViewPosition as _0x31fe82,SpinnerView as _0x88d7a6,IconView as _0xeb9607,Notification as _0x293896}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x42b0cf,DomEmitterMixin as _0x596efd,global as _0x255c88,getAncestors as _0x53174c,ObservableMixin as _0x5d44f0,uid as _0x19b48d,createElement as _0x28a297}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x40e81f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a72e0,info as _0x4565d4}from'@uploadcare/upload-client';import*as _0xb07fa0 from'@uploadcare/file-uploader';var i=function(_0x5d1595){return _0x5d1595['Local']='local',_0x5d1595['URL']='url',_0x5d1595['Dropbox']='dropbox',_0x5d1595['GDrive']='gdrive',_0x5d1595['Facebook']='facebook',_0x5d1595['GPhotos']='gphotos',_0x5d1595['OneDrive']='onedrive',_0x5d1595;}({});function _(_0x485eee,_0x2d0945,_0xcdeebd){const t=_0x485eee['t'],_0x5b7cff=_0x485eee['t'];switch(_0x2d0945){case i['Local']:return{'text':_0x5b7cff('Insert'===_0xcdeebd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b7cff('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcdeebd?_0x5b7cff('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b7cff('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d0945;}}class e extends _0x108b89{['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 _0x232cff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49b099;for(const _0x3f6392 in _0x232cff){const _0x34bba2=_0x3f6392,_0xf6d923=_0x232cff[_0x34bba2];if('uploadcareLicenseKeyValid'==_0xf6d923||'uploadcareLicenseKeyInvalid'==_0xf6d923||'uploadcareLicenseKeyExpired'==_0xf6d923||'uploadcareLicenseKeyDomainLimit'==_0xf6d923||'uploadcareLicenseKeyNotAllowed'==_0xf6d923||'uploadcareLicenseKeyEvaluationLimit'==_0xf6d923||'uploadcareLicenseKeyTrialLimit'==_0xf6d923||'uploadcareLicenseKeyUsageLimit'==_0xf6d923){delete _0x232cff[_0x34bba2],_0x49b099=_0xf6d923,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x49b099&&_0x232cff['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x49b099&&_0x232cff['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x49b099&&_0x232cff['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x49b099&&_0x232cff['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x49b099&&_0x232cff['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x49b099&&_0x232cff['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x49b099&&_0x232cff['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5211ff}=this,_0x11cb94=_0x5211ff['commands']['get']('uploadcare');if(!_0x11cb94)return;const _0x28aa91=this['_normalizeConfigSourceList'](_0x5211ff['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2dc76b,_0x464b61)=>{const _0xc51c51=this['_getIntegrationKey'](_0x464b61['type']);return _0x2dc76b[_0xc51c51]||(_0x2dc76b[_0xc51c51]=[]),_0x2dc76b[_0xc51c51]['push'](_0x464b61),_0x2dc76b;},{});_0x5211ff['plugins']['has']('ImageInsertUI')&&_0x5211ff['commands']['get']('uploadcare')&&Object['entries'](_0x28aa91)['forEach'](([_0x26d9c6,_0x5c58d0])=>{_0x5211ff['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x26d9c6,'observable':()=>_0x11cb94,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5c58d0),'formViewCreator':()=>this['_createDropdownButtons'](_0x5c58d0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5c58d0),'override':'assetManager'!==_0x26d9c6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2fe786){const {locale:_0x55f941}=this['editor'];return _0x2fe786['map'](_0x1e6b86=>{const _0x5db8ec=_(_0x55f941,_0x1e6b86,'Insert');switch(_0x1e6b86){case i['Local']:return{'icon':_0x5299d2,'type':i['Local'],..._0x5db8ec};case i['URL']:return{'icon':_0x107ab1,'type':i['URL'],..._0x5db8ec};case i['Dropbox']:return{'icon':_0x14879a,'type':i['Dropbox'],..._0x5db8ec};case i['Facebook']:return{'icon':_0x30d35a,'type':i['Facebook'],..._0x5db8ec};case i['GDrive']:return{'icon':_0x4cf376,'type':i['GDrive'],..._0x5db8ec};case i['GPhotos']:return{'icon':_0x32845b,'type':i['GPhotos'],..._0x5db8ec};case i['OneDrive']:return{'icon':_0x8a6980,'type':i['OneDrive'],..._0x5db8ec};}});}['_getIntegrationKey'](_0x3ce3df){switch(_0x3ce3df){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1df32b,_0x5e717c){const _0x2cf2a9=this['editor'],_0x768ccb=new _0x1df32b(_0x2cf2a9['locale']),_0x171c07=_0x2cf2a9['commands']['get']('uploadcare');return _0x768ccb['bind']('isEnabled')['to'](_0x171c07),_0x768ccb['on']('execute',()=>{_0x171c07['execute'](_0x5e717c);}),_0x768ccb;}['_createToolbarButton'](_0x307d2b){const {locale:_0x3e953a}=this['editor'],_0x35a573=this['editor']['plugins']['get']('ImageInsertUI'),_0x3aa6af=_0x307d2b[0x0],_0x2d7080=this['_createButton'](_0xd4b68c,_0x3aa6af['type']);return _0x2d7080['icon']=_0x3aa6af['icon'],_0x2d7080['bind']('label')['to'](_0x35a573,'isImageSelected',_0x687a02=>_(_0x3e953a,_0x3aa6af['type'],_0x687a02?'Replace':'Insert')['text']),_0x2d7080['tooltip']=!0x0,_0x2d7080;}['_createDropdownButtons'](_0x5dcc20){const {locale:_0x1acba2}=this['editor'],_0x227e67=this['editor']['plugins']['get']('ImageInsertUI');return _0x5dcc20['map'](_0xe9321c=>{const _0x14e146=this['_createButton'](_0xd4b68c,_0xe9321c['type']);return _0x14e146['withText']=!0x0,_0x14e146['icon']=_0xe9321c['icon'],_0x14e146['bind']('label')['to'](_0x227e67,'isImageSelected',_0x376d95=>_(_0x1acba2,_0xe9321c['type'],_0x376d95?'Replace':'Insert')['text']),_0x14e146;});}['_createMenuBarButtons'](_0x3189d3){return _0x3189d3['map'](_0x3b5fa6=>{const _0x2c1313=this['_createButton'](_0x21602b,_0x3b5fa6['type']);return _0x2c1313['icon']=_0x3b5fa6['icon'],_0x2c1313['label']=_0x3b5fa6['shortText'],_0x2c1313;});}}class F extends _0x2ff5d5{['focusTracker'];['focusCycler'];constructor(_0x5725ed){super(_0x5725ed),this['focusTracker']=new _0x42b0cf(),this['focusCycler']=new _0x4fd6e0({'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(_0x7d8794,_0x276c96){super(_0x7d8794),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-'+_0x276c96}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x585ea5,_0xa6a661){const _0x228ea0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x312950=>_0x312950<=_0xa6a661)['map'](_0x895fde=>_0x585ea5['replace'](/\/$/,'')+'/-/resize/'+_0x895fde+'x/\x20'+_0x895fde+'w');return{'imageFallbackUrl':_0x585ea5,'imageSources':[{'srcset':_0x228ea0['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa6a661+'px)\x20100vw,\x20'+_0xa6a661+'px','type':'image/webp'}]};}function S(_0x202fec,_0xae859a,_0xf2351c){const _0x1c0a52=_0x202fec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c0a52?parseInt(_0x1c0a52[0x1],0xa):_0xae859a,'height':_0x1c0a52?parseInt(_0x1c0a52[0x2],0xa):_0xf2351c};}function p(_0x1f8a47,_0x1a5100){const _0x209d6c=new(_0x596efd())(),_0x2502cf=_0x1f8a47['plugins']['get']('ImageUtils'),_0x3a8ede=_0x1f8a47['editing']['mapper']['toViewElement'](_0x1a5100),_0x47b15e=_0x2502cf['findViewImgElement'](_0x3a8ede),_0x31f6f9=_0x1f8a47['editing']['view']['domConverter']['viewToDom'](_0x47b15e),_0x50db90=_0x1a5100['getAttribute']('width'),_0x3c9214=_0x1a5100['getAttribute']('height'),_0x36ff0a='image-processing';_0x1f8a47['editing']['view']['change'](_0x3d371a=>{_0x3d371a['addClass'](_0x36ff0a,_0x3a8ede),_0x3d371a['setStyle']('aspect-ratio',_0x50db90+'/'+_0x3c9214,_0x47b15e);}),_0x209d6c['listenTo'](_0x31f6f9,'load',()=>{_0x209d6c['stopListening'](_0x31f6f9,'load'),_0x1f8a47['editing']['view']['change'](_0x28dd8b=>{_0x28dd8b['removeClass'](_0x36ff0a,_0x3a8ede),_0x28dd8b['removeStyle']('aspect-ratio',_0x47b15e);});});}function G(_0xf37830){if(Array['isArray'](_0xf37830)){const _0x83dd12=_0xf37830['map'](G);return _0x2b540b=>_0x83dd12['some'](_0x2c5ffe=>_0x2c5ffe(_0x2b540b));}if('origin'==_0xf37830){const _0x251056=_0x255c88['window']['location']['origin'];return _0xe7a983=>new URL(_0xe7a983,_0x255c88['document']['baseURI'])['origin']==_0x251056;}return'function'==typeof _0xf37830?_0xf37830:_0xf37830 instanceof RegExp?_0x239e6e=>!(!_0x239e6e['match'](_0xf37830)&&!_0x239e6e['replace'](/^https?:\/\//,'')['match'](_0xf37830)):()=>!0x1;}function A(_0x418189,_0x42ec23){return _0x53174c(_0x418189['target'])['includes'](_0x42ec23);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5d44f0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x437de9,_0x2ff38c,_0x3823d2){super(),this['_editor']=_0x437de9,this['_editing']=_0x2ff38c,this['_dialog']=_0x437de9['plugins']['get'](_0x11b1e1),this['_api']=_0x2ff38c['ctxElement']['getAPI'](),this['_type']=_0x3823d2,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:_0x35ba8a,model:_0x29848a}=this['_editor'],_0x41188f=_0x29848a['document']['selection']['getSelectedElement'](),_0x1882ed=_0x41188f&&(_0x41188f['is']('element','imageBlock')||_0x41188f['is']('element','imageInline'));this['_formView']=new x(_0x35ba8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5299d2,'title':_(_0x35ba8a,this['_type'],_0x1882ed?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4dd9e4=>!A(_0x4dd9e4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x12e96b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1028f2=>{const _0x23f784=_0x12e96b['length'];for(const _0x21f43e of _0x12e96b){const _0xf5fed4=_0x21f43e===_0x12e96b[_0x23f784-0x1],{cdnUrl:_0x537afd,fileInfo:_0x230250}=_0x21f43e;if(!_0x537afd||!_0x230250)continue;const {width:_0x161da5,height:_0x425d63}=_0x230250['imageInfo'],_0x46e517=S(_0x537afd,_0x161da5,_0x425d63),_0x467dad=C(_0x537afd,_0x46e517['width']),_0x24e556={'id':_0x230250['uuid'],'type':'image','attributes':{'imageDimension':_0x46e517,..._0x467dad}};this['_insertAsset'](_0x24e556,_0xf5fed4,_0x1028f2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x42158d=>{'idle'===_0x42158d['detail']['status']&&!_0x42158d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x109f37,_0x5c1ce8,_0x5e2d7b){const _0xaf10a3=this['_editor']['model']['document']['selection'],_0x99dc46=_0xaf10a3['getSelectedElement'](),_0x19f9ac=!(!_0x99dc46||!_0x99dc46['is']('element','imageInline'));_0x5e2d7b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x109f37,_0x19f9ac),_0x5c1ce8||_0x5e2d7b['setSelection'](_0xaf10a3['getLastPosition']());}['_insertImage'](_0x3b235d,_0x482b00){const _0x466abe=this['_editor'],{imageDimension:_0x28b29d,imageFallbackUrl:_0x5b526f,imageSources:_0x49ee17}=_0x3b235d['attributes'];_0x466abe['execute']('insertImage',{'imageType':_0x482b00?'imageInline':null,'source':{'uploadcareImageId':_0x3b235d['id'],'src':_0x5b526f,'sources':_0x49ee17,..._0x28b29d}});}}class w extends _0x33bd10{['_editing'];['_controller']=null;static get['requires'](){return[_0x11b1e1,o];}constructor(_0x5c7437){super(_0x5c7437),this['_editing']=_0x5c7437['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2cb995){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2cb995);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcb4033,..._0x3af75d}){return _0x1a72e0(_0xcb4033,_0x3af75d);}static['getInfo'](_0x3a83ec,_0x139f20){return _0x4565d4(_0x3a83ec,_0x139f20);}}class f extends _0x108b89{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x40e81f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x583125=this['editor'];if(!!!_0x583125['config']['get']('uploadcare'))return;_0x583125['plugins']['get'](_0x40e81f)['createUploadAdapter']=_0x59a479=>new k(_0x59a479,_0x583125),_0x583125['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32e1ab,{imageElement:_0x4a2ad4,data:_0x4ddc94})=>{_0x583125['model']['change'](_0x33ca31=>{_0x33ca31['setAttribute']('uploadcareImageId',_0x4ddc94['uploadcareImageId'],_0x4a2ad4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5a661d,_0x54cc0f){this['loader']=_0x5a661d,this['editor']=_0x54cc0f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9d89f7=await this['loader']['file'];return j['upload']({'file':_0x9d89f7,'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':_0x48eb25=>{_0x48eb25&&_0x48eb25['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x48eb25['value']);}})['then'](async _0x4180dd=>{const {imageFallbackUrl:_0x552b03,imageSources:_0x2a2804}=C(_0x4180dd['cdnUrl'],_0x4180dd['imageInfo']['width']);return{'uploadcareImageId':_0x4180dd['uuid'],'default':_0x552b03,'sources':_0x2a2804};})['catch'](()=>{const _0x3fb6b0=t('Cannot\x20upload\x20file:')+('\x20'+_0x9d89f7['name']+'.');return Promise['reject'](_0x3fb6b0);});}['abort'](){this['controller']['abort']();}}class o extends _0x108b89{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x11b1e1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ca3ac){super(_0x3ca3ac),this['ucContextId']=_0x19b48d();}['init'](){const _0x45f9d6=this['editor'];_0x45f9d6['commands']['add']('uploadcare',new w(_0x45f9d6));}['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 _0x1aa8b4=_0x255c88['document']['querySelector']('input[uploadcare-file-input]');_0x1aa8b4&&_0x1aa8b4['remove']();}),async function(_0x9073b3){const _0x330121=_0x1477b4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x47c2f2=0x3d8d0df,_0x2e03cc=0x3dfa337^_0x47c2f2,_0x3fe41a=window[_0x1477b4([0x44,0x61,0x74,0x65])][_0x1477b4([0x6e,0x6f,0x77])](),_0x1d33d2=_0x9073b3[_0x1477b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c9a0d=new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23063b=>{_0x1d33d2[_0x1477b4([0x6f,0x6e,0x63,0x65])](_0x1477b4([0x72,0x65,0x61,0x64,0x79]),_0x23063b);}),_0x166697={[_0x1477b4([0x6b,0x74,0x79])]:_0x1477b4([0x45,0x43]),[_0x1477b4([0x75,0x73,0x65])]:_0x1477b4([0x73,0x69,0x67]),[_0x1477b4([0x63,0x72,0x76])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36]),[_0x1477b4([0x78])]:_0x1477b4([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]),[_0x1477b4([0x79])]:_0x1477b4([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]),[_0x1477b4([0x61,0x6c,0x67])]:_0x1477b4([0x45,0x53,0x32,0x35,0x36])},_0x46755a=_0x1d33d2[_0x1477b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1477b4([0x67,0x65,0x74])](_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d33c3(){let _0x17a9f4,_0x59e565=null,_0x58dd0e=null;try{if(_0x46755a==_0x1477b4([0x47,0x50,0x4c]))return _0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a9f4=_0x5084ea(),!_0x17a9f4)return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58dd0e=_0x507b98(_0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a9f4[_0x1477b4([0x6a,0x74,0x69])])),await _0x363e77()?_0x607500()?_0x291b44()?_0x1477b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x485255()?(_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59e565=_0x378169(_0x1477b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x59e565=_0x378169(_0x1477b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x487e5f()):_0x1477b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x291b44(){const _0x25cda6=[_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1477b4([0x74,0x72,0x69,0x61,0x6c])][_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fe41a/0x3e8:0xe10*_0x2e03cc;return _0x17a9f4[_0x1477b4([0x65,0x78,0x70])]<_0x25cda6;}function _0x607500(){const _0x1d9d08=_0x17a9f4[_0x1477b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d9d08&&(!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a]))||!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x55,0x50,0x4c,0x43])));}function _0x485255(){const _0x242e30=_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x242e30||0x0==_0x242e30[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44fa73}=new URL(window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x242e30[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44fa73))return!0x0;const _0x2a39f1=_0x44fa73[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));return _0x242e30[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4f64=>_0x3f4f64[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a])))[_0x1477b4([0x6d,0x61,0x70])](_0x467103=>_0x467103[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])))[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x171ab7=>_0x171ab7[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x6d,0x61,0x70])](_0xc098c4=>Array(_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc098c4[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x66,0x69,0x6c,0x6c])](_0xc098c4[0x0]===_0x1477b4([0x2a])?_0x1477b4([0x2a]):'')[_0x1477b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc098c4))[_0x1477b4([0x73,0x6f,0x6d,0x65])](_0x13a190=>_0x2a39f1[_0x1477b4([0x65,0x76,0x65,0x72,0x79])]((_0x596b83,_0x3b3c81)=>_0x13a190[_0x3b3c81]===_0x596b83||_0x13a190[_0x3b3c81]===_0x1477b4([0x2a])));}function _0x487e5f(){return _0x59e565&&_0x58dd0e?new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116067,_0x30abc9)=>{_0x59e565[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x116067,_0x30abc9),_0x58dd0e[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x211194=>{_0x211194!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x116067(_0x211194);},_0x30abc9);}):_0x59e565||_0x58dd0e||_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x507b98(_0x421121,_0x27a54d){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127730=>{if(_0x28aaf7())return _0x127730(_0x1477b4([0x56,0x61,0x6c,0x69,0x64]));_0x48a339(),_0x1d33d2[_0x1477b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31608c=!0x1;const _0x5a0d76=_0x19b48d();function _0x3552da(_0xb2b050){return!!_0xb2b050&&(typeof _0xb2b050===_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2b050===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2b050[_0x1477b4([0x74,0x68,0x65,0x6e])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2b050[_0x1477b4([0x63,0x61,0x74,0x63,0x68])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x365974(_0x6d1371){_0x3ff4af(_0x6d1371)[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x2f9df2=>{if(!_0x2f9df2||_0x2f9df2[_0x1477b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1477b4([0x6f,0x6b]))return _0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45bb61(_0x2c2904(_0x5a0d76+_0x27a54d))!=_0x2f9df2[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x4b9094=>(_0x4bb0a6(),_0x4b9094),()=>{const _0x39f036=_0x2be099();return null==_0x39f036?(_0x4bb0a6(),_0x1477b4([0x56,0x61,0x6c,0x69,0x64])):_0x1477b4(_0x3fe41a-_0x39f036>(0x27d454df^_0x47c2f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x127730)[_0x1477b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336ddf=0x3ee3e5f^_0x47c2f2;function _0x4bb0a6(){const _0x1bb0d0=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0x18e725=_0x27bad1(_0x45bb61(window[_0x1477b4([0x4d,0x61,0x74,0x68])][_0x1477b4([0x63,0x65,0x69,0x6c])](_0x3fe41a/_0x336ddf)));window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb0d0,_0x18e725);}function _0x2be099(){const _0x14cfa2=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0xab7e18=window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14cfa2);return _0xab7e18?window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27bad1(_0xab7e18),0x10)*_0x336ddf:null;}function _0x3ff4af(_0x2917a0){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16dd05,_0x1f0e1f)=>{_0x2917a0[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x16dd05,_0x1f0e1f),window[_0x1477b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f0e1f,0x3d9041f^_0x47c2f2);});}}_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x95c10a,_0x5d7008)=>{if(_0x5d7008[0x0]!=_0x421121)return _0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d7008[0x1]={..._0x5d7008[0x1],[_0x1477b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a0d76};},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x68,0x69,0x67,0x68])}),_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186897=>{_0x3552da(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31608c=!0x0,_0x365974(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x6c,0x6f,0x77])}),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>{_0x31608c||_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28aaf7(){return _0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1477b4([0x61,0x75,0x74,0x6f]);}function _0x48a339(){_0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1477b4([0x61,0x75,0x74,0x6f]);}}function _0x378169(_0x4a15be){const _0x5c80df=[new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x69eb78=>setTimeout(_0x69eb78,0x3d1ee13^_0x47c2f2)),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584237=>{let _0x301a54=0x0;_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x6f,0x6e])](_0x1477b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368ae7,_0x16e1ec)=>{_0x16e1ec[0x0][_0x1477b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x301a54++,_0x301a54==(0x3d8d127^_0x47c2f2)&&(_0x584237(),_0x368ae7[_0x1477b4([0x6f,0x66,0x66])]());});}))];return window[_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1477b4([0x72,0x61,0x63,0x65])](_0x5c80df)[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>_0x4a15be);}async function _0x138b47(){await _0x1c9a0d,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ed7aa(_0x5cf009){const _0x33de44=_0x4a8a6c();_0x1d33d2[_0x33de44]=_0x1477b4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5cf009,_0x5cf009!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x138b47();}function _0x4a8a6c(){const _0x3036fa=window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1477b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1477b4([0x6e,0x6f,0x77])]())[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1477b4([0x2e]),'');let _0x59997c=_0x1477b4([0x52]);for(let _0xcbf5ec=0x0;_0xcbf5ec<_0x3036fa[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcbf5ec+=0x2){let _0x560e90=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3036fa[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcbf5ec,_0xcbf5ec+0x2));_0x560e90>=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x560e90-=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59997c+=_0x330121[_0x560e90];}return _0x59997c;}function _0x5084ea(){const _0x352af1=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));if(0x3!=_0x352af1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43b727(_0x352af1[0x1]);function _0x43b727(_0x2a6de0){const _0x136345=_0x239ee6(_0x2a6de0);return _0x136345&&_0xf89870()?_0x136345:null;function _0xf89870(){const _0x212f47=_0x136345[_0x1477b4([0x6a,0x74,0x69])],_0x549d14=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36f0a8={..._0x136345,[_0x1477b4([0x6a,0x74,0x69])]:_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36f0a8[_0x1477b4([0x76,0x63])],_0x2c2904(_0x36f0a8)==_0x549d14;}}}async function _0x363e77(){let _0x270251=!0x0;try{const _0x42abb6=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])),[_0x577eff,_0x3c3d06,_0x3a0c2a]=_0x42abb6;return _0x28ef6f(_0x577eff),await _0x15a183(_0x577eff,_0x3c3d06,_0x3a0c2a),_0x270251;}catch{return!0x1;}function _0x28ef6f(_0x5b6f8e){const _0x26ac7b=_0x239ee6(_0x5b6f8e);_0x26ac7b&&_0x26ac7b[_0x1477b4([0x61,0x6c,0x67])]==_0x1477b4([0x45,0x53,0x32,0x35,0x36])||(_0x270251=!0x1);}async function _0x15a183(_0x196ca3,_0x10bf6f,_0x4bafc6){const _0x615366=window[_0x1477b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1477b4([0x66,0x72,0x6f,0x6d])](_0x200161(_0x4bafc6),_0x6625fc=>_0x6625fc[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x165321=new window[(_0x1477b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1477b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x196ca3+_0x1477b4([0x2e])+_0x10bf6f),_0x1007f6=window[_0x1477b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1477b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1007f6)return;const _0x232952=await _0x1007f6[_0x1477b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1477b4([0x6a,0x77,0x6b]),_0x166697,{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1007f6[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x68,0x61,0x73,0x68])]:{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x232952,_0x615366,_0x165321)||(_0x270251=!0x1);}}function _0x239ee6(_0x3cb163){return _0x3cb163[_0x1477b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1477b4([0x65,0x79]))?JSON[_0x1477b4([0x70,0x61,0x72,0x73,0x65])](_0x200161(_0x3cb163)):null;}function _0x200161(_0xc91dd2){return window[_0x1477b4([0x61,0x74,0x6f,0x62])](_0xc91dd2[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1477b4([0x2b]))[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1477b4([0x2f])));}function _0x2c2904(_0x2393b5){let _0x124f6e=0x1505;function _0x4f2427(_0x182015){for(let _0x4e49e8=0x0;_0x4e49e8<_0x182015[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e49e8++){const _0x7f016f=_0x182015[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e49e8);_0x124f6e=(_0x124f6e<<0x5)+_0x124f6e+_0x7f016f,_0x124f6e&=_0x124f6e;}}function _0x4bbf98(_0x43c380){Array[_0x1477b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43c380)?_0x43c380[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bbf98):_0x43c380&&typeof _0x43c380==_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1477b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43c380)[_0x1477b4([0x73,0x6f,0x72,0x74])]()[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dd54d,_0x2e6d7a])=>{_0x4f2427(_0x3dd54d),_0x4bbf98(_0x2e6d7a);}):_0x4f2427(window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43c380));}return _0x4bbf98(_0x2393b5),_0x124f6e>>>0x0;}function _0x45bb61(_0x3725eb){return _0x3725eb[_0x1477b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1477b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1477b4([0x30]));}function _0x27bad1(_0x3c7324){return _0x3c7324[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1477b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1477b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x58fe4e(){}function _0x1477b4(_0x5e3afd){return _0x5e3afd['map'](_0x2a0419=>String['fromCharCode'](_0x2a0419))['join']('');}_0x5ed7aa(await _0x4d33c3());}(this);}['_initSchema'](){const _0x311e3b=this['editor']['model']['schema'];_0x311e3b['isRegistered']('imageBlock')&&_0x311e3b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x311e3b['isRegistered']('imageInline')&&_0x311e3b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b3016=this['editor'];_0x2b3016['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b3016['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1dcd4a=>_0x1dcd4a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf5eab2=_0x2b3016['commands']['get']('replaceImageSource');_0xf5eab2&&this['listenTo'](_0xf5eab2,'cleanupImage',(_0x37d651,[_0x480f5f,_0x41f8b3])=>{_0x480f5f['removeAttribute']('uploadcareImageId',_0x41f8b3);});}['_initConfig'](){const _0x562eeb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1299fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x28a297(_0x255c88['document'],'uc-config',{..._0x562eeb,'pubkey':_0x1299fd,'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']=_0x552fbd=>{if('closeMax'==_0x552fbd)return'#uc-icon-arrow-down';},_0x255c88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x28a297(_0x255c88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x255c88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54b806=this['editor']['commands']['get']('insertImage');_0x54b806&&this['listenTo'](_0x54b806,'execute',()=>{const _0x1d3573=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d3573&&_0x1d3573['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d3573);});});const _0x2012f3=this['editor']['commands']['get']('uploadcareImageReplace');_0x2012f3&&this['listenTo'](_0x2012f3,'execute',()=>{const _0x13a747=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a747&&_0x13a747['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a747);});});}}class tt extends _0x108b89{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d265){super(_0x51d265),_0x51d265['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb07fa0['defineComponents'](_0xb07fa0);}}class ii extends _0x2ff5d5{constructor(_0xbdfe7a){super(_0xbdfe7a);const t=_0xbdfe7a['t'],_0x40c480=this['bindTemplate'],_0x50b219=new _0x88d7a6();_0x50b219['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':[_0x50b219,{'text':_0x40c480['to']('imageUploadProgress',_0x3ff03e=>t('Loading\x20image...')+'\x20('+(_0x3ff03e||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 _0x2ff5d5{constructor(_0x7e2173){super(_0x7e2173);const t=_0x7e2173['t'];this['set']('errorType',null);const _0x5889dc=new _0xd4b68c(_0x7e2173);_0x5889dc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5889dc['withText']=!0x0,_0x5889dc['class']='ck-button-action',_0x5889dc['on']('execute',()=>{this['fire']('retry');}),_0x5889dc['bind']('isVisible')['to'](this,'errorType',_0x5d414a=>'NotFound'!==_0x5d414a);const _0x579cb6=new _0xeb9607();_0x579cb6['content']=_0x4da509,_0x579cb6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x36fa8e=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':[_0x579cb6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x36fa8e['to']('errorType',_0x425367=>t('NotFound'!==_0x425367?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5889dc]},{'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 _0x2ff5d5{constructor(_0x16b3ae,_0x524bd7){super(_0x16b3ae);const _0x1c57d3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x524bd7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c57d3['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x409292,_0x45fc3e,_0x45d599){super(_0x409292),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x409292),this['_errorView']=new ti(_0x409292),this['_editingView']=new ei(_0x409292,_0x45d599),this['_focusableView']=new _0x2ff5d5(_0x409292),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x45fc3e),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'],_0x462a55=>{this['_addUploadcareImageEditorListeners'](_0x462a55);});}),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'](_0x19247d,_0xc2674b){const _0x167425='uc-cloud-image-editor',_0x611270=_0x19247d['querySelector'](_0x167425);if(_0x611270)return _0xc2674b(_0x611270);const _0x552e20=new MutationObserver(_0x1eda8b=>{const _0x101578=_0x1eda8b['filter'](_0x16f3bc=>_0x16f3bc['target']===_0x19247d&&_0x16f3bc['addedNodes']['length']>0x0&&_0x16f3bc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x167425);_0x101578['length']&&(_0x552e20['disconnect'](),_0xc2674b(_0x101578[0x0]['addedNodes'][0x0]));});_0x552e20['observe'](_0x19247d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x50934d){_0x50934d['addEventListener']('apply',_0x551867=>{this['fire']('apply',{'imageSrc':_0x551867['detail']['cdnUrl']});}),_0x50934d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5d44f0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb3d916,_0x575cf1,_0x56351a){super(),this['_editor']=_0xb3d916,this['_dialog']=_0x575cf1,this['_imageElement']=_0x56351a,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 _0x505c9e=this['_imageElement'],_0x4defb2=_0x505c9e['getAttribute']('uploadcareImageId'),_0x297844=_0x505c9e['getAttribute']('src');if(_0x4defb2)await this['_loadImageInfo'](_0x4defb2,_0x297844);else{if(this['_imageCache']['has'](_0x297844)){const _0x38d3c5=this['_imageCache']['get'](_0x297844);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38d3c5['url'],this['imageDimension']=_0x38d3c5['dimension'],this['imageId']=_0x38d3c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x30fe39}=this['_editor'],t=_0x30fe39['t'],_0xa55a54=new X(_0x30fe39,this['imageStatus'],this['_attributes']);_0xa55a54['bind']('status')['to'](this,'imageStatus'),_0xa55a54['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa55a54['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa55a54['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa55a54,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e82f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa55a54,'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa55a54['focus']();},'onHide':()=>{_0xa55a54['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3102d2=>!A(_0x3102d2,_0xa55a54['element'])}});}['_loadImageInfo'](_0x273d2d,_0x4e1a75){return j['getInfo'](_0x273d2d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3a6938=>{const {width:_0x3b5493,height:_0x1eea11}=_0x3a6938['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e1a75,this['imageDimension']={'width':_0x3b5493,'height':_0x1eea11},this['imageId']=_0x273d2d;})['catch'](_0x2c53cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c53cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x462193,_0x2a4fdf){return this['_getImageAsFile'](_0x462193)['then'](_0x5dd178=>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':_0x2a4fdf['signal'],'file':_0x5dd178,'onProgress':_0x2c5f9a=>{_0x2c5f9a&&_0x2c5f9a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c5f9a['value']));}}))['then'](_0x173999=>{const {width:_0x1ca504,height:_0x4fd69c}=_0x173999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x173999['cdnUrl'],this['imageDimension']={'width':_0x1ca504,'height':_0x4fd69c},this['imageId']=_0x173999['uuid'],this['imageUploadProgress']=null;const _0x56a1d4=_0x462193['getAttribute']('src');this['_imageCache']['set'](_0x56a1d4,{'id':_0x173999['uuid'],'url':_0x173999['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c0fdd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c0fdd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x54e850,_0x1a9a4b){_0x54e850['on']('apply',(_0x11f7ac,_0x284734)=>{this['_replaceImage'](_0x1a9a4b,_0x284734['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x54e850['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x54e850['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ef11b,_0x449f6a,_0x2cb921){const _0x57393f=this['_editor'],{width:_0x287b01,height:_0x1c94d3}=S(_0x449f6a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33e578,imageSources:_0x3b8084}=C(_0x449f6a,_0x287b01);_0x57393f['model']['change'](_0x10d538=>{if('$graveyard'===_0x2ef11b['root']['rootName']){_0x57393f['execute']('insertImage',{'imageType':_0x2ef11b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3}});const _0x2633c6=_0x2ef11b['getChildren']();_0x2ef11b=_0x57393f['model']['document']['selection']['getSelectedElement']();for(const _0x35c621 of _0x2633c6)_0x10d538['append'](_0x10d538['cloneElement'](_0x35c621),_0x2ef11b);}else _0x10d538['setSelection'](_0x2ef11b,'on'),_0x57393f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3},_0x2ef11b);_0x10d538['setSelection'](_0x2ef11b,'on');});}async['_getImageAsFile'](_0x172263){const _0x1d6402=_0x255c88['window'],_0x4ebbab=_0x255c88['document']['location']['href'],_0x88763d=new _0x1d6402['URL'](_0x172263['getAttribute']('src'),_0x4ebbab);if('data:'===_0x88763d['protocol']){const _0x256361=_0x88763d['href']['split'](','),_0x310169=_0x256361[0x0]['match'](/:(.*?);/)[0x1],_0x460c39=_0x310169['split']('/')[0x1],_0x2b65b9=_0x1d6402['atob'](_0x256361[_0x256361['length']-0x1]);let _0x52b245=_0x2b65b9['length'];const _0x21517b=new _0x1d6402['Uint8Array'](_0x52b245);for(;_0x52b245--;)_0x21517b[_0x52b245]=_0x2b65b9['charCodeAt'](_0x52b245);return new _0x1d6402['File']([_0x21517b],'image.'+_0x460c39,{'type':_0x310169});}const _0x1b5645=_0x88763d['href']['split']('/'),_0x551374=_0x1b5645[_0x1b5645['length']-0x1],_0x35fcf7=_0x551374['split']('.')[0x1];return _0x1d6402['fetch'](_0x88763d['href'])['then'](_0x4c6958=>_0x4c6958['clone']()['blob']())['then'](_0x193b20=>new _0x1d6402['File']([_0x193b20],_0x551374,{'type':'image/'+_0x35fcf7}));}}class O extends _0x33bd10{['imageEditController'];static get['requires'](){return[_0x11b1e1];}['_isEditable'];constructor(_0x24e2cb){super(_0x24e2cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f1ee3){const _0x1ced89=G(_0x2f1ee3);return _0x2f554f=>!(!_0x2f554f||!_0x2f554f['is']('element','imageBlock')&&!_0x2f554f['is']('element','imageInline'))&&(!!_0x2f554f['hasAttribute']('uploadcareImageId')||!!_0x2f554f['hasAttribute']('src')&&_0x1ced89(_0x2f554f['getAttribute']('src')));}(_0x24e2cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17e57c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17e57c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b2d4a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b2d4a&&(_0x5b2d4a['is']('element','imageBlock')||_0x5b2d4a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x11b1e1),_0x5b2d4a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x33bd10{['refresh'](){const _0x1d4b2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d4b2f&&(_0x1d4b2f['is']('element','imageBlock')||_0x1d4b2f['is']('element','imageInline')));}['execute'](_0x4f9cd2){const _0x4c22f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2123d7=>{_0x2123d7['setAttributes'](_0x4f9cd2,_0x4c22f9),_0x2123d7['removeAttribute']('srcset',_0x4c22f9),_0x2123d7['removeAttribute']('sizes',_0x4c22f9);});}}class m extends _0x108b89{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x293896,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ee921}=this;_0x4ee921['commands']['add']('uploadcareImageEdit',new O(_0x4ee921)),_0x4ee921['commands']['add']('uploadcareImageReplace',new R(_0x4ee921));}}class g extends _0x108b89{['_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 _0x2f0c99=this['editor'];_0x2f0c99['ui']['componentFactory']['add']('uploadcareImageEdit',_0x998bfb=>{const _0x11ee8d=_0x2f0c99['commands']['get']('uploadcareImageEdit'),_0x3355bb=new _0xd4b68c(_0x998bfb),t=_0x998bfb['t'];return _0x3355bb['set']({'icon':_0x1e82f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3355bb['bind']('isEnabled')['to'](_0x11ee8d),_0x3355bb['bind']('isOn')['to'](_0x11ee8d,'isActive'),this['listenTo'](_0x3355bb,'execute',()=>{_0x2f0c99['execute']('uploadcareImageEdit'),_0x2f0c99['editing']['view']['focus']();}),_0x3355bb;}),this['_initConfig']();}['_initConfig'](){const _0x1d1727=_0x28a297(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d1727),this['listenTo'](this['editor'],'destroy',()=>{_0x1d1727['remove']();});}}class et extends _0x108b89{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 _0x5ba322,Command as _0x2ef60a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x520590,IconGooglePhotos as _0x2856ff,IconGoogleDrive as _0x2f9664,IconFacebook as _0x478fb0,IconDropbox as _0x3d6825,IconUploadcareLink as _0x27dc10,IconUploadcareImageUpload as _0x4a0409,IconError as _0x222c91,IconUploadcareImageEdit as _0x5b3293}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x39f50d,MenuBarMenuListItemButtonView as _0x4b1f38,View as _0x1ac545,FocusCycler as _0x1e8eb3,Dialog as _0x5f1bcf,DialogViewPosition as _0x37fdf6,SpinnerView as _0x38df43,IconView as _0x4924ef,Notification as _0x36f06d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xcf2c89,DomEmitterMixin as _0x1af22c,global as _0x16b173,getAncestors as _0x350951,ObservableMixin as _0x29ffde,uid as _0x26ebeb,createElement as _0x136a00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xd2c423}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5ae9b3,info as _0x543e76}from'@uploadcare/upload-client';import*as _0x2dd39c from'@uploadcare/file-uploader';var i=function(_0x152646){return _0x152646['Local']='local',_0x152646['URL']='url',_0x152646['Dropbox']='dropbox',_0x152646['GDrive']='gdrive',_0x152646['Facebook']='facebook',_0x152646['GPhotos']='gphotos',_0x152646['OneDrive']='onedrive',_0x152646;}({});function _(_0x460487,_0x4f08a6,_0xb7fb7f){const t=_0x460487['t'],_0x525555=_0x460487['t'];switch(_0x4f08a6){case i['Local']:return{'text':_0x525555('Insert'===_0xb7fb7f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x525555('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xb7fb7f?_0x525555('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x525555('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f08a6;}}class e extends _0x5ba322{['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 _0x437652=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45b1db;for(const _0x4e0628 in _0x437652){const _0x2f75a1=_0x4e0628,_0x47c4df=_0x437652[_0x2f75a1];if('uploadcareLicenseKeyValid'==_0x47c4df||'uploadcareLicenseKeyInvalid'==_0x47c4df||'uploadcareLicenseKeyExpired'==_0x47c4df||'uploadcareLicenseKeyDomainLimit'==_0x47c4df||'uploadcareLicenseKeyNotAllowed'==_0x47c4df||'uploadcareLicenseKeyEvaluationLimit'==_0x47c4df||'uploadcareLicenseKeyTrialLimit'==_0x47c4df||'uploadcareLicenseKeyUsageLimit'==_0x47c4df){delete _0x437652[_0x2f75a1],_0x45b1db=_0x47c4df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x45b1db&&_0x437652['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x45b1db&&_0x437652['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x45b1db&&_0x437652['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x45b1db&&_0x437652['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x45b1db&&_0x437652['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x45b1db&&_0x437652['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x45b1db&&_0x437652['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5778d6}=this,_0x36ed34=_0x5778d6['commands']['get']('uploadcare');if(!_0x36ed34)return;const _0x3eb283=this['_normalizeConfigSourceList'](_0x5778d6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b460c,_0x35608b)=>{const _0x3e36b0=this['_getIntegrationKey'](_0x35608b['type']);return _0x5b460c[_0x3e36b0]||(_0x5b460c[_0x3e36b0]=[]),_0x5b460c[_0x3e36b0]['push'](_0x35608b),_0x5b460c;},{});_0x5778d6['plugins']['has']('ImageInsertUI')&&_0x5778d6['commands']['get']('uploadcare')&&Object['entries'](_0x3eb283)['forEach'](([_0x41162d,_0x1da876])=>{_0x5778d6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x41162d,'observable':()=>_0x36ed34,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1da876),'formViewCreator':()=>this['_createDropdownButtons'](_0x1da876),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1da876),'override':'assetManager'!==_0x41162d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x401b83){const {locale:_0x512107}=this['editor'];return _0x401b83['map'](_0xdc3d35=>{const _0x2523be=_(_0x512107,_0xdc3d35,'Insert');switch(_0xdc3d35){case i['Local']:return{'icon':_0x4a0409,'type':i['Local'],..._0x2523be};case i['URL']:return{'icon':_0x27dc10,'type':i['URL'],..._0x2523be};case i['Dropbox']:return{'icon':_0x3d6825,'type':i['Dropbox'],..._0x2523be};case i['Facebook']:return{'icon':_0x478fb0,'type':i['Facebook'],..._0x2523be};case i['GDrive']:return{'icon':_0x2f9664,'type':i['GDrive'],..._0x2523be};case i['GPhotos']:return{'icon':_0x2856ff,'type':i['GPhotos'],..._0x2523be};case i['OneDrive']:return{'icon':_0x520590,'type':i['OneDrive'],..._0x2523be};}});}['_getIntegrationKey'](_0x478ea0){switch(_0x478ea0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x58c785,_0xcd0571){const _0x4d32d5=this['editor'],_0x4baeb0=new _0x58c785(_0x4d32d5['locale']),_0x540858=_0x4d32d5['commands']['get']('uploadcare');return _0x4baeb0['bind']('isEnabled')['to'](_0x540858),_0x4baeb0['on']('execute',()=>{_0x540858['execute'](_0xcd0571);}),_0x4baeb0;}['_createToolbarButton'](_0x197203){const {locale:_0x32cbd1}=this['editor'],_0x229a9a=this['editor']['plugins']['get']('ImageInsertUI'),_0x1db08d=_0x197203[0x0],_0x2b9cc3=this['_createButton'](_0x39f50d,_0x1db08d['type']);return _0x2b9cc3['icon']=_0x1db08d['icon'],_0x2b9cc3['bind']('label')['to'](_0x229a9a,'isImageSelected',_0x2575a7=>_(_0x32cbd1,_0x1db08d['type'],_0x2575a7?'Replace':'Insert')['text']),_0x2b9cc3['tooltip']=!0x0,_0x2b9cc3;}['_createDropdownButtons'](_0x3c5a0f){const {locale:_0xee1fd5}=this['editor'],_0xe0388c=this['editor']['plugins']['get']('ImageInsertUI');return _0x3c5a0f['map'](_0x2769b3=>{const _0x53955f=this['_createButton'](_0x39f50d,_0x2769b3['type']);return _0x53955f['withText']=!0x0,_0x53955f['icon']=_0x2769b3['icon'],_0x53955f['bind']('label')['to'](_0xe0388c,'isImageSelected',_0x3da5de=>_(_0xee1fd5,_0x2769b3['type'],_0x3da5de?'Replace':'Insert')['text']),_0x53955f;});}['_createMenuBarButtons'](_0x24ae96){return _0x24ae96['map'](_0x38db57=>{const _0xe582c5=this['_createButton'](_0x4b1f38,_0x38db57['type']);return _0xe582c5['icon']=_0x38db57['icon'],_0xe582c5['label']=_0x38db57['shortText'],_0xe582c5;});}}class F extends _0x1ac545{['focusTracker'];['focusCycler'];constructor(_0xc18d18){super(_0xc18d18),this['focusTracker']=new _0xcf2c89(),this['focusCycler']=new _0x1e8eb3({'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(_0x53ee79,_0x1226c6){super(_0x53ee79),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-'+_0x1226c6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2b18eb,_0x2188f0){const _0x3655ab=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3cfc82=>_0x3cfc82<=_0x2188f0)['map'](_0x3b93eb=>_0x2b18eb['replace'](/\/$/,'')+'/-/resize/'+_0x3b93eb+'x/\x20'+_0x3b93eb+'w');return{'imageFallbackUrl':_0x2b18eb,'imageSources':[{'srcset':_0x3655ab['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2188f0+'px)\x20100vw,\x20'+_0x2188f0+'px','type':'image/webp'}]};}function S(_0x48acdc,_0x42550a,_0x1fb17b){const _0x5b2f6b=_0x48acdc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5b2f6b?parseInt(_0x5b2f6b[0x1],0xa):_0x42550a,'height':_0x5b2f6b?parseInt(_0x5b2f6b[0x2],0xa):_0x1fb17b};}function p(_0x1d3c8a,_0x31ba02){const _0x227343=new(_0x1af22c())(),_0x3400db=_0x1d3c8a['plugins']['get']('ImageUtils'),_0x2eedba=_0x1d3c8a['editing']['mapper']['toViewElement'](_0x31ba02),_0x422a7d=_0x3400db['findViewImgElement'](_0x2eedba),_0xe8e28f=_0x1d3c8a['editing']['view']['domConverter']['viewToDom'](_0x422a7d),_0x4fb87d=_0x31ba02['getAttribute']('width'),_0x4456e2=_0x31ba02['getAttribute']('height'),_0x4fddd1='image-processing';_0x1d3c8a['editing']['view']['change'](_0x4c8928=>{_0x4c8928['addClass'](_0x4fddd1,_0x2eedba),_0x4c8928['setStyle']('aspect-ratio',_0x4fb87d+'/'+_0x4456e2,_0x422a7d);}),_0x227343['listenTo'](_0xe8e28f,'load',()=>{_0x227343['stopListening'](_0xe8e28f,'load'),_0x1d3c8a['editing']['view']['change'](_0x491a3a=>{_0x491a3a['removeClass'](_0x4fddd1,_0x2eedba),_0x491a3a['removeStyle']('aspect-ratio',_0x422a7d);});});}function G(_0x52b592){if(Array['isArray'](_0x52b592)){const _0x4b52fc=_0x52b592['map'](G);return _0x1c09fc=>_0x4b52fc['some'](_0x2fe532=>_0x2fe532(_0x1c09fc));}if('origin'==_0x52b592){const _0x33d0f2=_0x16b173['window']['location']['origin'];return _0x237906=>new URL(_0x237906,_0x16b173['document']['baseURI'])['origin']==_0x33d0f2;}return'function'==typeof _0x52b592?_0x52b592:_0x52b592 instanceof RegExp?_0xa30e86=>!(!_0xa30e86['match'](_0x52b592)&&!_0xa30e86['replace'](/^https?:\/\//,'')['match'](_0x52b592)):()=>!0x1;}function A(_0x44cbce,_0x75b33f){return _0x350951(_0x44cbce['target'])['includes'](_0x75b33f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29ffde(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x480115,_0x5f0f8e,_0x251de1){super(),this['_editor']=_0x480115,this['_editing']=_0x5f0f8e,this['_dialog']=_0x480115['plugins']['get'](_0x5f1bcf),this['_api']=_0x5f0f8e['ctxElement']['getAPI'](),this['_type']=_0x251de1,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:_0x2c75b9,model:_0x5bb009}=this['_editor'],_0x37ee31=_0x5bb009['document']['selection']['getSelectedElement'](),_0x5be262=_0x37ee31&&(_0x37ee31['is']('element','imageBlock')||_0x37ee31['is']('element','imageInline'));this['_formView']=new x(_0x2c75b9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4a0409,'title':_(_0x2c75b9,this['_type'],_0x5be262?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x37fdf6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x293904=>!A(_0x293904,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5c778e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5c64e0=>{const _0x588a61=_0x5c778e['length'];for(const _0x552adb of _0x5c778e){const _0x362bb8=_0x552adb===_0x5c778e[_0x588a61-0x1],{cdnUrl:_0x8c2882,fileInfo:_0x45d780}=_0x552adb;if(!_0x8c2882||!_0x45d780)continue;const {width:_0x9c2464,height:_0x455874}=_0x45d780['imageInfo'],_0x671b46=S(_0x8c2882,_0x9c2464,_0x455874),_0x23a681=C(_0x8c2882,_0x671b46['width']),_0x4189f0={'id':_0x45d780['uuid'],'type':'image','attributes':{'imageDimension':_0x671b46,..._0x23a681}};this['_insertAsset'](_0x4189f0,_0x362bb8,_0x5c64e0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb3a7f3=>{'idle'===_0xb3a7f3['detail']['status']&&!_0xb3a7f3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x20819d,_0x37792a,_0x214dab){const _0x30f31c=this['_editor']['model']['document']['selection'],_0x5be34c=_0x30f31c['getSelectedElement'](),_0x43119c=!(!_0x5be34c||!_0x5be34c['is']('element','imageInline'));_0x214dab['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x20819d,_0x43119c),_0x37792a||_0x214dab['setSelection'](_0x30f31c['getLastPosition']());}['_insertImage'](_0x799377,_0x514137){const _0x648399=this['_editor'],{imageDimension:_0x1a6cf9,imageFallbackUrl:_0x10daaf,imageSources:_0x180c96}=_0x799377['attributes'];_0x648399['execute']('insertImage',{'imageType':_0x514137?'imageInline':null,'source':{'uploadcareImageId':_0x799377['id'],'src':_0x10daaf,'sources':_0x180c96,..._0x1a6cf9}});}}class w extends _0x2ef60a{['_editing'];['_controller']=null;static get['requires'](){return[_0x5f1bcf,o];}constructor(_0x2050eb){super(_0x2050eb),this['_editing']=_0x2050eb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ce85d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1ce85d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1341af,..._0x1502a9}){return _0x5ae9b3(_0x1341af,_0x1502a9);}static['getInfo'](_0x1392e9,_0x30427a){return _0x543e76(_0x1392e9,_0x30427a);}}class f extends _0x5ba322{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xd2c423,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x6e2f73=this['editor'];if(!!!_0x6e2f73['config']['get']('uploadcare'))return;_0x6e2f73['plugins']['get'](_0xd2c423)['createUploadAdapter']=_0x4e1c03=>new k(_0x4e1c03,_0x6e2f73),_0x6e2f73['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f30ed,{imageElement:_0x4e7dcf,data:_0x476ee0})=>{_0x6e2f73['model']['change'](_0x449fed=>{_0x449fed['setAttribute']('uploadcareImageId',_0x476ee0['uploadcareImageId'],_0x4e7dcf);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x44b4a5,_0x4836d7){this['loader']=_0x44b4a5,this['editor']=_0x4836d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3fd32d=await this['loader']['file'];return j['upload']({'file':_0x3fd32d,'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':_0x53bf5d=>{_0x53bf5d&&_0x53bf5d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53bf5d['value']);}})['then'](async _0x60eabe=>{const {imageFallbackUrl:_0x412ecd,imageSources:_0x3a5bee}=C(_0x60eabe['cdnUrl'],_0x60eabe['imageInfo']['width']);return{'uploadcareImageId':_0x60eabe['uuid'],'default':_0x412ecd,'sources':_0x3a5bee};})['catch'](()=>{const _0x30a5fb=t('Cannot\x20upload\x20file:')+('\x20'+_0x3fd32d['name']+'.');return Promise['reject'](_0x30a5fb);});}['abort'](){this['controller']['abort']();}}class o extends _0x5ba322{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5f1bcf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1136a6){super(_0x1136a6),this['ucContextId']=_0x26ebeb();}['init'](){const _0x499bee=this['editor'];_0x499bee['commands']['add']('uploadcare',new w(_0x499bee));}['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 _0x2732a2=_0x16b173['document']['querySelector']('input[uploadcare-file-input]');_0x2732a2&&_0x2732a2['remove']();}),async function(_0x342bb0){const _0x1d0fad=_0x431d0b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x8b87ad=0x3d8d0df,_0x59c8e9=0x3dfa4c7^_0x8b87ad,_0x143f87=window[_0x431d0b([0x44,0x61,0x74,0x65])][_0x431d0b([0x6e,0x6f,0x77])](),_0x39ef4d=_0x342bb0[_0x431d0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x71d5ec=new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19ee67=>{_0x39ef4d[_0x431d0b([0x6f,0x6e,0x63,0x65])](_0x431d0b([0x72,0x65,0x61,0x64,0x79]),_0x19ee67);}),_0x4322f5={[_0x431d0b([0x6b,0x74,0x79])]:_0x431d0b([0x45,0x43]),[_0x431d0b([0x75,0x73,0x65])]:_0x431d0b([0x73,0x69,0x67]),[_0x431d0b([0x63,0x72,0x76])]:_0x431d0b([0x50,0x2d,0x32,0x35,0x36]),[_0x431d0b([0x78])]:_0x431d0b([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]),[_0x431d0b([0x79])]:_0x431d0b([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]),[_0x431d0b([0x61,0x6c,0x67])]:_0x431d0b([0x45,0x53,0x32,0x35,0x36])},_0xd4251d=_0x39ef4d[_0x431d0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x431d0b([0x67,0x65,0x74])](_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x574104(){let _0x238d5b,_0x7808c5=null,_0x24f677=null;try{if(_0xd4251d==_0x431d0b([0x47,0x50,0x4c]))return _0x431d0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x238d5b=_0x54c95f(),!_0x238d5b)return _0x431d0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x238d5b[_0x431d0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24f677=_0x6f9820(_0x238d5b[_0x431d0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x238d5b[_0x431d0b([0x6a,0x74,0x69])])),await _0x2599c6()?_0x4125bf()?_0x25ce6f()?_0x431d0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53fa30()?(_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431d0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7808c5=_0x4a352f(_0x431d0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431d0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x7808c5=_0x4a352f(_0x431d0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x102238()):_0x431d0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x431d0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x431d0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x431d0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25ce6f(){const _0x531bf6=[_0x431d0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x431d0b([0x74,0x72,0x69,0x61,0x6c])][_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x143f87/0x3e8:0xe10*_0x59c8e9;return _0x238d5b[_0x431d0b([0x65,0x78,0x70])]<_0x531bf6;}function _0x4125bf(){const _0x21092e=_0x238d5b[_0x431d0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21092e&&(!!_0x21092e[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431d0b([0x2a]))||!!_0x21092e[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431d0b([0x55,0x50,0x4c,0x43])));}function _0x53fa30(){const _0x35c328=_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35c328||0x0==_0x35c328[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58aa13}=new URL(window[_0x431d0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35c328[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58aa13))return!0x0;const _0x30b1e8=_0x58aa13[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e]));return _0x35c328[_0x431d0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4377f8=>_0x4377f8[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431d0b([0x2a])))[_0x431d0b([0x6d,0x61,0x70])](_0x586fe7=>_0x586fe7[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e])))[_0x431d0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x399f19=>_0x399f19[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x30b1e8[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431d0b([0x6d,0x61,0x70])](_0x50d627=>Array(_0x30b1e8[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50d627[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431d0b([0x66,0x69,0x6c,0x6c])](_0x50d627[0x0]===_0x431d0b([0x2a])?_0x431d0b([0x2a]):'')[_0x431d0b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50d627))[_0x431d0b([0x73,0x6f,0x6d,0x65])](_0x4a48c6=>_0x30b1e8[_0x431d0b([0x65,0x76,0x65,0x72,0x79])]((_0x18bfc0,_0x4062bd)=>_0x4a48c6[_0x4062bd]===_0x18bfc0||_0x4a48c6[_0x4062bd]===_0x431d0b([0x2a])));}function _0x102238(){return _0x7808c5&&_0x24f677?new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47a40d,_0x148877)=>{_0x7808c5[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x47a40d,_0x148877),_0x24f677[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x260f20=>{_0x260f20!=_0x431d0b([0x56,0x61,0x6c,0x69,0x64])&&_0x47a40d(_0x260f20);},_0x148877);}):_0x7808c5||_0x24f677||_0x431d0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6f9820(_0x131298,_0x5487e6){return new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c5f14=>{if(_0x32301e())return _0x3c5f14(_0x431d0b([0x56,0x61,0x6c,0x69,0x64]));_0x4ab0b3(),_0x39ef4d[_0x431d0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x431d0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x222443=!0x1;const _0x4e151e=_0x26ebeb();function _0x18d11c(_0x17978f){return!!_0x17978f&&(typeof _0x17978f===_0x431d0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17978f===_0x431d0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17978f[_0x431d0b([0x74,0x68,0x65,0x6e])]===_0x431d0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17978f[_0x431d0b([0x63,0x61,0x74,0x63,0x68])]===_0x431d0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1dfe91(_0x448876){_0xf48017(_0x448876)[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x15b214=>{if(!_0x15b214||_0x15b214[_0x431d0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x431d0b([0x6f,0x6b]))return _0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37cce4(_0x382d13(_0x4e151e+_0x5487e6))!=_0x15b214[_0x431d0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x431d0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x10c2c3=>(_0x1aeb01(),_0x10c2c3),()=>{const _0x43a4c7=_0x452bbc();return null==_0x43a4c7?(_0x1aeb01(),_0x431d0b([0x56,0x61,0x6c,0x69,0x64])):_0x431d0b(_0x143f87-_0x43a4c7>(0x27d454df^_0x8b87ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x3c5f14)[_0x431d0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c5f14(_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x524ac2=0x3ee3e5f^_0x8b87ad;function _0x1aeb01(){const _0x119eeb=_0x431d0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x37cce4(_0x382d13(_0x131298)),_0x168761=_0x358810(_0x37cce4(window[_0x431d0b([0x4d,0x61,0x74,0x68])][_0x431d0b([0x63,0x65,0x69,0x6c])](_0x143f87/_0x524ac2)));window[_0x431d0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431d0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119eeb,_0x168761);}function _0x452bbc(){const _0x1f50e3=_0x431d0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x37cce4(_0x382d13(_0x131298)),_0x25e503=window[_0x431d0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431d0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f50e3);return _0x25e503?window[_0x431d0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358810(_0x25e503),0x10)*_0x524ac2:null;}function _0xf48017(_0xbc7b6e){return new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31aa0f,_0x2ac9be)=>{_0xbc7b6e[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x31aa0f,_0x2ac9be),window[_0x431d0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ac9be,0x3d9041f^_0x8b87ad);});}}_0x39ef4d[_0x431d0b([0x6f,0x6e])](_0x431d0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f9546,_0x247c77)=>{if(_0x247c77[0x0]!=_0x131298)return _0x3c5f14(_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247c77[0x1]={..._0x247c77[0x1],[_0x431d0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e151e};},{[_0x431d0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431d0b([0x68,0x69,0x67,0x68])}),_0x39ef4d[_0x431d0b([0x6f,0x6e])](_0x431d0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x126516=>{_0x18d11c(_0x126516[_0x431d0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x222443=!0x0,_0x1dfe91(_0x126516[_0x431d0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x431d0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431d0b([0x6c,0x6f,0x77])}),_0x71d5ec[_0x431d0b([0x74,0x68,0x65,0x6e])](()=>{_0x222443||_0x3c5f14(_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32301e(){return _0x39ef4d[_0x431d0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431d0b([0x76,0x69,0x65,0x77])][_0x431d0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x431d0b([0x61,0x75,0x74,0x6f]);}function _0x4ab0b3(){_0x39ef4d[_0x431d0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431d0b([0x76,0x69,0x65,0x77])][_0x431d0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431d0b([0x61,0x75,0x74,0x6f]);}}function _0x4a352f(_0x18f50a){const _0x2e95d0=[new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2832f3=>setTimeout(_0x2832f3,0x3d1ee13^_0x8b87ad)),_0x71d5ec[_0x431d0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32538a=>{let _0x640209=0x0;_0x39ef4d[_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x431d0b([0x6f,0x6e])](_0x431d0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xcd2d05,_0x213890)=>{_0x213890[0x0][_0x431d0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x640209++,_0x640209==(0x3d8d127^_0x8b87ad)&&(_0x32538a(),_0xcd2d05[_0x431d0b([0x6f,0x66,0x66])]());});}))];return window[_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431d0b([0x72,0x61,0x63,0x65])](_0x2e95d0)[_0x431d0b([0x74,0x68,0x65,0x6e])](()=>_0x18f50a);}async function _0x4dd4d8(){await _0x71d5ec,_0x39ef4d[_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x431d0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x457471,_0x39ef4d[_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x431d0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x457471,_0x39ef4d[_0x431d0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c6a47(_0x582392){const _0x338e5c=_0x1715ed();_0x39ef4d[_0x338e5c]=_0x431d0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x582392,_0x582392!=_0x431d0b([0x56,0x61,0x6c,0x69,0x64])&&_0x4dd4d8();}function _0x1715ed(){const _0x5117d4=window[_0x431d0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x431d0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x431d0b([0x6e,0x6f,0x77])]())[_0x431d0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x431d0b([0x2e]),'');let _0x21dca0=_0x431d0b([0x52]);for(let _0x4258a8=0x0;_0x4258a8<_0x5117d4[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4258a8+=0x2){let _0x3ba408=window[_0x431d0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5117d4[_0x431d0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4258a8,_0x4258a8+0x2));_0x3ba408>=_0x1d0fad[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ba408-=_0x1d0fad[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21dca0+=_0x1d0fad[_0x3ba408];}return _0x21dca0;}function _0x54c95f(){const _0x44e701=_0xd4251d[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e]));if(0x3!=_0x44e701[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x406f74(_0x44e701[0x1]);function _0x406f74(_0x4a76b7){const _0x16d1c3=_0x1b57e3(_0x4a76b7);return _0x16d1c3&&_0x5d2da8()?_0x16d1c3:null;function _0x5d2da8(){const _0x586cd2=_0x16d1c3[_0x431d0b([0x6a,0x74,0x69])],_0x4cf2b1=window[_0x431d0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x586cd2[_0x431d0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x586cd2[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45d8f4={..._0x16d1c3,[_0x431d0b([0x6a,0x74,0x69])]:_0x586cd2[_0x431d0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x586cd2[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45d8f4[_0x431d0b([0x76,0x63])],_0x382d13(_0x45d8f4)==_0x4cf2b1;}}}async function _0x2599c6(){let _0x47062b=!0x0;try{const _0x3f696d=_0xd4251d[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e])),[_0x1339cc,_0x5066de,_0xc6e24]=_0x3f696d;return _0x727731(_0x1339cc),await _0x172c49(_0x1339cc,_0x5066de,_0xc6e24),_0x47062b;}catch{return!0x1;}function _0x727731(_0x12aa78){const _0x558e99=_0x1b57e3(_0x12aa78);_0x558e99&&_0x558e99[_0x431d0b([0x61,0x6c,0x67])]==_0x431d0b([0x45,0x53,0x32,0x35,0x36])||(_0x47062b=!0x1);}async function _0x172c49(_0x2e9db6,_0x505fc7,_0x5820fa){const _0x41ccbe=window[_0x431d0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x431d0b([0x66,0x72,0x6f,0x6d])](_0x39f370(_0x5820fa),_0x415bf6=>_0x415bf6[_0x431d0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19d7ec=new window[(_0x431d0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x431d0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e9db6+_0x431d0b([0x2e])+_0x505fc7),_0x3dcd3a=window[_0x431d0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x431d0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dcd3a)return;const _0x10c1cd=await _0x3dcd3a[_0x431d0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x431d0b([0x6a,0x77,0x6b]),_0x4322f5,{[_0x431d0b([0x6e,0x61,0x6d,0x65])]:_0x431d0b([0x45,0x43,0x44,0x53,0x41]),[_0x431d0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x431d0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x431d0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dcd3a[_0x431d0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x431d0b([0x6e,0x61,0x6d,0x65])]:_0x431d0b([0x45,0x43,0x44,0x53,0x41]),[_0x431d0b([0x68,0x61,0x73,0x68])]:{[_0x431d0b([0x6e,0x61,0x6d,0x65])]:_0x431d0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10c1cd,_0x41ccbe,_0x19d7ec)||(_0x47062b=!0x1);}}function _0x1b57e3(_0x567ef6){return _0x567ef6[_0x431d0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x431d0b([0x65,0x79]))?JSON[_0x431d0b([0x70,0x61,0x72,0x73,0x65])](_0x39f370(_0x567ef6)):null;}function _0x39f370(_0x4002eb){return window[_0x431d0b([0x61,0x74,0x6f,0x62])](_0x4002eb[_0x431d0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x431d0b([0x2b]))[_0x431d0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x431d0b([0x2f])));}function _0x382d13(_0x3d3274){let _0x54c81c=0x1505;function _0x406d1c(_0x557fac){for(let _0x5a8b4e=0x0;_0x5a8b4e<_0x557fac[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a8b4e++){const _0x301b4a=_0x557fac[_0x431d0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a8b4e);_0x54c81c=(_0x54c81c<<0x5)+_0x54c81c+_0x301b4a,_0x54c81c&=_0x54c81c;}}function _0x4e62af(_0x37f266){Array[_0x431d0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37f266)?_0x37f266[_0x431d0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e62af):_0x37f266&&typeof _0x37f266==_0x431d0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x431d0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37f266)[_0x431d0b([0x73,0x6f,0x72,0x74])]()[_0x431d0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32f0a7,_0x464e36])=>{_0x406d1c(_0x32f0a7),_0x4e62af(_0x464e36);}):_0x406d1c(window[_0x431d0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37f266));}return _0x4e62af(_0x3d3274),_0x54c81c>>>0x0;}function _0x37cce4(_0x3cb1d4){return _0x3cb1d4[_0x431d0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x431d0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x431d0b([0x30]));}function _0x358810(_0x322653){return _0x322653[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x431d0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x431d0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x457471(){}function _0x431d0b(_0x3b06d2){return _0x3b06d2['map'](_0x3967af=>String['fromCharCode'](_0x3967af))['join']('');}_0x2c6a47(await _0x574104());}(this);}['_initSchema'](){const _0x1f1ed1=this['editor']['model']['schema'];_0x1f1ed1['isRegistered']('imageBlock')&&_0x1f1ed1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1f1ed1['isRegistered']('imageInline')&&_0x1f1ed1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x425324=this['editor'];_0x425324['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x425324['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2bf9c5=>_0x2bf9c5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39e6c7=_0x425324['commands']['get']('replaceImageSource');_0x39e6c7&&this['listenTo'](_0x39e6c7,'cleanupImage',(_0x12aa82,[_0x1bcbdf,_0x305688])=>{_0x1bcbdf['removeAttribute']('uploadcareImageId',_0x305688);});}['_initConfig'](){const _0x237438=this['editor']['config']['get']('uploadcare.uploader')||{},_0x51ce1b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x136a00(_0x16b173['document'],'uc-config',{..._0x237438,'pubkey':_0x51ce1b,'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']=_0x419e2b=>{if('closeMax'==_0x419e2b)return'#uc-icon-arrow-down';},_0x16b173['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x136a00(_0x16b173['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x16b173['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xf6c5ed=this['editor']['commands']['get']('insertImage');_0xf6c5ed&&this['listenTo'](_0xf6c5ed,'execute',()=>{const _0x589934=this['editor']['model']['document']['selection']['getSelectedElement']();_0x589934&&_0x589934['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x589934);});});const _0x5502ff=this['editor']['commands']['get']('uploadcareImageReplace');_0x5502ff&&this['listenTo'](_0x5502ff,'execute',()=>{const _0xdbe563=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdbe563&&_0xdbe563['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xdbe563);});});}}class tt extends _0x5ba322{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x586038){super(_0x586038),_0x586038['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2dd39c['defineComponents'](_0x2dd39c);}}class ii extends _0x1ac545{constructor(_0x52ceca){super(_0x52ceca);const t=_0x52ceca['t'],_0x34863=this['bindTemplate'],_0x340f94=new _0x38df43();_0x340f94['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':[_0x340f94,{'text':_0x34863['to']('imageUploadProgress',_0x36b390=>t('Loading\x20image...')+'\x20('+(_0x36b390||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 _0x1ac545{constructor(_0x5469a8){super(_0x5469a8);const t=_0x5469a8['t'];this['set']('errorType',null);const _0x4c5581=new _0x39f50d(_0x5469a8);_0x4c5581['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c5581['withText']=!0x0,_0x4c5581['class']='ck-button-action',_0x4c5581['on']('execute',()=>{this['fire']('retry');}),_0x4c5581['bind']('isVisible')['to'](this,'errorType',_0x4ba384=>'NotFound'!==_0x4ba384);const _0x410e53=new _0x4924ef();_0x410e53['content']=_0x222c91,_0x410e53['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x28091f=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':[_0x410e53,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x28091f['to']('errorType',_0x59964c=>t('NotFound'!==_0x59964c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c5581]},{'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 _0x1ac545{constructor(_0x23153,_0x4e9643){super(_0x23153);const _0x51a83b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4e9643,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x51a83b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16dc41,_0x455753,_0x3ce909){super(_0x16dc41),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x16dc41),this['_errorView']=new ti(_0x16dc41),this['_editingView']=new ei(_0x16dc41,_0x3ce909),this['_focusableView']=new _0x1ac545(_0x16dc41),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x455753),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'],_0x159aaa=>{this['_addUploadcareImageEditorListeners'](_0x159aaa);});}),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'](_0x39d1e7,_0x134ba8){const _0x1ba364='uc-cloud-image-editor',_0x44a18e=_0x39d1e7['querySelector'](_0x1ba364);if(_0x44a18e)return _0x134ba8(_0x44a18e);const _0x8e67e2=new MutationObserver(_0xa8ef65=>{const _0x3108af=_0xa8ef65['filter'](_0x50e6cf=>_0x50e6cf['target']===_0x39d1e7&&_0x50e6cf['addedNodes']['length']>0x0&&_0x50e6cf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1ba364);_0x3108af['length']&&(_0x8e67e2['disconnect'](),_0x134ba8(_0x3108af[0x0]['addedNodes'][0x0]));});_0x8e67e2['observe'](_0x39d1e7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3ef401){_0x3ef401['addEventListener']('apply',_0x16a5d2=>{this['fire']('apply',{'imageSrc':_0x16a5d2['detail']['cdnUrl']});}),_0x3ef401['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x29ffde(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb5f966,_0x49516a,_0x4ef2b1){super(),this['_editor']=_0xb5f966,this['_dialog']=_0x49516a,this['_imageElement']=_0x4ef2b1,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 _0x28c3ba=this['_imageElement'],_0x4568f8=_0x28c3ba['getAttribute']('uploadcareImageId'),_0x159fea=_0x28c3ba['getAttribute']('src');if(_0x4568f8)await this['_loadImageInfo'](_0x4568f8,_0x159fea);else{if(this['_imageCache']['has'](_0x159fea)){const _0x19fae6=this['_imageCache']['get'](_0x159fea);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19fae6['url'],this['imageDimension']=_0x19fae6['dimension'],this['imageId']=_0x19fae6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x10d7d3}=this['_editor'],t=_0x10d7d3['t'],_0x40dc4e=new X(_0x10d7d3,this['imageStatus'],this['_attributes']);_0x40dc4e['bind']('status')['to'](this,'imageStatus'),_0x40dc4e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x40dc4e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x40dc4e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x40dc4e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b3293,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x40dc4e,'position':_0x37fdf6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x40dc4e['focus']();},'onHide':()=>{_0x40dc4e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41bb98=>!A(_0x41bb98,_0x40dc4e['element'])}});}['_loadImageInfo'](_0x3de6cf,_0x304945){return j['getInfo'](_0x3de6cf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x48a2a1=>{const {width:_0x2c1194,height:_0x327c5d}=_0x48a2a1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x304945,this['imageDimension']={'width':_0x2c1194,'height':_0x327c5d},this['imageId']=_0x3de6cf;})['catch'](_0x359484=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x359484['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53778b,_0x268212){return this['_getImageAsFile'](_0x53778b)['then'](_0x4c169e=>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':_0x268212['signal'],'file':_0x4c169e,'onProgress':_0x55e434=>{_0x55e434&&_0x55e434['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x55e434['value']));}}))['then'](_0xf4b12e=>{const {width:_0x1f6410,height:_0x53c306}=_0xf4b12e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf4b12e['cdnUrl'],this['imageDimension']={'width':_0x1f6410,'height':_0x53c306},this['imageId']=_0xf4b12e['uuid'],this['imageUploadProgress']=null;const _0x2d984f=_0x53778b['getAttribute']('src');this['_imageCache']['set'](_0x2d984f,{'id':_0xf4b12e['uuid'],'url':_0xf4b12e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xe4914e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xe4914e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5525dd,_0x54dc1b){_0x5525dd['on']('apply',(_0xd1f912,_0x1f60d5)=>{this['_replaceImage'](_0x54dc1b,_0x1f60d5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5525dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5525dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x441fca,_0x29912c,_0x54cc88){const _0x620e90=this['_editor'],{width:_0x46bd93,height:_0x460b6d}=S(_0x29912c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38d3cd,imageSources:_0x173fab}=C(_0x29912c,_0x46bd93);_0x620e90['model']['change'](_0xe4cf67=>{if('$graveyard'===_0x441fca['root']['rootName']){_0x620e90['execute']('insertImage',{'imageType':_0x441fca['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x441fca['getAttributes']()),'uploadcareImageId':_0x54cc88,'src':_0x38d3cd,'sources':_0x173fab,'width':_0x46bd93,'height':_0x460b6d}});const _0x48329c=_0x441fca['getChildren']();_0x441fca=_0x620e90['model']['document']['selection']['getSelectedElement']();for(const _0x182894 of _0x48329c)_0xe4cf67['append'](_0xe4cf67['cloneElement'](_0x182894),_0x441fca);}else _0xe4cf67['setSelection'](_0x441fca,'on'),_0x620e90['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x441fca['getAttributes']()),'uploadcareImageId':_0x54cc88,'src':_0x38d3cd,'sources':_0x173fab,'width':_0x46bd93,'height':_0x460b6d},_0x441fca);_0xe4cf67['setSelection'](_0x441fca,'on');});}async['_getImageAsFile'](_0x5a7e8c){const _0x383876=_0x16b173['window'],_0x531a2f=_0x16b173['document']['location']['href'],_0x1e4e3c=new _0x383876['URL'](_0x5a7e8c['getAttribute']('src'),_0x531a2f);if('data:'===_0x1e4e3c['protocol']){const _0x346818=_0x1e4e3c['href']['split'](','),_0x1c2d23=_0x346818[0x0]['match'](/:(.*?);/)[0x1],_0x28d9a2=_0x1c2d23['split']('/')[0x1],_0xf1ed66=_0x383876['atob'](_0x346818[_0x346818['length']-0x1]);let _0x1113a4=_0xf1ed66['length'];const _0x581b35=new _0x383876['Uint8Array'](_0x1113a4);for(;_0x1113a4--;)_0x581b35[_0x1113a4]=_0xf1ed66['charCodeAt'](_0x1113a4);return new _0x383876['File']([_0x581b35],'image.'+_0x28d9a2,{'type':_0x1c2d23});}const _0x4a1200=_0x1e4e3c['href']['split']('/'),_0x3a6fb1=_0x4a1200[_0x4a1200['length']-0x1],_0x4005bc=_0x3a6fb1['split']('.')[0x1];return _0x383876['fetch'](_0x1e4e3c['href'])['then'](_0x159077=>_0x159077['clone']()['blob']())['then'](_0x4c1bdd=>new _0x383876['File']([_0x4c1bdd],_0x3a6fb1,{'type':'image/'+_0x4005bc}));}}class O extends _0x2ef60a{['imageEditController'];static get['requires'](){return[_0x5f1bcf];}['_isEditable'];constructor(_0xed7f61){super(_0xed7f61),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47fdfb){const _0x288f84=G(_0x47fdfb);return _0x588af9=>!(!_0x588af9||!_0x588af9['is']('element','imageBlock')&&!_0x588af9['is']('element','imageInline'))&&(!!_0x588af9['hasAttribute']('uploadcareImageId')||!!_0x588af9['hasAttribute']('src')&&_0x288f84(_0x588af9['getAttribute']('src')));}(_0xed7f61['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3ef61e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3ef61e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x74f849=this['editor']['model']['document']['selection']['getSelectedElement']();_0x74f849&&(_0x74f849['is']('element','imageBlock')||_0x74f849['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5f1bcf),_0x74f849),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2ef60a{['refresh'](){const _0xf8558=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xf8558&&(_0xf8558['is']('element','imageBlock')||_0xf8558['is']('element','imageInline')));}['execute'](_0x43e9d5){const _0x43693a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x127134=>{_0x127134['setAttributes'](_0x43e9d5,_0x43693a),_0x127134['removeAttribute']('srcset',_0x43693a),_0x127134['removeAttribute']('sizes',_0x43693a);});}}class m extends _0x5ba322{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x36f06d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x34d89d}=this;_0x34d89d['commands']['add']('uploadcareImageEdit',new O(_0x34d89d)),_0x34d89d['commands']['add']('uploadcareImageReplace',new R(_0x34d89d));}}class g extends _0x5ba322{['_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 _0x245b54=this['editor'];_0x245b54['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e5e75=>{const _0x7d20a7=_0x245b54['commands']['get']('uploadcareImageEdit'),_0x510e21=new _0x39f50d(_0x3e5e75),t=_0x3e5e75['t'];return _0x510e21['set']({'icon':_0x5b3293,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x510e21['bind']('isEnabled')['to'](_0x7d20a7),_0x510e21['bind']('isOn')['to'](_0x7d20a7,'isActive'),this['listenTo'](_0x510e21,'execute',()=>{_0x245b54['execute']('uploadcareImageEdit'),_0x245b54['editing']['view']['focus']();}),_0x510e21;}),this['_initConfig']();}['_initConfig'](){const _0x1305c4=_0x136a00(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1305c4),this['listenTo'](this['editor'],'destroy',()=>{_0x1305c4['remove']();});}}class et extends _0x5ba322{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250922.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250922.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250922.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250922.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250922.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250922.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250922.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250922.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250922.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
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 _0x3639e5=_0x4d99;(function(_0x286731,_0x17684b){const _0x4427b5=_0x4d99,_0x2093f6=_0x286731();while(!![]){try{const _0x4ee11e=parseInt(_0x4427b5(0x20d))/0x1+-parseInt(_0x4427b5(0x21b))/0x2+-parseInt(_0x4427b5(0x201))/0x3*(-parseInt(_0x4427b5(0x204))/0x4)+parseInt(_0x4427b5(0x21c))/0x5*(parseInt(_0x4427b5(0x212))/0x6)+parseInt(_0x4427b5(0x216))/0x7*(-parseInt(_0x4427b5(0x1f6))/0x8)+parseInt(_0x4427b5(0x1e5))/0x9*(parseInt(_0x4427b5(0x1ff))/0xa)+parseInt(_0x4427b5(0x233))/0xb;if(_0x4ee11e===_0x17684b)break;else _0x2093f6['push'](_0x2093f6['shift']());}catch(_0x1d846a){_0x2093f6['push'](_0x2093f6['shift']());}}}(_0x5999,0x83d13));import{Plugin as _0x18fb37}from'ckeditor5/src/core.js';import{Dialog as _0x155aa7}from'ckeditor5/src/ui.js';function _0x5999(){const _0x31be5e=['_initCtx','listenTo','data-uc-image-id','getSelectedElement','_initImageProcessingIndicator','input[uploadcare-file-input]','model','contentLanguage','_initConfig','for','367389KLWIcX','replaceImageSource','uploadcare','uploadcareImageReplace','upcast','uploadcare.pubkey','UploadcareEditing','attributeToAttribute','6156ECeCCZ','appendChild','insertImage','schema','config','requires','once','cleanupImage','_ctxElement','commands','configElement','getAttribute','isRegistered','editor','imageInline','extend','uploadcareImageId','5781808Nlvwxc','uc-config','pluginName','join','_initConversion','ctxElement','fromCharCode','closeMax','get','8850eMXHTv','ucContextId','3459mVAAvE','uploader-','_configElement','748lsvHMO','selection','isOfficialPlugin','locale','href','\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','init','conversion','iconHrefResolver','665896rvpEsQ','editing','downcast','elementToAttribute','removeAttribute','817428ENZaqs','uc-upload-ctx-provider','body','destroy','7dBNskj','afterInit','remove','view','true','787670ybDlPg','5PxvHvf','document','_initSchema','render','execute','isPremiumPlugin','#uc-icon-arrow-down','imageBlock','querySelector','uploadcare.uploader','PictureEditing','map','add'];_0x5999=function(){return _0x31be5e;};return _0x5999();}import{createElement as _0x827abf,global as _0x26e4c6,uid as _0x5599b2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xdfefa2}from'./uploadcarecommand.js';function _0x4d99(_0x3ca680,_0x3035bd){const _0x59999d=_0x5999();return _0x4d99=function(_0x4d993e,_0x24ac06){_0x4d993e=_0x4d993e-0x1e3;let _0x528f65=_0x59999d[_0x4d993e];return _0x528f65;},_0x4d99(_0x3ca680,_0x3035bd);}import{UploadcareUploadAdapter as _0x5b6970}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3609ac}from'./utils/editingutils.js';export class UploadcareEditing extends _0x18fb37{[_0x3639e5(0x203)]=null;[_0x3639e5(0x1ed)]=null;static get[_0x3639e5(0x1f8)](){const _0x4e926a=_0x3639e5;return _0x4e926a(0x1e3);}static get[_0x3639e5(0x1ea)](){const _0x29104b=_0x3639e5;return[_0x29104b(0x226),_0x5b6970,_0x155aa7];}static get[_0x3639e5(0x206)](){return!0x0;}static get[_0x3639e5(0x221)](){return!0x0;}[_0x3639e5(0x200)];get[_0x3639e5(0x1ef)](){const _0x408da3=_0x3639e5;return this[_0x408da3(0x203)];}get[_0x3639e5(0x1fb)](){const _0x4c211c=_0x3639e5;return this[_0x4c211c(0x1ed)];}constructor(_0xf48835){const _0x4d3503=_0x3639e5;super(_0xf48835),this[_0x4d3503(0x200)]=_0x5599b2();}[_0x3639e5(0x20a)](){const _0x1f66bf=_0x3639e5,_0x13d2c4=this[_0x1f66bf(0x1f2)];_0x13d2c4[_0x1f66bf(0x1ee)][_0x1f66bf(0x228)](_0x1f66bf(0x235),new _0xdfefa2(_0x13d2c4));}[_0x3639e5(0x217)](){const _0x27a868=_0x3639e5;this[_0x27a868(0x21e)](),this[_0x27a868(0x1fa)](),this[_0x27a868(0x231)](),this[_0x27a868(0x229)](),this[_0x27a868(0x22d)](),this[_0x27a868(0x22a)](this[_0x27a868(0x1f2)],_0x27a868(0x215),()=>{const _0x430580=_0x27a868;this[_0x430580(0x203)]&&(this[_0x430580(0x203)][_0x430580(0x218)](),this[_0x430580(0x203)]=null),this[_0x430580(0x1ed)]&&(this[_0x430580(0x1ed)][_0x430580(0x218)](),this[_0x430580(0x1ed)]=null);const _0x373a18=_0x26e4c6[_0x430580(0x21d)][_0x430580(0x224)](_0x430580(0x22e));_0x373a18&&_0x373a18[_0x430580(0x218)]();}),async function(_0x220ed8){const _0x3d957e=_0x55ad62([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2daa1f=0x3d8d0df,_0x32cbd3=0x3dfa337^_0x2daa1f,_0x2eeb0d=window[_0x55ad62([0x44,0x61,0x74,0x65])][_0x55ad62([0x6e,0x6f,0x77])](),_0x2c1670=_0x220ed8[_0x55ad62([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x230395=new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b696a=>{_0x2c1670[_0x55ad62([0x6f,0x6e,0x63,0x65])](_0x55ad62([0x72,0x65,0x61,0x64,0x79]),_0x5b696a);}),_0x1365ed={[_0x55ad62([0x6b,0x74,0x79])]:_0x55ad62([0x45,0x43]),[_0x55ad62([0x75,0x73,0x65])]:_0x55ad62([0x73,0x69,0x67]),[_0x55ad62([0x63,0x72,0x76])]:_0x55ad62([0x50,0x2d,0x32,0x35,0x36]),[_0x55ad62([0x78])]:_0x55ad62([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]),[_0x55ad62([0x79])]:_0x55ad62([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]),[_0x55ad62([0x61,0x6c,0x67])]:_0x55ad62([0x45,0x53,0x32,0x35,0x36])},_0x4e8381=_0x2c1670[_0x55ad62([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55ad62([0x67,0x65,0x74])](_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x280954(){let _0x50f955,_0x353fef=null,_0x5e689f=null;try{if(_0x4e8381==_0x55ad62([0x47,0x50,0x4c]))return _0x55ad62([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50f955=_0x52b0b5(),!_0x50f955)return _0x55ad62([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50f955[_0x55ad62([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e689f=_0x520a04(_0x50f955[_0x55ad62([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50f955[_0x55ad62([0x6a,0x74,0x69])])),await _0x50b01d()?_0x3a321d()?_0xfad95f()?_0x55ad62([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f6d6b()?(_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ad62([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x353fef=_0x2819d0(_0x55ad62([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ad62([0x74,0x72,0x69,0x61,0x6c])&&(_0x353fef=_0x2819d0(_0x55ad62([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cd3ff()):_0x55ad62([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55ad62([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55ad62([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55ad62([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfad95f(){const _0x2be44a=[_0x55ad62([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55ad62([0x74,0x72,0x69,0x61,0x6c])][_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2eeb0d/0x3e8:0xe10*_0x32cbd3;return _0x50f955[_0x55ad62([0x65,0x78,0x70])]<_0x2be44a;}function _0x3a321d(){const _0x15790e=_0x50f955[_0x55ad62([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15790e&&(!!_0x15790e[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ad62([0x2a]))||!!_0x15790e[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ad62([0x55,0x50,0x4c,0x43])));}function _0x3f6d6b(){const _0x1de3fe=_0x4d99,_0x16cfc7=_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16cfc7||0x0==_0x16cfc7[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6e177b}=new URL(window[_0x55ad62([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1de3fe(0x208)]);if(_0x16cfc7[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6e177b))return!0x0;const _0x289faa=_0x6e177b[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e]));return _0x16cfc7[_0x55ad62([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45376d=>_0x45376d[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ad62([0x2a])))[_0x55ad62([0x6d,0x61,0x70])](_0x3cafae=>_0x3cafae[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e])))[_0x55ad62([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bcdf3=>_0x1bcdf3[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x289faa[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55ad62([0x6d,0x61,0x70])](_0x37887c=>Array(_0x289faa[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x37887c[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55ad62([0x66,0x69,0x6c,0x6c])](_0x37887c[0x0]===_0x55ad62([0x2a])?_0x55ad62([0x2a]):'')[_0x55ad62([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x37887c))[_0x55ad62([0x73,0x6f,0x6d,0x65])](_0x4850b7=>_0x289faa[_0x55ad62([0x65,0x76,0x65,0x72,0x79])]((_0x59e190,_0x358751)=>_0x4850b7[_0x358751]===_0x59e190||_0x4850b7[_0x358751]===_0x55ad62([0x2a])));}function _0x2cd3ff(){return _0x353fef&&_0x5e689f?new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c57b8,_0x1d4354)=>{_0x353fef[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x3c57b8,_0x1d4354),_0x5e689f[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x2d9452=>{_0x2d9452!=_0x55ad62([0x56,0x61,0x6c,0x69,0x64])&&_0x3c57b8(_0x2d9452);},_0x1d4354);}):_0x353fef||_0x5e689f||_0x55ad62([0x56,0x61,0x6c,0x69,0x64]);}}function _0x520a04(_0x8fc042,_0x160239){return new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x460ab3=>{if(_0x5dfc3b())return _0x460ab3(_0x55ad62([0x56,0x61,0x6c,0x69,0x64]));_0x27deca(),_0x2c1670[_0x55ad62([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55ad62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2abf80=!0x1;const _0x1727eb=_0x5599b2();function _0x1bdd42(_0x459798){return!!_0x459798&&(typeof _0x459798===_0x55ad62([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x459798===_0x55ad62([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x459798[_0x55ad62([0x74,0x68,0x65,0x6e])]===_0x55ad62([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x459798[_0x55ad62([0x63,0x61,0x74,0x63,0x68])]===_0x55ad62([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5855e(_0x13ddb4){_0x432877(_0x13ddb4)[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x50c95f=>{if(!_0x50c95f||_0x50c95f[_0x55ad62([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55ad62([0x6f,0x6b]))return _0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x302777(_0x3108b6(_0x1727eb+_0x160239))!=_0x50c95f[_0x55ad62([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55ad62([0x56,0x61,0x6c,0x69,0x64]);})[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x5f54ff=>(_0x1d4cf2(),_0x5f54ff),()=>{const _0xc8a4db=_0x690075();return null==_0xc8a4db?(_0x1d4cf2(),_0x55ad62([0x56,0x61,0x6c,0x69,0x64])):_0x55ad62(_0x2eeb0d-_0xc8a4db>(0x27d454df^_0x2daa1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x460ab3)[_0x55ad62([0x63,0x61,0x74,0x63,0x68])](()=>{_0x460ab3(_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a5198=0x3ee3e5f^_0x2daa1f;function _0x1d4cf2(){const _0x2f2def=_0x55ad62([0x6c,0x6c,0x63,0x74,0x2d])+_0x302777(_0x3108b6(_0x8fc042)),_0xc34852=_0x2ed6aa(_0x302777(window[_0x55ad62([0x4d,0x61,0x74,0x68])][_0x55ad62([0x63,0x65,0x69,0x6c])](_0x2eeb0d/_0x5a5198)));window[_0x55ad62([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ad62([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f2def,_0xc34852);}function _0x690075(){const _0x35002a=_0x55ad62([0x6c,0x6c,0x63,0x74,0x2d])+_0x302777(_0x3108b6(_0x8fc042)),_0x6a2ab3=window[_0x55ad62([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ad62([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35002a);return _0x6a2ab3?window[_0x55ad62([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ed6aa(_0x6a2ab3),0x10)*_0x5a5198:null;}function _0x432877(_0x5adab7){return new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34f30b,_0x15e437)=>{_0x5adab7[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x34f30b,_0x15e437),window[_0x55ad62([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15e437,0x3d9041f^_0x2daa1f);});}}_0x2c1670[_0x55ad62([0x6f,0x6e])](_0x55ad62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c7e8d,_0x24e7ad)=>{if(_0x24e7ad[0x0]!=_0x8fc042)return _0x460ab3(_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24e7ad[0x1]={..._0x24e7ad[0x1],[_0x55ad62([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1727eb};},{[_0x55ad62([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ad62([0x68,0x69,0x67,0x68])}),_0x2c1670[_0x55ad62([0x6f,0x6e])](_0x55ad62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x104297=>{_0x1bdd42(_0x104297[_0x55ad62([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2abf80=!0x0,_0x5855e(_0x104297[_0x55ad62([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55ad62([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ad62([0x6c,0x6f,0x77])}),_0x230395[_0x55ad62([0x74,0x68,0x65,0x6e])](()=>{_0x2abf80||_0x460ab3(_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dfc3b(){return _0x2c1670[_0x55ad62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ad62([0x76,0x69,0x65,0x77])][_0x55ad62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55ad62([0x61,0x75,0x74,0x6f]);}function _0x27deca(){_0x2c1670[_0x55ad62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ad62([0x76,0x69,0x65,0x77])][_0x55ad62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55ad62([0x61,0x75,0x74,0x6f]);}}function _0x2819d0(_0x1ebd91){const _0x1801c4=[new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322c43=>setTimeout(_0x322c43,0x3d1ee13^_0x2daa1f)),_0x230395[_0x55ad62([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb8d090=>{let _0x182158=0x0;_0x2c1670[_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ad62([0x6f,0x6e])](_0x55ad62([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bc2b6,_0x3949db)=>{_0x3949db[0x0][_0x55ad62([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x182158++,_0x182158==(0x3d8d127^_0x2daa1f)&&(_0xb8d090(),_0x1bc2b6[_0x55ad62([0x6f,0x66,0x66])]());});}))];return window[_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55ad62([0x72,0x61,0x63,0x65])](_0x1801c4)[_0x55ad62([0x74,0x68,0x65,0x6e])](()=>_0x1ebd91);}async function _0x4ddbb0(){await _0x230395,_0x2c1670[_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ad62([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x342a93,_0x2c1670[_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ad62([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x342a93,_0x2c1670[_0x55ad62([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35e466(_0x2162dc){const _0x4ff993=_0x38cd71();_0x2c1670[_0x4ff993]=_0x55ad62([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2162dc,_0x2162dc!=_0x55ad62([0x56,0x61,0x6c,0x69,0x64])&&_0x4ddbb0();}function _0x38cd71(){const _0x1cebf1=window[_0x55ad62([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55ad62([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55ad62([0x6e,0x6f,0x77])]())[_0x55ad62([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55ad62([0x2e]),'');let _0x83cee1=_0x55ad62([0x52]);for(let _0xc6c339=0x0;_0xc6c339<_0x1cebf1[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6c339+=0x2){let _0x4a4fce=window[_0x55ad62([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cebf1[_0x55ad62([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc6c339,_0xc6c339+0x2));_0x4a4fce>=_0x3d957e[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a4fce-=_0x3d957e[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x83cee1+=_0x3d957e[_0x4a4fce];}return _0x83cee1;}function _0x52b0b5(){const _0x29c81d=_0x4e8381[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e]));if(0x3!=_0x29c81d[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1339f9(_0x29c81d[0x1]);function _0x1339f9(_0x7bb86d){const _0x2be691=_0x419174(_0x7bb86d);return _0x2be691&&_0x5cb860()?_0x2be691:null;function _0x5cb860(){const _0x490982=_0x2be691[_0x55ad62([0x6a,0x74,0x69])],_0x20b909=window[_0x55ad62([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x490982[_0x55ad62([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x490982[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44d2c9={..._0x2be691,[_0x55ad62([0x6a,0x74,0x69])]:_0x490982[_0x55ad62([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x490982[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44d2c9[_0x55ad62([0x76,0x63])],_0x3108b6(_0x44d2c9)==_0x20b909;}}}async function _0x50b01d(){let _0x47e42f=!0x0;try{const _0x54bc0b=_0x4e8381[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e])),[_0x4ece8d,_0x382d05,_0x3267a1]=_0x54bc0b;return _0x2da91e(_0x4ece8d),await _0x18edc1(_0x4ece8d,_0x382d05,_0x3267a1),_0x47e42f;}catch{return!0x1;}function _0x2da91e(_0x2566c1){const _0x5c816=_0x419174(_0x2566c1);_0x5c816&&_0x5c816[_0x55ad62([0x61,0x6c,0x67])]==_0x55ad62([0x45,0x53,0x32,0x35,0x36])||(_0x47e42f=!0x1);}async function _0x18edc1(_0x4296e1,_0x42a8d5,_0x3ee14c){const _0x363ee3=window[_0x55ad62([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55ad62([0x66,0x72,0x6f,0x6d])](_0x544f68(_0x3ee14c),_0x55a4b0=>_0x55a4b0[_0x55ad62([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d8944=new window[(_0x55ad62([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55ad62([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4296e1+_0x55ad62([0x2e])+_0x42a8d5),_0x534bfd=window[_0x55ad62([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55ad62([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x534bfd)return;const _0x887fe7=await _0x534bfd[_0x55ad62([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55ad62([0x6a,0x77,0x6b]),_0x1365ed,{[_0x55ad62([0x6e,0x61,0x6d,0x65])]:_0x55ad62([0x45,0x43,0x44,0x53,0x41]),[_0x55ad62([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55ad62([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55ad62([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x534bfd[_0x55ad62([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55ad62([0x6e,0x61,0x6d,0x65])]:_0x55ad62([0x45,0x43,0x44,0x53,0x41]),[_0x55ad62([0x68,0x61,0x73,0x68])]:{[_0x55ad62([0x6e,0x61,0x6d,0x65])]:_0x55ad62([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x887fe7,_0x363ee3,_0x5d8944)||(_0x47e42f=!0x1);}}function _0x419174(_0x492353){return _0x492353[_0x55ad62([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55ad62([0x65,0x79]))?JSON[_0x55ad62([0x70,0x61,0x72,0x73,0x65])](_0x544f68(_0x492353)):null;}function _0x544f68(_0x3e693c){return window[_0x55ad62([0x61,0x74,0x6f,0x62])](_0x3e693c[_0x55ad62([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55ad62([0x2b]))[_0x55ad62([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55ad62([0x2f])));}function _0x3108b6(_0x470079){let _0x5ae06e=0x1505;function _0x50e05b(_0x481269){for(let _0x55d1ff=0x0;_0x55d1ff<_0x481269[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55d1ff++){const _0x56d3ac=_0x481269[_0x55ad62([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55d1ff);_0x5ae06e=(_0x5ae06e<<0x5)+_0x5ae06e+_0x56d3ac,_0x5ae06e&=_0x5ae06e;}}function _0x1135f8(_0x346112){Array[_0x55ad62([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x346112)?_0x346112[_0x55ad62([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1135f8):_0x346112&&typeof _0x346112==_0x55ad62([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55ad62([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x346112)[_0x55ad62([0x73,0x6f,0x72,0x74])]()[_0x55ad62([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b75ee,_0x4de6fb])=>{_0x50e05b(_0x2b75ee),_0x1135f8(_0x4de6fb);}):_0x50e05b(window[_0x55ad62([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x346112));}return _0x1135f8(_0x470079),_0x5ae06e>>>0x0;}function _0x302777(_0x195a88){return _0x195a88[_0x55ad62([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55ad62([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55ad62([0x30]));}function _0x2ed6aa(_0x17954b){return _0x17954b[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55ad62([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55ad62([0x6a,0x6f,0x69,0x6e])]('');}function _0x342a93(){}function _0x55ad62(_0x1b422f){const _0x578fc1=_0x4d99;return _0x1b422f[_0x578fc1(0x227)](_0x37ed1f=>String[_0x578fc1(0x1fc)](_0x37ed1f))[_0x578fc1(0x1f9)]('');}_0x35e466(await _0x280954());}(this);}[_0x3639e5(0x21e)](){const _0x1e272d=_0x3639e5,_0xb33c36=this[_0x1e272d(0x1f2)][_0x1e272d(0x22f)][_0x1e272d(0x1e8)];_0xb33c36[_0x1e272d(0x1f1)](_0x1e272d(0x223))&&_0xb33c36[_0x1e272d(0x1f4)](_0x1e272d(0x223),{'allowAttributes':[_0x1e272d(0x1f5)]}),_0xb33c36[_0x1e272d(0x1f1)](_0x1e272d(0x1f3))&&_0xb33c36[_0x1e272d(0x1f4)](_0x1e272d(0x1f3),{'allowAttributes':[_0x1e272d(0x1f5)]});}[_0x3639e5(0x1fa)](){const _0x17aeff=_0x3639e5,_0x5f330f=this[_0x17aeff(0x1f2)];_0x5f330f[_0x17aeff(0x20b)][_0x17aeff(0x232)](_0x17aeff(0x20f))[_0x17aeff(0x1e4)]({'model':_0x17aeff(0x1f5),'view':_0x17aeff(0x22b)}),_0x5f330f[_0x17aeff(0x20b)][_0x17aeff(0x232)](_0x17aeff(0x237))[_0x17aeff(0x210)]({'model':{'key':_0x17aeff(0x1f5),'value':_0x5e80a5=>_0x5e80a5[_0x17aeff(0x1f0)](_0x17aeff(0x22b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e87f7=_0x5f330f[_0x17aeff(0x1ee)][_0x17aeff(0x1fe)](_0x17aeff(0x234));_0x4e87f7&&this[_0x17aeff(0x22a)](_0x4e87f7,_0x17aeff(0x1ec),(_0x568242,[_0x47b991,_0x59c104])=>{const _0x4c3aa9=_0x17aeff;_0x47b991[_0x4c3aa9(0x211)](_0x4c3aa9(0x1f5),_0x59c104);});}[_0x3639e5(0x231)](){const _0x28d119=_0x3639e5,_0x3c59db=this[_0x28d119(0x1f2)][_0x28d119(0x1e9)][_0x28d119(0x1fe)](_0x28d119(0x225))||{},_0x1f14e7=this[_0x28d119(0x1f2)][_0x28d119(0x1e9)][_0x28d119(0x1fe)](_0x28d119(0x238))||'';this[_0x28d119(0x203)]=_0x827abf(_0x26e4c6[_0x28d119(0x21d)],_0x28d119(0x1f7),{..._0x3c59db,'pubkey':_0x1f14e7,'ctx-name':_0x28d119(0x202)+this[_0x28d119(0x200)],'sourceList':'','imgOnly':_0x28d119(0x21a),'removeCopyright':_0x28d119(0x21a),'localeName':this[_0x28d119(0x1f2)][_0x28d119(0x207)][_0x28d119(0x230)],'externalSourcesEmbedCss':_0x28d119(0x209)}),this[_0x28d119(0x203)][_0x28d119(0x20c)]=_0x341b27=>{const _0x2deea4=_0x28d119;if(_0x2deea4(0x1fd)==_0x341b27)return _0x2deea4(0x222);},_0x26e4c6[_0x28d119(0x21d)][_0x28d119(0x214)][_0x28d119(0x1e6)](this[_0x28d119(0x203)]);}[_0x3639e5(0x229)](){const _0x21dd0f=_0x3639e5;this[_0x21dd0f(0x1ed)]=_0x827abf(_0x26e4c6[_0x21dd0f(0x21d)],_0x21dd0f(0x213),{'ctx-name':_0x21dd0f(0x202)+this[_0x21dd0f(0x200)]}),_0x26e4c6[_0x21dd0f(0x21d)][_0x21dd0f(0x214)][_0x21dd0f(0x1e6)](this[_0x21dd0f(0x1ed)]);}[_0x3639e5(0x22d)](){const _0x4cd009=_0x3639e5,_0x161f5c=this[_0x4cd009(0x1f2)][_0x4cd009(0x1ee)][_0x4cd009(0x1fe)](_0x4cd009(0x1e7));_0x161f5c&&this[_0x4cd009(0x22a)](_0x161f5c,_0x4cd009(0x220),()=>{const _0x3a7c1b=_0x4cd009,_0x5a0912=this[_0x3a7c1b(0x1f2)][_0x3a7c1b(0x22f)][_0x3a7c1b(0x21d)][_0x3a7c1b(0x205)][_0x3a7c1b(0x22c)]();_0x5a0912&&_0x5a0912[_0x3a7c1b(0x1f0)](_0x3a7c1b(0x1f5))&&this[_0x3a7c1b(0x1f2)][_0x3a7c1b(0x20e)][_0x3a7c1b(0x219)][_0x3a7c1b(0x1eb)](_0x3a7c1b(0x21f),()=>{const _0x53d303=_0x3a7c1b;_0x3609ac(this[_0x53d303(0x1f2)],_0x5a0912);});});const _0x21de87=this[_0x4cd009(0x1f2)][_0x4cd009(0x1ee)][_0x4cd009(0x1fe)](_0x4cd009(0x236));_0x21de87&&this[_0x4cd009(0x22a)](_0x21de87,_0x4cd009(0x220),()=>{const _0xa90d07=_0x4cd009,_0x43a822=this[_0xa90d07(0x1f2)][_0xa90d07(0x22f)][_0xa90d07(0x21d)][_0xa90d07(0x205)][_0xa90d07(0x22c)]();_0x43a822&&_0x43a822[_0xa90d07(0x1f0)](_0xa90d07(0x1f5))&&this[_0xa90d07(0x1f2)][_0xa90d07(0x20e)][_0xa90d07(0x219)][_0xa90d07(0x1eb)](_0xa90d07(0x21f),()=>{const _0x30d5d9=_0xa90d07;_0x3609ac(this[_0x30d5d9(0x1f2)],_0x43a822);});});}}
|
|
23
|
+
function _0x55bd(){const _0x5b8011=['_initImageProcessingIndicator','execute','downcast','elementToAttribute','ctxElement','contentLanguage','config','isPremiumPlugin','uploadcareImageId','uploadcare','afterInit','93783HIRkaL','map','upcast','getAttribute','PictureEditing','imageBlock','_initConfig','uc-config','uploadcare.uploader','listenTo','editor','requires','replaceImageSource','remove','6GAqajh','closeMax','true','689nOciYL','data-uc-image-id','_configElement','_initCtx','getSelectedElement','selection','1632XmuSgF','extend','_initSchema','3883584wZIKsA','uc-upload-ctx-provider','insertImage','document','commands','fromCharCode','_ctxElement','#uc-icon-arrow-down','editing','input[uploadcare-file-input]','removeAttribute','for','conversion','querySelector','cleanupImage','destroy','init','attributeToAttribute','imageInline','2193728bvKJHs','schema','add','iconHrefResolver','\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','uploadcare.pubkey','ucContextId','model','uploader-','body','_initConversion','render','view','join','once','pluginName','16186086THrHnQ','appendChild','get','3492685EhXhif','configElement','uploadcareImageReplace','UploadcareEditing','isOfficialPlugin','isRegistered','locale','href','1830965KSGnaQ'];_0x55bd=function(){return _0x5b8011;};return _0x55bd();}const _0x5b72c6=_0x1427;function _0x1427(_0x523512,_0x4b22cd){const _0x55bde2=_0x55bd();return _0x1427=function(_0x1427ad,_0x5ce525){_0x1427ad=_0x1427ad-0xce;let _0x43931b=_0x55bde2[_0x1427ad];return _0x43931b;},_0x1427(_0x523512,_0x4b22cd);}(function(_0x5942c0,_0x6ba0b1){const _0x1590f6=_0x1427,_0x2cea24=_0x5942c0();while(!![]){try{const _0xd1f6dc=-parseInt(_0x1590f6(0xf6))/0x1*(parseInt(_0x1590f6(0xfc))/0x2)+-parseInt(_0x1590f6(0xe5))/0x3+-parseInt(_0x1590f6(0x112))/0x4+parseInt(_0x1590f6(0xd9))/0x5*(-parseInt(_0x1590f6(0xf3))/0x6)+parseInt(_0x1590f6(0xd1))/0x7+-parseInt(_0x1590f6(0xff))/0x8+parseInt(_0x1590f6(0xce))/0x9;if(_0xd1f6dc===_0x6ba0b1)break;else _0x2cea24['push'](_0x2cea24['shift']());}catch(_0x58cc90){_0x2cea24['push'](_0x2cea24['shift']());}}}(_0x55bd,0x4a2eb));import{Plugin as _0x70e65e}from'ckeditor5/src/core.js';import{Dialog as _0x5aadf2}from'ckeditor5/src/ui.js';import{createElement as _0x35a106,global as _0x3075b5,uid as _0x15ef42}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x197496}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x392ff9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5278f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x70e65e{[_0x5b72c6(0xf8)]=null;[_0x5b72c6(0x105)]=null;static get[_0x5b72c6(0x121)](){const _0x394d91=_0x5b72c6;return _0x394d91(0xd4);}static get[_0x5b72c6(0xf0)](){const _0x19dab7=_0x5b72c6;return[_0x19dab7(0xe9),_0x392ff9,_0x5aadf2];}static get[_0x5b72c6(0xd5)](){return!0x0;}static get[_0x5b72c6(0xe1)](){return!0x0;}[_0x5b72c6(0x118)];get[_0x5b72c6(0xd2)](){const _0x5f2372=_0x5b72c6;return this[_0x5f2372(0xf8)];}get[_0x5b72c6(0xde)](){const _0x595415=_0x5b72c6;return this[_0x595415(0x105)];}constructor(_0x5308ac){const _0x479cc8=_0x5b72c6;super(_0x5308ac),this[_0x479cc8(0x118)]=_0x15ef42();}[_0x5b72c6(0x10f)](){const _0x1fda0d=_0x5b72c6,_0xd89a87=this[_0x1fda0d(0xef)];_0xd89a87[_0x1fda0d(0x103)][_0x1fda0d(0x114)](_0x1fda0d(0xe3),new _0x197496(_0xd89a87));}[_0x5b72c6(0xe4)](){const _0x5cb2c9=_0x5b72c6;this[_0x5cb2c9(0xfe)](),this[_0x5cb2c9(0x11c)](),this[_0x5cb2c9(0xeb)](),this[_0x5cb2c9(0xf9)](),this[_0x5cb2c9(0xda)](),this[_0x5cb2c9(0xee)](this[_0x5cb2c9(0xef)],_0x5cb2c9(0x10e),()=>{const _0x188798=_0x5cb2c9;this[_0x188798(0xf8)]&&(this[_0x188798(0xf8)][_0x188798(0xf2)](),this[_0x188798(0xf8)]=null),this[_0x188798(0x105)]&&(this[_0x188798(0x105)][_0x188798(0xf2)](),this[_0x188798(0x105)]=null);const _0x5075f5=_0x3075b5[_0x188798(0x102)][_0x188798(0x10c)](_0x188798(0x108));_0x5075f5&&_0x5075f5[_0x188798(0xf2)]();}),async function(_0x15874c){const _0x2393c6=_0x24aaf3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x226379=0x3d8d0df,_0x25fca3=0x3dfa4c7^_0x226379,_0xcdcf86=window[_0x24aaf3([0x44,0x61,0x74,0x65])][_0x24aaf3([0x6e,0x6f,0x77])](),_0x4073be=_0x15874c[_0x24aaf3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8aee=new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3672=>{_0x4073be[_0x24aaf3([0x6f,0x6e,0x63,0x65])](_0x24aaf3([0x72,0x65,0x61,0x64,0x79]),_0x5f3672);}),_0x485507={[_0x24aaf3([0x6b,0x74,0x79])]:_0x24aaf3([0x45,0x43]),[_0x24aaf3([0x75,0x73,0x65])]:_0x24aaf3([0x73,0x69,0x67]),[_0x24aaf3([0x63,0x72,0x76])]:_0x24aaf3([0x50,0x2d,0x32,0x35,0x36]),[_0x24aaf3([0x78])]:_0x24aaf3([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]),[_0x24aaf3([0x79])]:_0x24aaf3([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]),[_0x24aaf3([0x61,0x6c,0x67])]:_0x24aaf3([0x45,0x53,0x32,0x35,0x36])},_0x97a453=_0x4073be[_0x24aaf3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24aaf3([0x67,0x65,0x74])](_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24d445(){let _0x41c24d,_0x43db28=null,_0x164291=null;try{if(_0x97a453==_0x24aaf3([0x47,0x50,0x4c]))return _0x24aaf3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41c24d=_0x27e8a1(),!_0x41c24d)return _0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41c24d[_0x24aaf3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x164291=_0x4a7ae6(_0x41c24d[_0x24aaf3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41c24d[_0x24aaf3([0x6a,0x74,0x69])])),await _0x4e1155()?_0x3fb801()?_0x231658()?_0x24aaf3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dcd2a()?(_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24aaf3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43db28=_0x165ec1(_0x24aaf3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24aaf3([0x74,0x72,0x69,0x61,0x6c])&&(_0x43db28=_0x165ec1(_0x24aaf3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x278c59()):_0x24aaf3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24aaf3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x231658(){const _0x1271bb=[_0x24aaf3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24aaf3([0x74,0x72,0x69,0x61,0x6c])][_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcdcf86/0x3e8:0xe10*_0x25fca3;return _0x41c24d[_0x24aaf3([0x65,0x78,0x70])]<_0x1271bb;}function _0x3fb801(){const _0x2d17a1=_0x41c24d[_0x24aaf3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d17a1&&(!!_0x2d17a1[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x2a]))||!!_0x2d17a1[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x55,0x50,0x4c,0x43])));}function _0x2dcd2a(){const _0x1c5ea1=_0x1427,_0x508d18=_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508d18||0x0==_0x508d18[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e97c7}=new URL(window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c5ea1(0xd8)]);if(_0x508d18[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e97c7))return!0x0;const _0x4c7dd6=_0x5e97c7[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e]));return _0x508d18[_0x24aaf3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dc217=>_0x5dc217[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x2a])))[_0x24aaf3([0x6d,0x61,0x70])](_0x2c2474=>_0x2c2474[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e])))[_0x24aaf3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a10a1=>_0x5a10a1[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c7dd6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24aaf3([0x6d,0x61,0x70])](_0x33c544=>Array(_0x4c7dd6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33c544[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24aaf3([0x66,0x69,0x6c,0x6c])](_0x33c544[0x0]===_0x24aaf3([0x2a])?_0x24aaf3([0x2a]):'')[_0x24aaf3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33c544))[_0x24aaf3([0x73,0x6f,0x6d,0x65])](_0x2aa0a3=>_0x4c7dd6[_0x24aaf3([0x65,0x76,0x65,0x72,0x79])]((_0x59fb41,_0x3b6542)=>_0x2aa0a3[_0x3b6542]===_0x59fb41||_0x2aa0a3[_0x3b6542]===_0x24aaf3([0x2a])));}function _0x278c59(){return _0x43db28&&_0x164291?new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x496958,_0x18ff72)=>{_0x43db28[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x496958,_0x18ff72),_0x164291[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0xd807cd=>{_0xd807cd!=_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])&&_0x496958(_0xd807cd);},_0x18ff72);}):_0x43db28||_0x164291||_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a7ae6(_0x5ee1f0,_0x3e88d8){return new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x490e10=>{if(_0x49095f())return _0x490e10(_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]));_0x5e8835(),_0x4073be[_0x24aaf3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ca900=!0x1;const _0xcbafe8=_0x15ef42();function _0x2058ed(_0x2dbfd7){return!!_0x2dbfd7&&(typeof _0x2dbfd7===_0x24aaf3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2dbfd7===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2dbfd7[_0x24aaf3([0x74,0x68,0x65,0x6e])]===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2dbfd7[_0x24aaf3([0x63,0x61,0x74,0x63,0x68])]===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cd513(_0x26df0c){_0x1cd49e(_0x26df0c)[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x49df8f=>{if(!_0x49df8f||_0x49df8f[_0x24aaf3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24aaf3([0x6f,0x6b]))return _0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa8fca3(_0x291d8a(_0xcbafe8+_0x3e88d8))!=_0x49df8f[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]);})[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x1e8449=>(_0x5cfd12(),_0x1e8449),()=>{const _0x3fe200=_0x2e5ed2();return null==_0x3fe200?(_0x5cfd12(),_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])):_0x24aaf3(_0xcdcf86-_0x3fe200>(0x27d454df^_0x226379)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x490e10)[_0x24aaf3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d5909=0x3ee3e5f^_0x226379;function _0x5cfd12(){const _0x4d86c5=_0x24aaf3([0x6c,0x6c,0x63,0x74,0x2d])+_0xa8fca3(_0x291d8a(_0x5ee1f0)),_0x107f3f=_0x300625(_0xa8fca3(window[_0x24aaf3([0x4d,0x61,0x74,0x68])][_0x24aaf3([0x63,0x65,0x69,0x6c])](_0xcdcf86/_0x3d5909)));window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24aaf3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d86c5,_0x107f3f);}function _0x2e5ed2(){const _0x8347e7=_0x24aaf3([0x6c,0x6c,0x63,0x74,0x2d])+_0xa8fca3(_0x291d8a(_0x5ee1f0)),_0x4a42e7=window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24aaf3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8347e7);return _0x4a42e7?window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x300625(_0x4a42e7),0x10)*_0x3d5909:null;}function _0x1cd49e(_0x2beb12){return new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4101d9,_0x26bca2)=>{_0x2beb12[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x4101d9,_0x26bca2),window[_0x24aaf3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26bca2,0x3d9041f^_0x226379);});}}_0x4073be[_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x357390,_0x2acb04)=>{if(_0x2acb04[0x0]!=_0x5ee1f0)return _0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2acb04[0x1]={..._0x2acb04[0x1],[_0x24aaf3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xcbafe8};},{[_0x24aaf3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24aaf3([0x68,0x69,0x67,0x68])}),_0x4073be[_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44dd28=>{_0x2058ed(_0x44dd28[_0x24aaf3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ca900=!0x0,_0x5cd513(_0x44dd28[_0x24aaf3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24aaf3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24aaf3([0x6c,0x6f,0x77])}),_0x2f8aee[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>{_0x1ca900||_0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49095f(){return _0x4073be[_0x24aaf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24aaf3([0x76,0x69,0x65,0x77])][_0x24aaf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24aaf3([0x61,0x75,0x74,0x6f]);}function _0x5e8835(){_0x4073be[_0x24aaf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24aaf3([0x76,0x69,0x65,0x77])][_0x24aaf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24aaf3([0x61,0x75,0x74,0x6f]);}}function _0x165ec1(_0x1491ef){const _0x2100da=[new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3ffa=>setTimeout(_0x2c3ffa,0x3d1ee13^_0x226379)),_0x2f8aee[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293aad=>{let _0x1fdce9=0x0;_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50f78b,_0x1bf084)=>{_0x1bf084[0x0][_0x24aaf3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fdce9++,_0x1fdce9==(0x3d8d127^_0x226379)&&(_0x293aad(),_0x50f78b[_0x24aaf3([0x6f,0x66,0x66])]());});}))];return window[_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24aaf3([0x72,0x61,0x63,0x65])](_0x2100da)[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>_0x1491ef);}async function _0x50f693(){await _0x2f8aee,_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2094f7,_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2094f7,_0x4073be[_0x24aaf3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb309(_0xcba2f2){const _0x557261=_0x3f2aa0();_0x4073be[_0x557261]=_0x24aaf3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcba2f2,_0xcba2f2!=_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])&&_0x50f693();}function _0x3f2aa0(){const _0x26ee88=window[_0x24aaf3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24aaf3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24aaf3([0x6e,0x6f,0x77])]())[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24aaf3([0x2e]),'');let _0x45ba2e=_0x24aaf3([0x52]);for(let _0x5559e7=0x0;_0x5559e7<_0x26ee88[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5559e7+=0x2){let _0x3ace51=window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26ee88[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5559e7,_0x5559e7+0x2));_0x3ace51>=_0x2393c6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ace51-=_0x2393c6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45ba2e+=_0x2393c6[_0x3ace51];}return _0x45ba2e;}function _0x27e8a1(){const _0xbecb69=_0x97a453[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e]));if(0x3!=_0xbecb69[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ea47c(_0xbecb69[0x1]);function _0x3ea47c(_0x54c53d){const _0x5d3432=_0x15dd0e(_0x54c53d);return _0x5d3432&&_0x2e4628()?_0x5d3432:null;function _0x2e4628(){const _0x5e0748=_0x5d3432[_0x24aaf3([0x6a,0x74,0x69])],_0x2f8a9a=window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0748[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e0748[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fcb33={..._0x5d3432,[_0x24aaf3([0x6a,0x74,0x69])]:_0x5e0748[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e0748[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fcb33[_0x24aaf3([0x76,0x63])],_0x291d8a(_0x4fcb33)==_0x2f8a9a;}}}async function _0x4e1155(){let _0x3e259d=!0x0;try{const _0x60e36c=_0x97a453[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e])),[_0x327ce3,_0x2d605e,_0x10fef6]=_0x60e36c;return _0x2c18f0(_0x327ce3),await _0x47f97d(_0x327ce3,_0x2d605e,_0x10fef6),_0x3e259d;}catch{return!0x1;}function _0x2c18f0(_0x294c61){const _0x2c8f35=_0x15dd0e(_0x294c61);_0x2c8f35&&_0x2c8f35[_0x24aaf3([0x61,0x6c,0x67])]==_0x24aaf3([0x45,0x53,0x32,0x35,0x36])||(_0x3e259d=!0x1);}async function _0x47f97d(_0x379d5f,_0x3b5cfc,_0x1b7eba){const _0x42563b=window[_0x24aaf3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24aaf3([0x66,0x72,0x6f,0x6d])](_0x6b24cd(_0x1b7eba),_0x238a5c=>_0x238a5c[_0x24aaf3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458a5d=new window[(_0x24aaf3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24aaf3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x379d5f+_0x24aaf3([0x2e])+_0x3b5cfc),_0x2443ee=window[_0x24aaf3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24aaf3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2443ee)return;const _0x3d9544=await _0x2443ee[_0x24aaf3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24aaf3([0x6a,0x77,0x6b]),_0x485507,{[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x45,0x43,0x44,0x53,0x41]),[_0x24aaf3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24aaf3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2443ee[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x45,0x43,0x44,0x53,0x41]),[_0x24aaf3([0x68,0x61,0x73,0x68])]:{[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d9544,_0x42563b,_0x458a5d)||(_0x3e259d=!0x1);}}function _0x15dd0e(_0x211119){return _0x211119[_0x24aaf3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24aaf3([0x65,0x79]))?JSON[_0x24aaf3([0x70,0x61,0x72,0x73,0x65])](_0x6b24cd(_0x211119)):null;}function _0x6b24cd(_0x26d2d5){return window[_0x24aaf3([0x61,0x74,0x6f,0x62])](_0x26d2d5[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24aaf3([0x2b]))[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24aaf3([0x2f])));}function _0x291d8a(_0x4cb64f){let _0x21771c=0x1505;function _0x185526(_0x88ac4a){for(let _0x44bbe6=0x0;_0x44bbe6<_0x88ac4a[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44bbe6++){const _0x56de3d=_0x88ac4a[_0x24aaf3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44bbe6);_0x21771c=(_0x21771c<<0x5)+_0x21771c+_0x56de3d,_0x21771c&=_0x21771c;}}function _0x527e48(_0x1abab2){Array[_0x24aaf3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1abab2)?_0x1abab2[_0x24aaf3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x527e48):_0x1abab2&&typeof _0x1abab2==_0x24aaf3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24aaf3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1abab2)[_0x24aaf3([0x73,0x6f,0x72,0x74])]()[_0x24aaf3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f8703,_0x2ad2ac])=>{_0x185526(_0x4f8703),_0x527e48(_0x2ad2ac);}):_0x185526(window[_0x24aaf3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1abab2));}return _0x527e48(_0x4cb64f),_0x21771c>>>0x0;}function _0xa8fca3(_0x1ba081){return _0x1ba081[_0x24aaf3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24aaf3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24aaf3([0x30]));}function _0x300625(_0x5501a1){return _0x5501a1[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24aaf3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24aaf3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2094f7(){}function _0x24aaf3(_0x2e95f6){const _0x5ee1da=_0x1427;return _0x2e95f6[_0x5ee1da(0xe6)](_0x5b6ca9=>String[_0x5ee1da(0x104)](_0x5b6ca9))[_0x5ee1da(0x11f)]('');}_0x4fb309(await _0x24d445());}(this);}[_0x5b72c6(0xfe)](){const _0x3826c6=_0x5b72c6,_0x107228=this[_0x3826c6(0xef)][_0x3826c6(0x119)][_0x3826c6(0x113)];_0x107228[_0x3826c6(0xd6)](_0x3826c6(0xea))&&_0x107228[_0x3826c6(0xfd)](_0x3826c6(0xea),{'allowAttributes':[_0x3826c6(0xe2)]}),_0x107228[_0x3826c6(0xd6)](_0x3826c6(0x111))&&_0x107228[_0x3826c6(0xfd)](_0x3826c6(0x111),{'allowAttributes':[_0x3826c6(0xe2)]});}[_0x5b72c6(0x11c)](){const _0x1cc1cc=_0x5b72c6,_0x1c3fd4=this[_0x1cc1cc(0xef)];_0x1c3fd4[_0x1cc1cc(0x10b)][_0x1cc1cc(0x10a)](_0x1cc1cc(0xdc))[_0x1cc1cc(0x110)]({'model':_0x1cc1cc(0xe2),'view':_0x1cc1cc(0xf7)}),_0x1c3fd4[_0x1cc1cc(0x10b)][_0x1cc1cc(0x10a)](_0x1cc1cc(0xe7))[_0x1cc1cc(0xdd)]({'model':{'key':_0x1cc1cc(0xe2),'value':_0x1d2dfa=>_0x1d2dfa[_0x1cc1cc(0xe8)](_0x1cc1cc(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf3dcf1=_0x1c3fd4[_0x1cc1cc(0x103)][_0x1cc1cc(0xd0)](_0x1cc1cc(0xf1));_0xf3dcf1&&this[_0x1cc1cc(0xee)](_0xf3dcf1,_0x1cc1cc(0x10d),(_0x5d767f,[_0x535a78,_0x479e84])=>{const _0x443901=_0x1cc1cc;_0x535a78[_0x443901(0x109)](_0x443901(0xe2),_0x479e84);});}[_0x5b72c6(0xeb)](){const _0x2f939c=_0x5b72c6,_0x17f045=this[_0x2f939c(0xef)][_0x2f939c(0xe0)][_0x2f939c(0xd0)](_0x2f939c(0xed))||{},_0x2cd5d1=this[_0x2f939c(0xef)][_0x2f939c(0xe0)][_0x2f939c(0xd0)](_0x2f939c(0x117))||'';this[_0x2f939c(0xf8)]=_0x35a106(_0x3075b5[_0x2f939c(0x102)],_0x2f939c(0xec),{..._0x17f045,'pubkey':_0x2cd5d1,'ctx-name':_0x2f939c(0x11a)+this[_0x2f939c(0x118)],'sourceList':'','imgOnly':_0x2f939c(0xf5),'removeCopyright':_0x2f939c(0xf5),'localeName':this[_0x2f939c(0xef)][_0x2f939c(0xd7)][_0x2f939c(0xdf)],'externalSourcesEmbedCss':_0x2f939c(0x116)}),this[_0x2f939c(0xf8)][_0x2f939c(0x115)]=_0x4bdd23=>{const _0x4306c2=_0x2f939c;if(_0x4306c2(0xf4)==_0x4bdd23)return _0x4306c2(0x106);},_0x3075b5[_0x2f939c(0x102)][_0x2f939c(0x11b)][_0x2f939c(0xcf)](this[_0x2f939c(0xf8)]);}[_0x5b72c6(0xf9)](){const _0x402975=_0x5b72c6;this[_0x402975(0x105)]=_0x35a106(_0x3075b5[_0x402975(0x102)],_0x402975(0x100),{'ctx-name':_0x402975(0x11a)+this[_0x402975(0x118)]}),_0x3075b5[_0x402975(0x102)][_0x402975(0x11b)][_0x402975(0xcf)](this[_0x402975(0x105)]);}[_0x5b72c6(0xda)](){const _0x4bb6f6=_0x5b72c6,_0x16e3e6=this[_0x4bb6f6(0xef)][_0x4bb6f6(0x103)][_0x4bb6f6(0xd0)](_0x4bb6f6(0x101));_0x16e3e6&&this[_0x4bb6f6(0xee)](_0x16e3e6,_0x4bb6f6(0xdb),()=>{const _0x15d505=_0x4bb6f6,_0x45df9c=this[_0x15d505(0xef)][_0x15d505(0x119)][_0x15d505(0x102)][_0x15d505(0xfb)][_0x15d505(0xfa)]();_0x45df9c&&_0x45df9c[_0x15d505(0xe8)](_0x15d505(0xe2))&&this[_0x15d505(0xef)][_0x15d505(0x107)][_0x15d505(0x11e)][_0x15d505(0x120)](_0x15d505(0x11d),()=>{const _0x86fa10=_0x15d505;_0x5278f9(this[_0x86fa10(0xef)],_0x45df9c);});});const _0x159032=this[_0x4bb6f6(0xef)][_0x4bb6f6(0x103)][_0x4bb6f6(0xd0)](_0x4bb6f6(0xd3));_0x159032&&this[_0x4bb6f6(0xee)](_0x159032,_0x4bb6f6(0xdb),()=>{const _0x16cfd0=_0x4bb6f6,_0x47f6f0=this[_0x16cfd0(0xef)][_0x16cfd0(0x119)][_0x16cfd0(0x102)][_0x16cfd0(0xfb)][_0x16cfd0(0xfa)]();_0x47f6f0&&_0x47f6f0[_0x16cfd0(0xe8)](_0x16cfd0(0xe2))&&this[_0x16cfd0(0xef)][_0x16cfd0(0x107)][_0x16cfd0(0x11e)][_0x16cfd0(0x120)](_0x16cfd0(0x11d),()=>{const _0x121ff9=_0x16cfd0;_0x5278f9(this[_0x121ff9(0xef)],_0x47f6f0);});});}}
|