@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250929.0 → 0.0.0-nightly-20250930.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 _0x1067e6,Command as _0x182881}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x44c660,IconGooglePhotos as _0x4af761,IconGoogleDrive as _0x1c2894,IconFacebook as _0xcb6e49,IconDropbox as _0x570ab0,IconUploadcareLink as _0x581444,IconUploadcareImageUpload as _0x33ebb2,IconError as _0x35eed4,IconUploadcareImageEdit as _0x5a71e2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b9da2,MenuBarMenuListItemButtonView as _0x36c075,View as _0xeb4cbe,FocusCycler as _0x144a9a,Dialog as _0x426cac,DialogViewPosition as _0x5219d9,SpinnerView as _0x4f8f5b,IconView as _0x2bf52b,Notification as _0x20f455}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5b403d,DomEmitterMixin as _0x3a1312,global as _0x48e503,getAncestors as _0x541020,ObservableMixin as _0x1b4532,uid as _0x275994,createElement as _0x5425f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x29c714}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x21f967,info as _0x355532}from'@uploadcare/upload-client';import*as _0x8e94fb from'@uploadcare/file-uploader';var i=function(_0x22c641){return _0x22c641['Local']='local',_0x22c641['URL']='url',_0x22c641['Dropbox']='dropbox',_0x22c641['GDrive']='gdrive',_0x22c641['Facebook']='facebook',_0x22c641['GPhotos']='gphotos',_0x22c641['OneDrive']='onedrive',_0x22c641;}({});function _(_0x3b288c,_0x276610,_0x3f1cc2){const t=_0x3b288c['t'],_0x14e1db=_0x3b288c['t'];switch(_0x276610){case i['Local']:return{'text':_0x14e1db('Insert'===_0x3f1cc2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x14e1db('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f1cc2?_0x14e1db('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x14e1db('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x276610;}}class e extends _0x1067e6{['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 _0xf6c3be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43e335;for(const _0xec9978 in _0xf6c3be){const _0x3acd34=_0xec9978,_0x18e071=_0xf6c3be[_0x3acd34];if('uploadcareLicenseKeyValid'==_0x18e071||'uploadcareLicenseKeyInvalid'==_0x18e071||'uploadcareLicenseKeyExpired'==_0x18e071||'uploadcareLicenseKeyDomainLimit'==_0x18e071||'uploadcareLicenseKeyNotAllowed'==_0x18e071||'uploadcareLicenseKeyEvaluationLimit'==_0x18e071||'uploadcareLicenseKeyTrialLimit'==_0x18e071||'uploadcareLicenseKeyUsageLimit'==_0x18e071){delete _0xf6c3be[_0x3acd34],_0x43e335=_0x18e071,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43e335&&_0xf6c3be['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43e335&&_0xf6c3be['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43e335&&_0xf6c3be['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x40dfa2}=this,_0x24cc48=_0x40dfa2['commands']['get']('uploadcare');if(!_0x24cc48)return;const _0x12e178=this['_normalizeConfigSourceList'](_0x40dfa2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x39b6c3,_0x54ef5f)=>{const _0x44592c=this['_getIntegrationKey'](_0x54ef5f['type']);return _0x39b6c3[_0x44592c]||(_0x39b6c3[_0x44592c]=[]),_0x39b6c3[_0x44592c]['push'](_0x54ef5f),_0x39b6c3;},{});_0x40dfa2['plugins']['has']('ImageInsertUI')&&_0x40dfa2['commands']['get']('uploadcare')&&Object['entries'](_0x12e178)['forEach'](([_0x179763,_0x2d4d75])=>{_0x40dfa2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x179763,'observable':()=>_0x24cc48,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d4d75),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d4d75),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d4d75),'override':'assetManager'!==_0x179763});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3663f0){const {locale:_0x464166}=this['editor'];return _0x3663f0['map'](_0xf658ab=>{const _0x43100a=_(_0x464166,_0xf658ab,'Insert');switch(_0xf658ab){case i['Local']:return{'icon':_0x33ebb2,'type':i['Local'],..._0x43100a};case i['URL']:return{'icon':_0x581444,'type':i['URL'],..._0x43100a};case i['Dropbox']:return{'icon':_0x570ab0,'type':i['Dropbox'],..._0x43100a};case i['Facebook']:return{'icon':_0xcb6e49,'type':i['Facebook'],..._0x43100a};case i['GDrive']:return{'icon':_0x1c2894,'type':i['GDrive'],..._0x43100a};case i['GPhotos']:return{'icon':_0x4af761,'type':i['GPhotos'],..._0x43100a};case i['OneDrive']:return{'icon':_0x44c660,'type':i['OneDrive'],..._0x43100a};}});}['_getIntegrationKey'](_0x31ee2f){switch(_0x31ee2f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc6eba3,_0x599477){const _0x43481c=this['editor'],_0x55d215=new _0xc6eba3(_0x43481c['locale']),_0x5250b5=_0x43481c['commands']['get']('uploadcare');return _0x55d215['bind']('isEnabled')['to'](_0x5250b5),_0x55d215['on']('execute',()=>{_0x5250b5['execute'](_0x599477);}),_0x55d215;}['_createToolbarButton'](_0x1fe6b6){const {locale:_0x5d0d2a}=this['editor'],_0x54f7b7=this['editor']['plugins']['get']('ImageInsertUI'),_0xb5c93b=_0x1fe6b6[0x0],_0xba33a7=this['_createButton'](_0x2b9da2,_0xb5c93b['type']);return _0xba33a7['icon']=_0xb5c93b['icon'],_0xba33a7['bind']('label')['to'](_0x54f7b7,'isImageSelected',_0x3ae956=>_(_0x5d0d2a,_0xb5c93b['type'],_0x3ae956?'Replace':'Insert')['text']),_0xba33a7['tooltip']=!0x0,_0xba33a7;}['_createDropdownButtons'](_0x4bae7e){const {locale:_0x2a87dd}=this['editor'],_0x175a74=this['editor']['plugins']['get']('ImageInsertUI');return _0x4bae7e['map'](_0x355d89=>{const _0x1e8195=this['_createButton'](_0x2b9da2,_0x355d89['type']);return _0x1e8195['withText']=!0x0,_0x1e8195['icon']=_0x355d89['icon'],_0x1e8195['bind']('label')['to'](_0x175a74,'isImageSelected',_0x3e9420=>_(_0x2a87dd,_0x355d89['type'],_0x3e9420?'Replace':'Insert')['text']),_0x1e8195;});}['_createMenuBarButtons'](_0x2cc1a5){return _0x2cc1a5['map'](_0x15c834=>{const _0x408f54=this['_createButton'](_0x36c075,_0x15c834['type']);return _0x408f54['icon']=_0x15c834['icon'],_0x408f54['label']=_0x15c834['shortText'],_0x408f54;});}}class F extends _0xeb4cbe{['focusTracker'];['focusCycler'];constructor(_0x1d67cb){super(_0x1d67cb),this['focusTracker']=new _0x5b403d(),this['focusCycler']=new _0x144a9a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0xcbc381,_0x92e964){super(_0xcbc381),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-'+_0x92e964}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1735cc,_0x3de400){const _0xa5ab63=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f70b8=>_0x2f70b8<=_0x3de400)['map'](_0x1a51c6=>_0x1735cc['replace'](/\/$/,'')+'/-/resize/'+_0x1a51c6+'x/\x20'+_0x1a51c6+'w');return{'imageFallbackUrl':_0x1735cc,'imageSources':[{'srcset':_0xa5ab63['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3de400+'px)\x20100vw,\x20'+_0x3de400+'px','type':'image/webp'}]};}function S(_0x17a17b,_0x4a9a6c,_0xc1955a){const _0x4d845c=_0x17a17b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4d845c?parseInt(_0x4d845c[0x1],0xa):_0x4a9a6c,'height':_0x4d845c?parseInt(_0x4d845c[0x2],0xa):_0xc1955a};}function p(_0x2c7f31,_0x1ae446){const _0x3f0937=new(_0x3a1312())(),_0x2a77a7=_0x2c7f31['plugins']['get']('ImageUtils'),_0x40215b=_0x2c7f31['editing']['mapper']['toViewElement'](_0x1ae446),_0x12d620=_0x2a77a7['findViewImgElement'](_0x40215b),_0x4b8480=_0x2c7f31['editing']['view']['domConverter']['viewToDom'](_0x12d620),_0x5563b2=_0x1ae446['getAttribute']('width'),_0xd5e4f8=_0x1ae446['getAttribute']('height'),_0x460fd0='image-processing';_0x2c7f31['editing']['view']['change'](_0x4098ff=>{_0x4098ff['addClass'](_0x460fd0,_0x40215b),_0x4098ff['setStyle']('aspect-ratio',_0x5563b2+'/'+_0xd5e4f8,_0x12d620);}),_0x3f0937['listenTo'](_0x4b8480,'load',()=>{_0x3f0937['stopListening'](_0x4b8480,'load'),_0x2c7f31['editing']['view']['change'](_0x13fd71=>{_0x13fd71['removeClass'](_0x460fd0,_0x40215b),_0x13fd71['removeStyle']('aspect-ratio',_0x12d620);});});}function G(_0x5de3c1){if(Array['isArray'](_0x5de3c1)){const _0x25051e=_0x5de3c1['map'](G);return _0xc20f79=>_0x25051e['some'](_0x2696c9=>_0x2696c9(_0xc20f79));}if('origin'==_0x5de3c1){const _0x4d4159=_0x48e503['window']['location']['origin'];return _0x2fda03=>new URL(_0x2fda03,_0x48e503['document']['baseURI'])['origin']==_0x4d4159;}return'function'==typeof _0x5de3c1?_0x5de3c1:_0x5de3c1 instanceof RegExp?_0x4e46e6=>!(!_0x4e46e6['match'](_0x5de3c1)&&!_0x4e46e6['replace'](/^https?:\/\//,'')['match'](_0x5de3c1)):()=>!0x1;}function A(_0x66d55b,_0x5418e1){return _0x541020(_0x66d55b['target'])['includes'](_0x5418e1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1b4532(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4669fa,_0x26e1bc,_0x9f6e8a){super(),this['_editor']=_0x4669fa,this['_editing']=_0x26e1bc,this['_dialog']=_0x4669fa['plugins']['get'](_0x426cac),this['_api']=_0x26e1bc['ctxElement']['getAPI'](),this['_type']=_0x9f6e8a,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:_0xa3593,model:_0x5c927}=this['_editor'],_0x21b94f=_0x5c927['document']['selection']['getSelectedElement'](),_0x322278=_0x21b94f&&(_0x21b94f['is']('element','imageBlock')||_0x21b94f['is']('element','imageInline'));this['_formView']=new x(_0xa3593,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x33ebb2,'title':_(_0xa3593,this['_type'],_0x322278?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5219d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27545c=>!A(_0x27545c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x411785}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1344e3=>{const _0x40406f=_0x411785['length'];for(const _0x442fcc of _0x411785){const _0x1992c9=_0x442fcc===_0x411785[_0x40406f-0x1],{cdnUrl:_0x1d5fa2,fileInfo:_0x8ca0d3}=_0x442fcc;if(!_0x1d5fa2||!_0x8ca0d3)continue;const {width:_0x299238,height:_0x3d6ab9}=_0x8ca0d3['imageInfo'],_0x5774fa=S(_0x1d5fa2,_0x299238,_0x3d6ab9),_0x342621=C(_0x1d5fa2,_0x5774fa['width']),_0xf1362e={'id':_0x8ca0d3['uuid'],'type':'image','attributes':{'imageDimension':_0x5774fa,..._0x342621}};this['_insertAsset'](_0xf1362e,_0x1992c9,_0x1344e3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf8e4f4=>{'idle'===_0xf8e4f4['detail']['status']&&!_0xf8e4f4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x7054d7,_0x30aec6,_0x414f3f){const _0x2b3d92=this['_editor']['model']['document']['selection'],_0x3e9602=_0x2b3d92['getSelectedElement'](),_0x7bd9b7=!(!_0x3e9602||!_0x3e9602['is']('element','imageInline'));_0x414f3f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x7054d7,_0x7bd9b7),_0x30aec6||_0x414f3f['setSelection'](_0x2b3d92['getLastPosition']());}['_insertImage'](_0x420f78,_0x91092b){const _0x3993d3=this['_editor'],{imageDimension:_0x54a252,imageFallbackUrl:_0x17cdcb,imageSources:_0x51bf25}=_0x420f78['attributes'];_0x3993d3['execute']('insertImage',{'imageType':_0x91092b?'imageInline':null,'source':{'uploadcareImageId':_0x420f78['id'],'src':_0x17cdcb,'sources':_0x51bf25,..._0x54a252}});}}class w extends _0x182881{['_editing'];['_controller']=null;static get['requires'](){return[_0x426cac,o];}constructor(_0x140bdb){super(_0x140bdb),this['_editing']=_0x140bdb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x396ecb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x396ecb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x346db1,..._0x395aaa}){return _0x21f967(_0x346db1,_0x395aaa);}static['getInfo'](_0x5e9176,_0xc31cdd){return _0x355532(_0x5e9176,_0xc31cdd);}}class f extends _0x1067e6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x29c714,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16ce80=this['editor'];if(!!!_0x16ce80['config']['get']('uploadcare'))return;_0x16ce80['plugins']['get'](_0x29c714)['createUploadAdapter']=_0x373b88=>new k(_0x373b88,_0x16ce80),_0x16ce80['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57de43,{imageElement:_0x20a068,data:_0x33ca02})=>{_0x16ce80['model']['change'](_0x1ce00a=>{_0x1ce00a['setAttribute']('uploadcareImageId',_0x33ca02['uploadcareImageId'],_0x20a068);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x58a4e7,_0x4b077d){this['loader']=_0x58a4e7,this['editor']=_0x4b077d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x109a1e=await this['loader']['file'];return j['upload']({'file':_0x109a1e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4afe34=>{_0x4afe34&&_0x4afe34['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4afe34['value']);}})['then'](async _0x5a225e=>{const {imageFallbackUrl:_0x1ea4b5,imageSources:_0x196848}=C(_0x5a225e['cdnUrl'],_0x5a225e['imageInfo']['width']);return{'uploadcareImageId':_0x5a225e['uuid'],'default':_0x1ea4b5,'sources':_0x196848};})['catch'](()=>{const _0x32e59a=t('Cannot\x20upload\x20file:')+('\x20'+_0x109a1e['name']+'.');return Promise['reject'](_0x32e59a);});}['abort'](){this['controller']['abort']();}}class o extends _0x1067e6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x426cac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x49c804){super(_0x49c804),this['ucContextId']=_0x275994();}['init'](){const _0x2e1142=this['editor'];_0x2e1142['commands']['add']('uploadcare',new w(_0x2e1142));}['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 _0x55bc57=_0x48e503['document']['querySelector']('input[uploadcare-file-input]');_0x55bc57&&_0x55bc57['remove']();}),async function(_0x35c3d4){const _0x60bf56=_0x1d1fd6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5b8bea=0x3d8d0df,_0x121887=0x3dfa41f^_0x5b8bea,_0x41b6a5=window[_0x1d1fd6([0x44,0x61,0x74,0x65])][_0x1d1fd6([0x6e,0x6f,0x77])](),_0x158811=_0x35c3d4[_0x1d1fd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25184e=new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530276=>{_0x158811[_0x1d1fd6([0x6f,0x6e,0x63,0x65])](_0x1d1fd6([0x72,0x65,0x61,0x64,0x79]),_0x530276);}),_0x3fb82f={[_0x1d1fd6([0x6b,0x74,0x79])]:_0x1d1fd6([0x45,0x43]),[_0x1d1fd6([0x75,0x73,0x65])]:_0x1d1fd6([0x73,0x69,0x67]),[_0x1d1fd6([0x63,0x72,0x76])]:_0x1d1fd6([0x50,0x2d,0x32,0x35,0x36]),[_0x1d1fd6([0x78])]:_0x1d1fd6([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]),[_0x1d1fd6([0x79])]:_0x1d1fd6([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]),[_0x1d1fd6([0x61,0x6c,0x67])]:_0x1d1fd6([0x45,0x53,0x32,0x35,0x36])},_0x332285=_0x158811[_0x1d1fd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d1fd6([0x67,0x65,0x74])](_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25604e(){let _0x4db380,_0x50254a=null,_0xd0fe5b=null;try{if(_0x332285==_0x1d1fd6([0x47,0x50,0x4c]))return _0x1d1fd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4db380=_0x47f3a1(),!_0x4db380)return _0x1d1fd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4db380[_0x1d1fd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd0fe5b=_0x2f08bb(_0x4db380[_0x1d1fd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4db380[_0x1d1fd6([0x6a,0x74,0x69])])),await _0x3510df()?_0x4c1748()?_0x40bb2b()?_0x1d1fd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20538c()?(_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d1fd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50254a=_0x3829fe(_0x1d1fd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d1fd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x50254a=_0x3829fe(_0x1d1fd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56c03f()):_0x1d1fd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d1fd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d1fd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d1fd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40bb2b(){const _0x55e0c4=[_0x1d1fd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d1fd6([0x74,0x72,0x69,0x61,0x6c])][_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41b6a5/0x3e8:0xe10*_0x121887;return _0x4db380[_0x1d1fd6([0x65,0x78,0x70])]<_0x55e0c4;}function _0x4c1748(){const _0x290bff=_0x4db380[_0x1d1fd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x290bff&&(!!_0x290bff[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1fd6([0x2a]))||!!_0x290bff[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1fd6([0x55,0x50,0x4c,0x43])));}function _0x20538c(){const _0x60773=_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x60773||0x0==_0x60773[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c2c6d}=new URL(window[_0x1d1fd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x60773[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2c6d))return!0x0;const _0x3f3f7b=_0x3c2c6d[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e]));return _0x60773[_0x1d1fd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48fa4a=>_0x48fa4a[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1fd6([0x2a])))[_0x1d1fd6([0x6d,0x61,0x70])](_0x101cfc=>_0x101cfc[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e])))[_0x1d1fd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57e8fd=>_0x57e8fd[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f3f7b[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d1fd6([0x6d,0x61,0x70])](_0xfd5cf=>Array(_0x3f3f7b[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd5cf[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d1fd6([0x66,0x69,0x6c,0x6c])](_0xfd5cf[0x0]===_0x1d1fd6([0x2a])?_0x1d1fd6([0x2a]):'')[_0x1d1fd6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd5cf))[_0x1d1fd6([0x73,0x6f,0x6d,0x65])](_0x254394=>_0x3f3f7b[_0x1d1fd6([0x65,0x76,0x65,0x72,0x79])]((_0x25324e,_0x211c6f)=>_0x254394[_0x211c6f]===_0x25324e||_0x254394[_0x211c6f]===_0x1d1fd6([0x2a])));}function _0x56c03f(){return _0x50254a&&_0xd0fe5b?new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43007c,_0x4c4d4f)=>{_0x50254a[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x43007c,_0x4c4d4f),_0xd0fe5b[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x1cc700=>{_0x1cc700!=_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64])&&_0x43007c(_0x1cc700);},_0x4c4d4f);}):_0x50254a||_0xd0fe5b||_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f08bb(_0x227c0d,_0x1e4ff1){return new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4696cf=>{if(_0x3d9cc1())return _0x4696cf(_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64]));_0x18bb7f(),_0x158811[_0x1d1fd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d1fd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2719d3=!0x1;const _0x574b6c=_0x275994();function _0x48585c(_0x39f321){return!!_0x39f321&&(typeof _0x39f321===_0x1d1fd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39f321===_0x1d1fd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39f321[_0x1d1fd6([0x74,0x68,0x65,0x6e])]===_0x1d1fd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39f321[_0x1d1fd6([0x63,0x61,0x74,0x63,0x68])]===_0x1d1fd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c3494(_0x1f7682){_0x555209(_0x1f7682)[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x2860a6=>{if(!_0x2860a6||_0x2860a6[_0x1d1fd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d1fd6([0x6f,0x6b]))return _0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x427b0b(_0x2a4025(_0x574b6c+_0x1e4ff1))!=_0x2860a6[_0x1d1fd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x45d526=>(_0xa240fc(),_0x45d526),()=>{const _0x317001=_0x3c7e19();return null==_0x317001?(_0xa240fc(),_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64])):_0x1d1fd6(_0x41b6a5-_0x317001>(0x27d454df^_0x5b8bea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x4696cf)[_0x1d1fd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4696cf(_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x317692=0x3ee3e5f^_0x5b8bea;function _0xa240fc(){const _0x5d81d6=_0x1d1fd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x427b0b(_0x2a4025(_0x227c0d)),_0x19bde7=_0x42ae6c(_0x427b0b(window[_0x1d1fd6([0x4d,0x61,0x74,0x68])][_0x1d1fd6([0x63,0x65,0x69,0x6c])](_0x41b6a5/_0x317692)));window[_0x1d1fd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d1fd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d81d6,_0x19bde7);}function _0x3c7e19(){const _0x29e634=_0x1d1fd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x427b0b(_0x2a4025(_0x227c0d)),_0x52aec1=window[_0x1d1fd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d1fd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29e634);return _0x52aec1?window[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42ae6c(_0x52aec1),0x10)*_0x317692:null;}function _0x555209(_0x373f9a){return new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e5b1b,_0x353670)=>{_0x373f9a[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x2e5b1b,_0x353670),window[_0x1d1fd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x353670,0x3d9041f^_0x5b8bea);});}}_0x158811[_0x1d1fd6([0x6f,0x6e])](_0x1d1fd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x386c88,_0x1e79f9)=>{if(_0x1e79f9[0x0]!=_0x227c0d)return _0x4696cf(_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e79f9[0x1]={..._0x1e79f9[0x1],[_0x1d1fd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x574b6c};},{[_0x1d1fd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d1fd6([0x68,0x69,0x67,0x68])}),_0x158811[_0x1d1fd6([0x6f,0x6e])](_0x1d1fd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f651c=>{_0x48585c(_0x2f651c[_0x1d1fd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2719d3=!0x0,_0x3c3494(_0x2f651c[_0x1d1fd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d1fd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d1fd6([0x6c,0x6f,0x77])}),_0x25184e[_0x1d1fd6([0x74,0x68,0x65,0x6e])](()=>{_0x2719d3||_0x4696cf(_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d9cc1(){return _0x158811[_0x1d1fd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d1fd6([0x76,0x69,0x65,0x77])][_0x1d1fd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d1fd6([0x61,0x75,0x74,0x6f]);}function _0x18bb7f(){_0x158811[_0x1d1fd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d1fd6([0x76,0x69,0x65,0x77])][_0x1d1fd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d1fd6([0x61,0x75,0x74,0x6f]);}}function _0x3829fe(_0x2afdf1){const _0x3b8057=[new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104e84=>setTimeout(_0x104e84,0x3d1ee13^_0x5b8bea)),_0x25184e[_0x1d1fd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x280b58=>{let _0xf0fae1=0x0;_0x158811[_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d1fd6([0x6f,0x6e])](_0x1d1fd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b279c,_0x1c74ca)=>{_0x1c74ca[0x0][_0x1d1fd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf0fae1++,_0xf0fae1==(0x3d8d127^_0x5b8bea)&&(_0x280b58(),_0x3b279c[_0x1d1fd6([0x6f,0x66,0x66])]());});}))];return window[_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d1fd6([0x72,0x61,0x63,0x65])](_0x3b8057)[_0x1d1fd6([0x74,0x68,0x65,0x6e])](()=>_0x2afdf1);}async function _0x392e0d(){await _0x25184e,_0x158811[_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d1fd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497ee4,_0x158811[_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d1fd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497ee4,_0x158811[_0x1d1fd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56eb73(_0x39a6c9){const _0x3877fe=_0x13e59b();_0x158811[_0x3877fe]=_0x1d1fd6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39a6c9,_0x39a6c9!=_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64])&&_0x392e0d();}function _0x13e59b(){const _0x2a017c=window[_0x1d1fd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d1fd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d1fd6([0x6e,0x6f,0x77])]())[_0x1d1fd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d1fd6([0x2e]),'');let _0x3cbf9f=_0x1d1fd6([0x52]);for(let _0x4f2c3c=0x0;_0x4f2c3c<_0x2a017c[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f2c3c+=0x2){let _0x3e9141=window[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a017c[_0x1d1fd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f2c3c,_0x4f2c3c+0x2));_0x3e9141>=_0x60bf56[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e9141-=_0x60bf56[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3cbf9f+=_0x60bf56[_0x3e9141];}return _0x3cbf9f;}function _0x47f3a1(){const _0x2b02f0=_0x332285[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e]));if(0x3!=_0x2b02f0[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x251fdd(_0x2b02f0[0x1]);function _0x251fdd(_0x24291b){const _0x4f50a4=_0xd03039(_0x24291b);return _0x4f50a4&&_0x317a76()?_0x4f50a4:null;function _0x317a76(){const _0x518998=_0x4f50a4[_0x1d1fd6([0x6a,0x74,0x69])],_0x1be6a7=window[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518998[_0x1d1fd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x518998[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2caa7d={..._0x4f50a4,[_0x1d1fd6([0x6a,0x74,0x69])]:_0x518998[_0x1d1fd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x518998[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2caa7d[_0x1d1fd6([0x76,0x63])],_0x2a4025(_0x2caa7d)==_0x1be6a7;}}}async function _0x3510df(){let _0x3f5a27=!0x0;try{const _0x5cd392=_0x332285[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e])),[_0x42740c,_0x34fc47,_0x3ab238]=_0x5cd392;return _0x4e83a1(_0x42740c),await _0x5408ac(_0x42740c,_0x34fc47,_0x3ab238),_0x3f5a27;}catch{return!0x1;}function _0x4e83a1(_0xba25fd){const _0x581719=_0xd03039(_0xba25fd);_0x581719&&_0x581719[_0x1d1fd6([0x61,0x6c,0x67])]==_0x1d1fd6([0x45,0x53,0x32,0x35,0x36])||(_0x3f5a27=!0x1);}async function _0x5408ac(_0x2ba624,_0x3ae21e,_0x5495cb){const _0xe18130=window[_0x1d1fd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d1fd6([0x66,0x72,0x6f,0x6d])](_0x2a9edb(_0x5495cb),_0x22b186=>_0x22b186[_0x1d1fd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458de0=new window[(_0x1d1fd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d1fd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ba624+_0x1d1fd6([0x2e])+_0x3ae21e),_0x4b7259=window[_0x1d1fd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d1fd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b7259)return;const _0x2c4506=await _0x4b7259[_0x1d1fd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d1fd6([0x6a,0x77,0x6b]),_0x3fb82f,{[_0x1d1fd6([0x6e,0x61,0x6d,0x65])]:_0x1d1fd6([0x45,0x43,0x44,0x53,0x41]),[_0x1d1fd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d1fd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d1fd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b7259[_0x1d1fd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d1fd6([0x6e,0x61,0x6d,0x65])]:_0x1d1fd6([0x45,0x43,0x44,0x53,0x41]),[_0x1d1fd6([0x68,0x61,0x73,0x68])]:{[_0x1d1fd6([0x6e,0x61,0x6d,0x65])]:_0x1d1fd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c4506,_0xe18130,_0x458de0)||(_0x3f5a27=!0x1);}}function _0xd03039(_0x5cdc82){return _0x5cdc82[_0x1d1fd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d1fd6([0x65,0x79]))?JSON[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65])](_0x2a9edb(_0x5cdc82)):null;}function _0x2a9edb(_0x1d9644){return window[_0x1d1fd6([0x61,0x74,0x6f,0x62])](_0x1d9644[_0x1d1fd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d1fd6([0x2b]))[_0x1d1fd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d1fd6([0x2f])));}function _0x2a4025(_0x26e7ff){let _0xd86d44=0x1505;function _0x3493cc(_0x107200){for(let _0x3dd0a1=0x0;_0x3dd0a1<_0x107200[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dd0a1++){const _0x1e8d1c=_0x107200[_0x1d1fd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dd0a1);_0xd86d44=(_0xd86d44<<0x5)+_0xd86d44+_0x1e8d1c,_0xd86d44&=_0xd86d44;}}function _0x377869(_0x356888){Array[_0x1d1fd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x356888)?_0x356888[_0x1d1fd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x377869):_0x356888&&typeof _0x356888==_0x1d1fd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d1fd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x356888)[_0x1d1fd6([0x73,0x6f,0x72,0x74])]()[_0x1d1fd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ee1a3,_0x5b5932])=>{_0x3493cc(_0x4ee1a3),_0x377869(_0x5b5932);}):_0x3493cc(window[_0x1d1fd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x356888));}return _0x377869(_0x26e7ff),_0xd86d44>>>0x0;}function _0x427b0b(_0x56996b){return _0x56996b[_0x1d1fd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d1fd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d1fd6([0x30]));}function _0x42ae6c(_0x45d012){return _0x45d012[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d1fd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d1fd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x497ee4(){}function _0x1d1fd6(_0xa424d4){return _0xa424d4['map'](_0x59330a=>String['fromCharCode'](_0x59330a))['join']('');}_0x56eb73(await _0x25604e());}(this);}['_initSchema'](){const _0x1ca532=this['editor']['model']['schema'];_0x1ca532['isRegistered']('imageBlock')&&_0x1ca532['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1ca532['isRegistered']('imageInline')&&_0x1ca532['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x31ba10=this['editor'];_0x31ba10['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x31ba10['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xc98ede=>_0xc98ede['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44b70c=_0x31ba10['commands']['get']('replaceImageSource');_0x44b70c&&this['listenTo'](_0x44b70c,'cleanupImage',(_0x1f5114,[_0x3cb87d,_0x2ad65c])=>{_0x3cb87d['removeAttribute']('uploadcareImageId',_0x2ad65c);});}['_initConfig'](){const _0x13357a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3836b6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5425f1(_0x48e503['document'],'uc-config',{..._0x13357a,'pubkey':_0x3836b6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2aedd7=>{if('closeMax'==_0x2aedd7)return'#uc-icon-arrow-down';},_0x48e503['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5425f1(_0x48e503['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x48e503['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1d58b6=this['editor']['commands']['get']('insertImage');_0x1d58b6&&this['listenTo'](_0x1d58b6,'execute',()=>{const _0xe42479=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe42479&&_0xe42479['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe42479);});});const _0x583f78=this['editor']['commands']['get']('uploadcareImageReplace');_0x583f78&&this['listenTo'](_0x583f78,'execute',()=>{const _0x5321ad=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5321ad&&_0x5321ad['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5321ad);});});}}class tt extends _0x1067e6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51b868){super(_0x51b868),_0x51b868['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x8e94fb['defineComponents'](_0x8e94fb);}}class ii extends _0xeb4cbe{constructor(_0xf894a5){super(_0xf894a5);const t=_0xf894a5['t'],_0x536346=this['bindTemplate'],_0xa67e55=new _0x4f8f5b();_0xa67e55['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':[_0xa67e55,{'text':_0x536346['to']('imageUploadProgress',_0x4ff4fd=>t('Loading\x20image...')+'\x20('+(_0x4ff4fd||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xeb4cbe{constructor(_0x177ab3){super(_0x177ab3);const t=_0x177ab3['t'];this['set']('errorType',null);const _0x726eff=new _0x2b9da2(_0x177ab3);_0x726eff['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x726eff['withText']=!0x0,_0x726eff['class']='ck-button-action',_0x726eff['on']('execute',()=>{this['fire']('retry');}),_0x726eff['bind']('isVisible')['to'](this,'errorType',_0x3014dc=>'NotFound'!==_0x3014dc);const _0x272faf=new _0x2bf52b();_0x272faf['content']=_0x35eed4,_0x272faf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x545dc6=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':[_0x272faf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x545dc6['to']('errorType',_0x294df6=>t('NotFound'!==_0x294df6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x726eff]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xeb4cbe{constructor(_0xf6d49c,_0x8a37e4){super(_0xf6d49c);const _0x11ece5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x8a37e4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x11ece5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x47643b,_0x2a2217,_0x338fe6){super(_0x47643b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x47643b),this['_errorView']=new ti(_0x47643b),this['_editingView']=new ei(_0x47643b,_0x338fe6),this['_focusableView']=new _0xeb4cbe(_0x47643b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a2217),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'],_0x5b5b85=>{this['_addUploadcareImageEditorListeners'](_0x5b5b85);});}),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'](_0x18dd18,_0x4e37de){const _0x533d42='uc-cloud-image-editor',_0x3df550=_0x18dd18['querySelector'](_0x533d42);if(_0x3df550)return _0x4e37de(_0x3df550);const _0x1bf92a=new MutationObserver(_0x5547ca=>{const _0x56c23e=_0x5547ca['filter'](_0x461155=>_0x461155['target']===_0x18dd18&&_0x461155['addedNodes']['length']>0x0&&_0x461155['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x533d42);_0x56c23e['length']&&(_0x1bf92a['disconnect'](),_0x4e37de(_0x56c23e[0x0]['addedNodes'][0x0]));});_0x1bf92a['observe'](_0x18dd18,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x459d3c){_0x459d3c['addEventListener']('apply',_0x915531=>{this['fire']('apply',{'imageSrc':_0x915531['detail']['cdnUrl']});}),_0x459d3c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1b4532(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa8cc10,_0x465661,_0x3a654c){super(),this['_editor']=_0xa8cc10,this['_dialog']=_0x465661,this['_imageElement']=_0x3a654c,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 _0x43172c=this['_imageElement'],_0x47cefa=_0x43172c['getAttribute']('uploadcareImageId'),_0x1765c8=_0x43172c['getAttribute']('src');if(_0x47cefa)await this['_loadImageInfo'](_0x47cefa,_0x1765c8);else{if(this['_imageCache']['has'](_0x1765c8)){const _0x1cd997=this['_imageCache']['get'](_0x1765c8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cd997['url'],this['imageDimension']=_0x1cd997['dimension'],this['imageId']=_0x1cd997['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5533f0}=this['_editor'],t=_0x5533f0['t'],_0x1109a1=new X(_0x5533f0,this['imageStatus'],this['_attributes']);_0x1109a1['bind']('status')['to'](this,'imageStatus'),_0x1109a1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1109a1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1109a1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1109a1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a71e2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1109a1,'position':_0x5219d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1109a1['focus']();},'onHide':()=>{_0x1109a1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x25c681=>!A(_0x25c681,_0x1109a1['element'])}});}['_loadImageInfo'](_0x46fcb8,_0x3d97b4){return j['getInfo'](_0x46fcb8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1bfb81=>{const {width:_0x1c23b8,height:_0x1a5147}=_0x1bfb81['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d97b4,this['imageDimension']={'width':_0x1c23b8,'height':_0x1a5147},this['imageId']=_0x46fcb8;})['catch'](_0xa63d30=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa63d30['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d9a21,_0x2fed2f){return this['_getImageAsFile'](_0x1d9a21)['then'](_0x39a9b4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2fed2f['signal'],'file':_0x39a9b4,'onProgress':_0x35c769=>{_0x35c769&&_0x35c769['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x35c769['value']));}}))['then'](_0x344a1a=>{const {width:_0x2f48d3,height:_0x43d530}=_0x344a1a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x344a1a['cdnUrl'],this['imageDimension']={'width':_0x2f48d3,'height':_0x43d530},this['imageId']=_0x344a1a['uuid'],this['imageUploadProgress']=null;const _0x288b8d=_0x1d9a21['getAttribute']('src');this['_imageCache']['set'](_0x288b8d,{'id':_0x344a1a['uuid'],'url':_0x344a1a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1b5d58=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b5d58['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x498012,_0x1c9e01){_0x498012['on']('apply',(_0x59030f,_0x2a6f85)=>{this['_replaceImage'](_0x1c9e01,_0x2a6f85['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x498012['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x498012['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47eb45,_0x49d9fe,_0x21ba36){const _0x1fac67=this['_editor'],{width:_0x1da549,height:_0x3501ad}=S(_0x49d9fe,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x34c24f,imageSources:_0x2007ff}=C(_0x49d9fe,_0x1da549);_0x1fac67['model']['change'](_0x4f459c=>{if('$graveyard'===_0x47eb45['root']['rootName']){_0x1fac67['execute']('insertImage',{'imageType':_0x47eb45['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47eb45['getAttributes']()),'uploadcareImageId':_0x21ba36,'src':_0x34c24f,'sources':_0x2007ff,'width':_0x1da549,'height':_0x3501ad}});const _0x30b743=_0x47eb45['getChildren']();_0x47eb45=_0x1fac67['model']['document']['selection']['getSelectedElement']();for(const _0x3e2fcd of _0x30b743)_0x4f459c['append'](_0x4f459c['cloneElement'](_0x3e2fcd),_0x47eb45);}else _0x4f459c['setSelection'](_0x47eb45,'on'),_0x1fac67['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47eb45['getAttributes']()),'uploadcareImageId':_0x21ba36,'src':_0x34c24f,'sources':_0x2007ff,'width':_0x1da549,'height':_0x3501ad},_0x47eb45);_0x4f459c['setSelection'](_0x47eb45,'on');});}async['_getImageAsFile'](_0x1979a6){const _0x5f20eb=_0x48e503['window'],_0x5c9e71=_0x48e503['document']['location']['href'],_0x2e970e=new _0x5f20eb['URL'](_0x1979a6['getAttribute']('src'),_0x5c9e71);if('data:'===_0x2e970e['protocol']){const _0x1994e6=_0x2e970e['href']['split'](','),_0x3ffa5a=_0x1994e6[0x0]['match'](/:(.*?);/)[0x1],_0x2c858f=_0x3ffa5a['split']('/')[0x1],_0x63b152=_0x5f20eb['atob'](_0x1994e6[_0x1994e6['length']-0x1]);let _0x58330c=_0x63b152['length'];const _0x15982b=new _0x5f20eb['Uint8Array'](_0x58330c);for(;_0x58330c--;)_0x15982b[_0x58330c]=_0x63b152['charCodeAt'](_0x58330c);return new _0x5f20eb['File']([_0x15982b],'image.'+_0x2c858f,{'type':_0x3ffa5a});}const _0xd44cd=_0x2e970e['href']['split']('/'),_0x2e2d70=_0xd44cd[_0xd44cd['length']-0x1],_0x5d1b65=_0x2e2d70['split']('.')[0x1];return _0x5f20eb['fetch'](_0x2e970e['href'])['then'](_0xa3786a=>_0xa3786a['clone']()['blob']())['then'](_0x25f95e=>new _0x5f20eb['File']([_0x25f95e],_0x2e2d70,{'type':'image/'+_0x5d1b65}));}}class O extends _0x182881{['imageEditController'];static get['requires'](){return[_0x426cac];}['_isEditable'];constructor(_0x3a9197){super(_0x3a9197),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x79ee0f){const _0xcb92b5=G(_0x79ee0f);return _0x241dfe=>!(!_0x241dfe||!_0x241dfe['is']('element','imageBlock')&&!_0x241dfe['is']('element','imageInline'))&&(!!_0x241dfe['hasAttribute']('uploadcareImageId')||!!_0x241dfe['hasAttribute']('src')&&_0xcb92b5(_0x241dfe['getAttribute']('src')));}(_0x3a9197['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x11013a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x11013a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xce8d73=this['editor']['model']['document']['selection']['getSelectedElement']();_0xce8d73&&(_0xce8d73['is']('element','imageBlock')||_0xce8d73['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x426cac),_0xce8d73),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x182881{['refresh'](){const _0x8ec4d4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x8ec4d4&&(_0x8ec4d4['is']('element','imageBlock')||_0x8ec4d4['is']('element','imageInline')));}['execute'](_0x5ce7ab){const _0x104f11=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3c7deb=>{_0x3c7deb['setAttributes'](_0x5ce7ab,_0x104f11),_0x3c7deb['removeAttribute']('srcset',_0x104f11),_0x3c7deb['removeAttribute']('sizes',_0x104f11);});}}class m extends _0x1067e6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x20f455,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a78d4}=this;_0x5a78d4['commands']['add']('uploadcareImageEdit',new O(_0x5a78d4)),_0x5a78d4['commands']['add']('uploadcareImageReplace',new R(_0x5a78d4));}}class g extends _0x1067e6{['_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 _0x279be5=this['editor'];_0x279be5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3dec91=>{const _0x227788=_0x279be5['commands']['get']('uploadcareImageEdit'),_0x34f7e1=new _0x2b9da2(_0x3dec91),t=_0x3dec91['t'];return _0x34f7e1['set']({'icon':_0x5a71e2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34f7e1['bind']('isEnabled')['to'](_0x227788),_0x34f7e1['bind']('isOn')['to'](_0x227788,'isActive'),this['listenTo'](_0x34f7e1,'execute',()=>{_0x279be5['execute']('uploadcareImageEdit'),_0x279be5['editing']['view']['focus']();}),_0x34f7e1;}),this['_initConfig']();}['_initConfig'](){const _0x10aad2=_0x5425f1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10aad2),this['listenTo'](this['editor'],'destroy',()=>{_0x10aad2['remove']();});}}class et extends _0x1067e6{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2f4d7d,Command as _0x4b2dbb}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4d92c2,IconGooglePhotos as _0x32814b,IconGoogleDrive as _0x3bf83c,IconFacebook as _0x30b791,IconDropbox as _0x3fc9b7,IconUploadcareLink as _0x35147a,IconUploadcareImageUpload as _0x3c9158,IconError as _0x106300,IconUploadcareImageEdit as _0x40eee1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e6e82,MenuBarMenuListItemButtonView as _0x350c89,View as _0x1e7f7f,FocusCycler as _0x420c9e,Dialog as _0x38cafa,DialogViewPosition as _0x38da05,SpinnerView as _0x55d6a1,IconView as _0x497b10,Notification as _0x10064a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x214e6b,DomEmitterMixin as _0x170ac9,global as _0x19e95d,getAncestors as _0x1476be,ObservableMixin as _0x4e42d5,uid as _0x5ed798,createElement as _0x212cc6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x310709}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xe8c9f1,info as _0xc8586f}from'@uploadcare/upload-client';import*as _0x5478cb from'@uploadcare/file-uploader';var i=function(_0x5a0c6a){return _0x5a0c6a['Local']='local',_0x5a0c6a['URL']='url',_0x5a0c6a['Dropbox']='dropbox',_0x5a0c6a['GDrive']='gdrive',_0x5a0c6a['Facebook']='facebook',_0x5a0c6a['GPhotos']='gphotos',_0x5a0c6a['OneDrive']='onedrive',_0x5a0c6a;}({});function _(_0x176ac9,_0x4467d0,_0x39a40e){const t=_0x176ac9['t'],_0xa27d1f=_0x176ac9['t'];switch(_0x4467d0){case i['Local']:return{'text':_0xa27d1f('Insert'===_0x39a40e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xa27d1f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x39a40e?_0xa27d1f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xa27d1f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x39a40e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x39a40e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x39a40e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x39a40e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x39a40e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4467d0;}}class e extends _0x2f4d7d{['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 _0x3ff794=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe05343;for(const _0x1d5cec in _0x3ff794){const _0x2e11a1=_0x1d5cec,_0x2e50f4=_0x3ff794[_0x2e11a1];if('uploadcareLicenseKeyValid'==_0x2e50f4||'uploadcareLicenseKeyInvalid'==_0x2e50f4||'uploadcareLicenseKeyExpired'==_0x2e50f4||'uploadcareLicenseKeyDomainLimit'==_0x2e50f4||'uploadcareLicenseKeyNotAllowed'==_0x2e50f4||'uploadcareLicenseKeyEvaluationLimit'==_0x2e50f4||'uploadcareLicenseKeyTrialLimit'==_0x2e50f4||'uploadcareLicenseKeyUsageLimit'==_0x2e50f4){delete _0x3ff794[_0x2e11a1],_0xe05343=_0x2e50f4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xe05343&&_0x3ff794['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xe05343&&_0x3ff794['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xe05343&&_0x3ff794['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xe05343&&_0x3ff794['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xe05343&&_0x3ff794['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xe05343&&_0x3ff794['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xe05343&&_0x3ff794['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x224e81}=this,_0x51e964=_0x224e81['commands']['get']('uploadcare');if(!_0x51e964)return;const _0x1edb40=this['_normalizeConfigSourceList'](_0x224e81['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2e4048,_0x76de2e)=>{const _0x2826ce=this['_getIntegrationKey'](_0x76de2e['type']);return _0x2e4048[_0x2826ce]||(_0x2e4048[_0x2826ce]=[]),_0x2e4048[_0x2826ce]['push'](_0x76de2e),_0x2e4048;},{});_0x224e81['plugins']['has']('ImageInsertUI')&&_0x224e81['commands']['get']('uploadcare')&&Object['entries'](_0x1edb40)['forEach'](([_0x18c2d7,_0x4533c3])=>{_0x224e81['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x18c2d7,'observable':()=>_0x51e964,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4533c3),'formViewCreator':()=>this['_createDropdownButtons'](_0x4533c3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4533c3),'override':'assetManager'!==_0x18c2d7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f2484){const {locale:_0x100a7a}=this['editor'];return _0x1f2484['map'](_0x2b79ff=>{const _0x1f3949=_(_0x100a7a,_0x2b79ff,'Insert');switch(_0x2b79ff){case i['Local']:return{'icon':_0x3c9158,'type':i['Local'],..._0x1f3949};case i['URL']:return{'icon':_0x35147a,'type':i['URL'],..._0x1f3949};case i['Dropbox']:return{'icon':_0x3fc9b7,'type':i['Dropbox'],..._0x1f3949};case i['Facebook']:return{'icon':_0x30b791,'type':i['Facebook'],..._0x1f3949};case i['GDrive']:return{'icon':_0x3bf83c,'type':i['GDrive'],..._0x1f3949};case i['GPhotos']:return{'icon':_0x32814b,'type':i['GPhotos'],..._0x1f3949};case i['OneDrive']:return{'icon':_0x4d92c2,'type':i['OneDrive'],..._0x1f3949};}});}['_getIntegrationKey'](_0x38a5d9){switch(_0x38a5d9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x582722,_0x38ba65){const _0x3e9639=this['editor'],_0x1a4289=new _0x582722(_0x3e9639['locale']),_0x334eb7=_0x3e9639['commands']['get']('uploadcare');return _0x1a4289['bind']('isEnabled')['to'](_0x334eb7),_0x1a4289['on']('execute',()=>{_0x334eb7['execute'](_0x38ba65);}),_0x1a4289;}['_createToolbarButton'](_0x21ba55){const {locale:_0x319795}=this['editor'],_0x5d5012=this['editor']['plugins']['get']('ImageInsertUI'),_0x11b7a2=_0x21ba55[0x0],_0x18081f=this['_createButton'](_0x1e6e82,_0x11b7a2['type']);return _0x18081f['icon']=_0x11b7a2['icon'],_0x18081f['bind']('label')['to'](_0x5d5012,'isImageSelected',_0x1db277=>_(_0x319795,_0x11b7a2['type'],_0x1db277?'Replace':'Insert')['text']),_0x18081f['tooltip']=!0x0,_0x18081f;}['_createDropdownButtons'](_0x5db9d7){const {locale:_0x2caef1}=this['editor'],_0x4cb7f1=this['editor']['plugins']['get']('ImageInsertUI');return _0x5db9d7['map'](_0x3e5c76=>{const _0x219581=this['_createButton'](_0x1e6e82,_0x3e5c76['type']);return _0x219581['withText']=!0x0,_0x219581['icon']=_0x3e5c76['icon'],_0x219581['bind']('label')['to'](_0x4cb7f1,'isImageSelected',_0x287953=>_(_0x2caef1,_0x3e5c76['type'],_0x287953?'Replace':'Insert')['text']),_0x219581;});}['_createMenuBarButtons'](_0x1bf413){return _0x1bf413['map'](_0x45ec5b=>{const _0x11705c=this['_createButton'](_0x350c89,_0x45ec5b['type']);return _0x11705c['icon']=_0x45ec5b['icon'],_0x11705c['label']=_0x45ec5b['shortText'],_0x11705c;});}}class F extends _0x1e7f7f{['focusTracker'];['focusCycler'];constructor(_0x41d860){super(_0x41d860),this['focusTracker']=new _0x214e6b(),this['focusCycler']=new _0x420c9e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0xd2028d,_0x36d289){super(_0xd2028d),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-'+_0x36d289}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1e343a,_0x4e848a){const _0x728041=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x54c5bc=>_0x54c5bc<=_0x4e848a)['map'](_0x586dea=>_0x1e343a['replace'](/\/$/,'')+'/-/resize/'+_0x586dea+'x/\x20'+_0x586dea+'w');return{'imageFallbackUrl':_0x1e343a,'imageSources':[{'srcset':_0x728041['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4e848a+'px)\x20100vw,\x20'+_0x4e848a+'px','type':'image/webp'}]};}function S(_0x272193,_0x3c00e7,_0x3d89f9){const _0x11aa52=_0x272193['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x11aa52?parseInt(_0x11aa52[0x1],0xa):_0x3c00e7,'height':_0x11aa52?parseInt(_0x11aa52[0x2],0xa):_0x3d89f9};}function p(_0x47f795,_0x4c7269){const _0x3e8b65=new(_0x170ac9())(),_0x1e4bb1=_0x47f795['plugins']['get']('ImageUtils'),_0x3f9a5f=_0x47f795['editing']['mapper']['toViewElement'](_0x4c7269),_0x13a894=_0x1e4bb1['findViewImgElement'](_0x3f9a5f),_0x424fd4=_0x47f795['editing']['view']['domConverter']['viewToDom'](_0x13a894),_0x291b79=_0x4c7269['getAttribute']('width'),_0x31d4b5=_0x4c7269['getAttribute']('height'),_0x5b39e7='image-processing';_0x47f795['editing']['view']['change'](_0x4c886d=>{_0x4c886d['addClass'](_0x5b39e7,_0x3f9a5f),_0x4c886d['setStyle']('aspect-ratio',_0x291b79+'/'+_0x31d4b5,_0x13a894);}),_0x3e8b65['listenTo'](_0x424fd4,'load',()=>{_0x3e8b65['stopListening'](_0x424fd4,'load'),_0x47f795['editing']['view']['change'](_0x4e0324=>{_0x4e0324['removeClass'](_0x5b39e7,_0x3f9a5f),_0x4e0324['removeStyle']('aspect-ratio',_0x13a894);});});}function G(_0x5442d5){if(Array['isArray'](_0x5442d5)){const _0x5ce373=_0x5442d5['map'](G);return _0xb15307=>_0x5ce373['some'](_0x2effe0=>_0x2effe0(_0xb15307));}if('origin'==_0x5442d5){const _0xc7627d=_0x19e95d['window']['location']['origin'];return _0x11a948=>new URL(_0x11a948,_0x19e95d['document']['baseURI'])['origin']==_0xc7627d;}return'function'==typeof _0x5442d5?_0x5442d5:_0x5442d5 instanceof RegExp?_0x407f41=>!(!_0x407f41['match'](_0x5442d5)&&!_0x407f41['replace'](/^https?:\/\//,'')['match'](_0x5442d5)):()=>!0x1;}function A(_0x807e87,_0x29e3b3){return _0x1476be(_0x807e87['target'])['includes'](_0x29e3b3);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e42d5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2424e4,_0xb5fa80,_0x937de){super(),this['_editor']=_0x2424e4,this['_editing']=_0xb5fa80,this['_dialog']=_0x2424e4['plugins']['get'](_0x38cafa),this['_api']=_0xb5fa80['ctxElement']['getAPI'](),this['_type']=_0x937de,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:_0xd0d2d2,model:_0x1710ea}=this['_editor'],_0x63f0f9=_0x1710ea['document']['selection']['getSelectedElement'](),_0x4aecb1=_0x63f0f9&&(_0x63f0f9['is']('element','imageBlock')||_0x63f0f9['is']('element','imageInline'));this['_formView']=new x(_0xd0d2d2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3c9158,'title':_(_0xd0d2d2,this['_type'],_0x4aecb1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x38da05['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b8458=>!A(_0x3b8458,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1f94f5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2b640c=>{const _0x13a7b0=_0x1f94f5['length'];for(const _0x1ddcf3 of _0x1f94f5){const _0x50935e=_0x1ddcf3===_0x1f94f5[_0x13a7b0-0x1],{cdnUrl:_0x4e0101,fileInfo:_0x2d8575}=_0x1ddcf3;if(!_0x4e0101||!_0x2d8575)continue;const {width:_0x4a0e92,height:_0xd5d0bf}=_0x2d8575['imageInfo'],_0x2a4dd1=S(_0x4e0101,_0x4a0e92,_0xd5d0bf),_0xafbb68=C(_0x4e0101,_0x2a4dd1['width']),_0x51630c={'id':_0x2d8575['uuid'],'type':'image','attributes':{'imageDimension':_0x2a4dd1,..._0xafbb68}};this['_insertAsset'](_0x51630c,_0x50935e,_0x2b640c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5a80b6=>{'idle'===_0x5a80b6['detail']['status']&&!_0x5a80b6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x30398d,_0x49668f,_0x20c99b){const _0x69506d=this['_editor']['model']['document']['selection'],_0x1ff9f4=_0x69506d['getSelectedElement'](),_0x59098b=!(!_0x1ff9f4||!_0x1ff9f4['is']('element','imageInline'));_0x20c99b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x30398d,_0x59098b),_0x49668f||_0x20c99b['setSelection'](_0x69506d['getLastPosition']());}['_insertImage'](_0x5837ea,_0x217343){const _0x1a8af5=this['_editor'],{imageDimension:_0x406318,imageFallbackUrl:_0x474ef8,imageSources:_0x1a34a2}=_0x5837ea['attributes'];_0x1a8af5['execute']('insertImage',{'imageType':_0x217343?'imageInline':null,'source':{'uploadcareImageId':_0x5837ea['id'],'src':_0x474ef8,'sources':_0x1a34a2,..._0x406318}});}}class w extends _0x4b2dbb{['_editing'];['_controller']=null;static get['requires'](){return[_0x38cafa,o];}constructor(_0x2f86a0){super(_0x2f86a0),this['_editing']=_0x2f86a0['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x32760b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x32760b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd1e91f,..._0x37f619}){return _0xe8c9f1(_0xd1e91f,_0x37f619);}static['getInfo'](_0x1b7246,_0x10bf30){return _0xc8586f(_0x1b7246,_0x10bf30);}}class f extends _0x2f4d7d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x310709,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x189a4e=this['editor'];if(!!!_0x189a4e['config']['get']('uploadcare'))return;_0x189a4e['plugins']['get'](_0x310709)['createUploadAdapter']=_0x4709e8=>new k(_0x4709e8,_0x189a4e),_0x189a4e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1d0f62,{imageElement:_0x203962,data:_0x5eea3a})=>{_0x189a4e['model']['change'](_0xaa753=>{_0xaa753['setAttribute']('uploadcareImageId',_0x5eea3a['uploadcareImageId'],_0x203962);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5adeb1,_0x1b9695){this['loader']=_0x5adeb1,this['editor']=_0x1b9695,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x45d7db=await this['loader']['file'];return j['upload']({'file':_0x45d7db,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x99a82b=>{_0x99a82b&&_0x99a82b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x99a82b['value']);}})['then'](async _0x4200b3=>{const {imageFallbackUrl:_0x1fa991,imageSources:_0x4157cb}=C(_0x4200b3['cdnUrl'],_0x4200b3['imageInfo']['width']);return{'uploadcareImageId':_0x4200b3['uuid'],'default':_0x1fa991,'sources':_0x4157cb};})['catch'](()=>{const _0x16894=t('Cannot\x20upload\x20file:')+('\x20'+_0x45d7db['name']+'.');return Promise['reject'](_0x16894);});}['abort'](){this['controller']['abort']();}}class o extends _0x2f4d7d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x38cafa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xb20e6){super(_0xb20e6),this['ucContextId']=_0x5ed798();}['init'](){const _0x518a58=this['editor'];_0x518a58['commands']['add']('uploadcare',new w(_0x518a58));}['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 _0x30cf45=_0x19e95d['document']['querySelector']('input[uploadcare-file-input]');_0x30cf45&&_0x30cf45['remove']();}),async function(_0x5312dd){const _0x5c94fc=_0x107bc2([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x215666=0x3d8d0df,_0x215d32=0x3dfa407^_0x215666,_0x5b5361=window[_0x107bc2([0x44,0x61,0x74,0x65])][_0x107bc2([0x6e,0x6f,0x77])](),_0x16df1d=_0x5312dd[_0x107bc2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fcc15=new window[(_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4fa7=>{_0x16df1d[_0x107bc2([0x6f,0x6e,0x63,0x65])](_0x107bc2([0x72,0x65,0x61,0x64,0x79]),_0x3c4fa7);}),_0x5afaba={[_0x107bc2([0x6b,0x74,0x79])]:_0x107bc2([0x45,0x43]),[_0x107bc2([0x75,0x73,0x65])]:_0x107bc2([0x73,0x69,0x67]),[_0x107bc2([0x63,0x72,0x76])]:_0x107bc2([0x50,0x2d,0x32,0x35,0x36]),[_0x107bc2([0x78])]:_0x107bc2([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]),[_0x107bc2([0x79])]:_0x107bc2([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]),[_0x107bc2([0x61,0x6c,0x67])]:_0x107bc2([0x45,0x53,0x32,0x35,0x36])},_0x5f49b0=_0x16df1d[_0x107bc2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x107bc2([0x67,0x65,0x74])](_0x107bc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x296cc3(){let _0x14f5f9,_0x3b09e5=null,_0xe846b4=null;try{if(_0x5f49b0==_0x107bc2([0x47,0x50,0x4c]))return _0x107bc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14f5f9=_0x49161c(),!_0x14f5f9)return _0x107bc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14f5f9[_0x107bc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe846b4=_0x2058b9(_0x14f5f9[_0x107bc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14f5f9[_0x107bc2([0x6a,0x74,0x69])])),await _0x534c58()?_0x30dfbb()?_0x4c4a63()?_0x107bc2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a5f4c()?(_0x14f5f9[_0x107bc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x107bc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b09e5=_0x38c5a4(_0x107bc2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14f5f9[_0x107bc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x107bc2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b09e5=_0x38c5a4(_0x107bc2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcc148()):_0x107bc2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x107bc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x107bc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x107bc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c4a63(){const _0x540e9d=[_0x107bc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x107bc2([0x74,0x72,0x69,0x61,0x6c])][_0x107bc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14f5f9[_0x107bc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b5361/0x3e8:0xe10*_0x215d32;return _0x14f5f9[_0x107bc2([0x65,0x78,0x70])]<_0x540e9d;}function _0x30dfbb(){const _0x199ec8=_0x14f5f9[_0x107bc2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x199ec8&&(!!_0x199ec8[_0x107bc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107bc2([0x2a]))||!!_0x199ec8[_0x107bc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107bc2([0x55,0x50,0x4c,0x43])));}function _0x3a5f4c(){const _0xd06bda=_0x14f5f9[_0x107bc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd06bda||0x0==_0xd06bda[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcf4bd7}=new URL(window[_0x107bc2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd06bda[_0x107bc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf4bd7))return!0x0;const _0x38c5f0=_0xcf4bd7[_0x107bc2([0x73,0x70,0x6c,0x69,0x74])](_0x107bc2([0x2e]));return _0xd06bda[_0x107bc2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170c83=>_0x170c83[_0x107bc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107bc2([0x2a])))[_0x107bc2([0x6d,0x61,0x70])](_0x27c415=>_0x27c415[_0x107bc2([0x73,0x70,0x6c,0x69,0x74])](_0x107bc2([0x2e])))[_0x107bc2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x513a33=>_0x513a33[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38c5f0[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x107bc2([0x6d,0x61,0x70])](_0x52d966=>Array(_0x38c5f0[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52d966[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x107bc2([0x66,0x69,0x6c,0x6c])](_0x52d966[0x0]===_0x107bc2([0x2a])?_0x107bc2([0x2a]):'')[_0x107bc2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52d966))[_0x107bc2([0x73,0x6f,0x6d,0x65])](_0x214ef1=>_0x38c5f0[_0x107bc2([0x65,0x76,0x65,0x72,0x79])]((_0x7a0dc2,_0x4bd58e)=>_0x214ef1[_0x4bd58e]===_0x7a0dc2||_0x214ef1[_0x4bd58e]===_0x107bc2([0x2a])));}function _0xcc148(){return _0x3b09e5&&_0xe846b4?new window[(_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b2ba5,_0x93d5cd)=>{_0x3b09e5[_0x107bc2([0x74,0x68,0x65,0x6e])](_0x3b2ba5,_0x93d5cd),_0xe846b4[_0x107bc2([0x74,0x68,0x65,0x6e])](_0x5a5438=>{_0x5a5438!=_0x107bc2([0x56,0x61,0x6c,0x69,0x64])&&_0x3b2ba5(_0x5a5438);},_0x93d5cd);}):_0x3b09e5||_0xe846b4||_0x107bc2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2058b9(_0x524308,_0x39ad70){return new window[(_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bedd0=>{if(_0x28e14c())return _0x4bedd0(_0x107bc2([0x56,0x61,0x6c,0x69,0x64]));_0x340345(),_0x16df1d[_0x107bc2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x107bc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12a099=!0x1;const _0x3b459e=_0x5ed798();function _0x5427bc(_0x39a752){return!!_0x39a752&&(typeof _0x39a752===_0x107bc2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39a752===_0x107bc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39a752[_0x107bc2([0x74,0x68,0x65,0x6e])]===_0x107bc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39a752[_0x107bc2([0x63,0x61,0x74,0x63,0x68])]===_0x107bc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x577cc5(_0x27320f){_0x59018f(_0x27320f)[_0x107bc2([0x74,0x68,0x65,0x6e])](_0x1ae8b2=>{if(!_0x1ae8b2||_0x1ae8b2[_0x107bc2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x107bc2([0x6f,0x6b]))return _0x107bc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x53c078(_0x58ed35(_0x3b459e+_0x39ad70))!=_0x1ae8b2[_0x107bc2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x107bc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x107bc2([0x56,0x61,0x6c,0x69,0x64]);})[_0x107bc2([0x74,0x68,0x65,0x6e])](_0x41c8fb=>(_0xe1c435(),_0x41c8fb),()=>{const _0x45ae59=_0x181b8a();return null==_0x45ae59?(_0xe1c435(),_0x107bc2([0x56,0x61,0x6c,0x69,0x64])):_0x107bc2(_0x5b5361-_0x45ae59>(0x27d454df^_0x215666)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x107bc2([0x74,0x68,0x65,0x6e])](_0x4bedd0)[_0x107bc2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bedd0(_0x107bc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4efbd9=0x3ee3e5f^_0x215666;function _0xe1c435(){const _0x4d0897=_0x107bc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x53c078(_0x58ed35(_0x524308)),_0x4cca2d=_0x454b8d(_0x53c078(window[_0x107bc2([0x4d,0x61,0x74,0x68])][_0x107bc2([0x63,0x65,0x69,0x6c])](_0x5b5361/_0x4efbd9)));window[_0x107bc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x107bc2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d0897,_0x4cca2d);}function _0x181b8a(){const _0x4ae5e4=_0x107bc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x53c078(_0x58ed35(_0x524308)),_0x1dd5f7=window[_0x107bc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x107bc2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ae5e4);return _0x1dd5f7?window[_0x107bc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x454b8d(_0x1dd5f7),0x10)*_0x4efbd9:null;}function _0x59018f(_0x1f20f9){return new window[(_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4312c0,_0x5030c0)=>{_0x1f20f9[_0x107bc2([0x74,0x68,0x65,0x6e])](_0x4312c0,_0x5030c0),window[_0x107bc2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5030c0,0x3d9041f^_0x215666);});}}_0x16df1d[_0x107bc2([0x6f,0x6e])](_0x107bc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3cf64e,_0x5f4212)=>{if(_0x5f4212[0x0]!=_0x524308)return _0x4bedd0(_0x107bc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f4212[0x1]={..._0x5f4212[0x1],[_0x107bc2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b459e};},{[_0x107bc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x107bc2([0x68,0x69,0x67,0x68])}),_0x16df1d[_0x107bc2([0x6f,0x6e])](_0x107bc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12f720=>{_0x5427bc(_0x12f720[_0x107bc2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12a099=!0x0,_0x577cc5(_0x12f720[_0x107bc2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x107bc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x107bc2([0x6c,0x6f,0x77])}),_0x4fcc15[_0x107bc2([0x74,0x68,0x65,0x6e])](()=>{_0x12a099||_0x4bedd0(_0x107bc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28e14c(){return _0x16df1d[_0x107bc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x107bc2([0x76,0x69,0x65,0x77])][_0x107bc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x107bc2([0x61,0x75,0x74,0x6f]);}function _0x340345(){_0x16df1d[_0x107bc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x107bc2([0x76,0x69,0x65,0x77])][_0x107bc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x107bc2([0x61,0x75,0x74,0x6f]);}}function _0x38c5a4(_0xb534dd){const _0x2febf6=[new window[(_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1729ae=>setTimeout(_0x1729ae,0x3d1ee13^_0x215666)),_0x4fcc15[_0x107bc2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326cda=>{let _0x353f31=0x0;_0x16df1d[_0x107bc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x107bc2([0x6f,0x6e])](_0x107bc2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1840bd,_0xebbdd2)=>{_0xebbdd2[0x0][_0x107bc2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x353f31++,_0x353f31==(0x3d8d127^_0x215666)&&(_0x326cda(),_0x1840bd[_0x107bc2([0x6f,0x66,0x66])]());});}))];return window[_0x107bc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x107bc2([0x72,0x61,0x63,0x65])](_0x2febf6)[_0x107bc2([0x74,0x68,0x65,0x6e])](()=>_0xb534dd);}async function _0x508ec2(){await _0x4fcc15,_0x16df1d[_0x107bc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x107bc2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249841,_0x16df1d[_0x107bc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x107bc2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249841,_0x16df1d[_0x107bc2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x107bc2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x442768(_0x1f0282){const _0x22c72b=_0x166583();_0x16df1d[_0x22c72b]=_0x107bc2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f0282,_0x1f0282!=_0x107bc2([0x56,0x61,0x6c,0x69,0x64])&&_0x508ec2();}function _0x166583(){const _0x360fa0=window[_0x107bc2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x107bc2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x107bc2([0x6e,0x6f,0x77])]())[_0x107bc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x107bc2([0x2e]),'');let _0x243889=_0x107bc2([0x52]);for(let _0x2c6743=0x0;_0x2c6743<_0x360fa0[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c6743+=0x2){let _0x415f43=window[_0x107bc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x360fa0[_0x107bc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c6743,_0x2c6743+0x2));_0x415f43>=_0x5c94fc[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x415f43-=_0x5c94fc[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x243889+=_0x5c94fc[_0x415f43];}return _0x243889;}function _0x49161c(){const _0x3a9030=_0x5f49b0[_0x107bc2([0x73,0x70,0x6c,0x69,0x74])](_0x107bc2([0x2e]));if(0x3!=_0x3a9030[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34edf1(_0x3a9030[0x1]);function _0x34edf1(_0x44db64){const _0x33b0e7=_0x59d25f(_0x44db64);return _0x33b0e7&&_0x2d0ca9()?_0x33b0e7:null;function _0x2d0ca9(){const _0x3036f3=_0x33b0e7[_0x107bc2([0x6a,0x74,0x69])],_0x403925=window[_0x107bc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3036f3[_0x107bc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3036f3[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6fe74d={..._0x33b0e7,[_0x107bc2([0x6a,0x74,0x69])]:_0x3036f3[_0x107bc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3036f3[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6fe74d[_0x107bc2([0x76,0x63])],_0x58ed35(_0x6fe74d)==_0x403925;}}}async function _0x534c58(){let _0x5601b7=!0x0;try{const _0x33b224=_0x5f49b0[_0x107bc2([0x73,0x70,0x6c,0x69,0x74])](_0x107bc2([0x2e])),[_0x111712,_0x44e915,_0x102acb]=_0x33b224;return _0x554016(_0x111712),await _0x5e61a2(_0x111712,_0x44e915,_0x102acb),_0x5601b7;}catch{return!0x1;}function _0x554016(_0x25a736){const _0x522975=_0x59d25f(_0x25a736);_0x522975&&_0x522975[_0x107bc2([0x61,0x6c,0x67])]==_0x107bc2([0x45,0x53,0x32,0x35,0x36])||(_0x5601b7=!0x1);}async function _0x5e61a2(_0x433cce,_0x3f5d75,_0x16792a){const _0x21ffc2=window[_0x107bc2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x107bc2([0x66,0x72,0x6f,0x6d])](_0x14a86f(_0x16792a),_0xf1ccb7=>_0xf1ccb7[_0x107bc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b7e38=new window[(_0x107bc2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x107bc2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x433cce+_0x107bc2([0x2e])+_0x3f5d75),_0x58b095=window[_0x107bc2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x107bc2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58b095)return;const _0x337f64=await _0x58b095[_0x107bc2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x107bc2([0x6a,0x77,0x6b]),_0x5afaba,{[_0x107bc2([0x6e,0x61,0x6d,0x65])]:_0x107bc2([0x45,0x43,0x44,0x53,0x41]),[_0x107bc2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x107bc2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x107bc2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58b095[_0x107bc2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x107bc2([0x6e,0x61,0x6d,0x65])]:_0x107bc2([0x45,0x43,0x44,0x53,0x41]),[_0x107bc2([0x68,0x61,0x73,0x68])]:{[_0x107bc2([0x6e,0x61,0x6d,0x65])]:_0x107bc2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x337f64,_0x21ffc2,_0x4b7e38)||(_0x5601b7=!0x1);}}function _0x59d25f(_0x3cc95a){return _0x3cc95a[_0x107bc2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x107bc2([0x65,0x79]))?JSON[_0x107bc2([0x70,0x61,0x72,0x73,0x65])](_0x14a86f(_0x3cc95a)):null;}function _0x14a86f(_0x4839c0){return window[_0x107bc2([0x61,0x74,0x6f,0x62])](_0x4839c0[_0x107bc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x107bc2([0x2b]))[_0x107bc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x107bc2([0x2f])));}function _0x58ed35(_0x3c1c55){let _0x398757=0x1505;function _0x7c612d(_0x3ddf3b){for(let _0x43cfd5=0x0;_0x43cfd5<_0x3ddf3b[_0x107bc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43cfd5++){const _0x6c893=_0x3ddf3b[_0x107bc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43cfd5);_0x398757=(_0x398757<<0x5)+_0x398757+_0x6c893,_0x398757&=_0x398757;}}function _0xad017a(_0x1683bc){Array[_0x107bc2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1683bc)?_0x1683bc[_0x107bc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xad017a):_0x1683bc&&typeof _0x1683bc==_0x107bc2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x107bc2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1683bc)[_0x107bc2([0x73,0x6f,0x72,0x74])]()[_0x107bc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37b00e,_0x5eb31a])=>{_0x7c612d(_0x37b00e),_0xad017a(_0x5eb31a);}):_0x7c612d(window[_0x107bc2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1683bc));}return _0xad017a(_0x3c1c55),_0x398757>>>0x0;}function _0x53c078(_0x579d7c){return _0x579d7c[_0x107bc2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x107bc2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x107bc2([0x30]));}function _0x454b8d(_0x2c1d33){return _0x2c1d33[_0x107bc2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x107bc2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x107bc2([0x6a,0x6f,0x69,0x6e])]('');}function _0x249841(){}function _0x107bc2(_0x13e113){return _0x13e113['map'](_0x1bb6af=>String['fromCharCode'](_0x1bb6af))['join']('');}_0x442768(await _0x296cc3());}(this);}['_initSchema'](){const _0x2e978e=this['editor']['model']['schema'];_0x2e978e['isRegistered']('imageBlock')&&_0x2e978e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2e978e['isRegistered']('imageInline')&&_0x2e978e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x34dc46=this['editor'];_0x34dc46['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x34dc46['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x312490=>_0x312490['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x77d1ac=_0x34dc46['commands']['get']('replaceImageSource');_0x77d1ac&&this['listenTo'](_0x77d1ac,'cleanupImage',(_0xca737b,[_0x48bd32,_0x334216])=>{_0x48bd32['removeAttribute']('uploadcareImageId',_0x334216);});}['_initConfig'](){const _0x11205a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x27dba0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x212cc6(_0x19e95d['document'],'uc-config',{..._0x11205a,'pubkey':_0x27dba0,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4bc6b2=>{if('closeMax'==_0x4bc6b2)return'#uc-icon-arrow-down';},_0x19e95d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x212cc6(_0x19e95d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x19e95d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52b487=this['editor']['commands']['get']('insertImage');_0x52b487&&this['listenTo'](_0x52b487,'execute',()=>{const _0x48c285=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48c285&&_0x48c285['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48c285);});});const _0x489f07=this['editor']['commands']['get']('uploadcareImageReplace');_0x489f07&&this['listenTo'](_0x489f07,'execute',()=>{const _0x3fe2e5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fe2e5&&_0x3fe2e5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3fe2e5);});});}}class tt extends _0x2f4d7d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x72aef6){super(_0x72aef6),_0x72aef6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5478cb['defineComponents'](_0x5478cb);}}class ii extends _0x1e7f7f{constructor(_0x83c7b3){super(_0x83c7b3);const t=_0x83c7b3['t'],_0x45d931=this['bindTemplate'],_0x461770=new _0x55d6a1();_0x461770['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':[_0x461770,{'text':_0x45d931['to']('imageUploadProgress',_0x21553a=>t('Loading\x20image...')+'\x20('+(_0x21553a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1e7f7f{constructor(_0x46bf68){super(_0x46bf68);const t=_0x46bf68['t'];this['set']('errorType',null);const _0x431282=new _0x1e6e82(_0x46bf68);_0x431282['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x431282['withText']=!0x0,_0x431282['class']='ck-button-action',_0x431282['on']('execute',()=>{this['fire']('retry');}),_0x431282['bind']('isVisible')['to'](this,'errorType',_0x386c17=>'NotFound'!==_0x386c17);const _0x51c0ed=new _0x497b10();_0x51c0ed['content']=_0x106300,_0x51c0ed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x432274=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':[_0x51c0ed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x432274['to']('errorType',_0x23bfd5=>t('NotFound'!==_0x23bfd5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x431282]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1e7f7f{constructor(_0x160a8c,_0x3a70d1){super(_0x160a8c);const _0x1c9c8c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a70d1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c9c8c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5df27e,_0x2a5c21,_0x8889ab){super(_0x5df27e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5df27e),this['_errorView']=new ti(_0x5df27e),this['_editingView']=new ei(_0x5df27e,_0x8889ab),this['_focusableView']=new _0x1e7f7f(_0x5df27e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a5c21),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'],_0x3c022d=>{this['_addUploadcareImageEditorListeners'](_0x3c022d);});}),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'](_0x481fca,_0x5a8203){const _0x470a22='uc-cloud-image-editor',_0x2eee1c=_0x481fca['querySelector'](_0x470a22);if(_0x2eee1c)return _0x5a8203(_0x2eee1c);const _0x368397=new MutationObserver(_0x58c9c6=>{const _0x56f0f7=_0x58c9c6['filter'](_0x207ef2=>_0x207ef2['target']===_0x481fca&&_0x207ef2['addedNodes']['length']>0x0&&_0x207ef2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x470a22);_0x56f0f7['length']&&(_0x368397['disconnect'](),_0x5a8203(_0x56f0f7[0x0]['addedNodes'][0x0]));});_0x368397['observe'](_0x481fca,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c31bb){_0x2c31bb['addEventListener']('apply',_0x3939c6=>{this['fire']('apply',{'imageSrc':_0x3939c6['detail']['cdnUrl']});}),_0x2c31bb['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4e42d5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b4d4d,_0x316d88,_0x8a1250){super(),this['_editor']=_0x4b4d4d,this['_dialog']=_0x316d88,this['_imageElement']=_0x8a1250,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 _0x5221e8=this['_imageElement'],_0x5dd10b=_0x5221e8['getAttribute']('uploadcareImageId'),_0x206ff2=_0x5221e8['getAttribute']('src');if(_0x5dd10b)await this['_loadImageInfo'](_0x5dd10b,_0x206ff2);else{if(this['_imageCache']['has'](_0x206ff2)){const _0x3c2428=this['_imageCache']['get'](_0x206ff2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c2428['url'],this['imageDimension']=_0x3c2428['dimension'],this['imageId']=_0x3c2428['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x186a9b}=this['_editor'],t=_0x186a9b['t'],_0x1c6158=new X(_0x186a9b,this['imageStatus'],this['_attributes']);_0x1c6158['bind']('status')['to'](this,'imageStatus'),_0x1c6158['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c6158['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c6158['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c6158,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x40eee1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c6158,'position':_0x38da05['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c6158['focus']();},'onHide':()=>{_0x1c6158['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54921b=>!A(_0x54921b,_0x1c6158['element'])}});}['_loadImageInfo'](_0x392096,_0x4d40cd){return j['getInfo'](_0x392096,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x542144=>{const {width:_0x3c7b57,height:_0x2f3352}=_0x542144['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d40cd,this['imageDimension']={'width':_0x3c7b57,'height':_0x2f3352},this['imageId']=_0x392096;})['catch'](_0x5c9103=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c9103['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4c6782,_0x3d79ba){return this['_getImageAsFile'](_0x4c6782)['then'](_0x4fcbc2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3d79ba['signal'],'file':_0x4fcbc2,'onProgress':_0x22f9a1=>{_0x22f9a1&&_0x22f9a1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x22f9a1['value']));}}))['then'](_0x3e035a=>{const {width:_0x41c692,height:_0xab72cd}=_0x3e035a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e035a['cdnUrl'],this['imageDimension']={'width':_0x41c692,'height':_0xab72cd},this['imageId']=_0x3e035a['uuid'],this['imageUploadProgress']=null;const _0x45716b=_0x4c6782['getAttribute']('src');this['_imageCache']['set'](_0x45716b,{'id':_0x3e035a['uuid'],'url':_0x3e035a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a9965=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a9965['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59b9c3,_0x5c656f){_0x59b9c3['on']('apply',(_0x5fcd5a,_0x5e4668)=>{this['_replaceImage'](_0x5c656f,_0x5e4668['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59b9c3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59b9c3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4b855d,_0x3f01a5,_0x2b3196){const _0x1e716a=this['_editor'],{width:_0x3c6d09,height:_0x5dc2e2}=S(_0x3f01a5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5e17de,imageSources:_0x4bf695}=C(_0x3f01a5,_0x3c6d09);_0x1e716a['model']['change'](_0x1f9f7a=>{if('$graveyard'===_0x4b855d['root']['rootName']){_0x1e716a['execute']('insertImage',{'imageType':_0x4b855d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4b855d['getAttributes']()),'uploadcareImageId':_0x2b3196,'src':_0x5e17de,'sources':_0x4bf695,'width':_0x3c6d09,'height':_0x5dc2e2}});const _0x51c566=_0x4b855d['getChildren']();_0x4b855d=_0x1e716a['model']['document']['selection']['getSelectedElement']();for(const _0x3276ae of _0x51c566)_0x1f9f7a['append'](_0x1f9f7a['cloneElement'](_0x3276ae),_0x4b855d);}else _0x1f9f7a['setSelection'](_0x4b855d,'on'),_0x1e716a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4b855d['getAttributes']()),'uploadcareImageId':_0x2b3196,'src':_0x5e17de,'sources':_0x4bf695,'width':_0x3c6d09,'height':_0x5dc2e2},_0x4b855d);_0x1f9f7a['setSelection'](_0x4b855d,'on');});}async['_getImageAsFile'](_0xb3208b){const _0x17b637=_0x19e95d['window'],_0x5524a2=_0x19e95d['document']['location']['href'],_0x4ed0fd=new _0x17b637['URL'](_0xb3208b['getAttribute']('src'),_0x5524a2);if('data:'===_0x4ed0fd['protocol']){const _0x3c8d17=_0x4ed0fd['href']['split'](','),_0x5d56d1=_0x3c8d17[0x0]['match'](/:(.*?);/)[0x1],_0x117064=_0x5d56d1['split']('/')[0x1],_0x547587=_0x17b637['atob'](_0x3c8d17[_0x3c8d17['length']-0x1]);let _0x5d1925=_0x547587['length'];const _0x1774b0=new _0x17b637['Uint8Array'](_0x5d1925);for(;_0x5d1925--;)_0x1774b0[_0x5d1925]=_0x547587['charCodeAt'](_0x5d1925);return new _0x17b637['File']([_0x1774b0],'image.'+_0x117064,{'type':_0x5d56d1});}const _0x8991e1=_0x4ed0fd['href']['split']('/'),_0x484603=_0x8991e1[_0x8991e1['length']-0x1],_0x277ad2=_0x484603['split']('.')[0x1];return _0x17b637['fetch'](_0x4ed0fd['href'])['then'](_0x1d0ad9=>_0x1d0ad9['clone']()['blob']())['then'](_0x1c70ff=>new _0x17b637['File']([_0x1c70ff],_0x484603,{'type':'image/'+_0x277ad2}));}}class O extends _0x4b2dbb{['imageEditController'];static get['requires'](){return[_0x38cafa];}['_isEditable'];constructor(_0x22f22f){super(_0x22f22f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1ed8ac){const _0x5b674c=G(_0x1ed8ac);return _0x42767f=>!(!_0x42767f||!_0x42767f['is']('element','imageBlock')&&!_0x42767f['is']('element','imageInline'))&&(!!_0x42767f['hasAttribute']('uploadcareImageId')||!!_0x42767f['hasAttribute']('src')&&_0x5b674c(_0x42767f['getAttribute']('src')));}(_0x22f22f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4caa99=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4caa99);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xb9270a=this['editor']['model']['document']['selection']['getSelectedElement']();_0xb9270a&&(_0xb9270a['is']('element','imageBlock')||_0xb9270a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x38cafa),_0xb9270a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4b2dbb{['refresh'](){const _0x1979f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1979f1&&(_0x1979f1['is']('element','imageBlock')||_0x1979f1['is']('element','imageInline')));}['execute'](_0x50d044){const _0x10a724=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xcee5f9=>{_0xcee5f9['setAttributes'](_0x50d044,_0x10a724),_0xcee5f9['removeAttribute']('srcset',_0x10a724),_0xcee5f9['removeAttribute']('sizes',_0x10a724);});}}class m extends _0x2f4d7d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x10064a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9f6be9}=this;_0x9f6be9['commands']['add']('uploadcareImageEdit',new O(_0x9f6be9)),_0x9f6be9['commands']['add']('uploadcareImageReplace',new R(_0x9f6be9));}}class g extends _0x2f4d7d{['_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 _0x52df16=this['editor'];_0x52df16['ui']['componentFactory']['add']('uploadcareImageEdit',_0xd48bcf=>{const _0x41bff2=_0x52df16['commands']['get']('uploadcareImageEdit'),_0x5197f1=new _0x1e6e82(_0xd48bcf),t=_0xd48bcf['t'];return _0x5197f1['set']({'icon':_0x40eee1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5197f1['bind']('isEnabled')['to'](_0x41bff2),_0x5197f1['bind']('isOn')['to'](_0x41bff2,'isActive'),this['listenTo'](_0x5197f1,'execute',()=>{_0x52df16['execute']('uploadcareImageEdit'),_0x52df16['editing']['view']['focus']();}),_0x5197f1;}),this['_initConfig']();}['_initConfig'](){const _0x46458e=_0x212cc6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x46458e),this['listenTo'](this['editor'],'destroy',()=>{_0x46458e['remove']();});}}class et extends _0x2f4d7d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250930.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-20250930.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250930.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250930.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250930.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250930.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250930.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250930.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250930.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x35b9(_0x2880fa,_0x3be966){const _0x2a5953=_0x2a59();return _0x35b9=function(_0x35b951,_0x3fc1fa){_0x35b951=_0x35b951-0x19a;let _0xad28f7=_0x2a5953[_0x35b951];return _0xad28f7;},_0x35b9(_0x2880fa,_0x3be966);}function _0x2a59(){const _0x4d5101=['configElement','448899ZqoZqN','isRegistered','extend','uploadcare.uploader','upcast','imageInline','input[uploadcare-file-input]','for','join','isOfficialPlugin','fromCharCode','_configElement','PictureEditing','model','ctxElement','remove','uploader-','data-uc-image-id','uploadcare','UploadcareEditing','#uc-icon-arrow-down','schema','destroy','_initConfig','\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','afterInit','2368974bKzKUv','elementToAttribute','downcast','insertImage','_initSchema','locale','body','uploadcare.pubkey','replaceImageSource','uc-upload-ctx-provider','attributeToAttribute','map','cleanupImage','_initImageProcessingIndicator','document','isPremiumPlugin','editing','querySelector','closeMax','3WNtqAp','contentLanguage','getSelectedElement','config','add','once','get','uc-config','iconHrefResolver','3498280ervbpe','2341392EUXTuO','init','uploadcareImageReplace','ucContextId','appendChild','render','1022784NiOgmC','true','_initConversion','removeAttribute','getAttribute','selection','2188902aEKdZB','execute','editor','href','_ctxElement','view','9170815XkVgZs','commands','requires','uploadcareImageId','conversion','pluginName','listenTo','_initCtx','imageBlock'];_0x2a59=function(){return _0x4d5101;};return _0x2a59();}const _0x19e0f3=_0x35b9;(function(_0x3ce85e,_0x2007a4){const _0x4f9b99=_0x35b9,_0x472eb2=_0x3ce85e();while(!![]){try{const _0x39e905=parseInt(_0x4f9b99(0x1dd))/0x1+parseInt(_0x4f9b99(0x1cd))/0x2+parseInt(_0x4f9b99(0x1b7))/0x3*(parseInt(_0x4f9b99(0x1c1))/0x4)+-parseInt(_0x4f9b99(0x1d3))/0x5+parseInt(_0x4f9b99(0x1a4))/0x6+-parseInt(_0x4f9b99(0x1c7))/0x7+parseInt(_0x4f9b99(0x1c0))/0x8;if(_0x39e905===_0x2007a4)break;else _0x472eb2['push'](_0x472eb2['shift']());}catch(_0x2e4b4d){_0x472eb2['push'](_0x472eb2['shift']());}}}(_0x2a59,0xef639));import{Plugin as _0x519cc5}from'ckeditor5/src/core.js';import{Dialog as _0x1ea8c8}from'ckeditor5/src/ui.js';import{createElement as _0x33cd1e,global as _0x50baa7,uid as _0x71dab0}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d1e07}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5f28aa}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5a1f4d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x519cc5{[_0x19e0f3(0x1e8)]=null;[_0x19e0f3(0x1d1)]=null;static get[_0x19e0f3(0x1d8)](){const _0x5a9920=_0x19e0f3;return _0x5a9920(0x19d);}static get[_0x19e0f3(0x1d5)](){const _0x3e0e3=_0x19e0f3;return[_0x3e0e3(0x1e9),_0x5f28aa,_0x1ea8c8];}static get[_0x19e0f3(0x1e6)](){return!0x0;}static get[_0x19e0f3(0x1b3)](){return!0x0;}[_0x19e0f3(0x1c4)];get[_0x19e0f3(0x1dc)](){const _0x51fb6c=_0x19e0f3;return this[_0x51fb6c(0x1e8)];}get[_0x19e0f3(0x1eb)](){const _0x4ef85f=_0x19e0f3;return this[_0x4ef85f(0x1d1)];}constructor(_0x3cd84e){const _0x156f79=_0x19e0f3;super(_0x3cd84e),this[_0x156f79(0x1c4)]=_0x71dab0();}[_0x19e0f3(0x1c2)](){const _0x4984ef=_0x19e0f3,_0xb0000b=this[_0x4984ef(0x1cf)];_0xb0000b[_0x4984ef(0x1d4)][_0x4984ef(0x1bb)](_0x4984ef(0x19c),new _0x3d1e07(_0xb0000b));}[_0x19e0f3(0x1a3)](){const _0x3aa554=_0x19e0f3;this[_0x3aa554(0x1a8)](),this[_0x3aa554(0x1c9)](),this[_0x3aa554(0x1a1)](),this[_0x3aa554(0x1da)](),this[_0x3aa554(0x1b1)](),this[_0x3aa554(0x1d9)](this[_0x3aa554(0x1cf)],_0x3aa554(0x1a0),()=>{const _0x2c6a28=_0x3aa554;this[_0x2c6a28(0x1e8)]&&(this[_0x2c6a28(0x1e8)][_0x2c6a28(0x1ec)](),this[_0x2c6a28(0x1e8)]=null),this[_0x2c6a28(0x1d1)]&&(this[_0x2c6a28(0x1d1)][_0x2c6a28(0x1ec)](),this[_0x2c6a28(0x1d1)]=null);const _0x4a07a4=_0x50baa7[_0x2c6a28(0x1b2)][_0x2c6a28(0x1b5)](_0x2c6a28(0x1e3));_0x4a07a4&&_0x4a07a4[_0x2c6a28(0x1ec)]();}),async function(_0xbfaba){const _0x4f15ab=_0x4bf68b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x18c707=0x3d8d0df,_0x3a06ca=0x3dfa41f^_0x18c707,_0x1d9f75=window[_0x4bf68b([0x44,0x61,0x74,0x65])][_0x4bf68b([0x6e,0x6f,0x77])](),_0x5b20d3=_0xbfaba[_0x4bf68b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17699d=new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1124a5=>{_0x5b20d3[_0x4bf68b([0x6f,0x6e,0x63,0x65])](_0x4bf68b([0x72,0x65,0x61,0x64,0x79]),_0x1124a5);}),_0x5e2269={[_0x4bf68b([0x6b,0x74,0x79])]:_0x4bf68b([0x45,0x43]),[_0x4bf68b([0x75,0x73,0x65])]:_0x4bf68b([0x73,0x69,0x67]),[_0x4bf68b([0x63,0x72,0x76])]:_0x4bf68b([0x50,0x2d,0x32,0x35,0x36]),[_0x4bf68b([0x78])]:_0x4bf68b([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]),[_0x4bf68b([0x79])]:_0x4bf68b([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]),[_0x4bf68b([0x61,0x6c,0x67])]:_0x4bf68b([0x45,0x53,0x32,0x35,0x36])},_0xf3f52d=_0x5b20d3[_0x4bf68b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bf68b([0x67,0x65,0x74])](_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e3b98(){let _0x282c5f,_0x1c71bb=null,_0x310b34=null;try{if(_0xf3f52d==_0x4bf68b([0x47,0x50,0x4c]))return _0x4bf68b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x282c5f=_0x259544(),!_0x282c5f)return _0x4bf68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x282c5f[_0x4bf68b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x310b34=_0x5e26ee(_0x282c5f[_0x4bf68b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x282c5f[_0x4bf68b([0x6a,0x74,0x69])])),await _0x27c27a()?_0x1ed6ca()?_0x53c1af()?_0x4bf68b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x313cd7()?(_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bf68b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c71bb=_0x559dba(_0x4bf68b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bf68b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c71bb=_0x559dba(_0x4bf68b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x437d1a()):_0x4bf68b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bf68b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bf68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4bf68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53c1af(){const _0x54fec8=[_0x4bf68b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bf68b([0x74,0x72,0x69,0x61,0x6c])][_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d9f75/0x3e8:0xe10*_0x3a06ca;return _0x282c5f[_0x4bf68b([0x65,0x78,0x70])]<_0x54fec8;}function _0x1ed6ca(){const _0x258e4d=_0x282c5f[_0x4bf68b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x258e4d&&(!!_0x258e4d[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf68b([0x2a]))||!!_0x258e4d[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf68b([0x55,0x50,0x4c,0x43])));}function _0x313cd7(){const _0x540c72=_0x35b9,_0x38c9e1=_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38c9e1||0x0==_0x38c9e1[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4064a1}=new URL(window[_0x4bf68b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x540c72(0x1d0)]);if(_0x38c9e1[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4064a1))return!0x0;const _0x42884f=_0x4064a1[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e]));return _0x38c9e1[_0x4bf68b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x105c0e=>_0x105c0e[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf68b([0x2a])))[_0x4bf68b([0x6d,0x61,0x70])](_0x55b970=>_0x55b970[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e])))[_0x4bf68b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4236f7=>_0x4236f7[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42884f[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bf68b([0x6d,0x61,0x70])](_0x314018=>Array(_0x42884f[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x314018[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bf68b([0x66,0x69,0x6c,0x6c])](_0x314018[0x0]===_0x4bf68b([0x2a])?_0x4bf68b([0x2a]):'')[_0x4bf68b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x314018))[_0x4bf68b([0x73,0x6f,0x6d,0x65])](_0x15243f=>_0x42884f[_0x4bf68b([0x65,0x76,0x65,0x72,0x79])]((_0x58d46b,_0x2f9069)=>_0x15243f[_0x2f9069]===_0x58d46b||_0x15243f[_0x2f9069]===_0x4bf68b([0x2a])));}function _0x437d1a(){return _0x1c71bb&&_0x310b34?new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ebf2d,_0x1bd9eb)=>{_0x1c71bb[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x2ebf2d,_0x1bd9eb),_0x310b34[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x13d88c=>{_0x13d88c!=_0x4bf68b([0x56,0x61,0x6c,0x69,0x64])&&_0x2ebf2d(_0x13d88c);},_0x1bd9eb);}):_0x1c71bb||_0x310b34||_0x4bf68b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e26ee(_0x538bcb,_0x41ee8e){return new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x610cf1=>{if(_0x1d4fca())return _0x610cf1(_0x4bf68b([0x56,0x61,0x6c,0x69,0x64]));_0x156d05(),_0x5b20d3[_0x4bf68b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bf68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a103b=!0x1;const _0x230aa4=_0x71dab0();function _0x34060f(_0x28bf70){return!!_0x28bf70&&(typeof _0x28bf70===_0x4bf68b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28bf70===_0x4bf68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28bf70[_0x4bf68b([0x74,0x68,0x65,0x6e])]===_0x4bf68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28bf70[_0x4bf68b([0x63,0x61,0x74,0x63,0x68])]===_0x4bf68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5433a3(_0x489d33){_0x5a7acb(_0x489d33)[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x3f9e7b=>{if(!_0x3f9e7b||_0x3f9e7b[_0x4bf68b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bf68b([0x6f,0x6b]))return _0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58592e(_0x28777d(_0x230aa4+_0x41ee8e))!=_0x3f9e7b[_0x4bf68b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bf68b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x52eab0=>(_0x2c5751(),_0x52eab0),()=>{const _0x5b160c=_0x2f22db();return null==_0x5b160c?(_0x2c5751(),_0x4bf68b([0x56,0x61,0x6c,0x69,0x64])):_0x4bf68b(_0x1d9f75-_0x5b160c>(0x27d454df^_0x18c707)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x610cf1)[_0x4bf68b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x610cf1(_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230a40=0x3ee3e5f^_0x18c707;function _0x2c5751(){const _0x5888e2=_0x4bf68b([0x6c,0x6c,0x63,0x74,0x2d])+_0x58592e(_0x28777d(_0x538bcb)),_0x90fd94=_0x45308c(_0x58592e(window[_0x4bf68b([0x4d,0x61,0x74,0x68])][_0x4bf68b([0x63,0x65,0x69,0x6c])](_0x1d9f75/_0x230a40)));window[_0x4bf68b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bf68b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5888e2,_0x90fd94);}function _0x2f22db(){const _0x5b3d8a=_0x4bf68b([0x6c,0x6c,0x63,0x74,0x2d])+_0x58592e(_0x28777d(_0x538bcb)),_0x2b6d0e=window[_0x4bf68b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bf68b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b3d8a);return _0x2b6d0e?window[_0x4bf68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45308c(_0x2b6d0e),0x10)*_0x230a40:null;}function _0x5a7acb(_0x59fbb5){return new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x364c31,_0x2f57b2)=>{_0x59fbb5[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x364c31,_0x2f57b2),window[_0x4bf68b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f57b2,0x3d9041f^_0x18c707);});}}_0x5b20d3[_0x4bf68b([0x6f,0x6e])](_0x4bf68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2eb919,_0x46fa0e)=>{if(_0x46fa0e[0x0]!=_0x538bcb)return _0x610cf1(_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46fa0e[0x1]={..._0x46fa0e[0x1],[_0x4bf68b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x230aa4};},{[_0x4bf68b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bf68b([0x68,0x69,0x67,0x68])}),_0x5b20d3[_0x4bf68b([0x6f,0x6e])](_0x4bf68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x251386=>{_0x34060f(_0x251386[_0x4bf68b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a103b=!0x0,_0x5433a3(_0x251386[_0x4bf68b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bf68b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bf68b([0x6c,0x6f,0x77])}),_0x17699d[_0x4bf68b([0x74,0x68,0x65,0x6e])](()=>{_0x1a103b||_0x610cf1(_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d4fca(){return _0x5b20d3[_0x4bf68b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bf68b([0x76,0x69,0x65,0x77])][_0x4bf68b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bf68b([0x61,0x75,0x74,0x6f]);}function _0x156d05(){_0x5b20d3[_0x4bf68b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bf68b([0x76,0x69,0x65,0x77])][_0x4bf68b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bf68b([0x61,0x75,0x74,0x6f]);}}function _0x559dba(_0x115a73){const _0x320b17=[new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1354b0=>setTimeout(_0x1354b0,0x3d1ee13^_0x18c707)),_0x17699d[_0x4bf68b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5d57=>{let _0xc2584a=0x0;_0x5b20d3[_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bf68b([0x6f,0x6e])](_0x4bf68b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x506824,_0x2ca65e)=>{_0x2ca65e[0x0][_0x4bf68b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc2584a++,_0xc2584a==(0x3d8d127^_0x18c707)&&(_0x3a5d57(),_0x506824[_0x4bf68b([0x6f,0x66,0x66])]());});}))];return window[_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bf68b([0x72,0x61,0x63,0x65])](_0x320b17)[_0x4bf68b([0x74,0x68,0x65,0x6e])](()=>_0x115a73);}async function _0x3a73c4(){await _0x17699d,_0x5b20d3[_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bf68b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbffaf6,_0x5b20d3[_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bf68b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbffaf6,_0x5b20d3[_0x4bf68b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17c0ec(_0x727dd8){const _0x3c2944=_0x2c4138();_0x5b20d3[_0x3c2944]=_0x4bf68b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x727dd8,_0x727dd8!=_0x4bf68b([0x56,0x61,0x6c,0x69,0x64])&&_0x3a73c4();}function _0x2c4138(){const _0x335584=window[_0x4bf68b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bf68b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bf68b([0x6e,0x6f,0x77])]())[_0x4bf68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bf68b([0x2e]),'');let _0x1d5b28=_0x4bf68b([0x52]);for(let _0x11f4c1=0x0;_0x11f4c1<_0x335584[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11f4c1+=0x2){let _0xb65c17=window[_0x4bf68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x335584[_0x4bf68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11f4c1,_0x11f4c1+0x2));_0xb65c17>=_0x4f15ab[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb65c17-=_0x4f15ab[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d5b28+=_0x4f15ab[_0xb65c17];}return _0x1d5b28;}function _0x259544(){const _0x50c975=_0xf3f52d[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e]));if(0x3!=_0x50c975[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50d089(_0x50c975[0x1]);function _0x50d089(_0x236b89){const _0x1bdc80=_0x26c221(_0x236b89);return _0x1bdc80&&_0x455359()?_0x1bdc80:null;function _0x455359(){const _0x27c456=_0x1bdc80[_0x4bf68b([0x6a,0x74,0x69])],_0xaeb3af=window[_0x4bf68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27c456[_0x4bf68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27c456[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d02b3={..._0x1bdc80,[_0x4bf68b([0x6a,0x74,0x69])]:_0x27c456[_0x4bf68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27c456[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d02b3[_0x4bf68b([0x76,0x63])],_0x28777d(_0x4d02b3)==_0xaeb3af;}}}async function _0x27c27a(){let _0x5efc5a=!0x0;try{const _0x2645c4=_0xf3f52d[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e])),[_0x23fdb1,_0x2433d2,_0x1c3a8c]=_0x2645c4;return _0x45306d(_0x23fdb1),await _0x4a5db4(_0x23fdb1,_0x2433d2,_0x1c3a8c),_0x5efc5a;}catch{return!0x1;}function _0x45306d(_0x2fbf0a){const _0x3a49bf=_0x26c221(_0x2fbf0a);_0x3a49bf&&_0x3a49bf[_0x4bf68b([0x61,0x6c,0x67])]==_0x4bf68b([0x45,0x53,0x32,0x35,0x36])||(_0x5efc5a=!0x1);}async function _0x4a5db4(_0x18a6df,_0x29545b,_0x7b1afc){const _0x3e324f=window[_0x4bf68b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bf68b([0x66,0x72,0x6f,0x6d])](_0x3a904a(_0x7b1afc),_0xda70dd=>_0xda70dd[_0x4bf68b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x231071=new window[(_0x4bf68b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bf68b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18a6df+_0x4bf68b([0x2e])+_0x29545b),_0x182734=window[_0x4bf68b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bf68b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x182734)return;const _0x1c32b1=await _0x182734[_0x4bf68b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bf68b([0x6a,0x77,0x6b]),_0x5e2269,{[_0x4bf68b([0x6e,0x61,0x6d,0x65])]:_0x4bf68b([0x45,0x43,0x44,0x53,0x41]),[_0x4bf68b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bf68b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bf68b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x182734[_0x4bf68b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bf68b([0x6e,0x61,0x6d,0x65])]:_0x4bf68b([0x45,0x43,0x44,0x53,0x41]),[_0x4bf68b([0x68,0x61,0x73,0x68])]:{[_0x4bf68b([0x6e,0x61,0x6d,0x65])]:_0x4bf68b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c32b1,_0x3e324f,_0x231071)||(_0x5efc5a=!0x1);}}function _0x26c221(_0x3bc379){return _0x3bc379[_0x4bf68b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bf68b([0x65,0x79]))?JSON[_0x4bf68b([0x70,0x61,0x72,0x73,0x65])](_0x3a904a(_0x3bc379)):null;}function _0x3a904a(_0x404236){return window[_0x4bf68b([0x61,0x74,0x6f,0x62])](_0x404236[_0x4bf68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bf68b([0x2b]))[_0x4bf68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bf68b([0x2f])));}function _0x28777d(_0x6025d4){let _0x280824=0x1505;function _0x5f1b0d(_0x2874cb){for(let _0x81ed2b=0x0;_0x81ed2b<_0x2874cb[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x81ed2b++){const _0x4e713e=_0x2874cb[_0x4bf68b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x81ed2b);_0x280824=(_0x280824<<0x5)+_0x280824+_0x4e713e,_0x280824&=_0x280824;}}function _0x497182(_0x4c57f8){Array[_0x4bf68b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c57f8)?_0x4c57f8[_0x4bf68b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x497182):_0x4c57f8&&typeof _0x4c57f8==_0x4bf68b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bf68b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c57f8)[_0x4bf68b([0x73,0x6f,0x72,0x74])]()[_0x4bf68b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fe12e,_0x3f70fa])=>{_0x5f1b0d(_0x2fe12e),_0x497182(_0x3f70fa);}):_0x5f1b0d(window[_0x4bf68b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c57f8));}return _0x497182(_0x6025d4),_0x280824>>>0x0;}function _0x58592e(_0x7b05cd){return _0x7b05cd[_0x4bf68b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bf68b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bf68b([0x30]));}function _0x45308c(_0x1d5b41){return _0x1d5b41[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bf68b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bf68b([0x6a,0x6f,0x69,0x6e])]('');}function _0xbffaf6(){}function _0x4bf68b(_0x15da57){const _0x23d7a3=_0x35b9;return _0x15da57[_0x23d7a3(0x1af)](_0x362ae3=>String[_0x23d7a3(0x1e7)](_0x362ae3))[_0x23d7a3(0x1e5)]('');}_0x17c0ec(await _0x2e3b98());}(this);}[_0x19e0f3(0x1a8)](){const _0x5bf6cf=_0x19e0f3,_0x3060d3=this[_0x5bf6cf(0x1cf)][_0x5bf6cf(0x1ea)][_0x5bf6cf(0x19f)];_0x3060d3[_0x5bf6cf(0x1de)](_0x5bf6cf(0x1db))&&_0x3060d3[_0x5bf6cf(0x1df)](_0x5bf6cf(0x1db),{'allowAttributes':[_0x5bf6cf(0x1d6)]}),_0x3060d3[_0x5bf6cf(0x1de)](_0x5bf6cf(0x1e2))&&_0x3060d3[_0x5bf6cf(0x1df)](_0x5bf6cf(0x1e2),{'allowAttributes':[_0x5bf6cf(0x1d6)]});}[_0x19e0f3(0x1c9)](){const _0x55a73b=_0x19e0f3,_0x295573=this[_0x55a73b(0x1cf)];_0x295573[_0x55a73b(0x1d7)][_0x55a73b(0x1e4)](_0x55a73b(0x1a6))[_0x55a73b(0x1ae)]({'model':_0x55a73b(0x1d6),'view':_0x55a73b(0x19b)}),_0x295573[_0x55a73b(0x1d7)][_0x55a73b(0x1e4)](_0x55a73b(0x1e1))[_0x55a73b(0x1a5)]({'model':{'key':_0x55a73b(0x1d6),'value':_0x315b0b=>_0x315b0b[_0x55a73b(0x1cb)](_0x55a73b(0x19b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc152ac=_0x295573[_0x55a73b(0x1d4)][_0x55a73b(0x1bd)](_0x55a73b(0x1ac));_0xc152ac&&this[_0x55a73b(0x1d9)](_0xc152ac,_0x55a73b(0x1b0),(_0x164c12,[_0x2697e8,_0x2e3210])=>{const _0x6b8152=_0x55a73b;_0x2697e8[_0x6b8152(0x1ca)](_0x6b8152(0x1d6),_0x2e3210);});}[_0x19e0f3(0x1a1)](){const _0x224add=_0x19e0f3,_0x218e38=this[_0x224add(0x1cf)][_0x224add(0x1ba)][_0x224add(0x1bd)](_0x224add(0x1e0))||{},_0x1d8829=this[_0x224add(0x1cf)][_0x224add(0x1ba)][_0x224add(0x1bd)](_0x224add(0x1ab))||'';this[_0x224add(0x1e8)]=_0x33cd1e(_0x50baa7[_0x224add(0x1b2)],_0x224add(0x1be),{..._0x218e38,'pubkey':_0x1d8829,'ctx-name':_0x224add(0x19a)+this[_0x224add(0x1c4)],'sourceList':'','imgOnly':_0x224add(0x1c8),'removeCopyright':_0x224add(0x1c8),'localeName':this[_0x224add(0x1cf)][_0x224add(0x1a9)][_0x224add(0x1b8)],'externalSourcesEmbedCss':_0x224add(0x1a2)}),this[_0x224add(0x1e8)][_0x224add(0x1bf)]=_0x1ee99b=>{const _0x5ea4c8=_0x224add;if(_0x5ea4c8(0x1b6)==_0x1ee99b)return _0x5ea4c8(0x19e);},_0x50baa7[_0x224add(0x1b2)][_0x224add(0x1aa)][_0x224add(0x1c5)](this[_0x224add(0x1e8)]);}[_0x19e0f3(0x1da)](){const _0x1e79f7=_0x19e0f3;this[_0x1e79f7(0x1d1)]=_0x33cd1e(_0x50baa7[_0x1e79f7(0x1b2)],_0x1e79f7(0x1ad),{'ctx-name':_0x1e79f7(0x19a)+this[_0x1e79f7(0x1c4)]}),_0x50baa7[_0x1e79f7(0x1b2)][_0x1e79f7(0x1aa)][_0x1e79f7(0x1c5)](this[_0x1e79f7(0x1d1)]);}[_0x19e0f3(0x1b1)](){const _0x6a1a9b=_0x19e0f3,_0x3f9e17=this[_0x6a1a9b(0x1cf)][_0x6a1a9b(0x1d4)][_0x6a1a9b(0x1bd)](_0x6a1a9b(0x1a7));_0x3f9e17&&this[_0x6a1a9b(0x1d9)](_0x3f9e17,_0x6a1a9b(0x1ce),()=>{const _0x195266=_0x6a1a9b,_0x3adff8=this[_0x195266(0x1cf)][_0x195266(0x1ea)][_0x195266(0x1b2)][_0x195266(0x1cc)][_0x195266(0x1b9)]();_0x3adff8&&_0x3adff8[_0x195266(0x1cb)](_0x195266(0x1d6))&&this[_0x195266(0x1cf)][_0x195266(0x1b4)][_0x195266(0x1d2)][_0x195266(0x1bc)](_0x195266(0x1c6),()=>{const _0x4f748b=_0x195266;_0x5a1f4d(this[_0x4f748b(0x1cf)],_0x3adff8);});});const _0xa6d789=this[_0x6a1a9b(0x1cf)][_0x6a1a9b(0x1d4)][_0x6a1a9b(0x1bd)](_0x6a1a9b(0x1c3));_0xa6d789&&this[_0x6a1a9b(0x1d9)](_0xa6d789,_0x6a1a9b(0x1ce),()=>{const _0xa98f3d=_0x6a1a9b,_0x557929=this[_0xa98f3d(0x1cf)][_0xa98f3d(0x1ea)][_0xa98f3d(0x1b2)][_0xa98f3d(0x1cc)][_0xa98f3d(0x1b9)]();_0x557929&&_0x557929[_0xa98f3d(0x1cb)](_0xa98f3d(0x1d6))&&this[_0xa98f3d(0x1cf)][_0xa98f3d(0x1b4)][_0xa98f3d(0x1d2)][_0xa98f3d(0x1bc)](_0xa98f3d(0x1c6),()=>{const _0x1878f1=_0xa98f3d;_0x5a1f4d(this[_0x1878f1(0x1cf)],_0x557929);});});}}
|
|
23
|
+
function _0x4114(_0x256f6e,_0x4fbc21){const _0x229d2b=_0x229d();return _0x4114=function(_0x4114a5,_0x34ffd6){_0x4114a5=_0x4114a5-0x84;let _0x3f7377=_0x229d2b[_0x4114a5];return _0x3f7377;},_0x4114(_0x256f6e,_0x4fbc21);}function _0x229d(){const _0x28321b=['input[uploadcare-file-input]','removeAttribute','1618437HZnLNj','extend','\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','view','2060226ubqysG','contentLanguage','editor','conversion','listenTo','remove','isRegistered','imageInline','ucContextId','appendChild','isPremiumPlugin','_initCtx','execute','schema','editing','_configElement','#uc-icon-arrow-down','uploadcare','downcast','init','isOfficialPlugin','uploadcare.uploader','once','requires','locale','uploadcare.pubkey','map','uc-config','destroy','2248kyfPZk','1117534JzBHTp','imageBlock','pluginName','document','body','PictureEditing','4grqmVs','querySelector','585295iTFvxl','selection','_initConfig','5047CltvWf','afterInit','add','join','_ctxElement','configElement','getSelectedElement','model','_initSchema','for','href','getAttribute','uploadcareImageId','_initConversion','_initImageProcessingIndicator','config','get','upcast','true','replaceImageSource','ctxElement','cleanupImage','iconHrefResolver','90MXITEu','UploadcareEditing','uc-upload-ctx-provider','2239430IXnNbG','uploadcareImageReplace','fromCharCode','1456495YhrXol','data-uc-image-id','elementToAttribute','commands','render','closeMax','uploader-','attributeToAttribute','insertImage'];_0x229d=function(){return _0x28321b;};return _0x229d();}const _0x5a6708=_0x4114;(function(_0x941f3b,_0x6aa117){const _0x363f90=_0x4114,_0x2f3b4a=_0x941f3b();while(!![]){try{const _0x7dcf90=-parseInt(_0x363f90(0xa5))/0x1+-parseInt(_0x363f90(0x9d))/0x2+-parseInt(_0x363f90(0xd0))/0x3+-parseInt(_0x363f90(0xa3))/0x4*(-parseInt(_0x363f90(0xc5))/0x5)+-parseInt(_0x363f90(0xd4))/0x6+-parseInt(_0x363f90(0xa8))/0x7*(parseInt(_0x363f90(0x9c))/0x8)+parseInt(_0x363f90(0xbf))/0x9*(parseInt(_0x363f90(0xc2))/0xa);if(_0x7dcf90===_0x6aa117)break;else _0x2f3b4a['push'](_0x2f3b4a['shift']());}catch(_0x5df8d9){_0x2f3b4a['push'](_0x2f3b4a['shift']());}}}(_0x229d,0x498a0));import{Plugin as _0x5a4a4b}from'ckeditor5/src/core.js';import{Dialog as _0x5682e4}from'ckeditor5/src/ui.js';import{createElement as _0x1d5142,global as _0xe5e592,uid as _0x12c792}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1b3c5b}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2e6968}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x52238c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5a4a4b{[_0x5a6708(0x8e)]=null;[_0x5a6708(0xac)]=null;static get[_0x5a6708(0x9f)](){const _0x4d624c=_0x5a6708;return _0x4d624c(0xc0);}static get[_0x5a6708(0x96)](){const _0x3fbf23=_0x5a6708;return[_0x3fbf23(0xa2),_0x2e6968,_0x5682e4];}static get[_0x5a6708(0x93)](){return!0x0;}static get[_0x5a6708(0x89)](){return!0x0;}[_0x5a6708(0x87)];get[_0x5a6708(0xad)](){const _0x539739=_0x5a6708;return this[_0x539739(0x8e)];}get[_0x5a6708(0xbc)](){const _0x57c060=_0x5a6708;return this[_0x57c060(0xac)];}constructor(_0x53a3bd){const _0x3f5069=_0x5a6708;super(_0x53a3bd),this[_0x3f5069(0x87)]=_0x12c792();}[_0x5a6708(0x92)](){const _0x4f5e26=_0x5a6708,_0x57e76a=this[_0x4f5e26(0xd6)];_0x57e76a[_0x4f5e26(0xc8)][_0x4f5e26(0xaa)](_0x4f5e26(0x90),new _0x1b3c5b(_0x57e76a));}[_0x5a6708(0xa9)](){const _0x491c4c=_0x5a6708;this[_0x491c4c(0xb0)](),this[_0x491c4c(0xb5)](),this[_0x491c4c(0xa7)](),this[_0x491c4c(0x8a)](),this[_0x491c4c(0xb6)](),this[_0x491c4c(0xd8)](this[_0x491c4c(0xd6)],_0x491c4c(0x9b),()=>{const _0x500fdd=_0x491c4c;this[_0x500fdd(0x8e)]&&(this[_0x500fdd(0x8e)][_0x500fdd(0x84)](),this[_0x500fdd(0x8e)]=null),this[_0x500fdd(0xac)]&&(this[_0x500fdd(0xac)][_0x500fdd(0x84)](),this[_0x500fdd(0xac)]=null);const _0x3db872=_0xe5e592[_0x500fdd(0xa0)][_0x500fdd(0xa4)](_0x500fdd(0xce));_0x3db872&&_0x3db872[_0x500fdd(0x84)]();}),async function(_0x57fe0a){const _0x52c414=_0x34fe16([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x207a8c=0x3d8d0df,_0x5945b7=0x3dfa407^_0x207a8c,_0x36d13f=window[_0x34fe16([0x44,0x61,0x74,0x65])][_0x34fe16([0x6e,0x6f,0x77])](),_0x345078=_0x57fe0a[_0x34fe16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47fd59=new window[(_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4419=>{_0x345078[_0x34fe16([0x6f,0x6e,0x63,0x65])](_0x34fe16([0x72,0x65,0x61,0x64,0x79]),_0x1f4419);}),_0x4fbd55={[_0x34fe16([0x6b,0x74,0x79])]:_0x34fe16([0x45,0x43]),[_0x34fe16([0x75,0x73,0x65])]:_0x34fe16([0x73,0x69,0x67]),[_0x34fe16([0x63,0x72,0x76])]:_0x34fe16([0x50,0x2d,0x32,0x35,0x36]),[_0x34fe16([0x78])]:_0x34fe16([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]),[_0x34fe16([0x79])]:_0x34fe16([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]),[_0x34fe16([0x61,0x6c,0x67])]:_0x34fe16([0x45,0x53,0x32,0x35,0x36])},_0x4a5e8a=_0x345078[_0x34fe16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34fe16([0x67,0x65,0x74])](_0x34fe16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x252bb8(){let _0x34395b,_0x1e26be=null,_0x13aafa=null;try{if(_0x4a5e8a==_0x34fe16([0x47,0x50,0x4c]))return _0x34fe16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34395b=_0x587a8e(),!_0x34395b)return _0x34fe16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34395b[_0x34fe16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13aafa=_0x2721ad(_0x34395b[_0x34fe16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34395b[_0x34fe16([0x6a,0x74,0x69])])),await _0x22a223()?_0x584aad()?_0x4db3c7()?_0x34fe16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42c2f8()?(_0x34395b[_0x34fe16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34fe16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e26be=_0x13cd8e(_0x34fe16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34395b[_0x34fe16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34fe16([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e26be=_0x13cd8e(_0x34fe16([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54d181()):_0x34fe16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34fe16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34fe16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34fe16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4db3c7(){const _0x3fce60=[_0x34fe16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34fe16([0x74,0x72,0x69,0x61,0x6c])][_0x34fe16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34395b[_0x34fe16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36d13f/0x3e8:0xe10*_0x5945b7;return _0x34395b[_0x34fe16([0x65,0x78,0x70])]<_0x3fce60;}function _0x584aad(){const _0x126c00=_0x34395b[_0x34fe16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x126c00&&(!!_0x126c00[_0x34fe16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34fe16([0x2a]))||!!_0x126c00[_0x34fe16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34fe16([0x55,0x50,0x4c,0x43])));}function _0x42c2f8(){const _0x396a03=_0x4114,_0x255053=_0x34395b[_0x34fe16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x255053||0x0==_0x255053[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18277d}=new URL(window[_0x34fe16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x396a03(0xb2)]);if(_0x255053[_0x34fe16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18277d))return!0x0;const _0xfe2b16=_0x18277d[_0x34fe16([0x73,0x70,0x6c,0x69,0x74])](_0x34fe16([0x2e]));return _0x255053[_0x34fe16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7402e8=>_0x7402e8[_0x34fe16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34fe16([0x2a])))[_0x34fe16([0x6d,0x61,0x70])](_0x39ab43=>_0x39ab43[_0x34fe16([0x73,0x70,0x6c,0x69,0x74])](_0x34fe16([0x2e])))[_0x34fe16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x350a05=>_0x350a05[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xfe2b16[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34fe16([0x6d,0x61,0x70])](_0x271d04=>Array(_0xfe2b16[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x271d04[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34fe16([0x66,0x69,0x6c,0x6c])](_0x271d04[0x0]===_0x34fe16([0x2a])?_0x34fe16([0x2a]):'')[_0x34fe16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x271d04))[_0x34fe16([0x73,0x6f,0x6d,0x65])](_0x1d5f38=>_0xfe2b16[_0x34fe16([0x65,0x76,0x65,0x72,0x79])]((_0x454ac0,_0x4b034d)=>_0x1d5f38[_0x4b034d]===_0x454ac0||_0x1d5f38[_0x4b034d]===_0x34fe16([0x2a])));}function _0x54d181(){return _0x1e26be&&_0x13aafa?new window[(_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x94e201,_0x534d4b)=>{_0x1e26be[_0x34fe16([0x74,0x68,0x65,0x6e])](_0x94e201,_0x534d4b),_0x13aafa[_0x34fe16([0x74,0x68,0x65,0x6e])](_0x2e38d2=>{_0x2e38d2!=_0x34fe16([0x56,0x61,0x6c,0x69,0x64])&&_0x94e201(_0x2e38d2);},_0x534d4b);}):_0x1e26be||_0x13aafa||_0x34fe16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2721ad(_0x132fd6,_0x562f8e){return new window[(_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15960e=>{if(_0x34159b())return _0x15960e(_0x34fe16([0x56,0x61,0x6c,0x69,0x64]));_0x4b555e(),_0x345078[_0x34fe16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34fe16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fdcd8=!0x1;const _0x2b6779=_0x12c792();function _0x11e05f(_0x1a7f9d){return!!_0x1a7f9d&&(typeof _0x1a7f9d===_0x34fe16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a7f9d===_0x34fe16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a7f9d[_0x34fe16([0x74,0x68,0x65,0x6e])]===_0x34fe16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a7f9d[_0x34fe16([0x63,0x61,0x74,0x63,0x68])]===_0x34fe16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44e5bb(_0x3bbab0){_0x1d00fb(_0x3bbab0)[_0x34fe16([0x74,0x68,0x65,0x6e])](_0x30f000=>{if(!_0x30f000||_0x30f000[_0x34fe16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34fe16([0x6f,0x6b]))return _0x34fe16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x447048(_0x27c53f(_0x2b6779+_0x562f8e))!=_0x30f000[_0x34fe16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34fe16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34fe16([0x56,0x61,0x6c,0x69,0x64]);})[_0x34fe16([0x74,0x68,0x65,0x6e])](_0x554b00=>(_0x22fa6c(),_0x554b00),()=>{const _0x336604=_0x485182();return null==_0x336604?(_0x22fa6c(),_0x34fe16([0x56,0x61,0x6c,0x69,0x64])):_0x34fe16(_0x36d13f-_0x336604>(0x27d454df^_0x207a8c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34fe16([0x74,0x68,0x65,0x6e])](_0x15960e)[_0x34fe16([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15960e(_0x34fe16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f016f=0x3ee3e5f^_0x207a8c;function _0x22fa6c(){const _0x570123=_0x34fe16([0x6c,0x6c,0x63,0x74,0x2d])+_0x447048(_0x27c53f(_0x132fd6)),_0x596e90=_0x33b7f7(_0x447048(window[_0x34fe16([0x4d,0x61,0x74,0x68])][_0x34fe16([0x63,0x65,0x69,0x6c])](_0x36d13f/_0x5f016f)));window[_0x34fe16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34fe16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570123,_0x596e90);}function _0x485182(){const _0x2ffb40=_0x34fe16([0x6c,0x6c,0x63,0x74,0x2d])+_0x447048(_0x27c53f(_0x132fd6)),_0x25fa01=window[_0x34fe16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34fe16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ffb40);return _0x25fa01?window[_0x34fe16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33b7f7(_0x25fa01),0x10)*_0x5f016f:null;}function _0x1d00fb(_0x2f5f0e){return new window[(_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b3380,_0xbd4b3f)=>{_0x2f5f0e[_0x34fe16([0x74,0x68,0x65,0x6e])](_0x4b3380,_0xbd4b3f),window[_0x34fe16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbd4b3f,0x3d9041f^_0x207a8c);});}}_0x345078[_0x34fe16([0x6f,0x6e])](_0x34fe16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2af27b,_0x38493c)=>{if(_0x38493c[0x0]!=_0x132fd6)return _0x15960e(_0x34fe16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38493c[0x1]={..._0x38493c[0x1],[_0x34fe16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b6779};},{[_0x34fe16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34fe16([0x68,0x69,0x67,0x68])}),_0x345078[_0x34fe16([0x6f,0x6e])](_0x34fe16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12a400=>{_0x11e05f(_0x12a400[_0x34fe16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fdcd8=!0x0,_0x44e5bb(_0x12a400[_0x34fe16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34fe16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34fe16([0x6c,0x6f,0x77])}),_0x47fd59[_0x34fe16([0x74,0x68,0x65,0x6e])](()=>{_0x4fdcd8||_0x15960e(_0x34fe16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34159b(){return _0x345078[_0x34fe16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34fe16([0x76,0x69,0x65,0x77])][_0x34fe16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34fe16([0x61,0x75,0x74,0x6f]);}function _0x4b555e(){_0x345078[_0x34fe16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34fe16([0x76,0x69,0x65,0x77])][_0x34fe16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34fe16([0x61,0x75,0x74,0x6f]);}}function _0x13cd8e(_0x8ba7fb){const _0x9006a=[new window[(_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4daee4=>setTimeout(_0x4daee4,0x3d1ee13^_0x207a8c)),_0x47fd59[_0x34fe16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x340a58=>{let _0x16b961=0x0;_0x345078[_0x34fe16([0x6d,0x6f,0x64,0x65,0x6c])][_0x34fe16([0x6f,0x6e])](_0x34fe16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3436c4,_0x49c81a)=>{_0x49c81a[0x0][_0x34fe16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16b961++,_0x16b961==(0x3d8d127^_0x207a8c)&&(_0x340a58(),_0x3436c4[_0x34fe16([0x6f,0x66,0x66])]());});}))];return window[_0x34fe16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34fe16([0x72,0x61,0x63,0x65])](_0x9006a)[_0x34fe16([0x74,0x68,0x65,0x6e])](()=>_0x8ba7fb);}async function _0x9c26de(){await _0x47fd59,_0x345078[_0x34fe16([0x6d,0x6f,0x64,0x65,0x6c])][_0x34fe16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa47d5f,_0x345078[_0x34fe16([0x6d,0x6f,0x64,0x65,0x6c])][_0x34fe16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa47d5f,_0x345078[_0x34fe16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34fe16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22fc04(_0x37763b){const _0x4a6fe1=_0xf61ecf();_0x345078[_0x4a6fe1]=_0x34fe16([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37763b,_0x37763b!=_0x34fe16([0x56,0x61,0x6c,0x69,0x64])&&_0x9c26de();}function _0xf61ecf(){const _0x1d86e3=window[_0x34fe16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34fe16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34fe16([0x6e,0x6f,0x77])]())[_0x34fe16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34fe16([0x2e]),'');let _0x2a41b4=_0x34fe16([0x52]);for(let _0x34371b=0x0;_0x34371b<_0x1d86e3[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34371b+=0x2){let _0x283339=window[_0x34fe16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d86e3[_0x34fe16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34371b,_0x34371b+0x2));_0x283339>=_0x52c414[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x283339-=_0x52c414[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a41b4+=_0x52c414[_0x283339];}return _0x2a41b4;}function _0x587a8e(){const _0x740657=_0x4a5e8a[_0x34fe16([0x73,0x70,0x6c,0x69,0x74])](_0x34fe16([0x2e]));if(0x3!=_0x740657[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26a0ba(_0x740657[0x1]);function _0x26a0ba(_0x3c58cd){const _0x4c626e=_0x389c65(_0x3c58cd);return _0x4c626e&&_0x10670e()?_0x4c626e:null;function _0x10670e(){const _0x52a2c1=_0x4c626e[_0x34fe16([0x6a,0x74,0x69])],_0x4543ac=window[_0x34fe16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52a2c1[_0x34fe16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52a2c1[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c45df={..._0x4c626e,[_0x34fe16([0x6a,0x74,0x69])]:_0x52a2c1[_0x34fe16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52a2c1[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c45df[_0x34fe16([0x76,0x63])],_0x27c53f(_0x3c45df)==_0x4543ac;}}}async function _0x22a223(){let _0x4e9f2d=!0x0;try{const _0x388bbc=_0x4a5e8a[_0x34fe16([0x73,0x70,0x6c,0x69,0x74])](_0x34fe16([0x2e])),[_0x32ef48,_0x58fd4c,_0x3f0f42]=_0x388bbc;return _0xb15c38(_0x32ef48),await _0x2ba596(_0x32ef48,_0x58fd4c,_0x3f0f42),_0x4e9f2d;}catch{return!0x1;}function _0xb15c38(_0x23fb88){const _0x16e714=_0x389c65(_0x23fb88);_0x16e714&&_0x16e714[_0x34fe16([0x61,0x6c,0x67])]==_0x34fe16([0x45,0x53,0x32,0x35,0x36])||(_0x4e9f2d=!0x1);}async function _0x2ba596(_0x33f503,_0x49f667,_0x4da6db){const _0x179362=window[_0x34fe16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34fe16([0x66,0x72,0x6f,0x6d])](_0x1946d9(_0x4da6db),_0x3337ed=>_0x3337ed[_0x34fe16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39df39=new window[(_0x34fe16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34fe16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33f503+_0x34fe16([0x2e])+_0x49f667),_0x1738ba=window[_0x34fe16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34fe16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1738ba)return;const _0x34a2cc=await _0x1738ba[_0x34fe16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34fe16([0x6a,0x77,0x6b]),_0x4fbd55,{[_0x34fe16([0x6e,0x61,0x6d,0x65])]:_0x34fe16([0x45,0x43,0x44,0x53,0x41]),[_0x34fe16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34fe16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34fe16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1738ba[_0x34fe16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34fe16([0x6e,0x61,0x6d,0x65])]:_0x34fe16([0x45,0x43,0x44,0x53,0x41]),[_0x34fe16([0x68,0x61,0x73,0x68])]:{[_0x34fe16([0x6e,0x61,0x6d,0x65])]:_0x34fe16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34a2cc,_0x179362,_0x39df39)||(_0x4e9f2d=!0x1);}}function _0x389c65(_0x28bb8c){return _0x28bb8c[_0x34fe16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34fe16([0x65,0x79]))?JSON[_0x34fe16([0x70,0x61,0x72,0x73,0x65])](_0x1946d9(_0x28bb8c)):null;}function _0x1946d9(_0x4827ed){return window[_0x34fe16([0x61,0x74,0x6f,0x62])](_0x4827ed[_0x34fe16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34fe16([0x2b]))[_0x34fe16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34fe16([0x2f])));}function _0x27c53f(_0x469309){let _0x271268=0x1505;function _0x290aad(_0x4d4639){for(let _0x18509e=0x0;_0x18509e<_0x4d4639[_0x34fe16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18509e++){const _0x4027ea=_0x4d4639[_0x34fe16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18509e);_0x271268=(_0x271268<<0x5)+_0x271268+_0x4027ea,_0x271268&=_0x271268;}}function _0x4047aa(_0x1a4d9c){Array[_0x34fe16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a4d9c)?_0x1a4d9c[_0x34fe16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4047aa):_0x1a4d9c&&typeof _0x1a4d9c==_0x34fe16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34fe16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a4d9c)[_0x34fe16([0x73,0x6f,0x72,0x74])]()[_0x34fe16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x528cf8,_0x417646])=>{_0x290aad(_0x528cf8),_0x4047aa(_0x417646);}):_0x290aad(window[_0x34fe16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a4d9c));}return _0x4047aa(_0x469309),_0x271268>>>0x0;}function _0x447048(_0x41d0b2){return _0x41d0b2[_0x34fe16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34fe16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34fe16([0x30]));}function _0x33b7f7(_0x57049f){return _0x57049f[_0x34fe16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34fe16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34fe16([0x6a,0x6f,0x69,0x6e])]('');}function _0xa47d5f(){}function _0x34fe16(_0x5d7c82){const _0x532e75=_0x4114;return _0x5d7c82[_0x532e75(0x99)](_0x2d1ab9=>String[_0x532e75(0xc4)](_0x2d1ab9))[_0x532e75(0xab)]('');}_0x22fc04(await _0x252bb8());}(this);}[_0x5a6708(0xb0)](){const _0x22b10d=_0x5a6708,_0x3f58b4=this[_0x22b10d(0xd6)][_0x22b10d(0xaf)][_0x22b10d(0x8c)];_0x3f58b4[_0x22b10d(0x85)](_0x22b10d(0x9e))&&_0x3f58b4[_0x22b10d(0xd1)](_0x22b10d(0x9e),{'allowAttributes':[_0x22b10d(0xb4)]}),_0x3f58b4[_0x22b10d(0x85)](_0x22b10d(0x86))&&_0x3f58b4[_0x22b10d(0xd1)](_0x22b10d(0x86),{'allowAttributes':[_0x22b10d(0xb4)]});}[_0x5a6708(0xb5)](){const _0x1380ca=_0x5a6708,_0x622b40=this[_0x1380ca(0xd6)];_0x622b40[_0x1380ca(0xd7)][_0x1380ca(0xb1)](_0x1380ca(0x91))[_0x1380ca(0xcc)]({'model':_0x1380ca(0xb4),'view':_0x1380ca(0xc6)}),_0x622b40[_0x1380ca(0xd7)][_0x1380ca(0xb1)](_0x1380ca(0xb9))[_0x1380ca(0xc7)]({'model':{'key':_0x1380ca(0xb4),'value':_0x1166a1=>_0x1166a1[_0x1380ca(0xb3)](_0x1380ca(0xc6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x95ec36=_0x622b40[_0x1380ca(0xc8)][_0x1380ca(0xb8)](_0x1380ca(0xbb));_0x95ec36&&this[_0x1380ca(0xd8)](_0x95ec36,_0x1380ca(0xbd),(_0x2ebd30,[_0x52a277,_0x35c569])=>{const _0x575111=_0x1380ca;_0x52a277[_0x575111(0xcf)](_0x575111(0xb4),_0x35c569);});}[_0x5a6708(0xa7)](){const _0x142f21=_0x5a6708,_0x37b488=this[_0x142f21(0xd6)][_0x142f21(0xb7)][_0x142f21(0xb8)](_0x142f21(0x94))||{},_0x34ee6b=this[_0x142f21(0xd6)][_0x142f21(0xb7)][_0x142f21(0xb8)](_0x142f21(0x98))||'';this[_0x142f21(0x8e)]=_0x1d5142(_0xe5e592[_0x142f21(0xa0)],_0x142f21(0x9a),{..._0x37b488,'pubkey':_0x34ee6b,'ctx-name':_0x142f21(0xcb)+this[_0x142f21(0x87)],'sourceList':'','imgOnly':_0x142f21(0xba),'removeCopyright':_0x142f21(0xba),'localeName':this[_0x142f21(0xd6)][_0x142f21(0x97)][_0x142f21(0xd5)],'externalSourcesEmbedCss':_0x142f21(0xd2)}),this[_0x142f21(0x8e)][_0x142f21(0xbe)]=_0x2ba243=>{const _0x8f04cd=_0x142f21;if(_0x8f04cd(0xca)==_0x2ba243)return _0x8f04cd(0x8f);},_0xe5e592[_0x142f21(0xa0)][_0x142f21(0xa1)][_0x142f21(0x88)](this[_0x142f21(0x8e)]);}[_0x5a6708(0x8a)](){const _0x39a10a=_0x5a6708;this[_0x39a10a(0xac)]=_0x1d5142(_0xe5e592[_0x39a10a(0xa0)],_0x39a10a(0xc1),{'ctx-name':_0x39a10a(0xcb)+this[_0x39a10a(0x87)]}),_0xe5e592[_0x39a10a(0xa0)][_0x39a10a(0xa1)][_0x39a10a(0x88)](this[_0x39a10a(0xac)]);}[_0x5a6708(0xb6)](){const _0x2f289b=_0x5a6708,_0x756cbf=this[_0x2f289b(0xd6)][_0x2f289b(0xc8)][_0x2f289b(0xb8)](_0x2f289b(0xcd));_0x756cbf&&this[_0x2f289b(0xd8)](_0x756cbf,_0x2f289b(0x8b),()=>{const _0x4adf75=_0x2f289b,_0x2f90a4=this[_0x4adf75(0xd6)][_0x4adf75(0xaf)][_0x4adf75(0xa0)][_0x4adf75(0xa6)][_0x4adf75(0xae)]();_0x2f90a4&&_0x2f90a4[_0x4adf75(0xb3)](_0x4adf75(0xb4))&&this[_0x4adf75(0xd6)][_0x4adf75(0x8d)][_0x4adf75(0xd3)][_0x4adf75(0x95)](_0x4adf75(0xc9),()=>{const _0x2310b0=_0x4adf75;_0x52238c(this[_0x2310b0(0xd6)],_0x2f90a4);});});const _0xd7e8e0=this[_0x2f289b(0xd6)][_0x2f289b(0xc8)][_0x2f289b(0xb8)](_0x2f289b(0xc3));_0xd7e8e0&&this[_0x2f289b(0xd8)](_0xd7e8e0,_0x2f289b(0x8b),()=>{const _0x3da486=_0x2f289b,_0xc41ec6=this[_0x3da486(0xd6)][_0x3da486(0xaf)][_0x3da486(0xa0)][_0x3da486(0xa6)][_0x3da486(0xae)]();_0xc41ec6&&_0xc41ec6[_0x3da486(0xb3)](_0x3da486(0xb4))&&this[_0x3da486(0xd6)][_0x3da486(0x8d)][_0x3da486(0xd3)][_0x3da486(0x95)](_0x3da486(0xc9),()=>{const _0x3b8f85=_0x3da486;_0x52238c(this[_0x3b8f85(0xd6)],_0xc41ec6);});});}}
|