@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250507.0 → 0.0.0-nightly-20250508.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 _0xde9ca1,Command as _0x51a136}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x47a297,IconGooglePhotos as _0x413cfc,IconGoogleDrive as _0x56c7aa,IconFacebook as _0x54a0e1,IconDropbox as _0x2a80c5,IconUploadcareLink as _0x22cf59,IconUploadcareImageUpload as _0x51a48e,IconError as et,IconUploadcareImageEdit as _0x57bbde}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x104a57,MenuBarMenuListItemButtonView as _0x45cc99,View as _0x222a06,FocusCycler as _0x9e6521,Dialog as _0xc84dd5,DialogViewPosition as _0x3984c3,SpinnerView as _0x472768,IconView as at,Notification as _0x3d6426}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x60265b,DomEmitterMixin as _0x2be775,global as _0x49cf59,getAncestors as _0x1c4bee,ObservableMixin as _0x311277,createElement as _0x5a023c,uid as _0xb52d55}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12ab17}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x47540f,info as _0x5219da}from'@uploadcare/upload-client';import*as _0x102597 from'@uploadcare/file-uploader';var o=function(_0x3441fb){return _0x3441fb['Local']='local',_0x3441fb['URL']='url',_0x3441fb['Dropbox']='dropbox',_0x3441fb['GDrive']='gdrive',_0x3441fb['Facebook']='facebook',_0x3441fb['GPhotos']='gphotos',_0x3441fb['OneDrive']='onedrive',_0x3441fb;}({});function _(_0x1be44b,_0xeecba1,_0x173f62){const t=_0x1be44b['t'],_0x292a87=_0x1be44b['t'];switch(_0xeecba1){case o['Local']:return{'text':_0x292a87('Insert'===_0x173f62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x292a87('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173f62?_0x292a87('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x292a87('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xeecba1;}}class e extends _0xde9ca1{['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 _0x69745d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d777;for(const _0x43828a in _0x69745d){const _0x1682d8=_0x43828a,_0x24d29e=_0x69745d[_0x1682d8];if('uploadcareLicenseKeyValid'==_0x24d29e||'uploadcareLicenseKeyInvalid'==_0x24d29e||'uploadcareLicenseKeyExpired'==_0x24d29e||'uploadcareLicenseKeyDomainLimit'==_0x24d29e||'uploadcareLicenseKeyNotAllowed'==_0x24d29e||'uploadcareLicenseKeyEvaluationLimit'==_0x24d29e||'uploadcareLicenseKeyTrialLimit'==_0x24d29e||'uploadcareLicenseKeyUsageLimit'==_0x24d29e){delete _0x69745d[_0x1682d8],_0x37d777=_0x24d29e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x37d777&&_0x69745d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x37d777&&_0x69745d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x37d777&&_0x69745d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x37d777&&_0x69745d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x37d777&&_0x69745d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x37d777&&_0x69745d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x37d777&&_0x69745d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2462d0}=this,_0x303cc7=_0x2462d0['commands']['get']('uploadcare');if(!_0x303cc7)return;const _0xbed871=this['_normalizeConfigSourceList'](_0x2462d0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x15f796,_0xea8808)=>{const _0x3a3b41=this['_getIntegrationKey'](_0xea8808['type']);return _0x15f796[_0x3a3b41]||(_0x15f796[_0x3a3b41]=[]),_0x15f796[_0x3a3b41]['push'](_0xea8808),_0x15f796;},{});_0x2462d0['plugins']['has']('ImageInsertUI')&&_0x2462d0['commands']['get']('uploadcare')&&Object['entries'](_0xbed871)['forEach'](([_0x5be1df,_0x408640])=>{_0x2462d0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5be1df,'observable':()=>_0x303cc7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x408640),'formViewCreator':()=>this['_createDropdownButtons'](_0x408640),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x408640),'override':'assetManager'!==_0x5be1df});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f07a0){const {locale:_0x510312}=this['editor'];return _0x2f07a0['map'](_0x643b5=>{const _0x2ccd23=_(_0x510312,_0x643b5,'Insert');switch(_0x643b5){case o['Local']:return{'icon':_0x51a48e,'type':o['Local'],..._0x2ccd23};case o['URL']:return{'icon':_0x22cf59,'type':o['URL'],..._0x2ccd23};case o['Dropbox']:return{'icon':_0x2a80c5,'type':o['Dropbox'],..._0x2ccd23};case o['Facebook']:return{'icon':_0x54a0e1,'type':o['Facebook'],..._0x2ccd23};case o['GDrive']:return{'icon':_0x56c7aa,'type':o['GDrive'],..._0x2ccd23};case o['GPhotos']:return{'icon':_0x413cfc,'type':o['GPhotos'],..._0x2ccd23};case o['OneDrive']:return{'icon':_0x47a297,'type':o['OneDrive'],..._0x2ccd23};}});}['_getIntegrationKey'](_0x86f6c7){switch(_0x86f6c7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20aba7,_0x3d87eb){const _0x2ee4d8=this['editor'],_0xa7671a=new _0x20aba7(_0x2ee4d8['locale']),_0x284621=_0x2ee4d8['commands']['get']('uploadcare');return _0xa7671a['bind']('isEnabled')['to'](_0x284621),_0xa7671a['on']('execute',()=>{_0x284621['execute'](_0x3d87eb);}),_0xa7671a;}['_createToolbarButton'](_0x4a242e){const {locale:_0x4cdf1a}=this['editor'],_0x4c166b=this['editor']['plugins']['get']('ImageInsertUI'),_0x59ca36=_0x4a242e[0x0],_0x29ad0f=this['_createButton'](_0x104a57,_0x59ca36['type']);return _0x29ad0f['icon']=_0x59ca36['icon'],_0x29ad0f['bind']('label')['to'](_0x4c166b,'isImageSelected',_0x1ed16f=>_(_0x4cdf1a,_0x59ca36['type'],_0x1ed16f?'Replace':'Insert')['text']),_0x29ad0f['tooltip']=!0x0,_0x29ad0f;}['_createDropdownButtons'](_0x1d87d4){const {locale:_0x135c7f}=this['editor'],_0x11fc34=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d87d4['map'](_0x2b52eb=>{const _0x2d86cd=this['_createButton'](_0x104a57,_0x2b52eb['type']);return _0x2d86cd['withText']=!0x0,_0x2d86cd['icon']=_0x2b52eb['icon'],_0x2d86cd['bind']('label')['to'](_0x11fc34,'isImageSelected',_0x114c5f=>_(_0x135c7f,_0x2b52eb['type'],_0x114c5f?'Replace':'Insert')['text']),_0x2d86cd;});}['_createMenuBarButtons'](_0x19219b){return _0x19219b['map'](_0x41a4a2=>{const _0x4c34d1=this['_createButton'](_0x45cc99,_0x41a4a2['type']);return _0x4c34d1['icon']=_0x41a4a2['icon'],_0x4c34d1['label']=_0x41a4a2['shortText'],_0x4c34d1;});}}class q extends _0x222a06{['focusTracker'];['focusCycler'];constructor(_0x6c10ad){super(_0x6c10ad),this['focusTracker']=new _0x60265b(),this['focusCycler']=new _0x9e6521({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x3fae2c){super(_0x3fae2c),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3f272e,_0x200f2d){const _0x13d9b5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c21ad=>_0x2c21ad<=_0x200f2d)['map'](_0x44f595=>_0x3f272e['replace'](/\/$/,'')+'/-/resize/'+_0x44f595+'x/\x20'+_0x44f595+'w');return{'imageFallbackUrl':_0x3f272e,'imageSources':[{'srcset':_0x13d9b5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x200f2d+'px)\x20100vw,\x20'+_0x200f2d+'px','type':'image/webp'}]};}function A(_0x2bcdfb,_0x56253a,_0x50ae99){const _0x49149b=_0x2bcdfb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49149b?parseInt(_0x49149b[0x1],0xa):_0x56253a,'height':_0x49149b?parseInt(_0x49149b[0x2],0xa):_0x50ae99};}function m(_0x920d61,_0x54d067){const _0x359246=Object['create'](_0x2be775),_0xf69fb7=_0x920d61['plugins']['get']('ImageUtils'),_0x47f630=_0x920d61['editing']['mapper']['toViewElement'](_0x54d067),_0x14906c=_0xf69fb7['findViewImgElement'](_0x47f630),_0x8557bd=_0x920d61['editing']['view']['domConverter']['viewToDom'](_0x14906c),_0x358736=_0x54d067['getAttribute']('width'),_0x1b174c=_0x54d067['getAttribute']('height'),_0x395bde='image-processing';_0x920d61['editing']['view']['change'](_0x35a448=>{_0x35a448['addClass'](_0x395bde,_0x47f630),_0x35a448['setStyle']('aspect-ratio',_0x358736+'/'+_0x1b174c,_0x14906c);}),_0x359246['listenTo'](_0x8557bd,'load',()=>{_0x359246['stopListening'](_0x8557bd,'load'),_0x920d61['editing']['view']['change'](_0xf4152a=>{_0xf4152a['removeClass'](_0x395bde,_0x47f630),_0xf4152a['removeStyle']('aspect-ratio',_0x14906c);});});}function V(_0x4675be){if(Array['isArray'](_0x4675be)){const _0x5dab3d=_0x4675be['map'](V);return _0x32a914=>_0x5dab3d['some'](_0x2b80fc=>_0x2b80fc(_0x32a914));}if('origin'==_0x4675be){const _0x375385=_0x49cf59['window']['location']['origin'];return _0x3c5b56=>new URL(_0x3c5b56,_0x49cf59['document']['baseURI'])['origin']==_0x375385;}return'function'==typeof _0x4675be?_0x4675be:_0x4675be instanceof RegExp?_0x21fe96=>!(!_0x21fe96['match'](_0x4675be)&&!_0x21fe96['replace'](/^https?:\/\//,'')['match'](_0x4675be)):()=>!0x1;}function F(_0x2e057f,_0x34ab1a){return _0x1c4bee(_0x2e057f['target'])['includes'](_0x34ab1a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x311277(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x41f5aa,_0x214d06,_0x5d9ae6){super(),this['_editor']=_0x41f5aa,this['_editing']=_0x214d06,this['_dialog']=_0x41f5aa['plugins']['get'](_0xc84dd5),this['_api']=_0x214d06['ctxElement']['getAPI'](),this['_type']=_0x5d9ae6,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:_0x48f6a2,model:_0x3041fa}=this['_editor'],_0x14f956=_0x3041fa['document']['selection']['getSelectedElement'](),_0x41a61c=_0x14f956&&(_0x14f956['is']('element','imageBlock')||_0x14f956['is']('element','imageInline'));this['_formView']=new S(_0x48f6a2),this['_dialog']['show']({'id':'uploadCare','icon':_0x51a48e,'title':_(_0x48f6a2,this['_type'],_0x41a61c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x65c600=>!F(_0x65c600,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x374b16}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2bf54b=>{const _0x4e19ea=_0x374b16['length'];for(const _0x226093 of _0x374b16){const _0x4ec007=_0x226093===_0x374b16[_0x4e19ea-0x1],{cdnUrl:_0x5e317f,fileInfo:_0x20d8cb}=_0x226093;if(!_0x5e317f||!_0x20d8cb)continue;const {width:_0x81d99d,height:_0x144268}=_0x20d8cb['imageInfo'],_0x26542a=A(_0x5e317f,_0x81d99d,_0x144268),_0x275a85=E(_0x5e317f,_0x26542a['width']),_0x3050b4={'id':_0x20d8cb['uuid'],'type':'image','attributes':{'imageDimension':_0x26542a,..._0x275a85}};this['_insertAsset'](_0x3050b4,_0x4ec007,_0x2bf54b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3d2578=>{'idle'===_0x3d2578['detail']['status']&&!_0x3d2578['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x41b35e,_0x136871,_0x2c772e){const _0xfc7953=this['_editor']['model']['document']['selection'],_0x4b0ee0=_0xfc7953['getSelectedElement'](),_0x471602=!(!_0x4b0ee0||!_0x4b0ee0['is']('element','imageInline'));_0x2c772e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x41b35e,_0x471602),_0x136871||_0x2c772e['setSelection'](_0xfc7953['getLastPosition']());}['_insertImage'](_0x4ad8da,_0x53b328){const _0x3b8bce=this['_editor'],{imageDimension:_0x3ff313,imageFallbackUrl:_0x1b8699,imageSources:_0x7d8256}=_0x4ad8da['attributes'];_0x3b8bce['execute']('insertImage',{'imageType':_0x53b328?'imageInline':null,'source':{'uploadcareImageId':_0x4ad8da['id'],'src':_0x1b8699,'sources':_0x7d8256,..._0x3ff313}});}}class n extends _0x51a136{['_editing'];['_controller']=null;static get['requires'](){return[_0xc84dd5,i];}constructor(_0xb56e9e){super(_0xb56e9e),this['_editing']=_0xb56e9e['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25e4a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x25e4a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x488438,publicKey:_0x426af5,signal:_0x2f0168,onProgress:_0xb5d7f8}){return _0x47540f(_0x488438,{'publicKey':_0x426af5,'store':'auto','signal':_0x2f0168,'onProgress':_0xb5d7f8});}static['getInfo'](_0x3d2c33,_0x5d6791){return _0x5219da(_0x3d2c33,_0x5d6791);}}class p extends _0xde9ca1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12ab17,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x144a2d=this['editor'];if(!!!_0x144a2d['config']['get']('uploadcare'))return;_0x144a2d['plugins']['get'](_0x12ab17)['createUploadAdapter']=_0x25ff63=>new x(_0x25ff63,_0x144a2d),_0x144a2d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x59e8f6,{imageElement:_0x3e619d,data:_0x4c7b3f})=>{_0x144a2d['model']['change'](_0x156114=>{_0x156114['setAttribute']('uploadcareImageId',_0x4c7b3f['uploadcareImageId'],_0x3e619d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x122e3d,_0x3d3772){this['loader']=_0x122e3d,this['editor']=_0x3d3772,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xea2f84=this['editor']['config']['get']('uploadcare.pubkey'),_0x454106=await this['loader']['file'];return C['upload']({'file':_0x454106,'publicKey':_0xea2f84,'signal':this['controller']['signal'],'onProgress':_0x3e3b8d=>{_0x3e3b8d&&_0x3e3b8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e3b8d['value']);}})['then'](async _0x238133=>{const {imageFallbackUrl:_0x1c2a53,imageSources:_0x513ef9}=E(_0x238133['cdnUrl'],_0x238133['imageInfo']['width']);return{'uploadcareImageId':_0x238133['uuid'],'default':_0x1c2a53,'sources':_0x513ef9};})['catch'](()=>{const _0x5e0171=t('Cannot\x20upload\x20file:')+('\x20'+_0x454106['name']+'.');return Promise['reject'](_0x5e0171);});}['abort'](){this['controller']['abort']();}}class i extends _0xde9ca1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xc84dd5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5792a1=this['editor'];_0x5792a1['commands']['add']('uploadcare',new n(_0x5792a1));}['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 _0x51f5e9=_0x49cf59['document']['querySelector']('input[uploadcare-file-input]');_0x51f5e9&&_0x51f5e9['remove']();}),async function(_0x5e1e7e){const _0x41ddde=_0x4341fd([0x6d,0x51,0x32,0x44,0x6c,0x73,0x47,0x4a,0x4e,0x33,0x74,0x77,0x50,0x41,0x65,0x59,0x37,0x38,0x6b,0x39,0x6e,0x79,0x61,0x36,0x5a,0x71,0x76,0x57,0x62,0x30,0x4f,0x6f,0x49,0x75,0x58,0x4c,0x7a,0x48,0x4b,0x68,0x55,0x53,0x67,0x35,0x6a,0x64,0x54,0x66,0x45,0x72,0x42,0x69,0x56,0x52,0x46,0x78,0x4d,0x31,0x70,0x34,0x63,0x43]),_0x971c4a=0x6694c97f,_0x2495d4=0x6693ae57^_0x971c4a,_0x2656ae=window[_0x4341fd([0x44,0x61,0x74,0x65])][_0x4341fd([0x6e,0x6f,0x77])](),_0x2deda9=_0x5e1e7e[_0x4341fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fa297=new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5542b0=>{_0x2deda9[_0x4341fd([0x6f,0x6e,0x63,0x65])](_0x4341fd([0x72,0x65,0x61,0x64,0x79]),_0x5542b0);}),_0x557088={[_0x4341fd([0x6b,0x74,0x79])]:_0x4341fd([0x45,0x43]),[_0x4341fd([0x75,0x73,0x65])]:_0x4341fd([0x73,0x69,0x67]),[_0x4341fd([0x63,0x72,0x76])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4341fd([0x78])]:_0x4341fd([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]),[_0x4341fd([0x79])]:_0x4341fd([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]),[_0x4341fd([0x61,0x6c,0x67])]:_0x4341fd([0x45,0x53,0x32,0x35,0x36])},_0x92aa04=_0x2deda9[_0x4341fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4341fd([0x67,0x65,0x74])](_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58162e(){let _0x1bcd3d,_0x30142d=null,_0x23457a=null;try{if(_0x92aa04==_0x4341fd([0x47,0x50,0x4c]))return _0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bcd3d=_0x3b4c79(),!_0x1bcd3d)return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23457a=_0x51a024(_0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bcd3d[_0x4341fd([0x6a,0x74,0x69])])),await _0x32d281()?_0x37677c()?_0x32cd4b()?_0x4341fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5073ca()?(_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30142d=_0x1c277d(_0x4341fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x74,0x72,0x69,0x61,0x6c])&&(_0x30142d=_0x1c277d(_0x4341fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a0871()):_0x4341fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39cb49){return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32cd4b(){const _0x6d529f=[_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4341fd([0x74,0x72,0x69,0x61,0x6c])][_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2656ae/0x3e8:0xe10*_0x2495d4;return _0x1bcd3d[_0x4341fd([0x65,0x78,0x70])]<_0x6d529f;}function _0x37677c(){const _0x524957=_0x1bcd3d[_0x4341fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x524957&&(!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a]))||!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x55,0x50,0x4c,0x43])));}function _0x5073ca(){const _0x9e79f5=_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e79f5||0x0==_0x9e79f5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd3d915}=new URL(window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e79f5[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd3d915))return!0x0;const _0x3a9189=_0xd3d915[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));return _0x9e79f5[_0x4341fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20b597=>_0x20b597[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a])))[_0x4341fd([0x6d,0x61,0x70])](_0x4b0559=>_0x4b0559[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])))[_0x4341fd([0x73,0x6f,0x6d,0x65])](_0x4bca00=>_0x3a9189[_0x4341fd([0x65,0x76,0x65,0x72,0x79])]((_0xff9fc3,_0xee51f0)=>_0x4bca00[_0xee51f0]===_0xff9fc3||_0x4bca00[_0xee51f0]===_0x4341fd([0x2a])));}function _0x5a0871(){return _0x30142d&&_0x23457a?new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54407e,_0x37c028)=>{_0x30142d[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x54407e,_0x37c028),_0x23457a[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x49b179=>{_0x49b179!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x54407e(_0x49b179);},_0x37c028);}):_0x30142d||_0x23457a||_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51a024(_0x1ad641,_0x3c8a19){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160dbb=>{if(_0x573e5b())return _0x160dbb(_0x4341fd([0x56,0x61,0x6c,0x69,0x64]));_0x5eb18d(),_0x2deda9[_0x4341fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x500e9d=!0x1;const _0x38dc5b=_0xb52d55();function _0x49fa41(_0x273a9c){return!!_0x273a9c&&(typeof _0x273a9c===_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x273a9c===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x273a9c[_0x4341fd([0x74,0x68,0x65,0x6e])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x273a9c[_0x4341fd([0x63,0x61,0x74,0x63,0x68])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21b9fa(_0x30c4a6){_0xfcd45c(_0x30c4a6)[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x6f7aee=>{if(!_0x6f7aee||_0x6f7aee[_0x4341fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4341fd([0x6f,0x6b]))return _0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5292be(_0x1a1e21(_0x38dc5b+_0x3c8a19))!=_0x6f7aee[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1f2d8d=>(_0x30f91b(),_0x1f2d8d),()=>{const _0xe9922e=_0x459038();return null==_0xe9922e?(_0x30f91b(),_0x4341fd([0x56,0x61,0x6c,0x69,0x64])):_0x4341fd(_0x2656ae-_0xe9922e>(0x42984d7f^_0x971c4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x160dbb)[_0x4341fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x577a1d=0x66a227ff^_0x971c4a;function _0x30f91b(){const _0x4512b8=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x556f1e=_0x358b06(_0x5292be(window[_0x4341fd([0x4d,0x61,0x74,0x68])][_0x4341fd([0x63,0x65,0x69,0x6c])](_0x2656ae/_0x577a1d)));window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4512b8,_0x556f1e);}function _0x459038(){const _0x2cfd12=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x4bb5ba=window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cfd12);return _0x4bb5ba?window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358b06(_0x4bb5ba),0x10)*_0x577a1d:null;}function _0xfcd45c(_0x50a75e){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc849,_0x907292)=>{_0x50a75e[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1dc849,_0x907292),window[_0x4341fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x907292,0x66951dbf^_0x971c4a);});}}_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x523e6b,_0x35a351)=>{if(_0x35a351[0x0]!=_0x1ad641)return _0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35a351[0x1]={..._0x35a351[0x1],[_0x4341fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38dc5b};},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x68,0x69,0x67,0x68])}),_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39456d=>{_0x49fa41(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x500e9d=!0x0,_0x21b9fa(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x6c,0x6f,0x77])}),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>{_0x500e9d||_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573e5b(){return _0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4341fd([0x61,0x75,0x74,0x6f]);}function _0x5eb18d(){_0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4341fd([0x61,0x75,0x74,0x6f]);}}function _0x1c277d(_0x3b81c8){const _0x2c3e0f=[new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513aa2=>setTimeout(_0x513aa2,0x669df7b3^_0x971c4a)),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d321=>{let _0x450df2=0x0;_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x6f,0x6e])](_0x4341fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ddd24,_0x2f8dd8)=>{_0x2f8dd8[0x0][_0x4341fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x450df2++,_0x450df2==(0x6694c887^_0x971c4a)&&(_0x46d321(),_0x5ddd24[_0x4341fd([0x6f,0x66,0x66])]());});}))];return window[_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4341fd([0x72,0x61,0x63,0x65])](_0x2c3e0f)[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>_0x3b81c8);}async function _0x55e054(){await _0x3fa297,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x206934(_0x5d5500){const _0x1f2db5=_0x2d76ed();_0x2deda9[_0x1f2db5]=_0x4341fd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d5500,_0x5d5500!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x55e054();}function _0x2d76ed(){const _0x4ad139=window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4341fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4341fd([0x6e,0x6f,0x77])]())[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4341fd([0x2e]),'');let _0x2f9127=_0x4341fd([0x6d]);for(let _0x35bb39=0x0;_0x35bb39<_0x4ad139[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35bb39+=0x2){let _0x36b7a2=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad139[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35bb39,_0x35bb39+0x2));_0x36b7a2>=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b7a2-=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f9127+=_0x41ddde[_0x36b7a2];}return _0x2f9127;}function _0x3b4c79(){const _0x2273d5=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));if(0x3!=_0x2273d5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24fc48(_0x2273d5[0x1]);function _0x24fc48(_0xcf257e){const _0x53be20=_0x129e8f(_0xcf257e);return _0x53be20&&_0x108d6d()?_0x53be20:null;function _0x108d6d(){const _0x680930=_0x53be20[_0x4341fd([0x6a,0x74,0x69])],_0x128511=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x176e60={..._0x53be20,[_0x4341fd([0x6a,0x74,0x69])]:_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x176e60[_0x4341fd([0x76,0x63])],_0x1a1e21(_0x176e60)==_0x128511;}}}async function _0x32d281(){let _0x2446e2=!0x0;try{const _0x3b77b0=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])),[_0x51eead,_0x3f0939,_0x4e5e1d]=_0x3b77b0;return _0x5818ad(_0x51eead),await _0x326e30(_0x51eead,_0x3f0939,_0x4e5e1d),_0x2446e2;}catch(_0x58a3f){return!0x1;}function _0x5818ad(_0x1c6059){const _0x4f0e24=_0x129e8f(_0x1c6059);_0x4f0e24&&_0x4f0e24[_0x4341fd([0x61,0x6c,0x67])]==_0x4341fd([0x45,0x53,0x32,0x35,0x36])||(_0x2446e2=!0x1);}async function _0x326e30(_0x19a63c,_0x33f673,_0x3a2fd4){const _0x54e4a9=window[_0x4341fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4341fd([0x66,0x72,0x6f,0x6d])](_0x1680d1(_0x3a2fd4),_0x2fcf11=>_0x2fcf11[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x371368=new window[(_0x4341fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4341fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19a63c+_0x4341fd([0x2e])+_0x33f673),_0x2fe1e6=window[_0x4341fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4341fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe1e6)return;const _0x28106e=await _0x2fe1e6[_0x4341fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4341fd([0x6a,0x77,0x6b]),_0x557088,{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe1e6[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x68,0x61,0x73,0x68])]:{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28106e,_0x54e4a9,_0x371368)||(_0x2446e2=!0x1);}}function _0x129e8f(_0x3dd5b4){return _0x3dd5b4[_0x4341fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4341fd([0x65,0x79]))?JSON[_0x4341fd([0x70,0x61,0x72,0x73,0x65])](_0x1680d1(_0x3dd5b4)):null;}function _0x1680d1(_0x327802){return window[_0x4341fd([0x61,0x74,0x6f,0x62])](_0x327802[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4341fd([0x2b]))[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4341fd([0x2f])));}function _0x1a1e21(_0x182167){let _0x189b04=0x1505;function _0x470e28(_0x249086){for(let _0x4961fd=0x0;_0x4961fd<_0x249086[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4961fd++){const _0x58c994=_0x249086[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4961fd);_0x189b04=(_0x189b04<<0x5)+_0x189b04+_0x58c994,_0x189b04&=_0x189b04;}}function _0x5074c5(_0x11c432){Array[_0x4341fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11c432)?_0x11c432[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5074c5):_0x11c432&&typeof _0x11c432==_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4341fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11c432)[_0x4341fd([0x73,0x6f,0x72,0x74])]()[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d528e,_0x49ef3d])=>{_0x470e28(_0x1d528e),_0x5074c5(_0x49ef3d);}):_0x470e28(window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11c432));}return _0x5074c5(_0x182167),_0x189b04>>>0x0;}function _0x5292be(_0x3d8d5b){return _0x3d8d5b[_0x4341fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4341fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4341fd([0x30]));}function _0x358b06(_0x5c2d01){return _0x5c2d01[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4341fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4341fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x19e539(){}function _0x4341fd(_0x175f54){return _0x175f54['map'](_0x3ada8b=>String['fromCharCode'](_0x3ada8b))['join']('');}_0x206934(await _0x58162e());}(this);}['_initSchema'](){const _0xac0475=this['editor']['model']['schema'];_0xac0475['isRegistered']('imageBlock')&&_0xac0475['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xac0475['isRegistered']('imageInline')&&_0xac0475['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5add6a=this['editor'];_0x5add6a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5add6a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x18a39f=>_0x18a39f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d6d59=_0x5add6a['commands']['get']('replaceImageSource');_0x3d6d59&&this['listenTo'](_0x3d6d59,'cleanupImage',(_0x103cb7,[_0x5a7548,_0x11275d])=>{_0x5a7548['removeAttribute']('uploadcareImageId',_0x11275d);});}['_initConfig'](){const _0x12f18c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3282c2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a023c(_0x49cf59['document'],'uc-config',{..._0x12f18c,'pubkey':_0x3282c2,'ctx-name':'uploader','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']=_0x2b7200=>{if('closeMax'==_0x2b7200)return'#uc-icon-arrow-down';},_0x49cf59['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a023c(_0x49cf59['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x49cf59['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x484d17=this['editor']['commands']['get']('insertImage');_0x484d17&&this['listenTo'](_0x484d17,'execute',()=>{const _0x3b6d85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b6d85&&_0x3b6d85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3b6d85);});});const _0x59482f=this['editor']['commands']['get']('uploadcareImageReplace');_0x59482f&&this['listenTo'](_0x59482f,'execute',()=>{const _0x2aac30=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aac30&&_0x2aac30['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aac30);});});}}class u extends _0xde9ca1{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59095d){super(_0x59095d),_0x59095d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x102597['defineComponents'](_0x102597);}}class ta extends _0x222a06{constructor(_0xb46f4f){super(_0xb46f4f);const t=_0xb46f4f['t'],_0x472a37=this['bindTemplate'],_0x46e554=new _0x472768();_0x46e554['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':[_0x46e554,{'text':_0x472a37['to']('imageUploadProgress',_0x47883c=>t('Loading\x20image...')+'\x20('+(_0x47883c||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 rt extends _0x222a06{constructor(_0x25195f){super(_0x25195f);const t=_0x25195f['t'];this['set']('errorType',null);const _0x15dc24=new _0x104a57(_0x25195f);_0x15dc24['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15dc24['withText']=!0x0,_0x15dc24['class']='ck-button-action',_0x15dc24['on']('execute',()=>{this['fire']('retry');}),_0x15dc24['bind']('isVisible')['to'](this,'errorType',_0x6458fc=>'NotFound'!==_0x6458fc);const _0x455d2c=new at();_0x455d2c['content']=et,_0x455d2c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47e98d=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':[_0x455d2c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47e98d['to']('errorType',_0x539366=>t('NotFound'!==_0x539366?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15dc24]},{'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 tt extends _0x222a06{constructor(_0x56633d,_0x2f0b2b){super(_0x56633d);const _0x4b09ca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f0b2b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4b09ca['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xfcdea9,_0x13dfda,_0x38e223){super(_0xfcdea9),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xfcdea9),this['_errorView']=new rt(_0xfcdea9),this['_editingView']=new tt(_0xfcdea9,_0x38e223),this['_focusableView']=new _0x222a06(_0xfcdea9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x13dfda),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'],_0x50a5cc=>{this['_addUploadcareImageEditorListeners'](_0x50a5cc);});}),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'](_0x41055a,_0x18ee0e){const _0x129b11='uc-cloud-image-editor',_0x45ee2b=_0x41055a['querySelector'](_0x129b11);if(_0x45ee2b)return _0x18ee0e(_0x45ee2b);const _0x11a0a3=new MutationObserver(_0x597d35=>{const _0x98386b=_0x597d35['filter'](_0x5652fc=>_0x5652fc['target']===_0x41055a&&_0x5652fc['addedNodes']['length']>0x0&&_0x5652fc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x129b11);_0x98386b['length']&&(_0x11a0a3['disconnect'](),_0x18ee0e(_0x98386b[0x0]['addedNodes'][0x0]));});_0x11a0a3['observe'](_0x41055a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf4b54f){_0xf4b54f['addEventListener']('apply',_0x3a9374=>{this['fire']('apply',{'imageSrc':_0x3a9374['detail']['cdnUrl']});}),_0xf4b54f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x311277(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24e3fa,_0x3bbbc2,_0x579375){super(),this['_editor']=_0x24e3fa,this['_dialog']=_0x3bbbc2,this['_imageElement']=_0x579375,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 _0x5ebfa=this['_imageElement'],_0x327a05=_0x5ebfa['getAttribute']('uploadcareImageId'),_0x15a456=_0x5ebfa['getAttribute']('src');if(_0x327a05)await this['_loadImageInfo'](_0x327a05,_0x15a456);else{if(this['_imageCache']['has'](_0x15a456)){const _0xfe4d0f=this['_imageCache']['get'](_0x15a456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfe4d0f['url'],this['imageDimension']=_0xfe4d0f['dimension'],this['imageId']=_0xfe4d0f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25ed62}=this['_editor'],t=_0x25ed62['t'],_0x1460e4=new Z(_0x25ed62,this['imageStatus'],this['_attributes']);_0x1460e4['bind']('status')['to'](this,'imageStatus'),_0x1460e4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1460e4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1460e4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1460e4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x57bbde,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1460e4,'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1460e4['focus']();},'onHide':()=>{_0x1460e4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x364a42=>!F(_0x364a42,_0x1460e4['element'])}});}['_loadImageInfo'](_0x40613f,_0x51fa62){return C['getInfo'](_0x40613f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x22bd10=>{const {width:_0xf3ee1c,height:_0x3c84a4}=_0x22bd10['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51fa62,this['imageDimension']={'width':_0xf3ee1c,'height':_0x3c84a4},this['imageId']=_0x40613f;})['catch'](_0xac90ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xac90ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2bdab5,_0x170b45){return this['_getImageAsFile'](_0x2bdab5)['then'](_0x39f094=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x170b45['signal'],'file':_0x39f094,'onProgress':_0x237198=>{_0x237198&&_0x237198['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x237198['value']));}}))['then'](_0x32c56f=>{const {width:_0x167194,height:_0x491da9}=_0x32c56f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32c56f['cdnUrl'],this['imageDimension']={'width':_0x167194,'height':_0x491da9},this['imageId']=_0x32c56f['uuid'],this['imageUploadProgress']=null;const _0x1060ea=_0x2bdab5['getAttribute']('src');this['_imageCache']['set'](_0x1060ea,{'id':_0x32c56f['uuid'],'url':_0x32c56f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bfd36=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bfd36['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xb8d034,_0xe17fb){_0xb8d034['on']('apply',(_0x2e1046,_0x5b2b6f)=>{this['_replaceImage'](_0xe17fb,_0x5b2b6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xb8d034['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xb8d034['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x421d60,_0x869cf,_0x322295){const _0x57565b=this['_editor'],{width:_0xe4f770,height:_0x38d5ed}=A(_0x869cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26ff7b,imageSources:_0xef2bf4}=E(_0x869cf,_0xe4f770);_0x57565b['model']['change'](_0x6fe590=>{if('$graveyard'===_0x421d60['root']['rootName']){_0x57565b['execute']('insertImage',{'imageType':_0x421d60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed}});const _0x41ad0e=_0x421d60['getChildren']();_0x421d60=_0x57565b['model']['document']['selection']['getSelectedElement']();for(const _0x3deff6 of _0x41ad0e)_0x6fe590['append'](_0x6fe590['cloneElement'](_0x3deff6),_0x421d60);}else _0x6fe590['setSelection'](_0x421d60,'on'),_0x57565b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed},_0x421d60);_0x6fe590['setSelection'](_0x421d60,'on');});}async['_getImageAsFile'](_0x44f4fb){const _0x5ea581=_0x49cf59['window'],_0x561b0b=_0x49cf59['document']['location']['href'],_0x3754ef=new _0x5ea581['URL'](_0x44f4fb['getAttribute']('src'),_0x561b0b);if('data:'===_0x3754ef['protocol']){const _0x57688a=_0x3754ef['href']['split'](','),_0x29084d=_0x57688a[0x0]['match'](/:(.*?);/)[0x1],_0x348a98=_0x29084d['split']('/')[0x1],_0x3fefbd=_0x5ea581['atob'](_0x57688a[_0x57688a['length']-0x1]);let _0x3b2c06=_0x3fefbd['length'];const _0x4bc1a5=new _0x5ea581['Uint8Array'](_0x3b2c06);for(;_0x3b2c06--;)_0x4bc1a5[_0x3b2c06]=_0x3fefbd['charCodeAt'](_0x3b2c06);return new _0x5ea581['File']([_0x4bc1a5],'image.'+_0x348a98,{'type':_0x29084d});}const _0x3aa8fa=_0x3754ef['href']['split']('/'),_0x4774bc=_0x3aa8fa[_0x3aa8fa['length']-0x1],_0x92f0d=_0x4774bc['split']('.')[0x1];return _0x5ea581['fetch'](_0x3754ef['href'])['then'](_0x3e4e80=>_0x3e4e80['clone']()['blob']())['then'](_0x1a043a=>new _0x5ea581['File']([_0x1a043a],_0x4774bc,{'type':'image/'+_0x92f0d}));}}class J extends _0x51a136{['imageEditController'];static get['requires'](){return[_0xc84dd5];}['_isEditable'];constructor(_0x6a1e0b){super(_0x6a1e0b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x209605){const _0x116b4c=V(_0x209605);return _0xe5f040=>!(!_0xe5f040||!_0xe5f040['is']('element','imageBlock')&&!_0xe5f040['is']('element','imageInline'))&&(!!_0xe5f040['hasAttribute']('uploadcareImageId')||!!_0xe5f040['hasAttribute']('src')&&_0x116b4c(_0xe5f040['getAttribute']('src')));}(_0x6a1e0b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x12eb04=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x12eb04);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2050e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2050e1&&(_0x2050e1['is']('element','imageBlock')||_0x2050e1['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xc84dd5),_0x2050e1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x51a136{['refresh'](){const _0x4979bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4979bb&&(_0x4979bb['is']('element','imageBlock')||_0x4979bb['is']('element','imageInline')));}['execute'](_0x1f9595){const _0x47b379=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41b0b6=>{_0x41b0b6['setAttributes'](_0x1f9595,_0x47b379),_0x41b0b6['removeAttribute']('srcset',_0x47b379),_0x41b0b6['removeAttribute']('sizes',_0x47b379);});}}class g extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d6426,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x163e86}=this;_0x163e86['commands']['add']('uploadcareImageEdit',new J(_0x163e86)),_0x163e86['commands']['add']('uploadcareImageReplace',new O(_0x163e86));}}class j extends _0xde9ca1{['_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 _0x25a3cd=this['editor'];_0x25a3cd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3fc12e=>{const _0x552d15=_0x25a3cd['commands']['get']('uploadcareImageEdit'),_0x5c6e75=new _0x104a57(_0x3fc12e),t=_0x3fc12e['t'];return _0x5c6e75['set']({'icon':_0x57bbde,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c6e75['bind']('isEnabled')['to'](_0x552d15),_0x5c6e75['bind']('isOn')['to'](_0x552d15,'isActive'),this['listenTo'](_0x5c6e75,'execute',()=>{_0x25a3cd['execute']('uploadcareImageEdit'),_0x25a3cd['editing']['view']['focus']();}),_0x5c6e75;}),this['_initConfig']();}['_initConfig'](){const _0x49ecb7=_0x5a023c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ecb7),this['listenTo'](this['editor'],'destroy',()=>{_0x49ecb7['remove']();});}}class P extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x88e48a,Command as _0x3ed71e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x205fc4,IconGooglePhotos as _0x4e323b,IconGoogleDrive as _0xa54815,IconFacebook as _0x2d1219,IconDropbox as _0x23f589,IconUploadcareLink as _0x268f21,IconUploadcareImageUpload as _0x1db469,IconError as et,IconUploadcareImageEdit as _0x4907c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51c610,MenuBarMenuListItemButtonView as _0x1dafa6,View as _0x437902,FocusCycler as _0x4727af,Dialog as _0xe4994a,DialogViewPosition as _0x46fe7d,SpinnerView as _0x2d13b7,IconView as at,Notification as _0x38cfc1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x461df4,DomEmitterMixin as _0x1c48be,global as _0x6c8694,getAncestors as _0x26e42e,ObservableMixin as _0x10f14e,createElement as _0xc2750d,uid as _0x371869}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1f2430}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x492967,info as _0x4a6ee6}from'@uploadcare/upload-client';import*as _0x28836c from'@uploadcare/file-uploader';var o=function(_0x5b418b){return _0x5b418b['Local']='local',_0x5b418b['URL']='url',_0x5b418b['Dropbox']='dropbox',_0x5b418b['GDrive']='gdrive',_0x5b418b['Facebook']='facebook',_0x5b418b['GPhotos']='gphotos',_0x5b418b['OneDrive']='onedrive',_0x5b418b;}({});function _(_0x4a2e1c,_0x309fda,_0x1c53ab){const t=_0x4a2e1c['t'],_0x343d32=_0x4a2e1c['t'];switch(_0x309fda){case o['Local']:return{'text':_0x343d32('Insert'===_0x1c53ab?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x343d32('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1c53ab?_0x343d32('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x343d32('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1c53ab?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x309fda;}}class e extends _0x88e48a{['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 _0x117a68=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b9e10;for(const _0x2c050c in _0x117a68){const _0x712fa7=_0x2c050c,_0x21e6fa=_0x117a68[_0x712fa7];if('uploadcareLicenseKeyValid'==_0x21e6fa||'uploadcareLicenseKeyInvalid'==_0x21e6fa||'uploadcareLicenseKeyExpired'==_0x21e6fa||'uploadcareLicenseKeyDomainLimit'==_0x21e6fa||'uploadcareLicenseKeyNotAllowed'==_0x21e6fa||'uploadcareLicenseKeyEvaluationLimit'==_0x21e6fa||'uploadcareLicenseKeyTrialLimit'==_0x21e6fa||'uploadcareLicenseKeyUsageLimit'==_0x21e6fa){delete _0x117a68[_0x712fa7],_0x4b9e10=_0x21e6fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b9e10&&_0x117a68['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b9e10&&_0x117a68['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b9e10&&_0x117a68['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b9e10&&_0x117a68['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4143a3}=this,_0xf678a2=_0x4143a3['commands']['get']('uploadcare');if(!_0xf678a2)return;const _0x3b8147=this['_normalizeConfigSourceList'](_0x4143a3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4213ef,_0x1eecfb)=>{const _0x274564=this['_getIntegrationKey'](_0x1eecfb['type']);return _0x4213ef[_0x274564]||(_0x4213ef[_0x274564]=[]),_0x4213ef[_0x274564]['push'](_0x1eecfb),_0x4213ef;},{});_0x4143a3['plugins']['has']('ImageInsertUI')&&_0x4143a3['commands']['get']('uploadcare')&&Object['entries'](_0x3b8147)['forEach'](([_0x2a2bbb,_0x3256b5])=>{_0x4143a3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2a2bbb,'observable':()=>_0xf678a2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3256b5),'formViewCreator':()=>this['_createDropdownButtons'](_0x3256b5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3256b5),'override':'assetManager'!==_0x2a2bbb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20db00){const {locale:_0x47dc7b}=this['editor'];return _0x20db00['map'](_0x2a6ff8=>{const _0x216e23=_(_0x47dc7b,_0x2a6ff8,'Insert');switch(_0x2a6ff8){case o['Local']:return{'icon':_0x1db469,'type':o['Local'],..._0x216e23};case o['URL']:return{'icon':_0x268f21,'type':o['URL'],..._0x216e23};case o['Dropbox']:return{'icon':_0x23f589,'type':o['Dropbox'],..._0x216e23};case o['Facebook']:return{'icon':_0x2d1219,'type':o['Facebook'],..._0x216e23};case o['GDrive']:return{'icon':_0xa54815,'type':o['GDrive'],..._0x216e23};case o['GPhotos']:return{'icon':_0x4e323b,'type':o['GPhotos'],..._0x216e23};case o['OneDrive']:return{'icon':_0x205fc4,'type':o['OneDrive'],..._0x216e23};}});}['_getIntegrationKey'](_0x283a69){switch(_0x283a69){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1437f1,_0x4ff170){const _0x5d1f5b=this['editor'],_0x195976=new _0x1437f1(_0x5d1f5b['locale']),_0x4a64a5=_0x5d1f5b['commands']['get']('uploadcare');return _0x195976['bind']('isEnabled')['to'](_0x4a64a5),_0x195976['on']('execute',()=>{_0x4a64a5['execute'](_0x4ff170);}),_0x195976;}['_createToolbarButton'](_0x5a3f2b){const {locale:_0x11036f}=this['editor'],_0x344880=this['editor']['plugins']['get']('ImageInsertUI'),_0x15adc0=_0x5a3f2b[0x0],_0x55058f=this['_createButton'](_0x51c610,_0x15adc0['type']);return _0x55058f['icon']=_0x15adc0['icon'],_0x55058f['bind']('label')['to'](_0x344880,'isImageSelected',_0x34dd54=>_(_0x11036f,_0x15adc0['type'],_0x34dd54?'Replace':'Insert')['text']),_0x55058f['tooltip']=!0x0,_0x55058f;}['_createDropdownButtons'](_0x5bb60d){const {locale:_0x56cef8}=this['editor'],_0x5ad2bc=this['editor']['plugins']['get']('ImageInsertUI');return _0x5bb60d['map'](_0x1f3d9a=>{const _0x3fc577=this['_createButton'](_0x51c610,_0x1f3d9a['type']);return _0x3fc577['withText']=!0x0,_0x3fc577['icon']=_0x1f3d9a['icon'],_0x3fc577['bind']('label')['to'](_0x5ad2bc,'isImageSelected',_0x3583e7=>_(_0x56cef8,_0x1f3d9a['type'],_0x3583e7?'Replace':'Insert')['text']),_0x3fc577;});}['_createMenuBarButtons'](_0x4a08e2){return _0x4a08e2['map'](_0x45b8fc=>{const _0x50f1ec=this['_createButton'](_0x1dafa6,_0x45b8fc['type']);return _0x50f1ec['icon']=_0x45b8fc['icon'],_0x50f1ec['label']=_0x45b8fc['shortText'],_0x50f1ec;});}}class q extends _0x437902{['focusTracker'];['focusCycler'];constructor(_0x5aec50){super(_0x5aec50),this['focusTracker']=new _0x461df4(),this['focusCycler']=new _0x4727af({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5c11eb){super(_0x5c11eb),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xdf3f96,_0x2cae8c){const _0x21d660=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b746d=>_0x5b746d<=_0x2cae8c)['map'](_0xd47ffa=>_0xdf3f96['replace'](/\/$/,'')+'/-/resize/'+_0xd47ffa+'x/\x20'+_0xd47ffa+'w');return{'imageFallbackUrl':_0xdf3f96,'imageSources':[{'srcset':_0x21d660['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2cae8c+'px)\x20100vw,\x20'+_0x2cae8c+'px','type':'image/webp'}]};}function A(_0x427ff9,_0x55b95b,_0x1da663){const _0x4064d2=_0x427ff9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4064d2?parseInt(_0x4064d2[0x1],0xa):_0x55b95b,'height':_0x4064d2?parseInt(_0x4064d2[0x2],0xa):_0x1da663};}function m(_0x301748,_0x3e0756){const _0x30181c=Object['create'](_0x1c48be),_0x3f5429=_0x301748['plugins']['get']('ImageUtils'),_0x3b1c29=_0x301748['editing']['mapper']['toViewElement'](_0x3e0756),_0x3878e4=_0x3f5429['findViewImgElement'](_0x3b1c29),_0x278f49=_0x301748['editing']['view']['domConverter']['viewToDom'](_0x3878e4),_0x5b2e96=_0x3e0756['getAttribute']('width'),_0x2eeeab=_0x3e0756['getAttribute']('height'),_0x20f315='image-processing';_0x301748['editing']['view']['change'](_0x3cb2dd=>{_0x3cb2dd['addClass'](_0x20f315,_0x3b1c29),_0x3cb2dd['setStyle']('aspect-ratio',_0x5b2e96+'/'+_0x2eeeab,_0x3878e4);}),_0x30181c['listenTo'](_0x278f49,'load',()=>{_0x30181c['stopListening'](_0x278f49,'load'),_0x301748['editing']['view']['change'](_0x2ec8ee=>{_0x2ec8ee['removeClass'](_0x20f315,_0x3b1c29),_0x2ec8ee['removeStyle']('aspect-ratio',_0x3878e4);});});}function V(_0x37142b){if(Array['isArray'](_0x37142b)){const _0x2758e3=_0x37142b['map'](V);return _0xb946e=>_0x2758e3['some'](_0x20e3b9=>_0x20e3b9(_0xb946e));}if('origin'==_0x37142b){const _0x36619c=_0x6c8694['window']['location']['origin'];return _0x1aa1d4=>new URL(_0x1aa1d4,_0x6c8694['document']['baseURI'])['origin']==_0x36619c;}return'function'==typeof _0x37142b?_0x37142b:_0x37142b instanceof RegExp?_0x37871c=>!(!_0x37871c['match'](_0x37142b)&&!_0x37871c['replace'](/^https?:\/\//,'')['match'](_0x37142b)):()=>!0x1;}function F(_0x578ae2,_0x13484d){return _0x26e42e(_0x578ae2['target'])['includes'](_0x13484d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10f14e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5d4dd5,_0x540d52,_0x2e2ddc){super(),this['_editor']=_0x5d4dd5,this['_editing']=_0x540d52,this['_dialog']=_0x5d4dd5['plugins']['get'](_0xe4994a),this['_api']=_0x540d52['ctxElement']['getAPI'](),this['_type']=_0x2e2ddc,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:_0x171c8d,model:_0x4c19a8}=this['_editor'],_0x1f8962=_0x4c19a8['document']['selection']['getSelectedElement'](),_0x533376=_0x1f8962&&(_0x1f8962['is']('element','imageBlock')||_0x1f8962['is']('element','imageInline'));this['_formView']=new S(_0x171c8d),this['_dialog']['show']({'id':'uploadCare','icon':_0x1db469,'title':_(_0x171c8d,this['_type'],_0x533376?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x46fe7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe7a6e8=>!F(_0xe7a6e8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x24787b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x12b9cc=>{const _0x15b95b=_0x24787b['length'];for(const _0x3179c9 of _0x24787b){const _0x135b66=_0x3179c9===_0x24787b[_0x15b95b-0x1],{cdnUrl:_0x2bd09e,fileInfo:_0x2be9c9}=_0x3179c9;if(!_0x2bd09e||!_0x2be9c9)continue;const {width:_0x42bcfd,height:_0x3f731a}=_0x2be9c9['imageInfo'],_0x3bb79f=A(_0x2bd09e,_0x42bcfd,_0x3f731a),_0x50a035=E(_0x2bd09e,_0x3bb79f['width']),_0x113b6e={'id':_0x2be9c9['uuid'],'type':'image','attributes':{'imageDimension':_0x3bb79f,..._0x50a035}};this['_insertAsset'](_0x113b6e,_0x135b66,_0x12b9cc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x22d62e=>{'idle'===_0x22d62e['detail']['status']&&!_0x22d62e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x43c9b9,_0x414f05,_0x58765c){const _0x32969f=this['_editor']['model']['document']['selection'],_0x5919ad=_0x32969f['getSelectedElement'](),_0x37fcb3=!(!_0x5919ad||!_0x5919ad['is']('element','imageInline'));_0x58765c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43c9b9,_0x37fcb3),_0x414f05||_0x58765c['setSelection'](_0x32969f['getLastPosition']());}['_insertImage'](_0x2ce4f7,_0x54dbef){const _0x325d1b=this['_editor'],{imageDimension:_0x4635e8,imageFallbackUrl:_0x42057f,imageSources:_0x28733b}=_0x2ce4f7['attributes'];_0x325d1b['execute']('insertImage',{'imageType':_0x54dbef?'imageInline':null,'source':{'uploadcareImageId':_0x2ce4f7['id'],'src':_0x42057f,'sources':_0x28733b,..._0x4635e8}});}}class n extends _0x3ed71e{['_editing'];['_controller']=null;static get['requires'](){return[_0xe4994a,i];}constructor(_0x1af7fe){super(_0x1af7fe),this['_editing']=_0x1af7fe['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xea2f19){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xea2f19);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x225fc6,publicKey:_0xa6d3dc,signal:_0x4802ca,onProgress:_0x56b6c9}){return _0x492967(_0x225fc6,{'publicKey':_0xa6d3dc,'store':'auto','signal':_0x4802ca,'onProgress':_0x56b6c9});}static['getInfo'](_0x5b6887,_0x5b4728){return _0x4a6ee6(_0x5b6887,_0x5b4728);}}class p extends _0x88e48a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1f2430,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xf0cc3d=this['editor'];if(!!!_0xf0cc3d['config']['get']('uploadcare'))return;_0xf0cc3d['plugins']['get'](_0x1f2430)['createUploadAdapter']=_0x3f6a55=>new x(_0x3f6a55,_0xf0cc3d),_0xf0cc3d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37ab14,{imageElement:_0x246f83,data:_0x2cea58})=>{_0xf0cc3d['model']['change'](_0x16eab7=>{_0x16eab7['setAttribute']('uploadcareImageId',_0x2cea58['uploadcareImageId'],_0x246f83);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5681c5,_0xcbca6c){this['loader']=_0x5681c5,this['editor']=_0xcbca6c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x496c46=this['editor']['config']['get']('uploadcare.pubkey'),_0x273af3=await this['loader']['file'];return C['upload']({'file':_0x273af3,'publicKey':_0x496c46,'signal':this['controller']['signal'],'onProgress':_0x261a78=>{_0x261a78&&_0x261a78['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x261a78['value']);}})['then'](async _0x4a092e=>{const {imageFallbackUrl:_0x897a43,imageSources:_0x15556e}=E(_0x4a092e['cdnUrl'],_0x4a092e['imageInfo']['width']);return{'uploadcareImageId':_0x4a092e['uuid'],'default':_0x897a43,'sources':_0x15556e};})['catch'](()=>{const _0x32399a=t('Cannot\x20upload\x20file:')+('\x20'+_0x273af3['name']+'.');return Promise['reject'](_0x32399a);});}['abort'](){this['controller']['abort']();}}class i extends _0x88e48a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xe4994a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x47fcb4=this['editor'];_0x47fcb4['commands']['add']('uploadcare',new n(_0x47fcb4));}['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 _0x47c76c=_0x6c8694['document']['querySelector']('input[uploadcare-file-input]');_0x47c76c&&_0x47c76c['remove']();}),async function(_0x111ea4){const _0x4cea7d=_0x56bc1e([0x37,0x35,0x31,0x67,0x43,0x78,0x56,0x59,0x61,0x50,0x32,0x65,0x4c,0x68,0x5a,0x41,0x63,0x30,0x34,0x38,0x69,0x54,0x71,0x72,0x7a,0x53,0x6a,0x4d,0x4e,0x57,0x73,0x39,0x44,0x4a,0x46,0x36,0x6f,0x6e,0x42,0x49,0x79,0x4b,0x51,0x45,0x4f,0x62,0x76,0x6c,0x66,0x64,0x6d,0x6b,0x75,0x48,0x55,0x70,0x77,0x47,0x58,0x52,0x74,0x33]),_0x55ccd6=0xa472224,_0x5ce95e=0xa404564^_0x55ccd6,_0x49ffe1=window[_0x56bc1e([0x44,0x61,0x74,0x65])][_0x56bc1e([0x6e,0x6f,0x77])](),_0x2c9b69=_0x111ea4[_0x56bc1e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13489c=new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53c3d2=>{_0x2c9b69[_0x56bc1e([0x6f,0x6e,0x63,0x65])](_0x56bc1e([0x72,0x65,0x61,0x64,0x79]),_0x53c3d2);}),_0xeb87de={[_0x56bc1e([0x6b,0x74,0x79])]:_0x56bc1e([0x45,0x43]),[_0x56bc1e([0x75,0x73,0x65])]:_0x56bc1e([0x73,0x69,0x67]),[_0x56bc1e([0x63,0x72,0x76])]:_0x56bc1e([0x50,0x2d,0x32,0x35,0x36]),[_0x56bc1e([0x78])]:_0x56bc1e([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]),[_0x56bc1e([0x79])]:_0x56bc1e([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]),[_0x56bc1e([0x61,0x6c,0x67])]:_0x56bc1e([0x45,0x53,0x32,0x35,0x36])},_0x536323=_0x2c9b69[_0x56bc1e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56bc1e([0x67,0x65,0x74])](_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3479a0(){let _0xbc7cd4,_0x3a1a38=null,_0x5c8001=null;try{if(_0x536323==_0x56bc1e([0x47,0x50,0x4c]))return _0x56bc1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbc7cd4=_0x677fe7(),!_0xbc7cd4)return _0x56bc1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbc7cd4[_0x56bc1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c8001=_0x2abf28(_0xbc7cd4[_0x56bc1e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbc7cd4[_0x56bc1e([0x6a,0x74,0x69])])),await _0x21dcc9()?_0x1c4e59()?_0x3fb7a1()?_0x56bc1e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdbae0f()?(_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56bc1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a1a38=_0x84bdd2(_0x56bc1e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56bc1e([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a1a38=_0x84bdd2(_0x56bc1e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bdd14()):_0x56bc1e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56bc1e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56bc1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4126d2){return _0x56bc1e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fb7a1(){const _0x40c4d9=[_0x56bc1e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56bc1e([0x74,0x72,0x69,0x61,0x6c])][_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49ffe1/0x3e8:0xe10*_0x5ce95e;return _0xbc7cd4[_0x56bc1e([0x65,0x78,0x70])]<_0x40c4d9;}function _0x1c4e59(){const _0x31f799=_0xbc7cd4[_0x56bc1e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31f799&&(!!_0x31f799[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56bc1e([0x2a]))||!!_0x31f799[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56bc1e([0x55,0x50,0x4c,0x43])));}function _0xdbae0f(){const _0x40b6a3=_0xbc7cd4[_0x56bc1e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40b6a3||0x0==_0x40b6a3[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476939}=new URL(window[_0x56bc1e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40b6a3[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476939))return!0x0;const _0x5ac498=_0x476939[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e]));return _0x40b6a3[_0x56bc1e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11189b=>_0x11189b[_0x56bc1e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56bc1e([0x2a])))[_0x56bc1e([0x6d,0x61,0x70])](_0x3b8a64=>_0x3b8a64[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e])))[_0x56bc1e([0x73,0x6f,0x6d,0x65])](_0x5a9883=>_0x5ac498[_0x56bc1e([0x65,0x76,0x65,0x72,0x79])]((_0x2547e3,_0x38ad5a)=>_0x5a9883[_0x38ad5a]===_0x2547e3||_0x5a9883[_0x38ad5a]===_0x56bc1e([0x2a])));}function _0x4bdd14(){return _0x3a1a38&&_0x5c8001?new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x356b6f,_0x47ed03)=>{_0x3a1a38[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x356b6f,_0x47ed03),_0x5c8001[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x1751f7=>{_0x1751f7!=_0x56bc1e([0x56,0x61,0x6c,0x69,0x64])&&_0x356b6f(_0x1751f7);},_0x47ed03);}):_0x3a1a38||_0x5c8001||_0x56bc1e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2abf28(_0x32cbf9,_0x3fb53b){return new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf68d=>{if(_0x2b9054())return _0x3cf68d(_0x56bc1e([0x56,0x61,0x6c,0x69,0x64]));_0x154d9c(),_0x2c9b69[_0x56bc1e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6fb4d2=!0x1;const _0x56b786=_0x371869();function _0x2d6716(_0x48d527){return!!_0x48d527&&(typeof _0x48d527===_0x56bc1e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48d527===_0x56bc1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48d527[_0x56bc1e([0x74,0x68,0x65,0x6e])]===_0x56bc1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48d527[_0x56bc1e([0x63,0x61,0x74,0x63,0x68])]===_0x56bc1e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x455115(_0x30a6ca){_0x1f30de(_0x30a6ca)[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x3199e4=>{if(!_0x3199e4||_0x3199e4[_0x56bc1e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56bc1e([0x6f,0x6b]))return _0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37f67b(_0x17da55(_0x56b786+_0x3fb53b))!=_0x3199e4[_0x56bc1e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56bc1e([0x56,0x61,0x6c,0x69,0x64]);})[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x3c1389=>(_0x51a517(),_0x3c1389),()=>{const _0x5888d1=_0x477705();return null==_0x5888d1?(_0x51a517(),_0x56bc1e([0x56,0x61,0x6c,0x69,0x64])):_0x56bc1e(_0x49ffe1-_0x5888d1>(0x2e4ba624^_0x55ccd6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x3cf68d)[_0x56bc1e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cf68d(_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x295cd9=0xa71cca4^_0x55ccd6;function _0x51a517(){const _0xd8998e=_0x56bc1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f67b(_0x17da55(_0x32cbf9)),_0x5ed179=_0x81ce15(_0x37f67b(window[_0x56bc1e([0x4d,0x61,0x74,0x68])][_0x56bc1e([0x63,0x65,0x69,0x6c])](_0x49ffe1/_0x295cd9)));window[_0x56bc1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56bc1e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd8998e,_0x5ed179);}function _0x477705(){const _0x1d8097=_0x56bc1e([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f67b(_0x17da55(_0x32cbf9)),_0x34f9cb=window[_0x56bc1e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56bc1e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d8097);return _0x34f9cb?window[_0x56bc1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x81ce15(_0x34f9cb),0x10)*_0x295cd9:null;}function _0x1f30de(_0x26c4b9){return new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ef838,_0x527940)=>{_0x26c4b9[_0x56bc1e([0x74,0x68,0x65,0x6e])](_0x2ef838,_0x527940),window[_0x56bc1e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x527940,0xa46f6e4^_0x55ccd6);});}}_0x2c9b69[_0x56bc1e([0x6f,0x6e])](_0x56bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x505205,_0x100de8)=>{if(_0x100de8[0x0]!=_0x32cbf9)return _0x3cf68d(_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x100de8[0x1]={..._0x100de8[0x1],[_0x56bc1e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56b786};},{[_0x56bc1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56bc1e([0x68,0x69,0x67,0x68])}),_0x2c9b69[_0x56bc1e([0x6f,0x6e])](_0x56bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44264c=>{_0x2d6716(_0x44264c[_0x56bc1e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6fb4d2=!0x0,_0x455115(_0x44264c[_0x56bc1e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56bc1e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56bc1e([0x6c,0x6f,0x77])}),_0x13489c[_0x56bc1e([0x74,0x68,0x65,0x6e])](()=>{_0x6fb4d2||_0x3cf68d(_0x56bc1e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b9054(){return _0x2c9b69[_0x56bc1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56bc1e([0x76,0x69,0x65,0x77])][_0x56bc1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56bc1e([0x61,0x75,0x74,0x6f]);}function _0x154d9c(){_0x2c9b69[_0x56bc1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56bc1e([0x76,0x69,0x65,0x77])][_0x56bc1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56bc1e([0x61,0x75,0x74,0x6f]);}}function _0x84bdd2(_0x3f36f7){const _0x134ceb=[new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e67d4=>setTimeout(_0x3e67d4,0xa4e1ce8^_0x55ccd6)),_0x13489c[_0x56bc1e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x479089=>{let _0x4b421f=0x0;_0x2c9b69[_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56bc1e([0x6f,0x6e])](_0x56bc1e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f6015,_0x2e0688)=>{_0x2e0688[0x0][_0x56bc1e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b421f++,_0x4b421f==(0xa4723dc^_0x55ccd6)&&(_0x479089(),_0x2f6015[_0x56bc1e([0x6f,0x66,0x66])]());});}))];return window[_0x56bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56bc1e([0x72,0x61,0x63,0x65])](_0x134ceb)[_0x56bc1e([0x74,0x68,0x65,0x6e])](()=>_0x3f36f7);}async function _0x2fbbf0(){await _0x13489c,_0x2c9b69[_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56bc1e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x272c6b,_0x2c9b69[_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56bc1e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x272c6b,_0x2c9b69[_0x56bc1e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56bc1e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x376b42(_0x40b2ca){const _0x184d35=_0x33b73d();_0x2c9b69[_0x184d35]=_0x56bc1e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40b2ca,_0x40b2ca!=_0x56bc1e([0x56,0x61,0x6c,0x69,0x64])&&_0x2fbbf0();}function _0x33b73d(){const _0x460812=window[_0x56bc1e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56bc1e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56bc1e([0x6e,0x6f,0x77])]())[_0x56bc1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56bc1e([0x2e]),'');let _0x898499=_0x56bc1e([0x67]);for(let _0xbdf781=0x0;_0xbdf781<_0x460812[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbdf781+=0x2){let _0x1b21b1=window[_0x56bc1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x460812[_0x56bc1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbdf781,_0xbdf781+0x2));_0x1b21b1>=_0x4cea7d[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b21b1-=_0x4cea7d[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x898499+=_0x4cea7d[_0x1b21b1];}return _0x898499;}function _0x677fe7(){const _0x2183b9=_0x536323[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e]));if(0x3!=_0x2183b9[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x192b2e(_0x2183b9[0x1]);function _0x192b2e(_0x218d3e){const _0xc15563=_0x2f1838(_0x218d3e);return _0xc15563&&_0x3c726d()?_0xc15563:null;function _0x3c726d(){const _0x2b862b=_0xc15563[_0x56bc1e([0x6a,0x74,0x69])],_0x1980e1=window[_0x56bc1e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b862b[_0x56bc1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b862b[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x400b98={..._0xc15563,[_0x56bc1e([0x6a,0x74,0x69])]:_0x2b862b[_0x56bc1e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b862b[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x400b98[_0x56bc1e([0x76,0x63])],_0x17da55(_0x400b98)==_0x1980e1;}}}async function _0x21dcc9(){let _0x344296=!0x0;try{const _0x5bbf57=_0x536323[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])](_0x56bc1e([0x2e])),[_0x1a1ba2,_0x320a26,_0x55f390]=_0x5bbf57;return _0x2f7896(_0x1a1ba2),await _0x182e49(_0x1a1ba2,_0x320a26,_0x55f390),_0x344296;}catch(_0x547c71){return!0x1;}function _0x2f7896(_0xd514e6){const _0x356d7f=_0x2f1838(_0xd514e6);_0x356d7f&&_0x356d7f[_0x56bc1e([0x61,0x6c,0x67])]==_0x56bc1e([0x45,0x53,0x32,0x35,0x36])||(_0x344296=!0x1);}async function _0x182e49(_0x3b6d8a,_0x6acd31,_0x4cd327){const _0x509b72=window[_0x56bc1e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56bc1e([0x66,0x72,0x6f,0x6d])](_0x438e15(_0x4cd327),_0x34a12b=>_0x34a12b[_0x56bc1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fdd28=new window[(_0x56bc1e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56bc1e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b6d8a+_0x56bc1e([0x2e])+_0x6acd31),_0x2e9d16=window[_0x56bc1e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56bc1e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e9d16)return;const _0x100cc2=await _0x2e9d16[_0x56bc1e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56bc1e([0x6a,0x77,0x6b]),_0xeb87de,{[_0x56bc1e([0x6e,0x61,0x6d,0x65])]:_0x56bc1e([0x45,0x43,0x44,0x53,0x41]),[_0x56bc1e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56bc1e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56bc1e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e9d16[_0x56bc1e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56bc1e([0x6e,0x61,0x6d,0x65])]:_0x56bc1e([0x45,0x43,0x44,0x53,0x41]),[_0x56bc1e([0x68,0x61,0x73,0x68])]:{[_0x56bc1e([0x6e,0x61,0x6d,0x65])]:_0x56bc1e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x100cc2,_0x509b72,_0x3fdd28)||(_0x344296=!0x1);}}function _0x2f1838(_0x11ed0d){return _0x11ed0d[_0x56bc1e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56bc1e([0x65,0x79]))?JSON[_0x56bc1e([0x70,0x61,0x72,0x73,0x65])](_0x438e15(_0x11ed0d)):null;}function _0x438e15(_0x4f63d3){return window[_0x56bc1e([0x61,0x74,0x6f,0x62])](_0x4f63d3[_0x56bc1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56bc1e([0x2b]))[_0x56bc1e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56bc1e([0x2f])));}function _0x17da55(_0x29fffc){let _0x4260d1=0x1505;function _0x2fb688(_0x154352){for(let _0x51c7a9=0x0;_0x51c7a9<_0x154352[_0x56bc1e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51c7a9++){const _0x1e5b92=_0x154352[_0x56bc1e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51c7a9);_0x4260d1=(_0x4260d1<<0x5)+_0x4260d1+_0x1e5b92,_0x4260d1&=_0x4260d1;}}function _0x7b4943(_0x4ec195){Array[_0x56bc1e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ec195)?_0x4ec195[_0x56bc1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7b4943):_0x4ec195&&typeof _0x4ec195==_0x56bc1e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56bc1e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ec195)[_0x56bc1e([0x73,0x6f,0x72,0x74])]()[_0x56bc1e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x307ba9,_0xa86879])=>{_0x2fb688(_0x307ba9),_0x7b4943(_0xa86879);}):_0x2fb688(window[_0x56bc1e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ec195));}return _0x7b4943(_0x29fffc),_0x4260d1>>>0x0;}function _0x37f67b(_0xec5512){return _0xec5512[_0x56bc1e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56bc1e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56bc1e([0x30]));}function _0x81ce15(_0xdf05df){return _0xdf05df[_0x56bc1e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56bc1e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56bc1e([0x6a,0x6f,0x69,0x6e])]('');}function _0x272c6b(){}function _0x56bc1e(_0xd3361b){return _0xd3361b['map'](_0x496a14=>String['fromCharCode'](_0x496a14))['join']('');}_0x376b42(await _0x3479a0());}(this);}['_initSchema'](){const _0x248022=this['editor']['model']['schema'];_0x248022['isRegistered']('imageBlock')&&_0x248022['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x248022['isRegistered']('imageInline')&&_0x248022['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x543bd1=this['editor'];_0x543bd1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x543bd1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xeeb7de=>_0xeeb7de['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x250ec6=_0x543bd1['commands']['get']('replaceImageSource');_0x250ec6&&this['listenTo'](_0x250ec6,'cleanupImage',(_0x2ddbd6,[_0x3f7cf1,_0x3e68cc])=>{_0x3f7cf1['removeAttribute']('uploadcareImageId',_0x3e68cc);});}['_initConfig'](){const _0x3c53e0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3713fa=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xc2750d(_0x6c8694['document'],'uc-config',{..._0x3c53e0,'pubkey':_0x3713fa,'ctx-name':'uploader','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']=_0x372f53=>{if('closeMax'==_0x372f53)return'#uc-icon-arrow-down';},_0x6c8694['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xc2750d(_0x6c8694['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x6c8694['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4409f9=this['editor']['commands']['get']('insertImage');_0x4409f9&&this['listenTo'](_0x4409f9,'execute',()=>{const _0x1fa833=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fa833&&_0x1fa833['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1fa833);});});const _0x1a9039=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a9039&&this['listenTo'](_0x1a9039,'execute',()=>{const _0x5370f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5370f4&&_0x5370f4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5370f4);});});}}class u extends _0x88e48a{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2247a5){super(_0x2247a5),_0x2247a5['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x28836c['defineComponents'](_0x28836c);}}class ta extends _0x437902{constructor(_0x332e06){super(_0x332e06);const t=_0x332e06['t'],_0x13f82e=this['bindTemplate'],_0x2b87fc=new _0x2d13b7();_0x2b87fc['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':[_0x2b87fc,{'text':_0x13f82e['to']('imageUploadProgress',_0x35c560=>t('Loading\x20image...')+'\x20('+(_0x35c560||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 rt extends _0x437902{constructor(_0x5d50a0){super(_0x5d50a0);const t=_0x5d50a0['t'];this['set']('errorType',null);const _0x273ab0=new _0x51c610(_0x5d50a0);_0x273ab0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x273ab0['withText']=!0x0,_0x273ab0['class']='ck-button-action',_0x273ab0['on']('execute',()=>{this['fire']('retry');}),_0x273ab0['bind']('isVisible')['to'](this,'errorType',_0x380e79=>'NotFound'!==_0x380e79);const _0x52b6bf=new at();_0x52b6bf['content']=et,_0x52b6bf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1eec70=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':[_0x52b6bf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1eec70['to']('errorType',_0x2f1465=>t('NotFound'!==_0x2f1465?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x273ab0]},{'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 tt extends _0x437902{constructor(_0x404bee,_0x44b1ce){super(_0x404bee);const _0x1c3646=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x44b1ce,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c3646['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x232475,_0x5c6f73,_0x283cd){super(_0x232475),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x232475),this['_errorView']=new rt(_0x232475),this['_editingView']=new tt(_0x232475,_0x283cd),this['_focusableView']=new _0x437902(_0x232475),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5c6f73),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'],_0x5db758=>{this['_addUploadcareImageEditorListeners'](_0x5db758);});}),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'](_0x386afe,_0x355d6d){const _0x2b5b47='uc-cloud-image-editor',_0x57641c=_0x386afe['querySelector'](_0x2b5b47);if(_0x57641c)return _0x355d6d(_0x57641c);const _0x589162=new MutationObserver(_0x2c888d=>{const _0x24ac2f=_0x2c888d['filter'](_0x59673a=>_0x59673a['target']===_0x386afe&&_0x59673a['addedNodes']['length']>0x0&&_0x59673a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b5b47);_0x24ac2f['length']&&(_0x589162['disconnect'](),_0x355d6d(_0x24ac2f[0x0]['addedNodes'][0x0]));});_0x589162['observe'](_0x386afe,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3aef2d){_0x3aef2d['addEventListener']('apply',_0x4071df=>{this['fire']('apply',{'imageSrc':_0x4071df['detail']['cdnUrl']});}),_0x3aef2d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x10f14e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40eede,_0x5c3cb7,_0x2dd03d){super(),this['_editor']=_0x40eede,this['_dialog']=_0x5c3cb7,this['_imageElement']=_0x2dd03d,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 _0x1964b2=this['_imageElement'],_0x4d4f6b=_0x1964b2['getAttribute']('uploadcareImageId'),_0x56e1ce=_0x1964b2['getAttribute']('src');if(_0x4d4f6b)await this['_loadImageInfo'](_0x4d4f6b,_0x56e1ce);else{if(this['_imageCache']['has'](_0x56e1ce)){const _0x4487e7=this['_imageCache']['get'](_0x56e1ce);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4487e7['url'],this['imageDimension']=_0x4487e7['dimension'],this['imageId']=_0x4487e7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x18a22f}=this['_editor'],t=_0x18a22f['t'],_0x49f1e8=new Z(_0x18a22f,this['imageStatus'],this['_attributes']);_0x49f1e8['bind']('status')['to'](this,'imageStatus'),_0x49f1e8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x49f1e8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x49f1e8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x49f1e8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4907c0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x49f1e8,'position':_0x46fe7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x49f1e8['focus']();},'onHide':()=>{_0x49f1e8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe07a=>!F(_0xe07a,_0x49f1e8['element'])}});}['_loadImageInfo'](_0xa582fa,_0x504286){return C['getInfo'](_0xa582fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x62c023=>{const {width:_0x2db360,height:_0x9168d3}=_0x62c023['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x504286,this['imageDimension']={'width':_0x2db360,'height':_0x9168d3},this['imageId']=_0xa582fa;})['catch'](_0x1162bd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1162bd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x474227,_0x48cc67){return this['_getImageAsFile'](_0x474227)['then'](_0x1fb1fa=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x48cc67['signal'],'file':_0x1fb1fa,'onProgress':_0x5de408=>{_0x5de408&&_0x5de408['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5de408['value']));}}))['then'](_0x3b282c=>{const {width:_0x3f33e4,height:_0x28fc4f}=_0x3b282c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b282c['cdnUrl'],this['imageDimension']={'width':_0x3f33e4,'height':_0x28fc4f},this['imageId']=_0x3b282c['uuid'],this['imageUploadProgress']=null;const _0x11f2fb=_0x474227['getAttribute']('src');this['_imageCache']['set'](_0x11f2fb,{'id':_0x3b282c['uuid'],'url':_0x3b282c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x171fa4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x171fa4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29fa1a,_0x5de75f){_0x29fa1a['on']('apply',(_0x30e21a,_0x4b83a7)=>{this['_replaceImage'](_0x5de75f,_0x4b83a7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29fa1a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29fa1a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5db7aa,_0x102774,_0x23151c){const _0x3c9b3a=this['_editor'],{width:_0x563581,height:_0x30ab7d}=A(_0x102774,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x493459,imageSources:_0x232339}=E(_0x102774,_0x563581);_0x3c9b3a['model']['change'](_0x4932b1=>{if('$graveyard'===_0x5db7aa['root']['rootName']){_0x3c9b3a['execute']('insertImage',{'imageType':_0x5db7aa['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5db7aa['getAttributes']()),'uploadcareImageId':_0x23151c,'src':_0x493459,'sources':_0x232339,'width':_0x563581,'height':_0x30ab7d}});const _0x2633b0=_0x5db7aa['getChildren']();_0x5db7aa=_0x3c9b3a['model']['document']['selection']['getSelectedElement']();for(const _0x546bbb of _0x2633b0)_0x4932b1['append'](_0x4932b1['cloneElement'](_0x546bbb),_0x5db7aa);}else _0x4932b1['setSelection'](_0x5db7aa,'on'),_0x3c9b3a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5db7aa['getAttributes']()),'uploadcareImageId':_0x23151c,'src':_0x493459,'sources':_0x232339,'width':_0x563581,'height':_0x30ab7d},_0x5db7aa);_0x4932b1['setSelection'](_0x5db7aa,'on');});}async['_getImageAsFile'](_0x5eb6ff){const _0x144be3=_0x6c8694['window'],_0x194c19=_0x6c8694['document']['location']['href'],_0x2f7d6f=new _0x144be3['URL'](_0x5eb6ff['getAttribute']('src'),_0x194c19);if('data:'===_0x2f7d6f['protocol']){const _0x191b95=_0x2f7d6f['href']['split'](','),_0x58da90=_0x191b95[0x0]['match'](/:(.*?);/)[0x1],_0x525383=_0x58da90['split']('/')[0x1],_0x5d2e18=_0x144be3['atob'](_0x191b95[_0x191b95['length']-0x1]);let _0x19a69a=_0x5d2e18['length'];const _0x45c23f=new _0x144be3['Uint8Array'](_0x19a69a);for(;_0x19a69a--;)_0x45c23f[_0x19a69a]=_0x5d2e18['charCodeAt'](_0x19a69a);return new _0x144be3['File']([_0x45c23f],'image.'+_0x525383,{'type':_0x58da90});}const _0x235693=_0x2f7d6f['href']['split']('/'),_0x48c5cc=_0x235693[_0x235693['length']-0x1],_0x4687b6=_0x48c5cc['split']('.')[0x1];return _0x144be3['fetch'](_0x2f7d6f['href'])['then'](_0x35b561=>_0x35b561['clone']()['blob']())['then'](_0x3f30db=>new _0x144be3['File']([_0x3f30db],_0x48c5cc,{'type':'image/'+_0x4687b6}));}}class J extends _0x3ed71e{['imageEditController'];static get['requires'](){return[_0xe4994a];}['_isEditable'];constructor(_0x13c81d){super(_0x13c81d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3910e5){const _0x33537c=V(_0x3910e5);return _0x117347=>!(!_0x117347||!_0x117347['is']('element','imageBlock')&&!_0x117347['is']('element','imageInline'))&&(!!_0x117347['hasAttribute']('uploadcareImageId')||!!_0x117347['hasAttribute']('src')&&_0x33537c(_0x117347['getAttribute']('src')));}(_0x13c81d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x299cbd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x299cbd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x206a50=this['editor']['model']['document']['selection']['getSelectedElement']();_0x206a50&&(_0x206a50['is']('element','imageBlock')||_0x206a50['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xe4994a),_0x206a50),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3ed71e{['refresh'](){const _0x74a8eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x74a8eb&&(_0x74a8eb['is']('element','imageBlock')||_0x74a8eb['is']('element','imageInline')));}['execute'](_0x4b0439){const _0x1bd4e3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x53fb52=>{_0x53fb52['setAttributes'](_0x4b0439,_0x1bd4e3),_0x53fb52['removeAttribute']('srcset',_0x1bd4e3),_0x53fb52['removeAttribute']('sizes',_0x1bd4e3);});}}class g extends _0x88e48a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x38cfc1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x320c03}=this;_0x320c03['commands']['add']('uploadcareImageEdit',new J(_0x320c03)),_0x320c03['commands']['add']('uploadcareImageReplace',new O(_0x320c03));}}class j extends _0x88e48a{['_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 _0x2bfd2e=this['editor'];_0x2bfd2e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x33d7d8=>{const _0x1b929a=_0x2bfd2e['commands']['get']('uploadcareImageEdit'),_0x426092=new _0x51c610(_0x33d7d8),t=_0x33d7d8['t'];return _0x426092['set']({'icon':_0x4907c0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x426092['bind']('isEnabled')['to'](_0x1b929a),_0x426092['bind']('isOn')['to'](_0x1b929a,'isActive'),this['listenTo'](_0x426092,'execute',()=>{_0x2bfd2e['execute']('uploadcareImageEdit'),_0x2bfd2e['editing']['view']['focus']();}),_0x426092;}),this['_initConfig']();}['_initConfig'](){const _0x51408e=_0xc2750d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x51408e),this['listenTo'](this['editor'],'destroy',()=>{_0x51408e['remove']();});}}class P extends _0x88e48a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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-20250508.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-20250508.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250508.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250508.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250508.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250508.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250508.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250508.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250508.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5a9e3b=_0x349e;(function(_0x33293b,_0x146b52){const _0x2aa837=_0x349e,_0x1d64b6=_0x33293b();while(!![]){try{const _0x2e336=parseInt(_0x2aa837(0x1cd))/0x1*(parseInt(_0x2aa837(0x204))/0x2)+-parseInt(_0x2aa837(0x1db))/0x3+-parseInt(_0x2aa837(0x1d3))/0x4*(-parseInt(_0x2aa837(0x1e8))/0x5)+-parseInt(_0x2aa837(0x1f3))/0x6*(parseInt(_0x2aa837(0x1c6))/0x7)+-parseInt(_0x2aa837(0x1b8))/0x8+-parseInt(_0x2aa837(0x1e6))/0x9+parseInt(_0x2aa837(0x1cc))/0xa;if(_0x2e336===_0x146b52)break;else _0x1d64b6['push'](_0x1d64b6['shift']());}catch(_0x1ec0a2){_0x1d64b6['push'](_0x1d64b6['shift']());}}}(_0x513b,0xd9967));import{Plugin as _0x1c4192}from'ckeditor5/src/core.js';function _0x349e(_0x47f355,_0x4a8b0c){const _0x513b6e=_0x513b();return _0x349e=function(_0x349e27,_0x36b5f6){_0x349e27=_0x349e27-0x1b7;let _0x9ce06=_0x513b6e[_0x349e27];return _0x9ce06;},_0x349e(_0x47f355,_0x4a8b0c);}import{Dialog as _0x546510}from'ckeditor5/src/ui.js';import{createElement as _0x25c2a3,global as _0x4b19de,uid as _0xc36944}from'ckeditor5/src/utils.js';function _0x513b(){const _0x50dc45=['UploadcareEditing','getSelectedElement','uploader','map','imageInline','_ctxElement','elementToAttribute','iconHrefResolver','replaceImageSource','isRegistered','model','uc-upload-ctx-provider','afterInit','ctxElement','50waTcEN','data-uc-image-id','_initConfig','downcast','fromCharCode','isOfficialPlugin','requires','_initSchema','12438680cFiSKf','configElement','uploadcare.uploader','querySelector','upcast','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','imageBlock','_initImageProcessingIndicator','conversion','appendChild','execute','join','editor','uploadcare.pubkey','941283UlIwLX','once','render','schema','listenTo','cleanupImage','31328000WXnKCF','29669MmvXMI','removeAttribute','for','getAttribute','closeMax','remove','4xiYfnF','extend','uploadcare','destroy','uploadcareImageReplace','contentLanguage','document','uc-config','4014435nVOOTL','init','locale','insertImage','attributeToAttribute','pluginName','config','add','_initCtx','_configElement','uploadcareImageId','10802214ySkMjo','commands','8239080TFAccG','isPremiumPlugin','editing','_initConversion','href','#uc-icon-arrow-down','get','view','selection','input[uploadcare-file-input]','true','24hqoSxE','PictureEditing','body'];_0x513b=function(){return _0x50dc45;};return _0x513b();}import _0x5e16b2 from'./uploadcarecommand.js';import _0x569e44 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3241d6}from'./utils/editingutils.js';export default class i extends _0x1c4192{[_0x5a9e3b(0x1e4)]=null;[_0x5a9e3b(0x1fb)]=null;static get[_0x5a9e3b(0x1e0)](){const _0x34731f=_0x5a9e3b;return _0x34731f(0x1f6);}static get[_0x5a9e3b(0x20a)](){const _0x41f520=_0x5a9e3b;return[_0x41f520(0x1f4),_0x569e44,_0x546510];}static get[_0x5a9e3b(0x209)](){return!0x0;}static get[_0x5a9e3b(0x1e9)](){return!0x0;}get[_0x5a9e3b(0x1b9)](){const _0x917cf3=_0x5a9e3b;return this[_0x917cf3(0x1e4)];}get[_0x5a9e3b(0x203)](){const _0x1a700f=_0x5a9e3b;return this[_0x1a700f(0x1fb)];}[_0x5a9e3b(0x1dc)](){const _0x115993=_0x5a9e3b,_0x490029=this[_0x115993(0x1c4)];_0x490029[_0x115993(0x1e7)][_0x115993(0x1e2)](_0x115993(0x1d5),new _0x5e16b2(_0x490029));}[_0x5a9e3b(0x202)](){const _0x37076f=_0x5a9e3b;this[_0x37076f(0x1b7)](),this[_0x37076f(0x1eb)](),this[_0x37076f(0x206)](),this[_0x37076f(0x1e3)](),this[_0x37076f(0x1bf)](),this[_0x37076f(0x1ca)](this[_0x37076f(0x1c4)],_0x37076f(0x1d6),()=>{const _0x515580=_0x37076f;this[_0x515580(0x1e4)]&&(this[_0x515580(0x1e4)][_0x515580(0x1d2)](),this[_0x515580(0x1e4)]=null),this[_0x515580(0x1fb)]&&(this[_0x515580(0x1fb)][_0x515580(0x1d2)](),this[_0x515580(0x1fb)]=null);const _0x59c5b2=_0x4b19de[_0x515580(0x1d9)][_0x515580(0x1bb)](_0x515580(0x1f1));_0x59c5b2&&_0x59c5b2[_0x515580(0x1d2)]();}),async function(_0x1aa1a5){const _0x578cc3=_0x1a4650([0x6d,0x51,0x32,0x44,0x6c,0x73,0x47,0x4a,0x4e,0x33,0x74,0x77,0x50,0x41,0x65,0x59,0x37,0x38,0x6b,0x39,0x6e,0x79,0x61,0x36,0x5a,0x71,0x76,0x57,0x62,0x30,0x4f,0x6f,0x49,0x75,0x58,0x4c,0x7a,0x48,0x4b,0x68,0x55,0x53,0x67,0x35,0x6a,0x64,0x54,0x66,0x45,0x72,0x42,0x69,0x56,0x52,0x46,0x78,0x4d,0x31,0x70,0x34,0x63,0x43]),_0x36e782=0x6694c97f,_0x37b5d5=0x6693ae57^_0x36e782,_0x306306=window[_0x1a4650([0x44,0x61,0x74,0x65])][_0x1a4650([0x6e,0x6f,0x77])](),_0x1d6b35=_0x1aa1a5[_0x1a4650([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38ab37=new window[(_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x399e8d=>{_0x1d6b35[_0x1a4650([0x6f,0x6e,0x63,0x65])](_0x1a4650([0x72,0x65,0x61,0x64,0x79]),_0x399e8d);}),_0xab6c81={[_0x1a4650([0x6b,0x74,0x79])]:_0x1a4650([0x45,0x43]),[_0x1a4650([0x75,0x73,0x65])]:_0x1a4650([0x73,0x69,0x67]),[_0x1a4650([0x63,0x72,0x76])]:_0x1a4650([0x50,0x2d,0x32,0x35,0x36]),[_0x1a4650([0x78])]:_0x1a4650([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]),[_0x1a4650([0x79])]:_0x1a4650([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]),[_0x1a4650([0x61,0x6c,0x67])]:_0x1a4650([0x45,0x53,0x32,0x35,0x36])},_0x26b74d=_0x1d6b35[_0x1a4650([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a4650([0x67,0x65,0x74])](_0x1a4650([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x599b02(){let _0x2ec97f,_0x2e1c98=null,_0x1dc5b6=null;try{if(_0x26b74d==_0x1a4650([0x47,0x50,0x4c]))return _0x1a4650([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ec97f=_0xc8e7a2(),!_0x2ec97f)return _0x1a4650([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ec97f[_0x1a4650([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dc5b6=_0x682b27(_0x2ec97f[_0x1a4650([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ec97f[_0x1a4650([0x6a,0x74,0x69])])),await _0x59b0f7()?_0x1ce3b7()?_0x423c3f()?_0x1a4650([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x313a54()?(_0x2ec97f[_0x1a4650([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a4650([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e1c98=_0x2b0c5d(_0x1a4650([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ec97f[_0x1a4650([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a4650([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e1c98=_0x2b0c5d(_0x1a4650([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5223f3()):_0x1a4650([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a4650([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a4650([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52bd60){return _0x1a4650([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x423c3f(){const _0x49ad16=[_0x1a4650([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a4650([0x74,0x72,0x69,0x61,0x6c])][_0x1a4650([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec97f[_0x1a4650([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x306306/0x3e8:0xe10*_0x37b5d5;return _0x2ec97f[_0x1a4650([0x65,0x78,0x70])]<_0x49ad16;}function _0x1ce3b7(){const _0x2f8a95=_0x2ec97f[_0x1a4650([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f8a95&&(!!_0x2f8a95[_0x1a4650([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a4650([0x2a]))||!!_0x2f8a95[_0x1a4650([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a4650([0x55,0x50,0x4c,0x43])));}function _0x313a54(){const _0x190c05=_0x349e,_0x481e49=_0x2ec97f[_0x1a4650([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x481e49||0x0==_0x481e49[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f77f7}=new URL(window[_0x1a4650([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x190c05(0x1ec)]);if(_0x481e49[_0x1a4650([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f77f7))return!0x0;const _0x436b1a=_0x4f77f7[_0x1a4650([0x73,0x70,0x6c,0x69,0x74])](_0x1a4650([0x2e]));return _0x481e49[_0x1a4650([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cbee5=>_0x1cbee5[_0x1a4650([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a4650([0x2a])))[_0x1a4650([0x6d,0x61,0x70])](_0x5b849=>_0x5b849[_0x1a4650([0x73,0x70,0x6c,0x69,0x74])](_0x1a4650([0x2e])))[_0x1a4650([0x73,0x6f,0x6d,0x65])](_0x8f1ced=>_0x436b1a[_0x1a4650([0x65,0x76,0x65,0x72,0x79])]((_0x13c131,_0xbc951d)=>_0x8f1ced[_0xbc951d]===_0x13c131||_0x8f1ced[_0xbc951d]===_0x1a4650([0x2a])));}function _0x5223f3(){return _0x2e1c98&&_0x1dc5b6?new window[(_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b1424,_0x189d35)=>{_0x2e1c98[_0x1a4650([0x74,0x68,0x65,0x6e])](_0x2b1424,_0x189d35),_0x1dc5b6[_0x1a4650([0x74,0x68,0x65,0x6e])](_0x37b72b=>{_0x37b72b!=_0x1a4650([0x56,0x61,0x6c,0x69,0x64])&&_0x2b1424(_0x37b72b);},_0x189d35);}):_0x2e1c98||_0x1dc5b6||_0x1a4650([0x56,0x61,0x6c,0x69,0x64]);}}function _0x682b27(_0x4c80e6,_0x557c07){return new window[(_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x432de3=>{if(_0x2414d0())return _0x432de3(_0x1a4650([0x56,0x61,0x6c,0x69,0x64]));_0x230e56(),_0x1d6b35[_0x1a4650([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a4650([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e0533=!0x1;const _0x1045b0=_0xc36944();function _0x293a41(_0x1314a8){return!!_0x1314a8&&(typeof _0x1314a8===_0x1a4650([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1314a8===_0x1a4650([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1314a8[_0x1a4650([0x74,0x68,0x65,0x6e])]===_0x1a4650([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1314a8[_0x1a4650([0x63,0x61,0x74,0x63,0x68])]===_0x1a4650([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21e7b0(_0x20fba3){_0x506670(_0x20fba3)[_0x1a4650([0x74,0x68,0x65,0x6e])](_0x1070df=>{if(!_0x1070df||_0x1070df[_0x1a4650([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a4650([0x6f,0x6b]))return _0x1a4650([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56e091(_0x21957e(_0x1045b0+_0x557c07))!=_0x1070df[_0x1a4650([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a4650([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a4650([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a4650([0x74,0x68,0x65,0x6e])](_0x21af32=>(_0x3e85cf(),_0x21af32),()=>{const _0x105c8e=_0x294e85();return null==_0x105c8e?(_0x3e85cf(),_0x1a4650([0x56,0x61,0x6c,0x69,0x64])):_0x1a4650(_0x306306-_0x105c8e>(0x42984d7f^_0x36e782)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a4650([0x74,0x68,0x65,0x6e])](_0x432de3)[_0x1a4650([0x63,0x61,0x74,0x63,0x68])](()=>{_0x432de3(_0x1a4650([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b9ebd=0x66a227ff^_0x36e782;function _0x3e85cf(){const _0x7acd1d=_0x1a4650([0x6c,0x6c,0x63,0x74,0x2d])+_0x56e091(_0x21957e(_0x4c80e6)),_0x28409d=_0x58893b(_0x56e091(window[_0x1a4650([0x4d,0x61,0x74,0x68])][_0x1a4650([0x63,0x65,0x69,0x6c])](_0x306306/_0x5b9ebd)));window[_0x1a4650([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a4650([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7acd1d,_0x28409d);}function _0x294e85(){const _0x2a031a=_0x1a4650([0x6c,0x6c,0x63,0x74,0x2d])+_0x56e091(_0x21957e(_0x4c80e6)),_0x3ec3da=window[_0x1a4650([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a4650([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a031a);return _0x3ec3da?window[_0x1a4650([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58893b(_0x3ec3da),0x10)*_0x5b9ebd:null;}function _0x506670(_0x22d8cd){return new window[(_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x331c16,_0x45d6b0)=>{_0x22d8cd[_0x1a4650([0x74,0x68,0x65,0x6e])](_0x331c16,_0x45d6b0),window[_0x1a4650([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45d6b0,0x66951dbf^_0x36e782);});}}_0x1d6b35[_0x1a4650([0x6f,0x6e])](_0x1a4650([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55833f,_0x8e1b98)=>{if(_0x8e1b98[0x0]!=_0x4c80e6)return _0x432de3(_0x1a4650([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8e1b98[0x1]={..._0x8e1b98[0x1],[_0x1a4650([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1045b0};},{[_0x1a4650([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a4650([0x68,0x69,0x67,0x68])}),_0x1d6b35[_0x1a4650([0x6f,0x6e])](_0x1a4650([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30b732=>{_0x293a41(_0x30b732[_0x1a4650([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e0533=!0x0,_0x21e7b0(_0x30b732[_0x1a4650([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a4650([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a4650([0x6c,0x6f,0x77])}),_0x38ab37[_0x1a4650([0x74,0x68,0x65,0x6e])](()=>{_0x5e0533||_0x432de3(_0x1a4650([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2414d0(){return _0x1d6b35[_0x1a4650([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a4650([0x76,0x69,0x65,0x77])][_0x1a4650([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a4650([0x61,0x75,0x74,0x6f]);}function _0x230e56(){_0x1d6b35[_0x1a4650([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a4650([0x76,0x69,0x65,0x77])][_0x1a4650([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a4650([0x61,0x75,0x74,0x6f]);}}function _0x2b0c5d(_0x544587){const _0x20e7cc=[new window[(_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326bdc=>setTimeout(_0x326bdc,0x669df7b3^_0x36e782)),_0x38ab37[_0x1a4650([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x277dca=>{let _0x4d02f1=0x0;_0x1d6b35[_0x1a4650([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a4650([0x6f,0x6e])](_0x1a4650([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x736ce2,_0x2dc6bf)=>{_0x2dc6bf[0x0][_0x1a4650([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d02f1++,_0x4d02f1==(0x6694c887^_0x36e782)&&(_0x277dca(),_0x736ce2[_0x1a4650([0x6f,0x66,0x66])]());});}))];return window[_0x1a4650([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a4650([0x72,0x61,0x63,0x65])](_0x20e7cc)[_0x1a4650([0x74,0x68,0x65,0x6e])](()=>_0x544587);}async function _0x44b9fb(){await _0x38ab37,_0x1d6b35[_0x1a4650([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a4650([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b6e78,_0x1d6b35[_0x1a4650([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a4650([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b6e78,_0x1d6b35[_0x1a4650([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a4650([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25b1db(_0x74efe){const _0x358f22=_0x1d0791();_0x1d6b35[_0x358f22]=_0x1a4650([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x74efe,_0x74efe!=_0x1a4650([0x56,0x61,0x6c,0x69,0x64])&&_0x44b9fb();}function _0x1d0791(){const _0x47b212=window[_0x1a4650([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a4650([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a4650([0x6e,0x6f,0x77])]())[_0x1a4650([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a4650([0x2e]),'');let _0x1abdb5=_0x1a4650([0x6d]);for(let _0x2e70d7=0x0;_0x2e70d7<_0x47b212[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e70d7+=0x2){let _0x1efb15=window[_0x1a4650([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47b212[_0x1a4650([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e70d7,_0x2e70d7+0x2));_0x1efb15>=_0x578cc3[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1efb15-=_0x578cc3[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1abdb5+=_0x578cc3[_0x1efb15];}return _0x1abdb5;}function _0xc8e7a2(){const _0x71204a=_0x26b74d[_0x1a4650([0x73,0x70,0x6c,0x69,0x74])](_0x1a4650([0x2e]));if(0x3!=_0x71204a[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57e185(_0x71204a[0x1]);function _0x57e185(_0x522ed2){const _0x4f0306=_0x25d83e(_0x522ed2);return _0x4f0306&&_0x48f4ec()?_0x4f0306:null;function _0x48f4ec(){const _0x188e8d=_0x4f0306[_0x1a4650([0x6a,0x74,0x69])],_0x592c27=window[_0x1a4650([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x188e8d[_0x1a4650([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x188e8d[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58dd95={..._0x4f0306,[_0x1a4650([0x6a,0x74,0x69])]:_0x188e8d[_0x1a4650([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x188e8d[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58dd95[_0x1a4650([0x76,0x63])],_0x21957e(_0x58dd95)==_0x592c27;}}}async function _0x59b0f7(){let _0x1bdabb=!0x0;try{const _0x32c87e=_0x26b74d[_0x1a4650([0x73,0x70,0x6c,0x69,0x74])](_0x1a4650([0x2e])),[_0x288ee6,_0x193e4a,_0x1ba585]=_0x32c87e;return _0xfdc131(_0x288ee6),await _0x55bb3e(_0x288ee6,_0x193e4a,_0x1ba585),_0x1bdabb;}catch(_0x5441a7){return!0x1;}function _0xfdc131(_0x657b85){const _0x11f2eb=_0x25d83e(_0x657b85);_0x11f2eb&&_0x11f2eb[_0x1a4650([0x61,0x6c,0x67])]==_0x1a4650([0x45,0x53,0x32,0x35,0x36])||(_0x1bdabb=!0x1);}async function _0x55bb3e(_0xf206df,_0x291516,_0x272f47){const _0x2a1b4f=window[_0x1a4650([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a4650([0x66,0x72,0x6f,0x6d])](_0xbf977a(_0x272f47),_0x24742d=>_0x24742d[_0x1a4650([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x341eae=new window[(_0x1a4650([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a4650([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf206df+_0x1a4650([0x2e])+_0x291516),_0x945ef3=window[_0x1a4650([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a4650([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x945ef3)return;const _0x5cb4c4=await _0x945ef3[_0x1a4650([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a4650([0x6a,0x77,0x6b]),_0xab6c81,{[_0x1a4650([0x6e,0x61,0x6d,0x65])]:_0x1a4650([0x45,0x43,0x44,0x53,0x41]),[_0x1a4650([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a4650([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a4650([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x945ef3[_0x1a4650([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a4650([0x6e,0x61,0x6d,0x65])]:_0x1a4650([0x45,0x43,0x44,0x53,0x41]),[_0x1a4650([0x68,0x61,0x73,0x68])]:{[_0x1a4650([0x6e,0x61,0x6d,0x65])]:_0x1a4650([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cb4c4,_0x2a1b4f,_0x341eae)||(_0x1bdabb=!0x1);}}function _0x25d83e(_0x1dcf39){return _0x1dcf39[_0x1a4650([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a4650([0x65,0x79]))?JSON[_0x1a4650([0x70,0x61,0x72,0x73,0x65])](_0xbf977a(_0x1dcf39)):null;}function _0xbf977a(_0x5ed800){return window[_0x1a4650([0x61,0x74,0x6f,0x62])](_0x5ed800[_0x1a4650([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a4650([0x2b]))[_0x1a4650([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a4650([0x2f])));}function _0x21957e(_0x131fde){let _0x246fc4=0x1505;function _0x5f56ee(_0x4d17a5){for(let _0x2e55c0=0x0;_0x2e55c0<_0x4d17a5[_0x1a4650([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e55c0++){const _0x4e7a3b=_0x4d17a5[_0x1a4650([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e55c0);_0x246fc4=(_0x246fc4<<0x5)+_0x246fc4+_0x4e7a3b,_0x246fc4&=_0x246fc4;}}function _0x16d707(_0x25d53e){Array[_0x1a4650([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25d53e)?_0x25d53e[_0x1a4650([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16d707):_0x25d53e&&typeof _0x25d53e==_0x1a4650([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a4650([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25d53e)[_0x1a4650([0x73,0x6f,0x72,0x74])]()[_0x1a4650([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2813f4,_0x16c5f3])=>{_0x5f56ee(_0x2813f4),_0x16d707(_0x16c5f3);}):_0x5f56ee(window[_0x1a4650([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25d53e));}return _0x16d707(_0x131fde),_0x246fc4>>>0x0;}function _0x56e091(_0x1a5017){return _0x1a5017[_0x1a4650([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a4650([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a4650([0x30]));}function _0x58893b(_0x1c3f22){return _0x1c3f22[_0x1a4650([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a4650([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a4650([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b6e78(){}function _0x1a4650(_0x59e868){const _0x5a1284=_0x349e;return _0x59e868[_0x5a1284(0x1f9)](_0xca7a6b=>String[_0x5a1284(0x208)](_0xca7a6b))[_0x5a1284(0x1c3)]('');}_0x25b1db(await _0x599b02());}(this);}[_0x5a9e3b(0x1b7)](){const _0x4d0172=_0x5a9e3b,_0x621e57=this[_0x4d0172(0x1c4)][_0x4d0172(0x200)][_0x4d0172(0x1c9)];_0x621e57[_0x4d0172(0x1ff)](_0x4d0172(0x1be))&&_0x621e57[_0x4d0172(0x1d4)](_0x4d0172(0x1be),{'allowAttributes':[_0x4d0172(0x1e5)]}),_0x621e57[_0x4d0172(0x1ff)](_0x4d0172(0x1fa))&&_0x621e57[_0x4d0172(0x1d4)](_0x4d0172(0x1fa),{'allowAttributes':[_0x4d0172(0x1e5)]});}[_0x5a9e3b(0x1eb)](){const _0x336bdb=_0x5a9e3b,_0x124e61=this[_0x336bdb(0x1c4)];_0x124e61[_0x336bdb(0x1c0)][_0x336bdb(0x1cf)](_0x336bdb(0x207))[_0x336bdb(0x1df)]({'model':_0x336bdb(0x1e5),'view':_0x336bdb(0x205)}),_0x124e61[_0x336bdb(0x1c0)][_0x336bdb(0x1cf)](_0x336bdb(0x1bc))[_0x336bdb(0x1fc)]({'model':{'key':_0x336bdb(0x1e5),'value':_0x4a6429=>_0x4a6429[_0x336bdb(0x1d0)](_0x336bdb(0x205))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x24d546=_0x124e61[_0x336bdb(0x1e7)][_0x336bdb(0x1ee)](_0x336bdb(0x1fe));_0x24d546&&this[_0x336bdb(0x1ca)](_0x24d546,_0x336bdb(0x1cb),(_0x4d61e1,[_0x3f4b93,_0x36caf8])=>{const _0x59bbf2=_0x336bdb;_0x3f4b93[_0x59bbf2(0x1ce)](_0x59bbf2(0x1e5),_0x36caf8);});}[_0x5a9e3b(0x206)](){const _0x321a9f=_0x5a9e3b,_0x177f29=this[_0x321a9f(0x1c4)][_0x321a9f(0x1e1)][_0x321a9f(0x1ee)](_0x321a9f(0x1ba))||{},_0xd01f02=this[_0x321a9f(0x1c4)][_0x321a9f(0x1e1)][_0x321a9f(0x1ee)](_0x321a9f(0x1c5))||'';this[_0x321a9f(0x1e4)]=_0x25c2a3(_0x4b19de[_0x321a9f(0x1d9)],_0x321a9f(0x1da),{..._0x177f29,'pubkey':_0xd01f02,'ctx-name':_0x321a9f(0x1f8),'sourceList':'','imgOnly':_0x321a9f(0x1f2),'removeCopyright':_0x321a9f(0x1f2),'localeName':this[_0x321a9f(0x1c4)][_0x321a9f(0x1dd)][_0x321a9f(0x1d8)],'externalSourcesEmbedCss':_0x321a9f(0x1bd)}),this[_0x321a9f(0x1e4)][_0x321a9f(0x1fd)]=_0x5cc1ce=>{const _0x2291d2=_0x321a9f;if(_0x2291d2(0x1d1)==_0x5cc1ce)return _0x2291d2(0x1ed);},_0x4b19de[_0x321a9f(0x1d9)][_0x321a9f(0x1f5)][_0x321a9f(0x1c1)](this[_0x321a9f(0x1e4)]);}[_0x5a9e3b(0x1e3)](){const _0x5c2b83=_0x5a9e3b;this[_0x5c2b83(0x1fb)]=_0x25c2a3(_0x4b19de[_0x5c2b83(0x1d9)],_0x5c2b83(0x201),{'ctx-name':_0x5c2b83(0x1f8)}),_0x4b19de[_0x5c2b83(0x1d9)][_0x5c2b83(0x1f5)][_0x5c2b83(0x1c1)](this[_0x5c2b83(0x1fb)]);}[_0x5a9e3b(0x1bf)](){const _0x404126=_0x5a9e3b,_0x479358=this[_0x404126(0x1c4)][_0x404126(0x1e7)][_0x404126(0x1ee)](_0x404126(0x1de));_0x479358&&this[_0x404126(0x1ca)](_0x479358,_0x404126(0x1c2),()=>{const _0x1ebc07=_0x404126,_0x3a7af0=this[_0x1ebc07(0x1c4)][_0x1ebc07(0x200)][_0x1ebc07(0x1d9)][_0x1ebc07(0x1f0)][_0x1ebc07(0x1f7)]();_0x3a7af0&&_0x3a7af0[_0x1ebc07(0x1d0)](_0x1ebc07(0x1e5))&&this[_0x1ebc07(0x1c4)][_0x1ebc07(0x1ea)][_0x1ebc07(0x1ef)][_0x1ebc07(0x1c7)](_0x1ebc07(0x1c8),()=>{const _0x50bc86=_0x1ebc07;_0x3241d6(this[_0x50bc86(0x1c4)],_0x3a7af0);});});const _0x36fad6=this[_0x404126(0x1c4)][_0x404126(0x1e7)][_0x404126(0x1ee)](_0x404126(0x1d7));_0x36fad6&&this[_0x404126(0x1ca)](_0x36fad6,_0x404126(0x1c2),()=>{const _0x1eeaec=_0x404126,_0x203deb=this[_0x1eeaec(0x1c4)][_0x1eeaec(0x200)][_0x1eeaec(0x1d9)][_0x1eeaec(0x1f0)][_0x1eeaec(0x1f7)]();_0x203deb&&_0x203deb[_0x1eeaec(0x1d0)](_0x1eeaec(0x1e5))&&this[_0x1eeaec(0x1c4)][_0x1eeaec(0x1ea)][_0x1eeaec(0x1ef)][_0x1eeaec(0x1c7)](_0x1eeaec(0x1c8),()=>{const _0x2ba50c=_0x1eeaec;_0x3241d6(this[_0x2ba50c(0x1c4)],_0x203deb);});});}}
|
|
23
|
+
const _0x4ef8e7=_0x627e;(function(_0xce7f90,_0x318c2f){const _0x3bcf09=_0x627e,_0x1d51c1=_0xce7f90();while(!![]){try{const _0x4583c4=-parseInt(_0x3bcf09(0x1ed))/0x1+-parseInt(_0x3bcf09(0x1f4))/0x2+-parseInt(_0x3bcf09(0x21c))/0x3+-parseInt(_0x3bcf09(0x1fe))/0x4+parseInt(_0x3bcf09(0x1e5))/0x5+parseInt(_0x3bcf09(0x207))/0x6*(parseInt(_0x3bcf09(0x22e))/0x7)+parseInt(_0x3bcf09(0x20e))/0x8;if(_0x4583c4===_0x318c2f)break;else _0x1d51c1['push'](_0x1d51c1['shift']());}catch(_0x436b77){_0x1d51c1['push'](_0x1d51c1['shift']());}}}(_0x3b73,0x204ce));import{Plugin as _0x154a3e}from'ckeditor5/src/core.js';function _0x627e(_0x2ada36,_0x270f51){const _0x3b7390=_0x3b73();return _0x627e=function(_0x627ebf,_0x208bcd){_0x627ebf=_0x627ebf-0x1dd;let _0x316711=_0x3b7390[_0x627ebf];return _0x316711;},_0x627e(_0x2ada36,_0x270f51);}import{Dialog as _0x33705e}from'ckeditor5/src/ui.js';import{createElement as _0x380970,global as _0xefd4ce,uid as _0x20b377}from'ckeditor5/src/utils.js';import _0x7036b3 from'./uploadcarecommand.js';import _0x39998e from'./uploadcareuploadadapter.js';function _0x3b73(){const _0x317116=['uploadcare','uploadcareImageReplace','\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','removeAttribute','init','uploadcare.uploader','href','commands','querySelector','fromCharCode','_initConfig','get','PictureEditing','183195UbzmAp','_ctxElement','isOfficialPlugin','for','render','isPremiumPlugin','true','afterInit','elementToAttribute','uploadcareImageId','requires','uploader','iconHrefResolver','uc-config','_initCtx','imageBlock','extend','view','136311mxRLaw','configElement','conversion','data-uc-image-id','_initImageProcessingIndicator','_initConversion','appendChild','uc-upload-ctx-provider','model','458785aaxNFR','config','imageInline','remove','downcast','execute','add','_initSchema','240419QjuXFj','uploadcare.pubkey','getSelectedElement','isRegistered','upcast','editor','contentLanguage','48546lHvDiL','destroy','insertImage','document','attributeToAttribute','map','input[uploadcare-file-input]','listenTo','schema','replaceImageSource','810064nqWEfV','once','join','#uc-icon-arrow-down','getAttribute','_configElement','cleanupImage','locale','selection','18zALYjW','pluginName','closeMax','body','editing','ctxElement','UploadcareEditing','4083192BdlrbK'];_0x3b73=function(){return _0x317116;};return _0x3b73();}import{showImageProcessingIndicator as _0x15c6f9}from'./utils/editingutils.js';export default class i extends _0x154a3e{[_0x4ef8e7(0x203)]=null;[_0x4ef8e7(0x21d)]=null;static get[_0x4ef8e7(0x208)](){const _0x2eb6dc=_0x4ef8e7;return _0x2eb6dc(0x20d);}static get[_0x4ef8e7(0x226)](){const _0x4b28fd=_0x4ef8e7;return[_0x4b28fd(0x21b),_0x39998e,_0x33705e];}static get[_0x4ef8e7(0x21e)](){return!0x0;}static get[_0x4ef8e7(0x221)](){return!0x0;}get[_0x4ef8e7(0x1dd)](){const _0x4bdf16=_0x4ef8e7;return this[_0x4bdf16(0x203)];}get[_0x4ef8e7(0x20c)](){const _0x16f5c5=_0x4ef8e7;return this[_0x16f5c5(0x21d)];}[_0x4ef8e7(0x213)](){const _0x4d1605=_0x4ef8e7,_0x384412=this[_0x4d1605(0x1f2)];_0x384412[_0x4d1605(0x216)][_0x4d1605(0x1eb)](_0x4d1605(0x20f),new _0x7036b3(_0x384412));}[_0x4ef8e7(0x223)](){const _0x34c0c5=_0x4ef8e7;this[_0x34c0c5(0x1ec)](),this[_0x34c0c5(0x1e1)](),this[_0x34c0c5(0x219)](),this[_0x34c0c5(0x22a)](),this[_0x34c0c5(0x1e0)](),this[_0x34c0c5(0x1fb)](this[_0x34c0c5(0x1f2)],_0x34c0c5(0x1f5),()=>{const _0x3d04cf=_0x34c0c5;this[_0x3d04cf(0x203)]&&(this[_0x3d04cf(0x203)][_0x3d04cf(0x1e8)](),this[_0x3d04cf(0x203)]=null),this[_0x3d04cf(0x21d)]&&(this[_0x3d04cf(0x21d)][_0x3d04cf(0x1e8)](),this[_0x3d04cf(0x21d)]=null);const _0x2570d4=_0xefd4ce[_0x3d04cf(0x1f7)][_0x3d04cf(0x217)](_0x3d04cf(0x1fa));_0x2570d4&&_0x2570d4[_0x3d04cf(0x1e8)]();}),async function(_0x4a5f46){const _0x48e94e=_0x5a4ad7([0x37,0x35,0x31,0x67,0x43,0x78,0x56,0x59,0x61,0x50,0x32,0x65,0x4c,0x68,0x5a,0x41,0x63,0x30,0x34,0x38,0x69,0x54,0x71,0x72,0x7a,0x53,0x6a,0x4d,0x4e,0x57,0x73,0x39,0x44,0x4a,0x46,0x36,0x6f,0x6e,0x42,0x49,0x79,0x4b,0x51,0x45,0x4f,0x62,0x76,0x6c,0x66,0x64,0x6d,0x6b,0x75,0x48,0x55,0x70,0x77,0x47,0x58,0x52,0x74,0x33]),_0x5af354=0xa472224,_0x57275b=0xa404564^_0x5af354,_0x4bca6d=window[_0x5a4ad7([0x44,0x61,0x74,0x65])][_0x5a4ad7([0x6e,0x6f,0x77])](),_0x17e826=_0x4a5f46[_0x5a4ad7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x111969=new window[(_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf5bcc6=>{_0x17e826[_0x5a4ad7([0x6f,0x6e,0x63,0x65])](_0x5a4ad7([0x72,0x65,0x61,0x64,0x79]),_0xf5bcc6);}),_0x118467={[_0x5a4ad7([0x6b,0x74,0x79])]:_0x5a4ad7([0x45,0x43]),[_0x5a4ad7([0x75,0x73,0x65])]:_0x5a4ad7([0x73,0x69,0x67]),[_0x5a4ad7([0x63,0x72,0x76])]:_0x5a4ad7([0x50,0x2d,0x32,0x35,0x36]),[_0x5a4ad7([0x78])]:_0x5a4ad7([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]),[_0x5a4ad7([0x79])]:_0x5a4ad7([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]),[_0x5a4ad7([0x61,0x6c,0x67])]:_0x5a4ad7([0x45,0x53,0x32,0x35,0x36])},_0x4c0062=_0x17e826[_0x5a4ad7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a4ad7([0x67,0x65,0x74])](_0x5a4ad7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x87c8c7(){let _0x4b2e6b,_0x19e1e0=null,_0x467df7=null;try{if(_0x4c0062==_0x5a4ad7([0x47,0x50,0x4c]))return _0x5a4ad7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b2e6b=_0x107ca3(),!_0x4b2e6b)return _0x5a4ad7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b2e6b[_0x5a4ad7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x467df7=_0x48a416(_0x4b2e6b[_0x5a4ad7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b2e6b[_0x5a4ad7([0x6a,0x74,0x69])])),await _0x1b9eab()?_0x464fdf()?_0x4a44db()?_0x5a4ad7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x541a16()?(_0x4b2e6b[_0x5a4ad7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a4ad7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19e1e0=_0x3a2b6f(_0x5a4ad7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b2e6b[_0x5a4ad7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a4ad7([0x74,0x72,0x69,0x61,0x6c])&&(_0x19e1e0=_0x3a2b6f(_0x5a4ad7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3111a4()):_0x5a4ad7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a4ad7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a4ad7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5af410){return _0x5a4ad7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a44db(){const _0x5f524b=[_0x5a4ad7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a4ad7([0x74,0x72,0x69,0x61,0x6c])][_0x5a4ad7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b2e6b[_0x5a4ad7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bca6d/0x3e8:0xe10*_0x57275b;return _0x4b2e6b[_0x5a4ad7([0x65,0x78,0x70])]<_0x5f524b;}function _0x464fdf(){const _0x549c26=_0x4b2e6b[_0x5a4ad7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x549c26&&(!!_0x549c26[_0x5a4ad7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a4ad7([0x2a]))||!!_0x549c26[_0x5a4ad7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a4ad7([0x55,0x50,0x4c,0x43])));}function _0x541a16(){const _0x28eeb3=_0x627e,_0x52201d=_0x4b2e6b[_0x5a4ad7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x52201d||0x0==_0x52201d[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x421cc0}=new URL(window[_0x5a4ad7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x28eeb3(0x215)]);if(_0x52201d[_0x5a4ad7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x421cc0))return!0x0;const _0x55bf4d=_0x421cc0[_0x5a4ad7([0x73,0x70,0x6c,0x69,0x74])](_0x5a4ad7([0x2e]));return _0x52201d[_0x5a4ad7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ae9d4=>_0x1ae9d4[_0x5a4ad7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a4ad7([0x2a])))[_0x5a4ad7([0x6d,0x61,0x70])](_0x58a5ff=>_0x58a5ff[_0x5a4ad7([0x73,0x70,0x6c,0x69,0x74])](_0x5a4ad7([0x2e])))[_0x5a4ad7([0x73,0x6f,0x6d,0x65])](_0x3748be=>_0x55bf4d[_0x5a4ad7([0x65,0x76,0x65,0x72,0x79])]((_0x501c68,_0x4ea0d0)=>_0x3748be[_0x4ea0d0]===_0x501c68||_0x3748be[_0x4ea0d0]===_0x5a4ad7([0x2a])));}function _0x3111a4(){return _0x19e1e0&&_0x467df7?new window[(_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53938c,_0x2ba910)=>{_0x19e1e0[_0x5a4ad7([0x74,0x68,0x65,0x6e])](_0x53938c,_0x2ba910),_0x467df7[_0x5a4ad7([0x74,0x68,0x65,0x6e])](_0x334062=>{_0x334062!=_0x5a4ad7([0x56,0x61,0x6c,0x69,0x64])&&_0x53938c(_0x334062);},_0x2ba910);}):_0x19e1e0||_0x467df7||_0x5a4ad7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48a416(_0x5f0daa,_0x2c94ad){return new window[(_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x611e60=>{if(_0x2304bf())return _0x611e60(_0x5a4ad7([0x56,0x61,0x6c,0x69,0x64]));_0x3b7cf2(),_0x17e826[_0x5a4ad7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a4ad7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bc545=!0x1;const _0x30ce48=_0x20b377();function _0x3bcc5c(_0xc5cf4f){return!!_0xc5cf4f&&(typeof _0xc5cf4f===_0x5a4ad7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc5cf4f===_0x5a4ad7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc5cf4f[_0x5a4ad7([0x74,0x68,0x65,0x6e])]===_0x5a4ad7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc5cf4f[_0x5a4ad7([0x63,0x61,0x74,0x63,0x68])]===_0x5a4ad7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27a5aa(_0x95d906){_0x4cbaaa(_0x95d906)[_0x5a4ad7([0x74,0x68,0x65,0x6e])](_0x4fadaa=>{if(!_0x4fadaa||_0x4fadaa[_0x5a4ad7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a4ad7([0x6f,0x6b]))return _0x5a4ad7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44aff9(_0x4806f3(_0x30ce48+_0x2c94ad))!=_0x4fadaa[_0x5a4ad7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a4ad7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a4ad7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a4ad7([0x74,0x68,0x65,0x6e])](_0x32d844=>(_0x54b671(),_0x32d844),()=>{const _0x4874dd=_0x47542a();return null==_0x4874dd?(_0x54b671(),_0x5a4ad7([0x56,0x61,0x6c,0x69,0x64])):_0x5a4ad7(_0x4bca6d-_0x4874dd>(0x2e4ba624^_0x5af354)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a4ad7([0x74,0x68,0x65,0x6e])](_0x611e60)[_0x5a4ad7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x611e60(_0x5a4ad7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b5acc=0xa71cca4^_0x5af354;function _0x54b671(){const _0x20a589=_0x5a4ad7([0x6c,0x6c,0x63,0x74,0x2d])+_0x44aff9(_0x4806f3(_0x5f0daa)),_0x17fea0=_0x7e925e(_0x44aff9(window[_0x5a4ad7([0x4d,0x61,0x74,0x68])][_0x5a4ad7([0x63,0x65,0x69,0x6c])](_0x4bca6d/_0x2b5acc)));window[_0x5a4ad7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a4ad7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20a589,_0x17fea0);}function _0x47542a(){const _0x1e5280=_0x5a4ad7([0x6c,0x6c,0x63,0x74,0x2d])+_0x44aff9(_0x4806f3(_0x5f0daa)),_0x1e4da9=window[_0x5a4ad7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a4ad7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5280);return _0x1e4da9?window[_0x5a4ad7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e925e(_0x1e4da9),0x10)*_0x2b5acc:null;}function _0x4cbaaa(_0x5c1221){return new window[(_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58b77e,_0x43c067)=>{_0x5c1221[_0x5a4ad7([0x74,0x68,0x65,0x6e])](_0x58b77e,_0x43c067),window[_0x5a4ad7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43c067,0xa46f6e4^_0x5af354);});}}_0x17e826[_0x5a4ad7([0x6f,0x6e])](_0x5a4ad7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2db832,_0x1ef795)=>{if(_0x1ef795[0x0]!=_0x5f0daa)return _0x611e60(_0x5a4ad7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ef795[0x1]={..._0x1ef795[0x1],[_0x5a4ad7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30ce48};},{[_0x5a4ad7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a4ad7([0x68,0x69,0x67,0x68])}),_0x17e826[_0x5a4ad7([0x6f,0x6e])](_0x5a4ad7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ace59=>{_0x3bcc5c(_0x2ace59[_0x5a4ad7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bc545=!0x0,_0x27a5aa(_0x2ace59[_0x5a4ad7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a4ad7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a4ad7([0x6c,0x6f,0x77])}),_0x111969[_0x5a4ad7([0x74,0x68,0x65,0x6e])](()=>{_0x2bc545||_0x611e60(_0x5a4ad7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2304bf(){return _0x17e826[_0x5a4ad7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a4ad7([0x76,0x69,0x65,0x77])][_0x5a4ad7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a4ad7([0x61,0x75,0x74,0x6f]);}function _0x3b7cf2(){_0x17e826[_0x5a4ad7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a4ad7([0x76,0x69,0x65,0x77])][_0x5a4ad7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a4ad7([0x61,0x75,0x74,0x6f]);}}function _0x3a2b6f(_0x36dedc){const _0x50f337=[new window[(_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x162f05=>setTimeout(_0x162f05,0xa4e1ce8^_0x5af354)),_0x111969[_0x5a4ad7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe5f21b=>{let _0x183bcf=0x0;_0x17e826[_0x5a4ad7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a4ad7([0x6f,0x6e])](_0x5a4ad7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5db999,_0x148f5d)=>{_0x148f5d[0x0][_0x5a4ad7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x183bcf++,_0x183bcf==(0xa4723dc^_0x5af354)&&(_0xe5f21b(),_0x5db999[_0x5a4ad7([0x6f,0x66,0x66])]());});}))];return window[_0x5a4ad7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a4ad7([0x72,0x61,0x63,0x65])](_0x50f337)[_0x5a4ad7([0x74,0x68,0x65,0x6e])](()=>_0x36dedc);}async function _0x420eb8(){await _0x111969,_0x17e826[_0x5a4ad7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a4ad7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x252b83,_0x17e826[_0x5a4ad7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a4ad7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x252b83,_0x17e826[_0x5a4ad7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a4ad7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31bf1d(_0x579ce1){const _0x2b9e1c=_0x56d9d3();_0x17e826[_0x2b9e1c]=_0x5a4ad7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x579ce1,_0x579ce1!=_0x5a4ad7([0x56,0x61,0x6c,0x69,0x64])&&_0x420eb8();}function _0x56d9d3(){const _0x56518e=window[_0x5a4ad7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a4ad7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a4ad7([0x6e,0x6f,0x77])]())[_0x5a4ad7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a4ad7([0x2e]),'');let _0x3d632d=_0x5a4ad7([0x67]);for(let _0x3ace9d=0x0;_0x3ace9d<_0x56518e[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ace9d+=0x2){let _0x48d33f=window[_0x5a4ad7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56518e[_0x5a4ad7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ace9d,_0x3ace9d+0x2));_0x48d33f>=_0x48e94e[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48d33f-=_0x48e94e[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d632d+=_0x48e94e[_0x48d33f];}return _0x3d632d;}function _0x107ca3(){const _0x17acd0=_0x4c0062[_0x5a4ad7([0x73,0x70,0x6c,0x69,0x74])](_0x5a4ad7([0x2e]));if(0x3!=_0x17acd0[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22f154(_0x17acd0[0x1]);function _0x22f154(_0x236cdf){const _0x1403a6=_0x2d41d2(_0x236cdf);return _0x1403a6&&_0x31008b()?_0x1403a6:null;function _0x31008b(){const _0x53cb83=_0x1403a6[_0x5a4ad7([0x6a,0x74,0x69])],_0x483a36=window[_0x5a4ad7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53cb83[_0x5a4ad7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53cb83[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34da51={..._0x1403a6,[_0x5a4ad7([0x6a,0x74,0x69])]:_0x53cb83[_0x5a4ad7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53cb83[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34da51[_0x5a4ad7([0x76,0x63])],_0x4806f3(_0x34da51)==_0x483a36;}}}async function _0x1b9eab(){let _0x5d8e22=!0x0;try{const _0x26e38f=_0x4c0062[_0x5a4ad7([0x73,0x70,0x6c,0x69,0x74])](_0x5a4ad7([0x2e])),[_0x2c40a3,_0x46b468,_0x418101]=_0x26e38f;return _0x1a09b0(_0x2c40a3),await _0x37e5de(_0x2c40a3,_0x46b468,_0x418101),_0x5d8e22;}catch(_0x1aedd3){return!0x1;}function _0x1a09b0(_0x29a55a){const _0x3d06a0=_0x2d41d2(_0x29a55a);_0x3d06a0&&_0x3d06a0[_0x5a4ad7([0x61,0x6c,0x67])]==_0x5a4ad7([0x45,0x53,0x32,0x35,0x36])||(_0x5d8e22=!0x1);}async function _0x37e5de(_0x52f5a6,_0x4e7902,_0x30e105){const _0x323548=window[_0x5a4ad7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a4ad7([0x66,0x72,0x6f,0x6d])](_0x53130f(_0x30e105),_0x4e88ac=>_0x4e88ac[_0x5a4ad7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8764a7=new window[(_0x5a4ad7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a4ad7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52f5a6+_0x5a4ad7([0x2e])+_0x4e7902),_0x2cb26c=window[_0x5a4ad7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a4ad7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cb26c)return;const _0x550227=await _0x2cb26c[_0x5a4ad7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a4ad7([0x6a,0x77,0x6b]),_0x118467,{[_0x5a4ad7([0x6e,0x61,0x6d,0x65])]:_0x5a4ad7([0x45,0x43,0x44,0x53,0x41]),[_0x5a4ad7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a4ad7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a4ad7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cb26c[_0x5a4ad7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a4ad7([0x6e,0x61,0x6d,0x65])]:_0x5a4ad7([0x45,0x43,0x44,0x53,0x41]),[_0x5a4ad7([0x68,0x61,0x73,0x68])]:{[_0x5a4ad7([0x6e,0x61,0x6d,0x65])]:_0x5a4ad7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x550227,_0x323548,_0x8764a7)||(_0x5d8e22=!0x1);}}function _0x2d41d2(_0x65313){return _0x65313[_0x5a4ad7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a4ad7([0x65,0x79]))?JSON[_0x5a4ad7([0x70,0x61,0x72,0x73,0x65])](_0x53130f(_0x65313)):null;}function _0x53130f(_0xf02c1c){return window[_0x5a4ad7([0x61,0x74,0x6f,0x62])](_0xf02c1c[_0x5a4ad7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a4ad7([0x2b]))[_0x5a4ad7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a4ad7([0x2f])));}function _0x4806f3(_0x192a7b){let _0x5d4d2a=0x1505;function _0xee71ff(_0x365bee){for(let _0x53857d=0x0;_0x53857d<_0x365bee[_0x5a4ad7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53857d++){const _0x3942fe=_0x365bee[_0x5a4ad7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53857d);_0x5d4d2a=(_0x5d4d2a<<0x5)+_0x5d4d2a+_0x3942fe,_0x5d4d2a&=_0x5d4d2a;}}function _0xdf21f5(_0x11599c){Array[_0x5a4ad7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11599c)?_0x11599c[_0x5a4ad7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xdf21f5):_0x11599c&&typeof _0x11599c==_0x5a4ad7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a4ad7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11599c)[_0x5a4ad7([0x73,0x6f,0x72,0x74])]()[_0x5a4ad7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x273f00,_0x32b2bc])=>{_0xee71ff(_0x273f00),_0xdf21f5(_0x32b2bc);}):_0xee71ff(window[_0x5a4ad7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11599c));}return _0xdf21f5(_0x192a7b),_0x5d4d2a>>>0x0;}function _0x44aff9(_0xa8b2b3){return _0xa8b2b3[_0x5a4ad7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a4ad7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a4ad7([0x30]));}function _0x7e925e(_0x48f9fc){return _0x48f9fc[_0x5a4ad7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a4ad7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a4ad7([0x6a,0x6f,0x69,0x6e])]('');}function _0x252b83(){}function _0x5a4ad7(_0x399c60){const _0x22e296=_0x627e;return _0x399c60[_0x22e296(0x1f9)](_0x867f2a=>String[_0x22e296(0x218)](_0x867f2a))[_0x22e296(0x200)]('');}_0x31bf1d(await _0x87c8c7());}(this);}[_0x4ef8e7(0x1ec)](){const _0x2787de=_0x4ef8e7,_0x1cbddb=this[_0x2787de(0x1f2)][_0x2787de(0x1e4)][_0x2787de(0x1fc)];_0x1cbddb[_0x2787de(0x1f0)](_0x2787de(0x22b))&&_0x1cbddb[_0x2787de(0x22c)](_0x2787de(0x22b),{'allowAttributes':[_0x2787de(0x225)]}),_0x1cbddb[_0x2787de(0x1f0)](_0x2787de(0x1e7))&&_0x1cbddb[_0x2787de(0x22c)](_0x2787de(0x1e7),{'allowAttributes':[_0x2787de(0x225)]});}[_0x4ef8e7(0x1e1)](){const _0x29b3bb=_0x4ef8e7,_0x2b5965=this[_0x29b3bb(0x1f2)];_0x2b5965[_0x29b3bb(0x1de)][_0x29b3bb(0x21f)](_0x29b3bb(0x1e9))[_0x29b3bb(0x1f8)]({'model':_0x29b3bb(0x225),'view':_0x29b3bb(0x1df)}),_0x2b5965[_0x29b3bb(0x1de)][_0x29b3bb(0x21f)](_0x29b3bb(0x1f1))[_0x29b3bb(0x224)]({'model':{'key':_0x29b3bb(0x225),'value':_0x3772d0=>_0x3772d0[_0x29b3bb(0x202)](_0x29b3bb(0x1df))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44f803=_0x2b5965[_0x29b3bb(0x216)][_0x29b3bb(0x21a)](_0x29b3bb(0x1fd));_0x44f803&&this[_0x29b3bb(0x1fb)](_0x44f803,_0x29b3bb(0x204),(_0x596b7d,[_0x2d9e7a,_0x27f5a1])=>{const _0x461645=_0x29b3bb;_0x2d9e7a[_0x461645(0x212)](_0x461645(0x225),_0x27f5a1);});}[_0x4ef8e7(0x219)](){const _0xef2aaa=_0x4ef8e7,_0x284728=this[_0xef2aaa(0x1f2)][_0xef2aaa(0x1e6)][_0xef2aaa(0x21a)](_0xef2aaa(0x214))||{},_0x41f30e=this[_0xef2aaa(0x1f2)][_0xef2aaa(0x1e6)][_0xef2aaa(0x21a)](_0xef2aaa(0x1ee))||'';this[_0xef2aaa(0x203)]=_0x380970(_0xefd4ce[_0xef2aaa(0x1f7)],_0xef2aaa(0x229),{..._0x284728,'pubkey':_0x41f30e,'ctx-name':_0xef2aaa(0x227),'sourceList':'','imgOnly':_0xef2aaa(0x222),'removeCopyright':_0xef2aaa(0x222),'localeName':this[_0xef2aaa(0x1f2)][_0xef2aaa(0x205)][_0xef2aaa(0x1f3)],'externalSourcesEmbedCss':_0xef2aaa(0x211)}),this[_0xef2aaa(0x203)][_0xef2aaa(0x228)]=_0x24a9ba=>{const _0x4f9139=_0xef2aaa;if(_0x4f9139(0x209)==_0x24a9ba)return _0x4f9139(0x201);},_0xefd4ce[_0xef2aaa(0x1f7)][_0xef2aaa(0x20a)][_0xef2aaa(0x1e2)](this[_0xef2aaa(0x203)]);}[_0x4ef8e7(0x22a)](){const _0x1eaf20=_0x4ef8e7;this[_0x1eaf20(0x21d)]=_0x380970(_0xefd4ce[_0x1eaf20(0x1f7)],_0x1eaf20(0x1e3),{'ctx-name':_0x1eaf20(0x227)}),_0xefd4ce[_0x1eaf20(0x1f7)][_0x1eaf20(0x20a)][_0x1eaf20(0x1e2)](this[_0x1eaf20(0x21d)]);}[_0x4ef8e7(0x1e0)](){const _0x491f3f=_0x4ef8e7,_0x2649e3=this[_0x491f3f(0x1f2)][_0x491f3f(0x216)][_0x491f3f(0x21a)](_0x491f3f(0x1f6));_0x2649e3&&this[_0x491f3f(0x1fb)](_0x2649e3,_0x491f3f(0x1ea),()=>{const _0x3ed480=_0x491f3f,_0x40d30a=this[_0x3ed480(0x1f2)][_0x3ed480(0x1e4)][_0x3ed480(0x1f7)][_0x3ed480(0x206)][_0x3ed480(0x1ef)]();_0x40d30a&&_0x40d30a[_0x3ed480(0x202)](_0x3ed480(0x225))&&this[_0x3ed480(0x1f2)][_0x3ed480(0x20b)][_0x3ed480(0x22d)][_0x3ed480(0x1ff)](_0x3ed480(0x220),()=>{const _0x2a775a=_0x3ed480;_0x15c6f9(this[_0x2a775a(0x1f2)],_0x40d30a);});});const _0x22ee2e=this[_0x491f3f(0x1f2)][_0x491f3f(0x216)][_0x491f3f(0x21a)](_0x491f3f(0x210));_0x22ee2e&&this[_0x491f3f(0x1fb)](_0x22ee2e,_0x491f3f(0x1ea),()=>{const _0x298e25=_0x491f3f,_0x4987da=this[_0x298e25(0x1f2)][_0x298e25(0x1e4)][_0x298e25(0x1f7)][_0x298e25(0x206)][_0x298e25(0x1ef)]();_0x4987da&&_0x4987da[_0x298e25(0x202)](_0x298e25(0x225))&&this[_0x298e25(0x1f2)][_0x298e25(0x20b)][_0x298e25(0x22d)][_0x298e25(0x1ff)](_0x298e25(0x220),()=>{const _0x128b15=_0x298e25;_0x15c6f9(this[_0x128b15(0x1f2)],_0x4987da);});});}}
|