PageSourceSearch

https://gadu-gadu.pl/wp-content/plugins,_wpdiscuz,_assets,_js,_wpd…==1.8.3.pagespeed.jc.Win-KMa8bK.js

js gadu-gadu.pl collected 2026-10-02 04:48:05 UTC 63,998 bytes, 3 lines download raw bytes

1var mod_pagespeed_kdZZNtrVTD = ";jQuery(document).ready(function($){$('body').addClass('wpdiscuz_'+wpdiscuzAjaxObj.wpdiscuz_options.version);var isUserLoggedIn=wpdiscuzAjaxObj.wpdiscuz_options.is_user_logged_in;var isShowCaptchaForGuests=wpdiscuzAjaxObj.wpdiscuz_options.wc_captcha_show_for_guest==1&&!isUserLoggedIn;var isShowCaptchaForMembers=wpdiscuzAjaxObj.wpdiscuz_options.wc_captcha_show_for_members==1&&isUserLoggedIn;var isCaptchaInSession=wpdiscuzAjaxObj.wpdiscuz_options.isCaptchaInSession;var wpdiscuzRecaptcha=wpdiscuzAjaxObj.wpdiscuz_options.wpDiscuzReCaptcha;var isGoodbyeCaptchaActive=wpdiscuzAjaxObj.wpdiscuz_options.isGoodbyeCaptchaActive;var commentListLoadType=wpdiscuzAjaxObj.wpdiscuz_options.commentListLoadType;var wordpressIsPaginate=wpdiscuzAjaxObj.wpdiscuz_options.wordpressIsPaginate;var wpdiscuzPostId=wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id;var commentListUpdateType=wpdiscuzAjaxObj.wpdiscuz_options.commentListUpdateType;var commentListUpdateTimer=wpdiscuzAjaxObj.wpdiscuz_options.commentListUpdateTimer;var disableGuestsLiveUpdate=wpdiscuzAjaxObj.wpdiscuz_options.liveUpdateGuests;var loadLastCommentId=wpdiscuzAjaxObj.wpdiscuz_options.loadLastCommentId;var cookieCommentsSorting=wpdiscuzAjaxObj.wpdiscuz_options.cookieCommentsSorting;var wpdiscuzOrderData=Cookies.get(cookieCommentsSorting+\"_\"+wpdiscuzPostId);if(wpdiscuzOrderData){wpdiscuzOrderData=JSON.parse(wpdiscuzOrderData);var wpdiscuzCommentsOrder=wpdiscuzOrderData&&wpdiscuzOrderData.order?wpdiscuzOrderData.order:wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentsOrder;var wpdiscuzCommentsOrderBy=wpdiscuzOrderData&&wpdiscuzOrderData.orderBy?wpdiscuzOrderData.orderBy:wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentOrderBy;}else{var wpdiscuzCommentsOrder=wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentsOrder;var wpdiscuzCommentsOrderBy=wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentOrderBy;}var commentsVoteOrder=wpdiscuzAjaxObj.wpdiscuz_options.commentsVoteOrder;var storeCommenterData=wpdiscuzAjaxObj.wpdiscuz_options.storeCommenterData;var wpdiscuzLoadCount=1;var wpdiscuzReplyArray=[];var wpdiscuzCommentArray=[];var wpdiscuzUploader=wpdiscuzAjaxObj.wpdiscuz_options.uploader;var commentTextMaxLength=wpdiscuzAjaxObj.wpdiscuz_options.commentTextMaxLength;var wpdGoogleRecaptchaValid=true;var wpdiscuzReplyButton='';var isCookiesEnabled=wpdiscuzAjaxObj.wpdiscuz_options.isCookiesEnabled;var wpdCookiesConsent=true;var wpdiscuzCookiehash=wpdiscuzAjaxObj.wpdiscuz_options.cookiehash;var isLoadOnlyParentComments=wpdiscuzAjaxObj.wpdiscuz_options.isLoadOnlyParentComments;var enableDropAnimation=wpdiscuzAjaxObj.wpdiscuz_options.enableDropAnimation?500:0;
1var isNativeAjaxEnabled=wpdiscuzAjaxObj.wpdiscuz_options.isNativeAjaxEnabled;var wpdiscuzAgreementFields=[];loginButtonsClone();if(!wpdiscuzAjaxObj.wpdiscuz_options.wordpressIsPaginate&&isCookiesEnabled){Cookies.remove('wordpress_last_visit',{path:''});var wpdiscuzLastVisitKey=wpdiscuzAjaxObj.wpdiscuz_options.lastVisitKey;if(wpdiscuzAjaxObj.wpdiscuz_options.enableLastVisitCookie){var wpdiscuzLastVisit=wpdiscuzAjaxObj.wpdiscuz_options.lastVisitCookie;var wpdiscuzLastVisitExpires=wpdiscuzAjaxObj.wpdiscuz_options.lastVisitExpires;Cookies.set(wpdiscuzLastVisitKey,wpdiscuzLastVisit,{expires:wpdiscuzLastVisitExpires,path:window.location});}else{Cookies.remove(wpdiscuzLastVisitKey,{path:''});}}$('#wc_unsubscribe_message, #wc_delete_content_message, #wc_follow_message').delay(3000).fadeOut(1500,function(){$(this).remove();location.href=location.href.substring(0,location.href.indexOf('wpdiscuzUrlAnchor')-1);});$(document).delegate('.wc-reply-button','click',function(){wpdiscuzReplyButton=$(this);if($(this).hasClass('wpdiscuz-clonned')){$('#wc-secondary-form-wrapper-'+getUniqueID($(this),0
1)).slideToggle(enableDropAnimation);}else{cloneSecondaryForm($(this));}$(this).toggleClass('wc-cta-active');});$(document).delegate('.wc-comment-img-link','click',function(){var el=$('<input/>');var val=$(this).data('comment-url');el.appendTo('body').css({'position':'absolute','top':'-10000000px'}).val(val);el.select();document.execCommand('copy');el.remove();alert(val+'\\r\\nCopied to clipboard!');});$(document).delegate('textarea.wc_comment','focus',function(){var parent=$(this).parents('.wc-form-wrapper');$('.commentTextMaxLength',parent).show();$('.wc-form-footer',parent).slideDown(enableDropAnimation);});$(document).delegate('#wpcomm textarea','focus',function(){if(!($(this).next('.autogrow-textarea-mirror').length)){$(this).autoGrow();}});$(document).delegate('textarea.wc_comment','blur',function(){var parent=$(this).parents('.wc-form-wrapper');$('.commentTextMaxLength',parent).hide();});$(document).delegate('textarea.wc_comment','keyup',function(){setTextareaCharCount($(this),commentTextMaxLength);});$.each($('textarea.wc_comment'),function(){setTextareaCharCount($(this),commentTextMaxLength);});$(document).delegate('.wpdiscuz-nofollow,.wc_captcha_refresh_img,.wc-toggle,.wc-load-more-link','click',function(e){e.preventDefault();});$(document).delegate('.wc-toggle','click',function(e){var uniqueID=getUniqueID($(this),0
1);var toggle=$(this);var icon=$('.fas',toggle);if(icon.hasClass('wpdiscuz-show-replies')&&isLoadOnlyParentComments){wpdiscuzShowReplies(uniqueID);}else{$('#wc-comm-'+uniqueID+'> .wc-reply').slideToggle(700,function(){if($(this).is(':hidden')){icon.removeClass('fa-chevron-up');icon.addClass('fa-chevron-down');icon.attr('title',wpdiscuzAjaxObj.wpdiscuz_options.wc_show_replies_text);$('.wpdiscuz-children-button-text',toggle).text(wpdiscuzAjaxObj.wpdiscuz_options.wc_show_replies_text);}else{icon.removeClass('fa-chevron-down');icon.addClass('fa-chevron-up');icon.attr('title',wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);$('.wpdiscuz-children-button-text',toggle).text(wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);}});if($('.wpdiscuz-children-count',toggle).length){var replies=$('#wc-comm-'+uniqueID+' .wc-reply');$('.wpdiscuz-children-count',toggle).html(replies.length);}}});$(document).delegate('.wc-new-loaded-comment','mouseenter',function(){if($(this).hasClass('wc-reply')){$('>.wc-comment-right',this).css('backgroundColor',wpdiscuzAjaxObj.wpdiscuz_options.wc_reply_bg_color);}else{$('>.wc-comment-right',this).css('backgroundColor',wpdiscuzAjaxObj.wpdiscuz_options.wc_comment_bg_color);}});$(document).delegate('.wpdiscuz-sbs-wrap','click',function(){$('.wpdiscuz-subscribe-bar').slideToggle(enableDropAnimation);});$(document).delegate('.wc_captcha_refresh_img','click',function(e){e.preventDefault();changeCaptchaImage($(this));});function changeCaptchaImage(reloadImage){if(!wpdiscuzRecaptcha&&!isGoodbyeCaptchaActive&&(isShowCaptchaForGuests||isShowCaptchaForMembers)){var form=reloadImage.parents('.wc-form-wrapper');var keyField=$('.wpdiscuz-cnonce',form);if(isCaptchaInSession){var uuId=getUUID();var captchaImg=$(reloadImage).prev().children('.wc_captcha_img');var src=captchaImg.attr('src');var fileUrl=src.substring(0,src.indexOf('=')+1);captchaImg.attr('src',fileUrl+uuId+'&r='+Math.random());keyField.attr('id',uuId);keyField.attr('value',uuId);}else{var data=new FormData();data.append('action','generateCaptcha');var isMain=form.hasClass('wc-secondary-form-wrapper')?0:1;var uniqueId=getUniqueID(reloadImage,isMain);data.append('wpdiscuz_unique_id',uniqueId);var ajaxObject=getAjaxObj(true,data);ajaxObject.done(function(response){try{var obj=$.parseJSON(response);if(obj.code==1){var captchaImg=$(reloadImage).prev().children('.wc_captcha_img');var src=captchaImg.attr('src');var lastSlashIndex=src.lastIndexOf('/')+1;var newSrc=src.substring(0,lastSlashIndex)+obj.message;captchaImg.attr('src',newSrc);keyField.attr('id',obj.key);keyField.attr('value',obj.key);}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});}}}function getUUID(){var chars='123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';var uuId='c';for(i=0;i<13;i++){uuId+=chars[Math.floor(Math.random()*(chars.length-1)+1)];}return uuId;}$(document).delegate('.wc_comm_submit.wc_not_clicked','click',function(){var currentSubmitBtn=$(this);var depth=1;var wcForm=$(this).parents('form');if(!wcForm.hasClass('wc_main_comm_form')){depth=getCommentDepth($(this).parents('.wc-comment'));}wpdGoogleRecaptchaValid=true;wpdValidateFieldRequired(wcForm);wcForm.submit(function(event){event.preventDefault();});if(wcForm[0].checkValidity()&&wpdGoogleRecaptchaValid){addAgreementInCookie(wcForm);$(currentSubmitBtn).removeClass('wc_not_clicked');var data=new FormData();data.append('action','wpdAddComment');data.append('ahk',wpdiscuzAjaxObj.wpdiscuz_options.ahk);var inputs=$(\":input\",wcForm);inputs.each(function(){if(this.name!=''&&this.type!='checkbox'&&this.type!='radio'){data.append(this.name+'',$(this).val());}
1if(this.type=='checkbox'||this.type=='radio'){if($(this).is(':checked')){data.append(this.name+'',$(this).val());}}});data.append('wc_comment_depth',depth);if(wpdiscuzUploader==1){var images=$(wcForm).find('input.wmu-image');var videos=$(wcForm).find('input.wmu-video');var files=$(wcForm).find('input.wmu-file');if(images.length>0){$.each($(images),function(i,imageFile){if(imageFile.files.length>0){$.each(imageFile.files,function(j,imageObj){data.append('wmu_images['+i+']',imageObj);});}});}if(videos.length>0){$.each($(videos),function(i,videoFile){if(videoFile.files.length>0){$.each(videoFile.files,function(j,videoObj){data.append('wmu_videos['+i+']',videoObj);});}});}if(files.length>0){$.each($(files),function(i,file){if(file.files.length>0){$.each(file.files,function(j,fileObj){data.append('wmu_files['+i+']',fileObj);});}});}}if(!wpdiscuzRecaptcha&&!isGoodbyeCaptchaActive&&(isShowCaptchaForGuests||isShowCaptchaForMembers)&&!isCaptchaInSession){var image=$('.wc_captcha_img',wcForm);var src=image.attr('src');var lastIndex=src.lastIndexOf('/')+1;var fileName=src.substring(lastIndex);data.append('fileName',fileName);}if(wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuz_zs){data.append('wpdiscuz_zs',wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuz_zs);}if($('.wpd-cookies-checkbox',wcForm).length&&!$('.wpd-cookies-checkbox',wcForm).prop(\"checked\")){wpdCookiesConsent=false;}var ajax=(!isNativeAjaxEnabled&&!wpdiscuzUploader)?getCustomAjaxObj(true,data):getAjaxObj(true,data);ajax.done(function(response){$(currentSubmitBtn).addClass('wc_not_clicked');var messageKey='';var message='';try{var r=$.parseJSON(response);messageKey=r.code;if(parseInt(messageKey)>=0){var isMain=r.is_main;message=r.message;$('.wpd-cc-value').html(r.wc_all_comments_count_new);if($('.wpd-stat-threads-count').length){$('.wpd-stat-threads-count').html(r.threadsCount);}if($('.wpd-stat-replies-count').length){$('.wpd-stat-replies-count').html(r.repliesCount);}if($('.wpd-stat-authors-count').length){$('.wpd-stat-authors-count').html(r.authorsCount);}if(isMain){addCommentsAfterSticky(message);}else{$('#wc-secondary-form-wrapper-'+messageKey).slideToggle(700);if(r.is_in_same_container==1){$('#wc-secondary-form-wrapper-'+messageKey).after(message);}else{$('#wc-secondary-form-wrapper-'+messageKey).after(message.replace('wc-reply','wc-reply wc-no-left-margin'));}}notifySubscribers(r);wpdiscuzRedirect(r);if(isCookiesEnabled&&wpdCookiesConsent){addCookie(wcForm,r);}else if(!wpdCookiesConsent){$('.wpd-cookies-checkbox').removeAttr('checked');}wcForm.get(0).reset();setCookieInForm(r);var currTArea=$('.wc_comment',wcForm);currTArea.css('height','72px');setTextareaCharCount(currTArea,commentTextMaxLength);$('.wmu-preview-wrap',wcForm).remove();if(wpdiscuzReplyButton.length){wpdiscuzReplyButton.removeClass('wc-cta-active');}deleteAgreementFields();}else{message=wpdiscuzAjaxObj.wpdiscuz_options[messageKey];if(r.typeError!='undefined'&&r.typeError!=null){message+=' '+r.typeError;}wpdiscuzAjaxObj.setCommentMessage(wcForm,messageKey,message,true);}runCallbacks(r,wcForm);}catch(e){if(response.indexOf('<')>=0&&response.indexOf('>')>=0){message=e;}else{message=response;}wpdiscuzAjaxObj.setCommentMessage(wcForm,'wc_invalid_field',message,true);}$('.wpdiscuz-loading-bar').fadeOut(250);});}changeCaptchaImage($('.wc_captcha_refresh_img',wcForm));wpdiscuzReset();});function notifySubscribers(r){if(!r.held_moderate){var data=new FormData();data.append('action','wpdCheckNotificationType');data.append('comment_id',r.new_comment_id);data.append('email',r.comment_author_email);data.append('isParent',r.is_main);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{r=$.parseJSON(response);}catch(e){console.log(e);}});}}function wpdiscuzRedirect(r){if(r.redirect>0&&r.new_comment_id){var data=new FormData();data.append('action','wpdRedirect');data.append('commentId',r.new_comment_id);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){r=$.parseJSON(response);if(r.code==1){setTimeout(function(){window.location.href=r.redirect_to;},5000);}});}}function setCookieInForm(obj){$('.wc_comm_form .wc_name').val(obj.comment_author);if(obj.comment_author_email.indexOf('@example.com')<0){$('.wc_comm_form .wc_email').val(obj.comment_author_email);}if(obj.comment_author_url){$('.wc_comm_form .wc_website').val(obj.comment_author_url);}}function addCookie(wcForm,obj){var email=obj.comment_author_email;var name=obj.comment_author;var weburl=obj.comment_author_url;if(storeCommenterData==null){Cookies.set('comment_author_email_'+wpdiscuzCookiehash,email);Cookies.set('comment_author_'+wpdiscuzCookiehash,name);if(weburl.length){Cookies.set('comment_author_url_'+wpdiscuzCookiehash,weburl);}}else{storeCommenterData=parseInt(storeCommenterData);Cookies.set('comment_author_email_'+wpdiscuzCookiehash,email,{expires:storeCommenterData,path:'/'});Cookies.set('comment_author_'+wpdiscuzCookiehash,name,{expires:storeCommenterData,path:'/'});if(weburl.length){Cookies.set('comment_author_url_'+wpdiscuzCookiehash,weburl,{expires:storeCommenterData,path:'/'});}}if($('.wpd-cookies-checkbox').length){$('.wpd-cookies-checkbox').attr('checked','checked');}}var wcCommentTextBeforeEditing;$(document).delegate('.wc_editable_comment','click',function(){if(wcCommentTextBeforeEditing&&$('.wpdiscuz-edit-form-wrap').length){wcCancelOrSave(getUniqueID($('.wpdiscuz-edit-form-wrap'),0),wcCommentTextBeforeEditing);}
1var uniqueID=getUniqueID($(this),0);var commentID=getCommentID(uniqueID);var editButton=$(this);var data=new FormData();data.append('action','wpdEditComment');data.append('commentId',commentID);var wcCommentTextBeforeEditingTop=$('#wc-comm-'+uniqueID+' .wpd-top-custom-fields');var wcCommentTextBeforeEditingBottom=$('#wc-comm-'+uniqueID+' .wpd-bottom-custom-fields');wcCommentTextBeforeEditing=wcCommentTextBeforeEditingTop.length?'<div class=\"wpd-top-custom-fields\">'+wcCommentTextBeforeEditingTop.html()+'</div>':'';wcCommentTextBeforeEditing+='<div class=\"wc-comment-text\">'+$('#wc-comm-'+uniqueID+' .wc-comment-text').html()+'</div>';wcCommentTextBeforeEditing+=wcCommentTextBeforeEditingBottom.length?'<div class=\"wpd-bottom-custom-fields\">'+$('#wc-comm-'+uniqueID+' .wpd-bottom-custom-fields').html()+'</div>':'';var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);var message='';var messageKey=r.code;if(parseInt(messageKey)>=0){$('#wc-comm-'+uniqueID+' .wpd-top-custom-fields').remove();$('#wc-comm-'+uniqueID+' .wpd-bottom-custom-fields').remove();$('#wc-comm-'+uniqueID+' > .wc-comment-right .wc-comment-text').replaceWith(r.message);$('#wc-comm-'+uniqueID+' > .wc-comment-right .wc-comment-footer .wc_editable_comment').hide();$('#wc-comm-'+uniqueID+' > .wc-comment-right .wc-comment-footer .wc_cancel_edit').css('display','inline-block');var editForm=$('#wc-comm-'+uniqueID+' > .wc-comment-right #wpdiscuz-edit-form');}else{message=wpdiscuzAjaxObj.wpdiscuz_options[messageKey];wpdiscuzAjaxObj.setCommentMessage(editButton,messageKey,message,false);}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});$(document).delegate('.wc_save_edited_comment','click',function(){var uniqueID=getUniqueID($(this));var commentID=getCommentID(uniqueID);var editCommentForm=$('#wc-comm-'+uniqueID+' #wpdiscuz-edit-form');var saveButton=$(this);wpdValidateFieldRequired(editCommentForm);editCommentForm.submit(function(event){event.preventDefault();});if(editCommentForm[0].checkValidity()){var data=new FormData();data.append('action','wpdSaveEditedComment');data.append('wpdiscuz_unique_id',uniqueID);data.append('commentId',commentID);var inputs=$(\":input\",editCommentForm);inputs.each(function(){if($(this).is(':visible')&&this.name!=''&&this.type!='checkbox'&&this.type!='radio'){data.append(this.name+'',$(this).val());}
1if(this.type=='checkbox'||this.type=='radio'){if($(this).is(':checked')){data.append(this.name+'',$(this).val());}}});var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);var messageKey=r.code;var message='';if(parseInt(messageKey)>=0){wcCancelOrSave(uniqueID,r.message);if(r.twitterShareLink){$('#wc-comm-'+uniqueID+' #comment-'+commentID+'.wc-comment-right .wc-comment-header .wc-share-link .wc_tw').attr('href',r.twitterShareLink);}}else{message=wpdiscuzAjaxObj.wpdiscuz_options[messageKey];wpdiscuzAjaxObj.setCommentMessage(saveButton,messageKey,message,false);}runCallbacks(r,commentID);}catch(e){if(response.indexOf('<')>=0&&response.indexOf('>')>=0){message=e;}else{message=response;}wpdiscuzAjaxObj.setCommentMessage(saveButton,'wc_invalid_field',message,false);}$('.wpdiscuz-loading-bar').fadeOut(250);});}});$(document).delegate('.wc_cancel_edit','click',function(){var uniqueID=getUniqueID($(this));wcCancelOrSave(uniqueID,wcCommentTextBeforeEditing);});function wcCancelOrSave(uniqueID,content){$('#wc-comm-'+uniqueID+' > .wc-comment-right .wc-comment-footer .wc_editable_comment').show();$('#wc-comm-'+uniqueID+' > .wc-comment-right .wc-comment-footer .wc_cancel_edit').hide();$('#wc-comm-'+uniqueID+' .wpdiscuz-edit-form-wrap').replaceWith(content);}function nl2br(str,is_xhtml){var breakTag=(is_xhtml||typeof is_xhtml==='undefined')?'<br/>':'<br>';var string=(str+'').replace(/([^>\\r\\n]?)(\\r\\n|\\n\\r|\\r|\\n)/g,'$1'+breakTag+'$2');return string.replace('<br><br>','<br/>');}$(document).delegate('.wc-load-more-submit','click',function(){var loadButton=$(this);var loaded='wc-loaded';var loading='wc-loading';if(loadButton.hasClass(loaded)){wpdiscuzLoadComments(loadButton,loaded,loading);}});var isRun=false;if(commentListLoadType==2&&!wordpressIsPaginate){$('.wc-load-more-submit').parents('.wpdiscuz-comment-pagination').hide();wpdiscuzScrollEvents();$(window).scroll(function(){wpdiscuzScrollEvents();});}function wpdiscuzScrollEvents(){var wpdiscuzHasMoreComments=$('#wpdiscuzHasMoreComments').val();var scrollHeight=$(document).height();var scrollPosition=$(window).height()+$(window).scrollTop();if(scrollHeight&&scrollPosition){var scrollPercent=scrollPosition*100/scrollHeight;if(scrollPercent>=80&&isRun===false&&wpdiscuzHasMoreComments==1){isRun=true;wpdiscuzLoadComments($('.wc-load-more-submit'));}}}function wpdiscuzLoadComments(loadButton,loaded,loading){loadButton.toggleClass(loaded);loadButton.toggleClass(loading);var data=new FormData();data.append('action','wpdLoadMoreComments');data.append('offset',wpdiscuzLoadCount);data.append('orderBy',wpdiscuzCommentsOrderBy);data.append('order',wpdiscuzCommentsOrder);data.append('lastParentId',getLastParentID());if(wpdiscuzAjaxObj.wpdiscuz_options.enableLastVisitCookie){data.append(wpdiscuzLastVisitKey,Cookies.get(wpdiscuzLastVisitKey));}wpdiscuzLoadCount++;var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);$('.wpdiscuz-comment-pagination').before(r.comment_list);setLoadMoreVisibility(r);$('.wpdiscuz_single').remove();isRun=false;loadLastCommentId=r.loadLastCommentId;}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);$('.wc-load-more-submit').blur();loadButton.toggleClass(loaded);loadButton.toggleClass(loading);});}function setLoadMoreVisibility(r){if(r.is_show_load_more==false){$('#wpdiscuzHasMoreComments').val(0);$('.wc-load-more-submit').parents('.wpdiscuz-comment-pagination').hide();}else{setLastParentID(r.last_parent_id);$('#wpdiscuzHasMoreComments').val(1);}runCallbacks(r);}$(document).delegate('.wc_vote.wc_not_clicked','click',function(){var currentVoteBtn=$(this);$(currentVoteBtn).removeClass('wc_not_clicked');var messageKey='';var message='';var commentID=$(this).parents('.wc-comment-right').attr('id');commentID=commentID.substring(commentID.lastIndexOf('-')+1);var voteType;if($(this).hasClass('wc-up')){voteType=1;}else{voteType=-1;}var data=new FormData();data.append('action','wpdVoteOnComment');data.append('commentId',commentID);data.append('voteType',voteType);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){$(currentVoteBtn).addClass('wc_not_clicked');try{var r=$.parseJSON(response);messageKey=r.code;if(parseInt(messageKey)>=0){if(r.buttonsStyle=='total'){var voteCountDiv=$('.wc-comment-footer .wc-vote-result',$('#comment-'+commentID));voteCountDiv.text(parseInt(voteCountDiv.text())+voteType);}else{var likeCountDiv=$('.wc-comment-footer .wc-vote-result-like',$('#comment-'+commentID));var dislikeCountDiv=$('.wc-comment-footer .wc-vote-result-dislike',$('#comment-'+commentID));likeCountDiv.text(r.likeCount);dislikeCountDiv.text(r.dislikeCount);parseInt(r.likeCount)>0?likeCountDiv.addClass('wc-positive'):likeCountDiv.removeClass('wc-positive');parseInt(r.dislikeCount)<0?dislikeCountDiv.addClass('wc-negative'):dislikeCountDiv.removeClass('wc-negative');}}else{message=wpdiscuzAjaxObj.wpdiscuz_options[messageKey];wpdiscuzAjaxObj.setCommentMessage(currentVoteBtn,messageKey,message,fal
1se);}runCallbacks(r,commentID,voteType);}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});$(document).delegate('.wpdiscuz-sort-button','click',function(){if(!($(this).hasClass('wpdiscuz-sort-button-active'))){var clickedBtn=$(this);if($(this).hasClass('wpdiscuz-vote-sort-up')){wpdiscuzCommentsOrderBy='by_vote';wpdiscuzCommentsOrder='desc';}else{wpdiscuzCommentsOrderBy='comment_date_gmt';wpdiscuzCommentsOrder=$(this).hasClass('wpdiscuz-date-sort-desc')?'desc':'asc';}var cookieCommentsSorting=wpdiscuzAjaxObj.wpdiscuz_options.cookieCommentsSorting;var postId=wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id;var orderData={orderBy:wpdiscuzCommentsOrderBy,order:wpdiscuzCommentsOrder};Cookies.set(cookieCommentsSorting+\"_\"+postId,JSON.stringify(orderData),{expires:7,path:location.href});var data=new FormData();data.append('action','wpdSorting');data.append('orderBy',wpdiscuzCommentsOrderBy);data.append('order',wpdiscuzCommentsOrder);var messageKey='';var message='';var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);messageKey=r.code;message=r.message;if(parseInt(messageKey)>0){$('#wpcomm .wc-thread-wrapper .wc-comment').each(function(){$(this).remove();});$('#wpcomm .wc-thread-wrapper').prepend(message);wpdiscuzLoadCount=parseInt(r.loadCount);}setActiveButton(clickedBtn);setLoadMoreVisibility(r);}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});}});function setActiveButton(clickedBtn){$('.wpdiscuz-sort-buttons .wpdiscuz-sort-button').each(function(){$(this).removeClass('wpdiscuz-sort-button-active');});clickedBtn.addClass('wpdiscuz-sort-button-active');}function getSingleComment(){var loc=location.href;var matches=loc.match(/#comment\\-(\\d+)/);if(matches!==null){var commentId=matches[1];if(!$('#comment-'+commentId).length){var data=new FormData();data.append('action','wpdGetSingleComment');data.append('commentId',commentId);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);var scrollToSelector='.wc-thread-wrapper';if($('#comment-'+r.parentCommentID).length){var parentComment=$('#comment-'+r.parentCommentID);$('.wc-toggle',parentComment).trigger('click');scrollToSelector='#comment-'+r.parentCommentID;}else{$('.wc-thread-wrapper').prepend(r.message);}runCallbacks(r);$('html, body').animate({scrollTop:$(scrollToSelector).offset().top-32},1000);}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});}else{$('html, body').animate({scrollTop:$('#comment-'+commentId).parents('[id^=wc-comm-]').offset().top-32},1000);}}}getSingleComment();if(commentListUpdateType&&loadLastCommentId&&(isUserLoggedIn||(!isUserLoggedIn&&!disableGuestsLiveUpdate))){setInterval(liveUpdate,parseInt(commentListUpdateTimer)*1000);}function liveUpdate(){var visibleCommentIds=getVisibleCommentIds();var email=(Cookies.get('comment_author_email_'+wpdiscuzCookiehash)!=undefined&&Cookies.get('comment_author_email_'+wpdiscuzCookiehash)!='')?Cookies.get('comment_author_email_'+wpdiscuzCookiehash):'';var data=new FormData();data.append('action','wpdUpdateAutomatically');data.append('loadLastCommentId',loadLastCommentId);data.append('visibleCommentIds',visibleCommentIds);data.append('email',email);var ajax=isNativeAjaxEnabled?getAjaxObj(false,data):getCustomAjaxObj(false,data);ajax.done(function(response){try{var r=$.parseJSON(response);if(r.code==1){if(commentListUpdateType==1){liveUpdateImmediately(r);}else{wpdiscuzCommentArray=wpdiscuzCommentArray.concat(r.message.comments);wpdiscuzReplyArray=wpdiscuzReplyArray.concat(r.message.author_replies);var newCommentArrayLength=wpdiscuzCommentArray.length;var newRepliesArrayLength=wpdiscuzReplyArray.length;if(newCommentArrayLength>0){var newCommentText=newCommentArrayLength+' ';newCommentText+=newCommentArrayLength>1?wpdiscuzAjaxObj.wpdiscuz_options.wc_new_comments_button_text:wpdiscuzAjaxObj.wpdiscuz_options.wc_new_comment_button_text;$('.wc_new_comment').html(newCommentText).show();}else{$('.wc_new_comment').hide();}if(newRepliesArrayLength>0){var newReplyText=newRepliesArrayLength+' ';newReplyText+=newRepliesArrayLength>1?wpdiscuzAjaxObj.wpdiscuz_options.wc_new_replies_button_text:wpdiscuzAjaxObj.wpdiscuz_options.wc_new_reply_button_text;$('.wc_new_reply').html(newReplyText).show();}else{$('.wc_new_reply').hide();}}$('.wpd-cc-value').html(r.wc_all_comments_count_new);loadLastCommentId=r.loadLastCommentId;}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});}function liveUpdateImmediately(r){if(r.message!==undefined){var commentObject;var message=r.message;for(var i=0;i<message.length;i++){commentObject=message[i];addCommentToTree(commentObject.comment_parent,commentObject.comment_html);}}}$(document).delegate('.wc-update-on-click','click',function(){var data=new FormData();data.append('action','wpdUpdateOnClick');var clickedButton=$(this);if(clickedButton.hasClass('wc_new_comment')){data.append('newCommentIds',wpdiscuzCommentArray.join());}else{data.append('newCommentIds',wpdiscuzReplyArray.join());}var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);liveUpdateImmediately(r);if(clickedButton.hasClass('wc_new_comment')){wpdiscuzCommentArray=[];$('.wc_new_comment').hide();}else{wpdiscuzReplyArray=[];$('.wc_new_reply').hide();}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});$(document).delegate('.wpdiscuz-readmore','click',function(){var uniqueId=getUniqueID($(this));var commentId=getCommentID(uniqueId);var data=new FormData();
1data.append('action','wpdReadMore');data.append('commentId',commentId);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);if(r.code){$('#comment-'+commentId+' .wc-comment-text').html(' '+r.message);$('#wpdiscuz-readmore-'+uniqueId).remove();}runCallbacks(r);}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});wpdiscuzAjaxObj.setCommentMessage=function(field,messageKey,message,isFormError){var msgContainer;var parentContainer;if(isFormError){parentContainer=field.parents('.wc-form-wrapper');}else{parentContainer=field.closest('.wc-comment');}msgContainer=parentContainer.children('.wpdiscuz-comment-message');msgContainer.removeClass();msgContainer.addClass('wpdiscuz-comment-message');msgContainer.addClass(messageKey);msgContainer.html(message);msgContainer.show().delay(4000).fadeOut(1000,function(){msgContainer.removeClass();msgContainer.addClass('wpdiscuz-comment-message');msgContainer.html('');});}\nfunction cloneSecondaryForm(field){var uniqueId=getUniqueID(field,0);$('#wpdiscuz_form_anchor-'+uniqueId).before(replaceUniqueId(uniqueId));var secondaryFormWrapper=$('#wc-secondary-form-wrapper-'+uniqueId);secondaryFormWrapper.slideToggle(enableDropAnimation,function(){field.addClass('wpdiscuz-clonned');});changeCaptchaImage($('.wc_captcha_refresh_img',secondaryFormWrapper));}function replaceUniqueId(uniqueId){var secondaryForm=$('#wpdiscuz_hidden_secondary_form').html();return secondaryForm.replace(/wpdiscuzuniqueid/g,uniqueId);}function getUniqueID(field,isMain){var fieldID='';if(isMain){fieldID=field.parents('.wc-main-form-wrapper').attr('id');}else{fieldID=field.parents('.wc-comment').attr('id');}var uniqueID=fieldID.substring(fieldID.lastIndexOf('-')+1);return uniqueID;}function getCommentID(uniqueID){return uniqueID.substring(0,uniqueID.indexOf('_'));}function getLastParentID(){return $('.wc-load-more-link').attr(\"data-lastparentid\");}function setLastParentID(lastParentID){$('.wc-load-more-link').attr(\"data-lastparentid\",lastParentID);if(commentListLoadType!=2){$('.wpdiscuz-comment-pagination').show();}}function getCommentDepth(field){var fieldClasses=field.attr('class');var classesArray=fieldClasses.split(' ');var depth='';$.each(classesArray,function(index,value){if('wc_comment_level'===getParentDepth(value,false)){depth=getParentDepth(value,true);}});return parseInt(depth)+1;}function getParentDepth(depthValue,isNumberPart){var depth='';if(isNumberPart){depth=depthValue.substring(depthValue.indexOf('-')+1);}else{depth=depthValue.substring(0,depthValue.indexOf('-'));}return depth;}function addCommentToTree(parentId,comment){if(parentId==0){addCommentsAfterSticky(comment);}else{var parentUniqueId=getUniqueID($('#comment-'+parentId),0);$('#wpdiscuz_form_anchor-'+parentUniqueId).after(comment);}}function getVisibleCommentIds(){var uniqueId;var commentId;var visibleCommentIds='';$('.wc-comment-right').each(function(){uniqueId=getUniqueID($(this),0
1);commentId=getCommentID(uniqueId);visibleCommentIds+=commentId+',';});return visibleCommentIds;}function loginButtonsClone(){if($('.wc_social_plugin_wrapper .wp-social-login-provider-list').length){$('.wc_social_plugin_wrapper .wp-social-login-provider-list').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper >  .wc-secondary-forms-social-content');}else if($('.wc_social_plugin_wrapper .the_champ_login_container').length){$('.wc_social_plugin_wrapper .the_champ_login_container').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper >  .wc-secondary-forms-social-content');}else if($('.wc_social_plugin_wrapper .social_connect_form').length){$('.wc_social_plugin_wrapper .social_connect_form').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper >  .wc-secondary-forms-social-content');}else if($('.wc_social_plugin_wrapper .oneall_social_login_providers').length){$('.wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper >  .wc-secondary-forms-social-content');}}function wpdiscuzReset(){$('.wpdiscuz_reset').val(\"\");}function setTextareaCharCount(elem,count){if(commentTextMaxLength!=null){var currLength=elem.val().length;var textareaWrap=elem.parents('.wc_comm_form');var charCountDiv=$('.commentTextMaxLength',textareaWrap);var left=commentTextMaxLength-currLength;if(left<=10){charCountDiv.addClass('left10');}else{charCountDiv.removeClass('left10');}charCountDiv.html(left);}}function wpdValidateFieldRequired(form){var fieldsGroup=form.find('.wpd-required-group');$.each(fieldsGroup,function(){$('input',this).removeAttr('required');var checkedFields=$('input:checked',this);if(checkedFields.length===0){$('input',$(this)).attr('required','required');}else{$('.wpd-field-invalid',this).remove();}});if(wpdiscuzRecaptcha&&$('input[name=wpdiscuz_recaptcha]',form).length&&!$('input[name=wpdiscuz_recaptcha]',form).val().length){wpdGoogleRecaptchaValid=false;$('.wpdiscuz-recaptcha',form).css('border','1px solid red');}else if(wpdiscuzRecaptcha){$('.wpdiscuz-recaptcha',form).css('border','none');}}$(document).delegate('.wpd-required-group','change',function(){if($('input:checked',this).length!==0){$('input',$(this)).removeAttr('required');}else{$('input',$(this)).attr('required','required');}});$(document).delegate('.wpdiscuz-spoiler','click',function(){$(this).next().slideToggle();if($(this).hasClass('wpdiscuz-spoiler-closed')){$(this).parents('.wpdiscuz-spoiler-wrap').find('.fa-plus').removeClass('fa-plus').addClass('fa-minus');}else{$(this).parents('.wpdiscuz-spoiler-wrap').find('.fa-minus').removeClass('fa-minus').addClass('fa-plus');}$(this).toggleClass('wpdiscuz-spoiler-closed');});function wpdiscuzShowReplies(uniqueId){var commentId=getCommentID(uniqueId);var data=new FormData();data.append('action','wpdShowReplies');data.append('commentId',commentId);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);if(r.code==1){$('#wc-comm-'+uniqueId).replaceWith(r.data);$('#wc-comm-'+uniqueId+' .wc-toggle .fas').removeClass('fa-chevron-down').addClass('fa-chevron-up').removeClass('wpdiscuz-show-replies').attr('title',wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);var toggle=$('#wc-comm-'+uniqueId+' .wc-toggle');$('.wpdiscuz-children-button-text',toggle).text(wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);runCallbacks(r);}else{console.log('Unknown error occured');}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});}$(document).delegate('.wc_stick_btn','click',function(){var btn=$(this);var uniqueId=getUniqueID(btn,0);var commentId=getCommentID(uniqueId);var data=new FormData();data.append('action','wpdStickComment');data.append('commentId',commentId);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);if(r.code==1){$('.wc_stick_text',btn).text(r.data);setTimeout(function(){location.reload(true);},1000);}else{console.log('Comment not updated');}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});$(document).delegate('.wc_close_btn','click',function(){var btn=$(this);var uniqueId=getUniqueID(btn,0);var commentId=getCommentID(uniqueId);var data=new FormData();data.append('action','wpdCloseThread');data.append('commentId',commentId);var ajax=isNativeAjaxEnabled?getAjaxObj(true,data):getCustomAjaxObj(true,data);ajax.done(function(response){try{var r=$.parseJSON(response);if(r.code==1){$('.wc_close_btn',btn).text(r.data);setTimeout(function(){location.reload(true);},1000);}else{console.log('Comment not updated');}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});$(document).delegate('.wc_main_comm_form .wc_comment','focus',function(){$(this).parents('.wpdiscuz-textarea-wrap').find('.wc-field-avatararea').hide('fast');$(this).animate({'padding':'15px','font-size':'14px'},'fast');});$(document).delegate('.wc_main_comm_form .wc_comment','blur',function(){if(!$(this).val()){$(this).removeAttr(\"style\");$(this).parents('.wpdiscuz-textarea-wrap').find('.wc-field-avatararea').show(\"fast\");}});$(document).delegate('.wpd-stat-reacted','click',function(){var btn=$(this);$('.fas',btn).addClass('fa-pulse fa-spinner');var data=new FormData();data.append('action','wpdMostReactedComment');var ajax=isNativeAjaxEnabled?getAjaxObj(false,data):getCustomAjaxObj(false,data);ajax.done(function(response){try{$('.fas',btn).removeClass('fa-pulse fa-spinner');var r=$.parseJSON(response);if(r.code){var scrollToSelector='.wc-thread-wrapper';if($('#comment-'+r.commentId).length){scrollToSelector='#comment-'+r.commentId;}else if($('#comment-'+r.parentCommentID).length){var parentComment=$('#comment-'+r.parentCommentID);$('.wc-toggle',parentComment).trigger('click');}else{$('.wc-thread-wrapper').prepend(r.message);scrollToSelector='#comment-'+r.commentId;}runCallbacks(r);$('html, body').animate({scrollTop:$(scrollToSelector).offset().top-32},1000);}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});$(document).delegate('.wpd-stat-hot','click',function(){var btn=$(this);$('.fab',btn).addClass('fas fa-pulse fa-spinner');var data=new FormData();data.append('action','wpdHottestThread');var ajax=isNativeAjaxEnabled?getAjaxObj(false,data):getCustomAjaxObj(false,data);ajax.done(function(response){try{$('.fab',btn).removeClass('fas fa-pulse fa-spinner');var r=$.parseJSON(response);if(r.code){var scrollToSelector='.wc-thread-wrapper';if($('#comment-'+r.commentId).length){scrollToSelector='#comment-'+r.commentId;}else{$('.wc-thread-wrapper').prepend(r.message);scrollToSelector='#comment-'+r.commentId;}var comment=$('#comment-'+r.commentId);var toggle=$('.wc-toggle',comment);var icon=$('.fas',toggle);
1if(icon.hasClass('wpdiscuz-show-replies')&&isLoadOnlyParentComments){toggle.trigger('click');}runCallbacks(r);$('html, body').animate({scrollTop:$(scrollToSelector).offset().top-32},1000);}}catch(e){console.log(e);}$('.wpdiscuz-loading-bar').fadeOut(250);});});function addAgreementInCookie(wcForm){$('.wpd-agreement-checkbox',wcForm).each(function(){if($(this).hasClass('wpd_agreement_hide')&&isCookiesEnabled&&$(this).prop('checked')){Cookies.set($(this).attr('name')+'_'+wpdiscuzCookiehash,1,{expires:30,path:'/'});$('input[name='+$(this).attr('name')+']').each(function(){wpdiscuzAgreementFields.push($(this));});}});}function deleteAgreementFields(){if(wpdiscuzAgreementFields.length){wpdiscuzAgreementFields.forEach(function(item){item.parents('.wpd-field-checkbox').remove();});wpdiscuzAgreementFields=[];}}$(document).delegate('.wc-follow-link.wc_not_clicked','click',function(){var btn=$(this);btn.removeClass('wc_not_clicked');$('.fas',btn).addClass('fa-pulse fa-spinner');var uniqueId=getUniqueID(btn,0);var commentId=getCommentID(uniqueId);var data=new FormData();data.append('action','wpdFollowUser');data.append('commentId',commentId);var ajax=isNativeAjaxEnabled?getAjaxObj(false,data):getCustomAjaxObj(false,data);ajax.done(function(response){btn.addClass('wc_not_clicked');if(response.length){try{var r=$.parseJSON(response);if(r.code!==''){var message=wpdiscuzAjaxObj.wpdiscuz_options[r.code];wpdiscuzAjaxObj.setCommentMessage(btn,r.code,message,false);btn.removeClass('wc-follow-active');if(r.data.followTip){$('wpdtip',btn).html(r.data.followTip);}if(r.data&&r.data.followClass){btn.addClass(r.data.followClass);}}}catch(e){console.log(e);}}$('.fas',btn).removeClass('fa-pulse fa-spinner');});});function addCommentsAfterSticky(comment){if($('.wc-sticky-comment').last()[0]){$(comment).insertAfter($('.wc-sticky-comment').last()[0]);}else{$('.wc-thread-wrapper').prepend(comment);}}function showHideNotificationType(current){if(current){if(!current.prop('required')){if(current.val()){current.parents('form').find('[name=wpdiscuz_notification_type]').parent().css('display','inline-block');}else{current.parents('form').find('[name=wpdiscuz_notification_type]').parent().css('display','none');}}}else{$.each($('.wc_email'),function(i,val){var obj=$(val);if(!obj.prop('required')){if(obj.val()){obj.parents('form').find('[name=wpdiscuz_notification_type]').parent().css('display','inline-block');}else{obj.parents('form').find('[name=wpdiscuz_notification_type]').parent().css('display','none');}}});}}showHideNotificationType();$(document).delegate('.wc_email','keyup',function(){showHideNotificationType($(this));});$(document).delegate('#wpdiscuz-subscribe-form','submit',function(e){$('<input />').attr('type','hidden').attr('name',\"ahk\").attr('value',wpdiscuzAjaxObj.wpdiscuz_options.ahk).appendTo('#wpdiscuz-subscribe-form');return true;});function runCallbacks(r,commentID,voteType,wcForm){if(r.callbackFunctions){$.each(r.callbackFunctions,function(i){if(typeof wpdiscuzAjaxObj[r.callbackFunctions[i]]===\"function\"){wpdiscuzAjaxObj[r.callbackFunctions[i]](r.code,commentID,voteType,wcForm);}else{console.log(r.callbackFunctions[i]+\" is not a function\");}});}}function getAjaxObj(isShowTopLoading,data){if(isShowTopLoading){$('.wpdiscuz-loading-bar').show();}data.append('postId',wpdiscuzPostId);return $.ajax({type:'POST',url:wpdiscuzAjaxObj.url,data:data,contentType:false,processData:false,});}function getCustomAjaxObj(isShowTopLoading,data){if(isShowTopLoading){$('.wpdiscuz-loading-bar').show();}data.append('postId',wpdiscuzPostId);return $.ajax({type:'POST',url:wpdiscuzAjaxObj.customAjaxUrl,data:data,contentType:false,processData:false,});}});";
2var mod_pagespeed_LatpG99Qjt = "!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):a(\"object\"==typeof exports?require(\"jquery\"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=\"Close\",i=\"BeforeClose\",j=\"AfterClose\",k=\"BeforeAppend\",l=\"MarkupParse\",m=\"Open\",n=\"Change\",o=\"mfp\",p=\".\"+o,q=\"mfp-ready\",r=\"mfp-removing\",s=\"mfp-prevent-close\",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement(\"div\");return f.className=\"mfp-\"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace(\"%title%\",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement(\"p\").style,b=[\"ms\",\"O\",\"Moz\",\"Webkit\"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+\"Transition\"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f=\"\",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos=\"auto\"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x(\"bg\").on(\"click\"+p,function(){b.close()}),b.wrap=x(\"wrap\").attr(\"tabindex\",-1).on(\"click\"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x(\"container\",b.wrap)),b.contentContainer=x(\"content\"),b.st.preloader&&(b.preloader=x(\"preloader\",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b[\"init\"+j].call(b)}y(\"BeforeOpen\"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=\" mfp-close-btn-in\"):b.wrap.append(z())),b.st.alignTop&&(f+=\" mfp-align-top\"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:\"hidden\",overflowY:b.
2st.overflowY}):b.wrap.css({top:v.scrollTop(),position:\"absolute\"}),(b.st.fixedBgPos===!1||\"auto\"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:\"absolute\"}),b.st.enableEscapeKey&&d.on(\"keyup\"+p,function(a){27===a.keyCode&&b.close()}),v.on(\"resize\"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=\" mfp-auto-cursor\"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a(\"body, html\").css(\"overflow\",\"hidden\"):n.overflow=\"hidden\");var r=b.st.mainClass;return b.isIE7&&(r+=\" mfp-ie7\"),r&&b._addClassToMFP(r),b.updateItemHTML(),y(\"BuildControls\"),a(\"html\").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on(\"focusin\"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+\" \"+q+\" \";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+\" \"),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:\"\"};b.isIE7?a(\"body, html\").css(\"overflow\",\"\"):e.overflow=\"\",a(\"html\").css(e)}d.off(\"keyup\"+p+\" focusin\"+p),b.ev.off(p),b.wrap.attr(\"class\",\"mfp-wrap\").removeAttr(\"style\"),b.bgOverlay.attr(\"class\",\"mfp-bg\"),b.container.attr(\"class\",\"mfp-container\"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css(\"height\",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css(\"height\",b.wH),y(\"Resize\")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y(\"BeforeChange\",[b.currItem?b.currItem.type:\"\",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y(\"FirstMarkupParse\",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass(\"mfp-\"+e+\"-holder\");var g=b[\"get\"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y(\"AfterChange\")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(\".mfp-close\").length||b.content.append(z()):b.content=a:b.content=\"\",y(k),b.container.addClass(\"mfp-\"+c+\"-holder\"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass(\"mfp-\"+f[g])){d=f[g];break}e.src=e.el.attr(\"data-mfp-src\"),e.src||(e.src=e.el.attr(\"href\"))}return e.type=d||b.st.type||\"inline\",e.index=c,e.parsed=!0,b.items[c]=e,y(\"ElementParse\",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e=\"click.magnificPopup\";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass(\"mfp-s-\"+c),d||\"loading\"!==a||(d=b.st.tLoading);var e={status:a,text:d};y(\"UpdateStatus\",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find(\"a\").on(\"click\",function(a){a.stopImmediatePropagation()}),b.container.addClass(\"mfp-s-\"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;
2if(!b.content||a(c).hasClass(\"mfp-close\")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split(\"_\"),e.length>1){var f=b.find(p+\"-\"+e[0]);if(f.length>0){var g=e[1];\"replaceWith\"===g?f[0]!==d[0]&&f.replaceWith(d):\"img\"===g?f.is(\"img\")?f.attr(\"src\",d):f.replaceWith(a(\"<img>\").attr(\"src\",d).attr(\"class\",f.attr(\"class\"))):f.attr(e[1],d)}}else b.find(p+\"-\"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement(\"div\");a.style.cssText=\"width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;\",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:\"\",preloader:!0,focus:\"\",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:\"auto\",fixedBgPos:\"auto\",overflowY:\"auto\",closeMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-close\">&#215;</button>',tClose:\"Close (Esc)\",tLoading:\"Loading...\",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if(\"string\"==typeof c)if(\"open\"===c){var e,f=u?d.data(\"magnificPopup\"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data(\"magnificPopup\",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F=\"inline\",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:\"hide\",markup:\"\",tNotFound:\"Content not found\"},proto:{initInline:function(){b.types.push(F),w(h+\".\"+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C=\"mfp-\"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus(\"ready\")}else b.updateStatus(\"error\",e.tNotFound),f=a(\"<div>\");return c.inlineElement=f,f}return b.updateStatus(\"ready\"),b._parseMarkup(d,{},c),d}}});var H,I=\"ajax\",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:\"mfp-ajax-cur\",tError:'<a href=\"%url%\">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+\".\"+I,K),w(\"BeforeChange.\"+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus(\"loading\");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y(\"ParseAjax\",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus(\"ready\"),y(\"AjaxContentAdded\")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus(\"error\",b.st.ajax.tError.replace(\"%url%\",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),\"\"}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;
2var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||\"\"}return\"\"};a.magnificPopup.registerModule(\"image\",{options:{markup:'<div class=\"mfp-figure\"><div class=\"mfp-close\"></div><figure><div class=\"mfp-img\"></div><figcaption><div class=\"mfp-bottom-bar\"><div class=\"mfp-title\"></div><div class=\"mfp-counter\"></div></div></figcaption></figure></div>',cursor:\"mfp-zoom-out-cur\",titleSrc:\"title\",verticalFit:!0,tError:'<a href=\"%url%\">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=\".image\";b.types.push(\"image\"),w(m+d,function(){\"image\"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off(\"resize\"+p)}),w(\"Resize\"+d,b.resizeImage),b.isLowIE&&w(\"AfterChange\",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css(\"padding-top\"),10)+parseInt(a.img.css(\"padding-bottom\"),10)),a.img.css(\"max-height\",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y(\"ImageHasSize\",a),a.imgHidden&&(b.content&&b.content.removeClass(\"mfp-loading\"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"ready\")),c.hasSize=!0,c.loaded=!0,y(\"ImageLoadComplete\")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(\".mfp-img\");if(i.length){var j=document.createElement(\"img\");j.className=\"mfp-img\",c.el&&c.el.find(\"img\").length&&(j.alt=c.el.find(\"img\").attr(\"alt\")),c.img=a(j).on(\"load.mfploader\",f).on(\"error.mfploader\",g),j.src=c.src,i.is(\"img\")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass(\"mfp-loading\"),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))):(d.removeClass(\"mfp-loading\"),b.updateStatus(\"ready\")),d):(b.updateStatus(\"loading\"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass(\"mfp-loading\"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement(\"p\").style.MozTransform),N};a.magnificPopup.registerModule(\"zoom\",{options:{enabled:!1,easing:\"ease-in-out\",duration:300,opener:function(a){return a.is(\"img\")?a:a.find(\"img\")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=\".zoom\";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr(\"style\").removeAttr(\"class\").addClass(\"mfp-animated-image\"),d=\"all \"+c.duration/1e3+\"s \"+c.easing,e={position:\"fixed\",zIndex:9999,left:0,top:0,\"-webkit-backface-visibility\":\"hidden\"},f=\"transition\";return e[\"-webkit-\"+f]=e[\"-moz-\"+f]=e[\"-o-\"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css(\"visibility\",\"visible\")};w(\"BuildControls\"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css(\"visibility\",\"hidden\"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y(\"ZoomAnimationEnded\")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css(\"visibility\",\"hidden\"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return\"image\"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css(\"padding-top\"),10),g=parseInt(d.css(\"padding-bottom\"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h[\"-moz-transform\"]=h.transform=\"translate(\"+e.left+\"px,\"+e.top+\"px)\":(h.left=e.left,h.top=e.top),h}}});
2var P=\"iframe\",Q=\"//about:blank\",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find(\"iframe\");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css(\"display\",a?\"block\":\"none\"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class=\"mfp-iframe-scaler\"><div class=\"mfp-close\"></div><iframe class=\"mfp-iframe\" src=\"//about:blank\" frameborder=\"0\" allowfullscreen></iframe></div>',srcAction:\"iframe_src\",patterns:{youtube:{index:\"youtube.com\",id:\"v=\",src:\"//www.youtube.com/embed/%id%?autoplay=1\"},vimeo:{index:\"vimeo.com/\",id:\"/\",src:\"//player.vimeo.com/video/%id%?autoplay=1\"},gmaps:{index:\"//maps.google.\",src:\"%id%&output=embed\"}}},proto:{initIframe:function(){b.types.push(P),w(\"BeforeChange\",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+\".\"+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e=\"string\"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace(\"%id%\",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus(\"ready\"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule(\"gallery\",{options:{enabled:!1,arrowMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-arrow mfp-arrow-%dir%\"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:\"Previous (Left arrow key)\",tNext:\"Next (Right arrow key)\",tCounter:\"%curr% of %total%\"},proto:{initGallery:function(){var c=b.st.gallery,e=\".mfp-gallery\";return b.direction=!0,c&&c.enabled?(f+=\" mfp-gallery\",w(m+e,function(){c.navigateByImgClick&&b.wrap.on(\"click\"+e,\".mfp-img\",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on(\"keydown\"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w(\"UpdateStatus\"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):\"\"}),w(\"BuildControls\"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,\"left\")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,\"right\")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off(\"click\"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y(\"LazyLoad\",d),\"image\"===d.type&&(d.img=a('<img class=\"mfp-img\" />').on(\"load.mfploader\",function(){d.hasSize=!0}).on(\"error.mfploader\",function(){d.hasSize=!0,d.loadError=!0,y(\"LazyLoadError\",d)}).attr(\"src\",d.src)),d.preloaded=!0}}}});var U=\"retina\";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\\.\\w+$/,function(a){return\"@2x\"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w(\"ImageHasSize.\"+U,function(a,b){b.img.css({\"max-width\":b.img[0].naturalWidth/c,width:\"100%\"})}),w(\"ElementParse.\"+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});";
3var mod_pagespeed_uaXxEWFC7w = "(function($){$.fn.fitVids=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById(\"fit-vids-style\")){var head=document.head||document.getElementsByTagName(\"head\")[0];var css=\".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}\";var div=document.createElement(\"div\");div.innerHTML='<p>x</p><style id=\"fit-vids-style\">'+css+\"</style>\";head.appendChild(div.childNodes[1])}if(options)$.extend(settings,options);return this.each(function(){var selectors=[\"iframe[src*='player.vimeo.com']\",\"iframe[src*='youtube.com']\",\"iframe[src*='youtube-nocookie.com']\",\"iframe[src*='kickstarter.com'][src*='video.html']\",\"object\",\"embed\"];if(settings.customSelector)selectors.push(settings.customSelector);var ignoreList=\".fitvidsignore\";if(settings.ignore)ignoreList=ignoreList+\", \"+settings.ignore;var $allVideos=$(this).find(selectors.join(\",\"));$allVideos=$allVideos.not(\"object object\");$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(){var $this=$(this);if($this.parents(ignoreList).length>0)return;if(this.tagName.toLowerCase()===\"embed\"&&$this.parent(\"object\").length||$this.parent(\".fluid-width-video-wrapper\").length)return;if(!$this.css(\"height\")&&!$this.css(\"width\")&&(isNaN($this.attr(\"height\"))||isNaN($this.attr(\"width\")))){$this.attr(\"height\",9);$this.attr(\"width\",16)}var height=this.tagName.toLowerCase()===\"object\"||$this.attr(\"height\")&&!isNaN(parseInt($this.attr(\"height\"),10))?parseInt($this.attr(\"height\"),10):$this.height(),width=!isNaN(parseInt($this.attr(\"width\"),10))?parseInt($this.attr(\"width\"),10):$this.width(),aspectRatio=height/width;if(!$this.attr(\"id\")){var videoID=\"fitvid\"+Math.floor(Math.random()*999999);$this.attr(\"id\",videoID)}$this.wrap('<div class=\"fluid-width-video-wrapper\"></div>').parent(\".fluid-width-video-wrapper\").css(\"padding-top\",aspectRatio*100+\"%\");$this.removeAttr(\"height\").removeAttr(\"width\")})})}})(window.jQuery||window.Zepto);";

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.