OwlCyberSecurity - MANAGER
Edit File: give.js
(()=>{var e={98103:function(e,t){!function(){var n={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},i=Array.prototype.map,r=Array.isArray,o=Object.prototype.toString;function a(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function s(e){return r?r(e):"[object Array]"===o.call(e)}function l(e){return e&&"[object Object]"===o.call(e)}function c(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function u(e,t,n){var r,o,a=[];if(!e)return a;if(i&&e.map===i)return e.map(t,n);for(r=0,o=e.length;r<o;r++)a[r]=t.call(n,e[r],r,e);return a}function d(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function f(e){var t=n.settings.currency.format;return"function"==typeof e&&(e=e()),a(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:a(t)?n.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m=n.unformat=n.parse=function(e,t){if(s(e))return u(e,(function(e){return m(e,t)}));if("number"==typeof(e=e||0))return e;t=t||n.settings.number.decimal;var i=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(i,"").replace(t,"."));return isNaN(r)?0:r},p=n.toFixed=function(e,t){t=d(t,n.settings.number.precision);var i=Math.pow(10,t);return(Math.round(n.unformat(e)*i)/i).toFixed(t)},g=n.formatNumber=n.format=function(e,t,i,r){if(s(e))return u(e,(function(e){return g(e,t,i,r)}));e=m(e);var o=c(l(t)?t:{precision:t,thousand:i,decimal:r},n.settings.number),a=d(o.precision),f=e<0?"-":"",v=parseInt(p(Math.abs(e||0),a),10)+"",h=v.length>3?v.length%3:0;return f+(h?v.substr(0,h)+o.thousand:"")+v.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+p(Math.abs(e),a).split(".")[1]:"")},v=n.formatMoney=function(e,t,i,r,o,a){if(s(e))return u(e,(function(e){return v(e,t,i,r,o,a)}));e=m(e);var p=c(l(t)?t:{symbol:t,precision:i,thousand:r,decimal:o,format:a},n.settings.currency),h=f(p.format);return(e>0?h.pos:e<0?h.neg:h.zero).replace("%s",p.symbol).replace("%v",g(Math.abs(e),d(p.precision),p.thousand,p.decimal))};n.formatColumn=function(e,t,i,r,o,p){if(!e)return[];var v=c(l(t)?t:{symbol:t,precision:i,thousand:r,decimal:o,format:p},n.settings.currency),h=f(v.format),y=h.pos.indexOf("%s")<h.pos.indexOf("%v"),b=0,w=u(e,(function(e,t){if(s(e))return n.formatColumn(e,v);var i=((e=m(e))>0?h.pos:e<0?h.neg:h.zero).replace("%s",v.symbol).replace("%v",g(Math.abs(e),d(v.precision),v.thousand,v.decimal));return i.length>b&&(b=i.length),i}));return u(w,(function(e,t){return a(e)&&e.length<b?y?e.replace(v.symbol,v.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=n),t.accounting=n}()},8951:()=>{function e(e,t){const n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),i=jQuery(e).find("#give-amount").val(),r=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:i,give_form_id:r,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("Give:onGatewayLoadSuccess"),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);const i=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(i),jQuery(e).unblock()}))}jQuery(document).ready((function(t){Give.form.fn.isFormExist()&&(t(".give-loading-text").hide(),t(".give-form").each((function(e,t){let n,i,r,o;t=jQuery(t),n=Give.form.fn.getNonceInfo(t),n.el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),i=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life"))),r=Date.now(),o=i-r,o=0>o?o:o+100,window.setTimeout((function(){Give.form.fn.resetAllNonce(t)}),o)}))),t(document).on("click",".give-checkout-login",(function(e){const n=t(this),i=t(this).parents("form"),r=n.parents("div.give-login-account-wrap").find(".give-loading-text"),o={action:n.data("action"),form_id:t(i).find('[name="give-form-id"]').val()};return r.show(),t.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(e){const n=t(i).find("[id^=give-checkout-login-register]");n.length&&parseInt(n.html().trim().length)?t(i).find("[id^=give-checkout-login-register]").html(e):t(i).find('[id^="give_checkout_user_info"]').html(e),t(i).find(".give-submit-button-wrap").hide()})).done((function(){r.hide(),give_fl_trigger()})),!1})),t(document).on("click",".give-checkout-register-cancel",(function(e){e.preventDefault();const n=t(this),i=t(this).parents("form"),r={action:n.data("action"),form_id:t(i).find('[name="give-form-id"]').val()};t.post(Give.fn.getGlobalVar("ajaxurl"),r,(function(e){t(i).find("[id^=give-checkout-login-register]").replaceWith(t.parseJSON(e.fields)),t(i).find("[id^=give-checkout-login-register]").css({display:"block"}),t(i).find(".give-submit-button-wrap").show()})).done((function(){give_fl_trigger()}))})),t(document).on("click","[id^=give-login-fields] input[type=submit]",(function(n){n.preventDefault();const i=t(this).val(),r=t(this).parents("form");t(this).val(Give.fn.getGlobalVar("purchase_loading")),r.find("[id^=give-login-fields] .give-loading-animation").fadeIn();const o={action:"give_process_donation_login",give_ajax:1,give_user_login:r.find("[name=give_user_login]").val(),give_user_pass:r.find("[name=give_user_pass]").val(),give_form_id:r.find("[name=give-form-id]").val()};t.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(n){null!=t.trim(typeof n.success)&&1==n.success&&void 0!==typeof n.data?(r.find(".give_errors").remove(),r.find("[id^=give-checkout-login-register]").before(n.data),r.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(r).then((t=>{e(r,r.find(".give-gateway-option-selected input").val())}))):(r.find("[id^=give-login-fields] input[type=submit]").val(i),r.find(".give-loading-animation").fadeOut(),r.find(".give_errors").remove(),r.find("[id^=give-user-login-submit]").before(n.data))}))})),t(document).on("change","select#give-gateway, input.give-gateway",(function(n){n.preventDefault();const i=t(this).val();return"0"==i?(console.log("There was a problem loading the selected gateway"),!1):(e(t(this).parents("form"),i),!1)})),t("body").on("click","#give-confirm-email-btn",(function(e){const n=t(this),i={action:"give_confirm_email_for_donations_access",email:n.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return n.text(Give.fn.getGlobalVar("loading")),n.attr("disabled","disabled"),t.post(Give.fn.getGlobalVar("ajaxurl"),i,(function(e){"error"===(e=JSON.parse(e)).status?(n.closest("#give_user_history tfoot").hide(),n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),n.hide(),n.closest(".give-security-button-wrap").find("span").show())})),!1})),t("body").on("click",'form.give-form input[name="give-purchase"].give-submit',(function(e){const n=t(this),i=n.parents("form.give-form"),r=i.find('input[type="submit"].give-submit + .give-loading-animation');r.fadeIn();const o=i.get(0);if("function"==typeof o.checkValidity&&!1===o.checkValidity())return void r.fadeOut();e.preventDefault();const a=t(this).val();t(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(i,!0),t.post(Give.fn.getGlobalVar("ajaxurl"),i.serialize()+"&action=give_process_donation&give_ajax=true",(function(e){if("success"==t.trim(e))i.parent().find(".give_errors").remove(),t(o).submit(),i.trigger("give_form_validation_passed");else{const t=i.parent().find(".payment"),o=i.parent().find(".give-form-header");n.val(a),r.fadeOut(),i.parent().find(".give_errors").remove(),t.length>0?t.prepend(e):o.length>0?o.after(e):i.parent().prepend(e),i.parent()[0].scrollIntoView({behavior:"smooth"}),Give.form.fn.disable(i,!1)}}))}));const n=document.getElementById("give-receipt");if(n){const e={action:"get_receipt",shortcode_atts:n.getAttribute("data-shortcode"),donation_id:n.getAttribute("data-donation-key"),receipt_type:n.getAttribute("data-receipt-type")};e[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),t.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:e,success:function(e){if(n.innerHTML=e,n.parentElement.classList.contains("give-form-templates")){const e=setInterval((function(){window.parentIFrame&&(clearInterval(e),window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"}))}),50)}}})}}))},19618:()=>{jQuery((function(e){const t=jQuery("form.give-form"),n=e(document),i={forms:{}};e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("keyup give_option_change","#give-first, #give-last, #give-email, #give-company-name-radio-list .give_company_option, #give-company",(function(e){const t=e.target,n=t.parentElement.closest("form.give-form");if(n){const e=n.getAttribute("id");i.forms={...i.forms,[e]:{...i.forms[e],[t.name]:t.value}}}})),n.on("give_gateway_loaded",(function(){for(const[e,t]of Object.entries(i.forms))for(const[n,i]of Object.entries(t)){const t=document.querySelectorAll(`form#${e} [name="${n}"]`);t&&t.forEach((function(e){"radio"===e.type?e.checked=e.value===i:e.value=i}))}})),n.on("change","#give_cc_address input.card_state, #give_cc_address select",(function(){const t=e(this),i=t.parents("form");if("card_state"!==t.attr("id")){i.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);const r={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:r,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(t){let r="",o=t.states_label,a=i.find('input[name="card_state"], select[name="card_state"]'),s=i.find('input[name="card_city"]');void 0!==t.states_found&&!0===t.states_found?r=e(t.data):(r=`<input type="text" id="card_state" name="card_state" class="card_state give-input required" placeholder="${o}" value="${t.default_state}" autocomplete="address-level4"/>`,r=e(r)),!1===i.hasClass("float-labels-enabled")?(void 0!==t.states_require&&!0===t.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==t.city_require&&!0===t.city_require?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.removeAttr("required"))):(void 0!==t.states_require&&!0===t.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==t.city_require&&!0===t.city_require?(s.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),s.attr("required",!0)):(s.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),s.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(o),a.replaceWith(r),void 0!==t.show_field&&!0===t.show_field?(i.find("p#give-card-state-wrap").removeClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-last"),i.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(i.find("p#give-card-state-wrap").addClass("give-hidden"),i.find("p#give-card-zip-wrap").addClass("form-row-wide"),i.find("p#give-card-zip-wrap").removeClass("form-row-last"));const l=!!t.zip_require;i.find("input#card_zip").toggleClass("required",l).attr("required",l).attr("aria-required",l),i.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!l),n.trigger("give_checkout_billing_address_updated",[t,i.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),n.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(t),n.find("#give-company-radio-list-wrap .give_company_option:checked").trigger("change")})),n.on("change","#give-company-radio-list-wrap .give_company_option",(function(){var e,t=jQuery(this).closest("form.give-form");t||(t=jQuery(this).parents("form")),e=t.find("#give-company-wrap"),"yes"===t.find('input[name="give_company_option"]:radio:checked').val()?e.show():e.hide().find("input").val("").trigger("keyup"),jQuery(this).trigger("give_option_change")})).find("#give-company-radio-list-wrap .give_company_option:checked").trigger("change"),n.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),n.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){let t,n=e(this).parents("form"),i=n.find("#give-payment-mode-select li"),r=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();i.removeClass("give-gateway-option-selected"),i.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),e(this).focus(),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+r,"payment-mode="+t))})),n.on("focus",".give-donation-amount .give-text-input",(function(t){const n=e(this).parents("form");e(this).removeClass("invalid-amount");const i=n.find(".give-final-total-amount").attr("data-total"),r=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(i,r)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),n.on("blur",".give-donation-amount .give-text-input",(function(t,n,i,r){let o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),s=void 0!==i?i:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),d=0===s?c:Give.fn.unFormatCurrency(s,l),f=Give.form.fn.formatAmount(d,o,{});if(r=void 0===r?Give.form.fn.getPriceID(o,!0):r,""===d||0===d){const t=e('.give-donation-levels-wrap [data-default="1"]',n);t.length&&(r=t.data("price-id"),s=d=Give.fn.unFormatCurrency(t.val(),l),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,r,o),e(this).val(f),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){e(this).remove()})),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);const t=o.find(".give-invalid-minimum"),n=o.find(".give-invalid-maximum");0===t.length&&d<c?Give.notice.fn.renderNotice("bad_minimum",o):d>=c&&t.slideUp(300,(function(){e(this).remove()})),0===n.length&&d>u?Give.notice.fn.renderNotice("bad_maximum",o):d<=u&&n.slideUp(300,(function(){e(this).remove()}))}if(a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==r){e('input[name="give-price-id"]',o).val(r);const t=o.find(".give-amount-hidden");t&&(t.val(Give.form.fn.formatAmount(d,o,{})),t.trigger("change")),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,r)}e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,d,r])})),n.on("click",".give-donation-level-btn",(function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click",".give-radio-input-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("change",".give-select-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click",".give_terms_links",(function(t){t.preventDefault();const n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1})),e('label[for^="give-radio-level"]').on("click",(function(t){const n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){let t=jQuery(this),n=t.parents("form.give-form"),i=t.attr("id"),r=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(r.val()),l=!1;if("focusout"===e.type)i.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(r.val()),r.toggleError(l)):i.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):i.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);else if(t.hasClass("error")&&t.removeClass("error"),i.indexOf("card_number")>-1){const e=n.find(".card-type");null===s?(e.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):e.removeClass().addClass("card-type "+s)}else if(i.indexOf("card_expiry")>-1){const e=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(e.month),n.find(".card-expiry-year").val(e.year)}}))}))},23878:()=>{!function(){"use strict";window.addDynamicEventListener=function(e,t,n,i,r){e.addEventListener(t,function(e,t){return function(n){n.target&&(n.target.matches(e)||n.target.closest(e))&&t.apply(this,arguments)}}(n,i),r)}}()},31203:()=>{jQuery.fn.giveHintCss=function(e,t){return this.each((function(){const n=jQuery(this);t=jQuery.extend({label:""},t);let i=n.next("span.give-hint-tooltip-js");if(!i.length){const e=t.label.length?t.label:n.data("hint-aria-label");if(!e.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+e+'"></span>'),i=n.next(),i.css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?i.addClass("hint--always"):"hide"===e&&i.removeClass("hint--always")}))},jQuery(document).ready((function(e){const t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){let n=t.attr("class"),i=[],r=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),i=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")})),i.length&&(i=i.join(" "),t.removeClass(i),t.append('<i class="'+i+'"></i>'))),t.addClass("hint--top"),15<r?t.addClass("hint--large"):7<r&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,i){n(i=i instanceof jQuery?i:e(i))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},22979:()=>{document.addEventListener("readystatechange",(e=>{if("complete"!==e.target.readyState)return null;const t={};function n(e,t,n){for(const[i,r]of Object.entries(n)){const n=e.querySelector(i),o=n.getAttribute("data-field-name"),a=r[0];let s=!1;const{comparisonOperator:l}=a;let{value:c}=a;const u=e.querySelectorAll(`[name="${t}"]`);if(u.length)if(u.forEach((t=>{const n=t.getAttribute("type");let i=t.value;"give-amount"===t.name&&(i=Give.fn.unFormatCurrency(t.value,Give.form.fn.getInfo("decimal_separator",e)),c=Math.abs(parseFloat(c)));const r={"=":(o=i)===(a=c),"!=":o!==a,">":o>a,">=":o>=a,"<":o<a,"<=":o<=a}[l];var o,a;"checkbox"===n?(r&&t.checked&&"="===l||!t.checked&&"!="===l)&&(s=!0):"radio"===n?t.checked&&r&&(s=!0):r&&(s=!0)})),s){const e=n.querySelector(`[name="${o}"][data-required]`);n.classList.remove("give-hidden"),e&&(e.setAttribute("required",""),e.removeAttribute("data-required"))}else{const e=n.querySelector(`[name="${o}"][required]`);n.classList.add("give-hidden"),e&&(e.removeAttribute("required"),e.setAttribute("data-required","1"))}}}function i(e){const n=e.getAttribute("data-id"),i=function(e){const t={};return e.querySelectorAll("[data-field-visibility-conditions]").forEach((function(e){const n=JSON.parse(e.getAttribute("data-field-visibility-conditions")),i=n[0];let r=`[data-field-name="${e.getAttribute("data-field-name")}"]`,{field:o}=i;o=document.querySelector(`[name="${o}"], [name="${o}[]"]`),o&&(t[o.name]={...t[o.name],[r]:n})})),t}(e);n&&Object.keys(i).length&&(t[n]=i)}function r(e){const i=document.querySelector(`form.give-form[data-id="${e}"`).closest("form.give-form");if(i&&t.hasOwnProperty(e))for(const[r,o]of Object.entries(t[e]))document.querySelectorAll(`[name = "${r}"]`).forEach((e=>{jQuery(e).on("input change blur",n.bind(null,i,r,o))}))}!function(){document.querySelectorAll("form.give-form").forEach(i);for(const[e,i]of Object.entries(t)){for(const[t,r]of Object.entries(i))n(document.querySelector(`form[data-id="${e}"]`).closest(".give-form"),t,r);r(e)}}(),document.addEventListener("give_gateway_loaded",(e=>{const o=document.getElementById(e.detail.formIdAttribute),a=o.getAttribute("data-id");i(o),function(e){const i=e.getAttribute("data-id");if(i&&i in t){const e=t[i];for(const[t,r]of Object.entries(e))n(document.querySelector(`form[data-id="${i}"]`).closest(".give-form"),t,r)}}(o),r(a)}))}))},18922:function(e,t,n){var i;!function(){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(l=o)|s>>>32-l,n);var s,l}function a(e,t,n,i,r,a,s){return o(t&n|~t&i,e,t,r,a,s)}function s(e,t,n,i,r,a,s){return o(t&i|n&~i,e,t,r,a,s)}function l(e,t,n,i,r,a,s){return o(t^n^i,e,t,r,a,s)}function c(e,t,n,i,r,a,s){return o(n^(t|~i),e,t,r,a,s)}function u(e,t){var n,i,o,u,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,m=-271733879,p=-1732584194,g=271733878;for(n=0;n<e.length;n+=16)i=f,o=m,u=p,d=g,f=a(f,m,p,g,e[n],7,-680876936),g=a(g,f,m,p,e[n+1],12,-389564586),p=a(p,g,f,m,e[n+2],17,606105819),m=a(m,p,g,f,e[n+3],22,-1044525330),f=a(f,m,p,g,e[n+4],7,-176418897),g=a(g,f,m,p,e[n+5],12,1200080426),p=a(p,g,f,m,e[n+6],17,-1473231341),m=a(m,p,g,f,e[n+7],22,-45705983),f=a(f,m,p,g,e[n+8],7,1770035416),g=a(g,f,m,p,e[n+9],12,-1958414417),p=a(p,g,f,m,e[n+10],17,-42063),m=a(m,p,g,f,e[n+11],22,-1990404162),f=a(f,m,p,g,e[n+12],7,1804603682),g=a(g,f,m,p,e[n+13],12,-40341101),p=a(p,g,f,m,e[n+14],17,-1502002290),f=s(f,m=a(m,p,g,f,e[n+15],22,1236535329),p,g,e[n+1],5,-165796510),g=s(g,f,m,p,e[n+6],9,-1069501632),p=s(p,g,f,m,e[n+11],14,643717713),m=s(m,p,g,f,e[n],20,-373897302),f=s(f,m,p,g,e[n+5],5,-701558691),g=s(g,f,m,p,e[n+10],9,38016083),p=s(p,g,f,m,e[n+15],14,-660478335),m=s(m,p,g,f,e[n+4],20,-405537848),f=s(f,m,p,g,e[n+9],5,568446438),g=s(g,f,m,p,e[n+14],9,-1019803690),p=s(p,g,f,m,e[n+3],14,-187363961),m=s(m,p,g,f,e[n+8],20,1163531501),f=s(f,m,p,g,e[n+13],5,-1444681467),g=s(g,f,m,p,e[n+2],9,-51403784),p=s(p,g,f,m,e[n+7],14,1735328473),f=l(f,m=s(m,p,g,f,e[n+12],20,-1926607734),p,g,e[n+5],4,-378558),g=l(g,f,m,p,e[n+8],11,-2022574463),p=l(p,g,f,m,e[n+11],16,1839030562),m=l(m,p,g,f,e[n+14],23,-35309556),f=l(f,m,p,g,e[n+1],4,-1530992060),g=l(g,f,m,p,e[n+4],11,1272893353),p=l(p,g,f,m,e[n+7],16,-155497632),m=l(m,p,g,f,e[n+10],23,-1094730640),f=l(f,m,p,g,e[n+13],4,681279174),g=l(g,f,m,p,e[n],11,-358537222),p=l(p,g,f,m,e[n+3],16,-722521979),m=l(m,p,g,f,e[n+6],23,76029189),f=l(f,m,p,g,e[n+9],4,-640364487),g=l(g,f,m,p,e[n+12],11,-421815835),p=l(p,g,f,m,e[n+15],16,530742520),f=c(f,m=l(m,p,g,f,e[n+2],23,-995338651),p,g,e[n],6,-198630844),g=c(g,f,m,p,e[n+7],10,1126891415),p=c(p,g,f,m,e[n+14],15,-1416354905),m=c(m,p,g,f,e[n+5],21,-57434055),f=c(f,m,p,g,e[n+12],6,1700485571),g=c(g,f,m,p,e[n+3],10,-1894986606),p=c(p,g,f,m,e[n+10],15,-1051523),m=c(m,p,g,f,e[n+1],21,-2054922799),f=c(f,m,p,g,e[n+8],6,1873313359),g=c(g,f,m,p,e[n+15],10,-30611744),p=c(p,g,f,m,e[n+6],15,-1560198380),m=c(m,p,g,f,e[n+13],21,1309151649),f=c(f,m,p,g,e[n+4],6,-145523070),g=c(g,f,m,p,e[n+11],10,-1120210379),p=c(p,g,f,m,e[n+2],15,718787259),m=c(m,p,g,f,e[n+9],21,-343485551),f=r(f,i),m=r(m,o),p=r(p,u),g=r(g,d);return[f,m,p,g]}function d(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function f(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,i="0123456789abcdef",r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+=i.charAt(t>>>4&15)+i.charAt(15&t);return r}function p(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return d(u(f(e),8*e.length))}(p(e))}function v(e,t){return function(e,t){var n,i,r=f(e),o=[],a=[];for(o[15]=a[15]=void 0,r.length>16&&(r=u(r,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^r[n],a[n]=1549556828^r[n];return i=u(o.concat(f(t)),512+8*t.length),d(u(a.concat(i),640))}(p(e),p(t))}function h(e,t,n){return t?n?v(t,e):m(v(t,e)):n?g(e):m(g(e))}void 0===(i=function(){return h}.call(t,n,t,e))||(e.exports=i)}()},68091:(e,t)=>{var n;!function(i,r,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?r.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_((function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)}),(function(e){this.reset_(e)}))},this.rebuild=function(){this.loop_(null,(function(e){this.floatLabel_(e,!0)}))}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_((function(t,n){var i=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),i&&t.classList.add(e.prefixed_("style-"+i))}),(function(t){e.floatLabel_(t)}))},initEvents_:function(){var e=this;e.events={blur:e.onBlur_.bind(e),change:e.onInput_.bind(e),focus:e.onFocus_.bind(e),input:e.onInput_.bind(e),reset:e.onReset_.bind(e)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this,n=t.getLabel_(e);n&&(e.classList.add(t.prefixed_(e.tagName.toLowerCase())),t.setLabel_(n,e),t.setPlaceholder_(n,e),t.wrapLabel_(n,e),t.handleEvents_(e,"add"),"function"==typeof t.config_[t.current_].customEvent&&t.config_[t.current_].customEvent.call(t,e))},createEl_:function(e,t){var n="string"==typeof e?r.createElement(e):e;for(var i in t=t||{})t.hasOwnProperty(i)&&n.setAttribute(i,t[i]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach((function(e){for(var i in n[e])n[e].hasOwnProperty(i)&&(t[i]=n[e][i])})),t},floatLabel_:function(e,t){var n=this;if(n.isValidField_(e)){if(n.hasParent_(e)){if(!0!==t)return;n.reset_(e)}n.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),i=t.getAttribute("placeholder");return(!n||n&&i&&"placeholder"===this.config_[this.current_].prioritize)&&(n=i),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach((function(i){"input"!==i||"file"!==e.type&&"SELECT"!==e.nodeName||(i="change"),e[t+"EventListener"](i,n[i])}))},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=this,i=0;i<n.el_.length;++i){if(void 0===n.selectors_[i]){var r=n.extend_({},n.defaults_,n.options_,n.el_[i].getAttribute("data-options")),o=":not("+r.exclude.split(/[\s,]+/).join("):not(")+")";n.selectors_[i]=r.transform.replace(/,/g,o+",")+o,n.config_[i]=r}var a=n.el_[i].querySelectorAll(n.selectors_[i]);n.current_=i,"function"==typeof e&&e.call(n,n.el_[i],i);for(var s=0;s<a.length;++s)"function"==typeof t&&t.call(n,a[s],i)}},onBlur_:function(e){e.target.parentNode.classList.remove(this.prefixed_("has-focus"))},onInput_:function(e){e.target.parentNode.classList[this.addRemove_(e.target.value.length)](this.prefixed_("is-active"))},onFocus_:function(e){e.target.parentNode.classList.add(this.prefixed_("has-focus"))},onReset_:function(){setTimeout(this.resetFields_.bind(this))},prefixed_:function(e){return this.config_[this.current_].prefix+e},removeClasses_:function(e){var t=this.config_[this.current_].prefix,n=e.className.split(" ").filter((function(e){return 0!==e.lastIndexOf(t,0)}));e.className=n.join(" ").trim()},reset_:function(e){var t=this,n=e.parentNode;if(t.hasParent_(e)){for(var i=r.createDocumentFragment();n.firstElementChild;){var o=n.firstElementChild;t.removeClasses_(o),i.appendChild(o)}n.parentNode.replaceChild(i,n),t.resetPlaceholder_(e),t.handleEvents_(e,"remove")}},resetFields_:function(){for(var e=this,t=e.el_[e.current_].querySelectorAll(e.selectors_[e.current_]),n=0;n<t.length;++n)t[n].parentNode.classList[e.addRemove_("SELECT"===t[n].tagName&&""!==t[n].value)](e.prefixed_("is-active"))},resetPlaceholder_:function(e){var t="data-placeholder",n=e.getAttribute(t);null!==n&&(e.removeAttribute(t),e.setAttribute("placeholder",n))},setLabel_:function(e,t){var n=this;e.classList.add(n.prefixed_("label")),e.textContent=n.getLabelText_(e,t),"function"==typeof n.config_[n.current_].customLabel&&(e.textContent=n.config_[n.current_].customLabel.call(n,e,t))},setPlaceholder_:function(e,t){var n=this,i=t.getAttribute("placeholder");"label"!==n.config_[n.current_].prioritize&&i||(i&&t.setAttribute("data-placeholder",i),i=n.getLabelText_(e,t)),"function"==typeof n.config_[n.current_].customPlaceholder&&(i=n.config_[n.current_].customPlaceholder.call(n,i,t,e)),"SELECT"===t.tagName?n.setSelectPlaceholder_(t,i):t.setAttribute("placeholder",i)},setSelectPlaceholder_:function(e,t){var n=e.firstElementChild;n.hasAttribute("value")&&n.value?(e.insertBefore(new Option(t,""),n),!1===e.options[e.selectedIndex].defaultSelected&&(e.selectedIndex=0)):n.setAttribute("value",""),""===n.textContent&&(n.textContent=t)},wrapLabel_:function(e,t){var n=this,i=n.createEl_("div",{class:n.prefixed_("wrap")+" "+n.prefixed_("wrap-"+t.tagName.toLowerCase())});t.value!==o&&t.value.length&&i.classList.add(n.prefixed_("is-active")),(null!==t.getAttribute("required")||t.classList.contains(n.config_[n.current_].requiredClass))&&i.classList.add(n.prefixed_("is-required")),t.parentNode.insertBefore(i,t),i.appendChild(e),i.appendChild(t)}},(n=function(){return a}.apply(t,[]))===o||(e.exports=n)}(window,document)},93365:(e,t,n)=>{e.exports=n(68149)},68149:(e,t,n)=>{var i=n(18922),r=n(47186),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:i(e)}function l(e){var t=r.stringify(function(e){var t={},n={protocol:1,format:1};for(var i in e)n[i]||(t[i]=e[i]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var i="//www.gravatar.com/avatar/";t&&t.cdn?(i=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(i=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var r=l(t);return i+s(e)+r},profile_url:function(e,t,n){var i=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)r=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var r=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=l(t);return r+s(e)+"."+i+o}}},44126:(e,t,n)=>{e.exports=n(29036)},80481:e=>{!function(t){if("undefined"!=typeof window){var n=!0,i="",r=0,o="",a=null,s="",l=!1,c={resize:1,click:1},u=128,d=!0,f=1,m="bodyOffset",p=m,g=!0,v="",h={},y=32,b=null,w=!1,_=!1,C="[iFrameSizer]",x="",k={max:1,min:1,bodyScroll:1,documentElementScroll:1},I="child",E=window.parent,S="*",j=0,O=!1,T=null,A=16,M=1,L="scroll",N=L,G=window,z=function(){re("onMessage function not defined")},P=function(){},F=function(){},B={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},q={},R=!1;try{var D=Object.create({},{passive:{get:function(){R=!0}}});window.addEventListener("test",X,D),window.removeEventListener("test",X,D)}catch(e){}var Q,U,H,V,W,$,K,Y={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return Y.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return B.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ve(Y))},min:function(){return Math.min.apply(null,ve(Y))},grow:function(){return Y.max()},lowestElement:function(){return Math.max(Y.bodyOffset()||Y.documentElementOffset(),ge("bottom",ye()))},taggedElement:function(){return he("bottom","data-iframe-height")}},J={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return B.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(J.bodyScroll(),J.documentElementScroll())},max:function(){return Math.max.apply(null,ve(J))},min:function(){return Math.min.apply(null,ve(J))},rightMostElement:function(){return ge("right",ye())},taggedElement:function(){return he("right","data-iframe-width")}},Z=(Q=be,W=null,$=0,K=function(){$=Date.now(),W=null,V=Q.apply(U,H),W||(U=H=null)},function(){var e=Date.now();$||($=e);var t=A-(e-$);return U=this,H=arguments,t<=0||t>A?(W&&(clearTimeout(W),W=null),$=e,V=Q.apply(U,H),W||(U=H=null)):W||(W=setTimeout(K,t)),V});ee(window,"message",(function(c){var f,m={init:function(){var e,f,m;v=c.data,E=c.source,function(){function e(e){return"true"===e}var a=v.substr(13).split(":");x=a[0],r=t!==a[1]?Number(a[1]):r,l=t!==a[2]?e(a[2]):l,w=t!==a[3]?e(a[3]):w,y=t!==a[4]?Number(a[4]):y,n=t!==a[6]?e(a[6]):n,o=a[7],p=t!==a[8]?a[8]:p,i=a[9],s=a[10],j=t!==a[11]?Number(a[11]):j,h.enable=t!==a[12]&&e(a[12]),I=t!==a[13]?a[13]:I,N=t!==a[14]?a[14]:N,_=t!==a[15]?Boolean(a[15]):_}(),ie("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(oe,e),z="onMessage"in e?e.onMessage:z,P="onReady"in e?e.onReady:P,S="targetOrigin"in e?e.targetOrigin:S,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,N="widthCalculationMethod"in e?e.widthCalculationMethod:N}function t(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),B[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),N=t(N,"width")),ie("TargetOrigin for parent set to: "+S)}(),t===o&&(o=r+"px"),ae("margin",(f="margin",-1!==(m=o).indexOf("-")&&(re("Negative CSS value ignored for "+f),m=""),m)),ae("background",i),ae("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),ue(),de(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),G.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,fe()):!1===e&&!0===n&&(n=!1,le("remove"),null!==a&&a.disconnect(),clearInterval(b)),ke(0,0,"autoResize",JSON.stringify(n)),n},close:function(){ke(0,0,"close")},getId:function(){return x},getPageInfo:function(e){"function"==typeof e?(F=e,ke(0,0,"pageInfo")):(F=function(){},ke(0,0,"pageInfoStop"))},moveToAnchor:function(e){h.findTarget(e)},reset:function(){xe("parentIFrame.reset")},scrollTo:function(e,t){ke(t,e,"scrollTo")},scrollToOffset:function(e,t){ke(t,e,"scrollToOffset")},sendMessage:function(e,t){ke(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,ue()},setWidthCalculationMethod:function(e){N=e,de()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),S=e},size:function(e,t){we("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){function e(e){ke(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){ie("Add event listener: "+n),ee(window.document,t,e)}!0===_&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),fe(),h=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),i=e();return{x:parseInt(n.left,10)+parseInt(i.x,10),y:parseInt(n.top,10)+parseInt(i.y,10)}}function i(e){function i(e){var t=n(e);ie("Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y),ke(t.y,t.x,"scrollToOffset")}var r=e.split("#")[1]||e,o=decodeURIComponent(r),a=document.getElementById(o)||document.getElementsByName(o)[0];t!==a?i(a):(ie("In page link (#"+r+") not found in iFrame, so sending to parent"),ke(0,0,"inPageLink","#"+r))}function r(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&i(t)}function o(){function e(e){function t(e){e.preventDefault(),i(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&ee(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){ee(window,"hashchange",r)}function s(){setTimeout(r,u)}function l(){Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),o(),a(),s()):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return h.enable?l():ie("In page linking not enabled"),{findTarget:i}}(),we("init","Init message from host page"),P(),d=!1,setTimeout((function(){g=!1}),u)},reset:function(){g?ie("Page reset ignored by init"):(ie("Page size reset by host page"),Ce("resetPage"))},resize:function(){we("resizeParent","Parent window requested size check")},moveToAnchor:function(){h.findTarget(O())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=O();ie("PageInfoFromParent called from parent: "+e),F(JSON.parse(e)),ie(" --")},message:function(){var e=O();ie("onMessage called from parent: "+e),z(JSON.parse(e)),ie(" --")}};function k(){return c.data.split("]")[1].split(":")[0]}function O(){return c.data.substr(c.data.indexOf(":")+1)}function T(){return c.data.split(":")[2]in{true:1,false:1}}C===(""+c.data).substr(0,13)&&(!1===d?(f=k())in m?m[f]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||T()||re("Unexpected message ("+c.data+")"):T()?m.init():ie('Ignored message of type "'+k()+'". Received before initialization.'))})),ee(window,"readystatechange",Ie),Ie()}function X(){}function ee(e,t,n,i){e.addEventListener(t,n,!!R&&(i||{}))}function te(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ne(e){return C+"["+x+"] "+e}function ie(e){w&&"object"==typeof window.console&&console.log(ne(e))}function re(e){"object"==typeof window.console&&console.warn(ne(e))}function oe(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ae(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,ie("Body "+e+' set to "'+n+'"'))}function se(e){var t={add:function(t){function n(){we(e.eventName,e.eventType)}q[t]=n,ee(window,t,n,{passive:!0})},remove:function(e){var t,n,i=q[e];delete q[e],t=e,n=i,window.removeEventListener(t,n,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),ie(te(e.method)+" event listener: "+e.eventType)}function le(e){se({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),se({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),se({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),se({method:e,eventType:"Input",eventName:"input"}),se({method:e,eventType:"Mouse Up",eventName:"mouseup"}),se({method:e,eventType:"Mouse Down",eventName:"mousedown"}),se({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),se({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),se({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),se({method:e,eventType:"Touch Start",eventName:"touchstart"}),se({method:e,eventType:"Touch End",eventName:"touchend"}),se({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),se({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),se({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),se({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===I&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ce(e,t,n,i){return t!==e&&(e in n||(re(e+" is not a valid option for "+i+"CalculationMethod."),e=t),ie(i+' calculation method set to "'+e+'"')),e}function ue(){p=ce(p,m,Y,"height")}function de(){N=ce(N,L,J,"width")}function fe(){var e;!0===n?(le("add"),e=0>y,window.MutationObserver||window.WebKitMutationObserver?e?me():a=function(){function e(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,i){t(e.target),we(n,i+": "+e.target.src)}function i(e){n(e,"imageLoad","Image loaded")}function r(e){n(e,"imageLoadFailed","Image load failed")}function o(t){we("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],s=window.MutationObserver||window.WebKitMutationObserver,l=function(){var e=document.querySelector("body");return l=new s(o),ie("Create body MutationObserver"),l.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),l}();return{disconnect:function(){"disconnect"in l&&(ie("Disconnect body MutationObserver"),l.disconnect(),a.forEach(t))}}}():(ie("MutationObserver not supported in this browser!"),me())):ie("Auto Resize disabled")}function me(){0!==y&&(ie("setInterval: "+y+"ms"),b=setInterval((function(){we("interval","setInterval: "+y)}),Math.abs(y)))}function pe(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function ge(e,t){for(var n=t.length,i=0,r=0,o=te(e),a=Date.now(),s=0;s<n;s++)(i=t[s].getBoundingClientRect()[e]+pe("margin"+o,t[s]))>r&&(r=i);return a=Date.now()-a,ie("Parsed "+n+" HTML elements"),ie("Element position calculated in "+a+"ms"),function(e){e>A/2&&ie("Event throttle increased to "+(A=2*e)+"ms")}(a),r}function ve(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function he(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ge(e,n)}function ye(){return document.querySelectorAll("body *")}function be(e,n,i,r){var o,a;!function(){function e(e,t){return!(Math.abs(e-t)<=j)}return o=t!==i?i:Y[p](),a=t!==r?r:J[N](),e(f,o)||l&&e(M,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in k||l&&N in k)?xe(n):e in{interval:1}||ie("No change in size detected"):(_e(),ke(f=o,M=a,e))}function we(e,t,n,i){O&&e in c?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),"init"===e?be(e,t,n,i):Z(e,t,n,i))}function _e(){O||(O=!0,ie("Trigger event lock on")),clearTimeout(T),T=setTimeout((function(){O=!1,ie("Trigger event lock off"),ie("--")}),u)}function Ce(e){f=Y[p](),M=J[N](),ke(f,M,e)}function xe(e){var t=p;p=m,ie("Reset trigger event: "+e),_e(),Ce("reset"),p=t}function ke(e,n,i,r,o){var a;t===o?o=S:ie("Message targetOrigin: "+o),ie("Sending message to host page ("+(a=x+":"+e+":"+n+":"+i+(t!==r?":"+r:""))+")"),E.postMessage(C+a,o)}function Ie(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},10570:(e,t)=>{var n,i,r;!function(o){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,u="[iFrameSizer]",d=null,f=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},p={},g=null,v={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){k("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){F(n,e)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),i=[],(r="function"==typeof(n=D)?n.apply(t,i):n)===o||(e.exports=r),window.iFrameResize=window.iFrameResize||D()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function b(e,t,n){e.addEventListener(t,n,!1)}function w(e,t,n){e.removeEventListener(t,n,!1)}function _(e){return p[e]?p[e].log:l}function C(e,t){I("log",e,t,_(e))}function x(e,t){I("info",e,t,_(e))}function k(e,t){I("warn",e,t,!0)}function I(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return u+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function E(e){function t(){n("Height"),n("Width"),G((function(){N(E),A(j),c("onResized",E)}),E,"init")}function n(e){var t=Number(p[j]["max"+e]),n=Number(p[j]["min"+e]),i=e.toLowerCase(),r=Number(E[i]);C(j,"Checking "+i+" is in range "+n+"-"+t),r<n&&(r=n,C(j,"Set "+i+" to min value")),r>t&&(r=t,C(j,"Set "+i+" to max value")),E[i]=""+r}function i(e){return I.substr(I.indexOf(":")+7+e)}function r(e,t){var n,i;n=function(){var n,i;z("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=E.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},h[i=t]||(h[i]=setTimeout((function(){h[i]=null,n()}),32))}function o(e){var t=e.getBoundingClientRect();return T(j),{x:Math.floor(Number(t.left)+Number(d.x)),y:Math.floor(Number(t.top)+Number(d.y))}}function a(e){var t=e?o(E.iframe):{x:0,y:0},n={x:Number(E.width)+t.x,y:Number(E.height)+t.y};C(j,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):k(j,"Unable to scroll to requested position, window.parentIFrame not found"):(d=n,s(),C(j,"--"))}function s(){!1!==c("onScroll",d)?A(j):M()}function l(e){var t={};if(0===Number(E.width)&&0===Number(E.height)){var n=i(9).split(":");t={x:n[1],y:n[0]}}else t={x:E.width,y:E.height};c(e,{iframe:E.iframe,screenX:Number(t.x),screenY:Number(t.y),type:E.type})}function c(e,t){return S(j,e,t)}var f,m,g,v,y,_,I=e.data,E={},j=null;"[iFrameResizerChild]Ready"===I?function(){for(var e in p)z("iFrame requested init",P(e),p[e].iframe,e)}():u===(""+I).substr(0,13)&&I.substr(13).split(":")[0]in p?(v=(g=I.substr(13).split(":"))[1]?parseInt(g[1],10):0,y=p[g[0]]&&p[g[0]].iframe,_=getComputedStyle(y),E={iframe:y,id:g[0],height:v+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(_)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(_),width:g[2],type:g[3]},j=E.id,p[j]&&(p[j].loaded=!0),(m=E.type in{true:1,false:1,undefined:1})&&C(j,"Ignoring init message from meta parent page"),!m&&function(e){var t=!0;return p[e]||(t=!1,k(E.type+" No settings for "+e+". Message was: "+I)),t}(j)&&(C(j,"Received: "+I),f=!0,null===E.iframe&&(k(j,"IFrame ("+E.id+") not found"),f=!1),f&&function(){var t,n=e.origin,i=p[j]&&p[j].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(C(j,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=p[j]&&p[j].remoteHost,C(j,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+E.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(p[j]&&p[j].firstRun&&p[j]&&(p[j].firstRun=!1),E.type){case"close":O(E.iframe);break;case"message":m=i(6),C(j,"onMessage passed: {iframe: "+E.iframe.id+", message: "+m+"}"),c("onMessage",{iframe:E.iframe,message:JSON.parse(m)}),C(j,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":p[j].autoResize=JSON.parse(i(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":r(p[j]&&p[j].iframe,j),function(){function e(e,i){function o(){p[n]?r(p[n].iframe,n):t()}["scroll","resize"].forEach((function(t){C(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",w)}var n=j;e("Add ",b),p[n]&&(p[n].stopPageInfo=t)}();break;case"pageInfoStop":p[j]&&p[j].stopPageInfo&&(p[j].stopPageInfo(),delete p[j].stopPageInfo);break;case"inPageLink":n=i(9).split("#")[1]||"",u=decodeURIComponent(n),(f=document.getElementById(u)||document.getElementsByName(u)[0])?(e=o(f),C(j,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),d={x:e.x,y:e.y},s(),C(j,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):C(j,"In page link #"+n+" not found and window.parentIFrame not found"):C(j,"In page link #"+n+" not found");break;case"reset":L(E);break;case"init":t(),c("onInit",E.iframe);break;default:0===Number(E.width)&&0===Number(E.height)?k("Unsupported message received ("+E.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,u,f,m}())):x(j,"Ignored: "+I)}function S(e,t,n){var i=null,r=null;if(p[e]){if("function"!=typeof(i=p[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=i(n)}return r}function j(e){var t=e.id;delete p[t]}function O(e){var t=e.id;if(!1!==S(t,"onClose",t)){C(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){k(e)}S(t,"onClosed",t),C(t,"--"),j(e)}else C(t,"Close iframe cancelled by onClose event")}function T(e){null===d&&C(e,"Get page position: "+(d={x:window.pageXOffset!==o?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==o?window.pageYOffset:document.documentElement.scrollTop}).x+","+d.y)}function A(e){null!==d&&(window.scrollTo(d.x,d.y),C(e,"Set page position: "+d.x+","+d.y),M())}function M(){d=null}function L(e){C(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),T(e.id),G((function(){N(e),z("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){c||"0"!==e[t]||(c=!0,C(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(p).forEach((function(e){!function(e){function t(t){return"0px"===(p[e]&&p[e].iframe.style[t])}p[e]&&null!==p[e].iframe.offsetParent&&(t("height")||t("width"))&&z("Visibility change","resize",p[e].iframe,e)}(e)}))}function t(t){C("window","Mutation observed: "+t[0].target+" "+t[0].type),B(e,16)}var n,i=y();i&&(n=document.querySelector("body"),new i(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",C(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):C("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;p[i]&&(p[i].sizeHeight&&n("height"),p[i].sizeWidth&&n("width"))}function G(e,t,n){n!==t.type&&f&&!window.jasmine?(C(t.id,"Requesting animation frame"),f(e)):e()}function z(e,t,n,i,r){var o,a=!1;i=i||n.id,p[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=p[i]&&p[i].targetOrigin,C(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(u+t,o)):k(i,"["+e+"] IFrame("+i+") not found"),r&&p[i]&&p[i].warningTimeout&&(p[i].msgTimeout=setTimeout((function(){!p[i]||p[i].loaded||a||(a=!0,k(i,"IFrame has not responded within "+p[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),p[i].warningTimeout)))}function P(e){return e+":"+p[e].bodyMarginV1+":"+p[e].sizeWidth+":"+p[e].log+":"+p[e].interval+":"+p[e].enablePublicMethods+":"+p[e].autoResize+":"+p[e].bodyMargin+":"+p[e].heightCalculationMethod+":"+p[e].bodyBackground+":"+p[e].bodyPadding+":"+p[e].tolerance+":"+p[e].inPageLinks+":"+p[e].resizeFrom+":"+p[e].widthCalculationMethod+":"+p[e].mouseEvents}function F(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],k(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i,r,a=function(n){var i;return""===n&&(e.id=(i=t&&t.id||v.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),l=(t||{}).log,C(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);a in p&&"iFrameResizer"in e?k(a,"Ignored iFrame, already setup."):(function(t){var i;t=t||{},p[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in v)Object.prototype.hasOwnProperty.call(v,t)&&(p[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:v[t])}(t),p[a]&&(p[a].targetOrigin=!0===p[a].checkOrigin?""===(i=p[a].remoteHost)||null!==i.match(/^(about:blank|javascript:|file:\/\/)/)?"*":i:"*")}(t),function(){switch(C(a,"IFrame scrolling "+(p[a]&&p[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(p[a]&&p[a].scrolling)?"hidden":"auto",p[a]&&p[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=p[a]?p[a].scrolling:"no"}}(),function(){function t(t){var n=p[a][t];1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,C(a,"Set "+t+" = "+e.style[t]))}function n(e){if(p[a]["min"+e]>p[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(p[a]&&p[a].bodyMargin)&&"0"!==(p[a]&&p[a].bodyMargin)||(p[a].bodyMarginV1=p[a].bodyMargin,p[a].bodyMargin=p[a].bodyMargin+"px"),i=P(a),(r=y())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&O(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),b(e,"load",(function(){var t,n;z("iFrame.onload",i,e,o,!0),t=p[a]&&p[a].firstRun,n=p[a]&&p[a].heightCalculationMethod in m,!t&&n&&L({iframe:e,height:0,width:0,type:"init"})})),z("init",i,e,o,!0),p[a]&&(p[a].iframe.iFrameResizer={close:O.bind(null,p[a].iframe),removeListeners:j.bind(null,p[a].iframe),resize:z.bind(null,"Window resize","resize",p[a].iframe),moveToAnchor:function(e){z("Move to anchor","moveToAnchor:"+e,p[a].iframe,a)},sendMessage:function(e){z("Send Message","message:"+(e=JSON.stringify(e)),p[a].iframe,a)}}))}function B(e,t){null===g&&(g=setTimeout((function(){g=null,e()}),t))}function q(){"hidden"!==document.visibilityState&&(C("document","Trigger event: Visiblity change"),B((function(){R("Tab Visable","resize")}),16))}function R(e,t){Object.keys(p).forEach((function(n){(function(e){return p[e]&&"parent"===p[e].resizeFrom&&p[e].autoResize&&!p[e].firstRun})(n)&&z(e,t,p[n].iframe,n)}))}function D(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),F(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!f;e+=1)f=window[t[e]+"RequestAnimationFrame"];f?f=f.bind(window):C("setup","RequestAnimationFrame not supported")}(),b(window,"message",E),b(window,"resize",(function(){C("window","Trigger event: resize"),B((function(){R("Window resize","resize")}),16)})),b(document,"visibilitychange",q),b(document,"-webkit-visibilitychange",q),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(o,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return t}}}()},29036:(e,t,n)=>{var i=n(10570);t.iframeResize=i,n(80481)},97377:function(){(function(){var e,t,n,i,r,o,a,s,l,c,u,d,f,m,p,g,v,h,y,b,w,_,C,x,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=window.jQuery||window.Zepto||window.$).payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?k.call(arguments,1):[],e.payment.fn[n].apply(this,t)},r=/(\d{1,4})/g,e.payment.cards=i=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:r,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:r,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:r,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:r,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:r,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:r,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:r,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:r,length:[16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,r,o,a,s,l;for(e=(e+"").replace(/\D/g,""),r=0,a=i.length;r<a;r++)for(o=0,s=(l=(t=i[r]).patterns).length;o<s;o++)if(n=l[o]+"",e.substr(0,n.length)===n)return t},n=function(e){var t,n,r;for(n=0,r=i.length;n<r;n++)if((t=i[n]).type===e)return t},f=function(e){var t,n,i,r,o,a;for(i=!0,r=0,o=0,a=(n=(e+"").split("").reverse()).length;o<a;o++)t=n[o],t=parseInt(t,10),(i=!i)&&(t*=2),t>9&&(t-=9),r+=t;return r%10==0},d=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},C=function(e,t){var n,i,r,o,a;try{i=t.prop("selectionStart")}catch(e){i=null}if(o=t.val(),t.val(e),null!==i&&t.is(":focus"))return i===o.length&&(i=e.length),o!==e&&(a=o.slice(i-1,+i+1||9e9),n=e.slice(i-1,+i+1||9e9),r=e[i],/\d/.test(r)&&a===r+" "&&n===" "+r&&(i+=1)),t.prop("selectionStart",i),t.prop("selectionEnd",i)},h=function(e){var t,n,i,r,o,a;for(null==e&&(e=""),r="",o=0,a=(t=e.split("")).length;o<a;o++)n=t[o],(i="0123456789".indexOf(n))>-1&&(n="0123456789"[i]),r+=n;return r},v=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,""),C(e,n)}))},p=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),C(t,n)}))},s=function(n){var i,r,o,a,s,l,c;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(i=e(n.currentTarget),c=i.val(),r=t(c+o),a=(c.replace(/\D/g,"")+o).length,l=16,r&&(l=r.length[r.length.length-1]),!(a>=l||null!=i.prop("selectionStart")&&i.prop("selectionStart")!==c.length)))return(s=r&&"amex"===r.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(c)?(n.preventDefault(),setTimeout((function(){return i.val(c+" "+o)}))):s.test(c+o)?(n.preventDefault(),setTimeout((function(){return i.val(c+o+" ")}))):void 0},o=function(t){var n,i;if(n=e(t.currentTarget),i=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===i.length))return/\d\s$/.test(i)?(t.preventDefault(),setTimeout((function(){return n.val(i.replace(/\d\s$/,""))}))):/\s\d?$/.test(i)?(t.preventDefault(),setTimeout((function(){return n.val(i.replace(/\d$/,""))}))):void 0},g=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),C(t,n)}))},l=function(t){var n,i,r;if(i=String.fromCharCode(t.which),/^\d+$/.test(i))return n=e(t.currentTarget),r=n.val()+i,/^\d$/.test(r)&&"0"!==r&&"1"!==r?(t.preventDefault(),setTimeout((function(){return n.val("0"+r+" / ")}))):/^\d\d$/.test(r)?(t.preventDefault(),setTimeout((function(){var e,t;return e=parseInt(r[0],10),(t=parseInt(r[1],10))>2&&0!==e?n.val("0"+e+" / "+t):n.val(r+" / ")}))):void 0},c=function(t){var n,i,r;if(i=String.fromCharCode(t.which),/^\d+$/.test(i))return r=(n=e(t.currentTarget)).val(),/^\d\d$/.test(r)?n.val(r+" / "):void 0},u=function(t){var n,i,r;if("/"===(r=String.fromCharCode(t.which))||" "===r)return i=(n=e(t.currentTarget)).val(),/^\d$/.test(i)&&"0"!==i?n.val("0"+i+" / "):void 0},a=function(t){var n,i;if(n=e(t.currentTarget),i=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===i.length))return/\d\s\/\s$/.test(i)?(t.preventDefault(),setTimeout((function(){return n.val(i.replace(/\d\s\/\s$/,""))}))):void 0},m=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,"").slice(0,4),C(e,n)}))},_=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t)))},b=function(n){var i,r,o,a;if(i=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!d(i))return a=(i.val()+o).replace(/\D/g,""),(r=t(a))?a.length<=r.length[r.length.length-1]:a.length<=16},w=function(t){var n,i;if(n=e(t.currentTarget),i=String.fromCharCode(t.which),/^\d+$/.test(i)&&!d(n))return!((n.val()+i).replace(/\D/g,"").length>6)&&void 0},y=function(t){var n,i;if(n=e(t.currentTarget),i=String.fromCharCode(t.which),/^\d+$/.test(i)&&!d(n))return(n.val()+i).length<=4},x=function(t){var n,r,o,a,s;if(s=(n=e(t.currentTarget)).val(),a=e.payment.cardType(s)||"unknown",!n.hasClass(a))return r=function(){var e,t,n;for(n=[],e=0,t=i.length;e<t;e++)o=i[e],n.push(o.type);return n}(),n.removeClass("unknown"),n.removeClass(r.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a)},e.payment.fn.formatCardCVC=function(){return this.on("keypress",_),this.on("keypress",y),this.on("paste",m),this.on("change",m),this.on("input",m),this},e.payment.fn.formatCardExpiry=function(){return this.on("keypress",_),this.on("keypress",w),this.on("keypress",l),this.on("keypress",u),this.on("keypress",c),this.on("keydown",a),this.on("change",g),this.on("input",g),this},e.payment.fn.formatCardNumber=function(){return this.on("keypress",_),this.on("keypress",b),this.on("keypress",s),this.on("keydown",o),this.on("keyup",x),this.on("paste",p),this.on("change",p),this.on("input",p),this.on("input",x),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",_),this.on("paste",v),this.on("change",v),this.on("input",v),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,i;return t=(i=e.split(/[\s\/]+/,2))[0],2===(null!=(n=i[1])?n.length:void 0)&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}},e.payment.validateCardNumber=function(e){var n,i;return e=(e+"").replace(/\s+|-/g,""),!!/^\d+$/.test(e)&&!!(n=t(e))&&(i=e.length,I.call(n.length,i)>=0&&(!1===n.luhn||f(e)))},e.payment.validateCardExpiry=function(t,n){var i,r,o;return"object"==typeof t&&"month"in t&&(t=(o=t).month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&!!/^\d+$/.test(n)&&1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(r=new Date(n,t),i=new Date,r.setMonth(r.getMonth()-1),r.setMonth(r.getMonth()+1,1),r>i)))},e.payment.validateCardCVC=function(t,i){var r,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(null!=(r=n(i))?(o=t.length,I.call(r.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e&&(null!=(n=t(e))?n.type:void 0)||null},e.payment.formatCardNumber=function(n){var i,r,o,a;return n=n.replace(/\D/g,""),(i=t(n))?(o=i.length[i.length.length-1],n=n.slice(0,o),i.format.global?null!=(a=n.match(i.format))?a.join(" "):void 0:null!=(r=i.format.exec(n))?(r.shift(),(r=e.grep(r,(function(e){return e}))).join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,i,r;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",i=n[2]||"",(r=n[3]||"").length>0?i=" / ":" /"===i?(t=t.substring(0,1),i=""):2===t.length||i.length>0?i=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,i=" / "),t+i+r):""}}).call(this)},66732:(e,t,n)=>{var i,r,o;r=[n(20428)],i=function(e){var t,n,i,r,o,a,s="Close",l="BeforeClose",c="MarkupParse",u="Open",d="Change",f="mfp",m="."+f,p="mfp-ready",g="mfp-removing",v="mfp-prevent-close",h=function(){},y=!!window.jQuery,b=e(window),w=function(e,n){t.ev.on(f+e+m,n)},_=function(t,n,i,r){var o=document.createElement("div");return o.className="mfp-"+t,i&&(o.innerHTML=i),r?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},C=function(n,i){t.ev.triggerHandler(f+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},x=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var r;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(r=0;r<s.length;r++)if((a=s[r]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=r;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=_("bg").on("click"+m,(function(){t.close()})),t.wrap=_("wrap").attr("tabindex",-1).on("click"+m,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=_("container",t.wrap)),t.contentContainer=_("content"),t.st.preloader&&(t.preloader=_("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(r=0;r<l.length;r++){var d=l[r];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}C("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(w(c,(function(e,t,n,i){n.close_replaceWith=x(i.type)})),o+=" mfp-close-btn-in"):t.wrap.append(x())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+m,(function(e){27===e.keyCode&&t.close()})),b.on("resize"+m,(function(){t.updateSize()})),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var f=t.wH=b.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(f)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),C("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(p),t._setFocus()):t.bgOverlay.addClass(p),i.on("focusin"+m,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(f),C(u),n}t.updateItemHTML()},close:function(){t.isOpen&&(C(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){C(s);var n=g+" "+p+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var r={marginRight:""};t.isIE7?e("body, html").css("overflow",""):r.overflow="",e("html").css(r)}i.off("keyup.mfp focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,C("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),C("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(C("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var o=!!t.st[i]&&t.st[i].markup;C("FirstMarkupParse",o),t.currTemplate[i]=!o||e(o)}r&&r!==n.type&&t.container.removeClass("mfp-"+r+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,C(d,n),r=n.type,t.container.prepend(t.contentContainer),C("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(x()):t.content=e:t.content="",C("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,r=t.items[n];if(r.tagName?r={el:e(r)}:(i=r.type,r={data:r,src:r.src}),r.el){for(var o=t.types,a=0;a<o.length;a++)if(r.el.hasClass("mfp-"+o[a])){i=o[a];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=i||t.st.type||"inline",r.index=n,r.parsed=!0,t.items[n]=r,C("ElementParse",r),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var r="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(r).on(r,i)):(n.isObj=!1,n.delegate?e.off(r).on(r,n.delegate,i):(n.items=e,e.off(r).on(r,i)))},_openClick:function(n,i,r){if((void 0!==r.midClick?r.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var o=void 0!==r.disableOn?r.disableOn:e.magnificPopup.defaults.disableOn;if(o)if(e.isFunction(o)){if(!o.call(t))return!0}else if(b.width()<o)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),r.el=e(n.mfpEl),r.delegate&&(r.items=i.find(r.delegate)),t.open(r)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var r={status:e,text:i};C("UpdateStatus",r),e=r.status,i=r.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(v)){var i=t.st.closeOnContentClick,r=t.st.closeOnBgClick;if(i&&r)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(r&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var r;i.data&&(n=e.extend(i.data,n)),C(c,[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((r=n.split("_")).length>1){var o=t.find(m+"-"+r[0]);if(o.length>0){var a=r[1];"replaceWith"===a?o[0]!==i[0]&&o.replaceWith(i):"img"===a?o.is("img")?o.attr("src",i):o.replaceWith(e("<img>").attr("src",i).attr("class",o.attr("class"))):o.attr(r[1],i)}}else t.find(m+"-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,n){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},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">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){k();var i=e(this);if("string"==typeof n)if("open"===n){var r,o=y?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?r=o.items[a]:(r=i,o.delegate&&(r=r.find(o.delegate)),r=r.eq(a)),t._openClick({mfpEl:r},i,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),y?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var I,E,S,j="inline",O=function(){S&&(E.after(S.addClass(I)).detach(),S=null)};e.magnificPopup.registerModule(j,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(j),w(s+"."+j,(function(){O()}))},getInline:function(n,i){if(O(),n.src){var r=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(E||(I=r.hiddenClass,E=_(I),I="mfp-"+I),S=o.after(E).detach().removeClass(I)),t.updateStatus("ready")}else t.updateStatus("error",r.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var T,A="ajax",M=function(){T&&e(document.body).removeClass(T)},L=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(A,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(A),T=t.st.ajax.cursor,w(s+"."+A,L),w("BeforeChange."+A,L)},getAjax:function(n){T&&e(document.body).addClass(T),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,r,o){var a={data:i,xhr:o};C("ParseAjax",a),t.appendContent(e(a.data),A),n.finished=!0,M(),t._setFocus(),setTimeout((function(){t.wrap.addClass(p)}),16),t.updateStatus("ready"),C("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var N,G=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.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 n=t.st.image,i=".image";t.types.push("image"),w(u+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),w(s+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+m)})),w("Resize"+i,t.resizeImage),t.isLowIE&&w("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],r=function(o){N&&clearInterval(N),N=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(N),3==++n?r(10):40===n?r(50):100===n&&r(500))}),o)};r(1)},getImage:function(n,i){var r=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,C("ImageLoadComplete")):++r<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:G(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(N&&clearInterval(N),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var z;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var r,o,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return r["-webkit-"+o]=r["-moz-"+o]=r["-o-"+o]=r[o]=i,t.css(r),t},u=function(){t.content.css("visibility","visible")};w("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(r),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(o=c(e)).css(t._getOffset()),t.wrap.append(o),r=setTimeout((function(){o.css(t._getOffset(!0)),r=setTimeout((function(){u(),setTimeout((function(){o.remove(),e=o=null,C("ZoomAnimationEnded")}),16)}),a)}),16)}})),w(l+i,(function(){if(t._allowZoom()){if(clearTimeout(r),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=c(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout((function(){o.css(t._getOffset())}),16)}})),w(s+i,(function(){t._allowZoom()&&(u(),o&&o.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,r=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);r.top-=e(window).scrollTop()-o;var s={width:i.width(),height:(y?i.innerHeight():i[0].offsetHeight)-a-o};return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z?s["-moz-transform"]=s.transform="translate("+r.left+"px,"+r.top+"px)":(s.left=r.left,s.top=r.top),s}}});var P="iframe",F=function(e){if(t.currTemplate[P]){var n=t.currTemplate[P].find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.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(){t.types.push(P),w("BeforeChange",(function(e,t,n){t!==n&&(t===P?F():n===P&&F(!0))})),w(s+"."+P,(function(){F()}))},getIframe:function(n,i){var r=n.src,o=t.st.iframe;e.each(o.patterns,(function(){if(r.indexOf(this.index)>-1)return this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1}));var a={};return o.srcAction&&(a[o.srcAction]=r),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var B=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},q=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.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 n=t.st.gallery,r=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",w(u+r,(function(){n.navigateByImgClick&&t.wrap.on("click"+r,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+r,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),w("UpdateStatus"+r,(function(e,n){n.text&&(n.text=q(n.text,t.currItem.index,t.items.length))})),w(c+r,(function(e,i,r,o){var a=t.items.length;r.counter=a>1?q(n.tCounter,o.index,a):""})),w("BuildControls"+r,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,r=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(v),o=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(v);r.click((function(){t.prev()})),o.click((function(){t.next()})),t.container.append(r.add(o))}})),w(d+r,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),w(s+r,(function(){i.off(r),t.wrap.off("click"+r),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=B(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=B(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),r=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=B(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),C("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var R="retina";e.magnificPopup.registerModule(R,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(w("ImageHasSize."+R,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),w("ElementParse."+R,(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),k()},void 0===(o=i.apply(t,r))||(e.exports=o)},11630:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){n=n||"&",i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,f,m,p=e[c].replace(a,"%20"),g=p.indexOf(i);g>=0?(u=p.substr(0,g),d=p.substr(g+1)):(u=p,d=""),f=decodeURIComponent(u),m=decodeURIComponent(d),t(o,f)?Array.isArray(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o}},59106:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[r]))})).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},47186:(e,t,n)=>{"use strict";t.decode=t.parse=n(11630),t.encode=t.stringify=n(59106)},72036:(e,t,n)=>{var i,r,o;!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),i=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),r=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,i,r){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===i&&(i=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:i,centerY:!1,showOverlay:!1,onUnblock:r,css:e.blockUI.defaults.growlCSS})};a(),o.css("opacity"),o.mouseover((function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)})).mouseout((function(){e(".blockMsg").fadeOut(1e3)}))},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each((function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})})),this.each((function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)}))},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each((function(){l(this,t)}))},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var d,p,g=s==window,v=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),p=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),v=void 0===v?c.message:v,g&&o&&l(window,{fadeOut:0}),v&&"string"!=typeof v&&(v.parentNode||v.jquery)){var h=v.jquery?v[0]:v,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,w,_,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),w=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&g?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=g?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',_=e(C),v&&(c.theme?(_.css(p),_.addClass("ui-widget-content")):_.css(d)),c.theme||w.css(c.overlayCSS),w.css("position",g?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,w,_],I=e(g?"body":s);e.each(k,(function(){this.appendTo(I)})),c.theme&&c.draggable&&e.fn.draggable&&_.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var E=r&&(!e.support.boxModel||e("object,embed",g?null:s).length>0);if(i||E){if(g&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(i||!e.support.boxModel)&&!g)var S=m(s,"borderTopWidth"),j=m(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,T=j?"(0 - "+j+")":0;e.each(k,(function(e,t){var n=t[0].style;if(n.position="absolute",e<2)g?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),g?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),T&&n.setExpression("left",T),O&&n.setExpression("top",O);else if(c.centerY)g&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&g){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",i)}}))}if(v&&(c.theme?_.find(".ui-widget-content").append(v):_.append(v),(v.jquery||v.nodeType)&&e(v).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var A=c.onBlock?c.onBlock:t,M=c.showOverlay&&!v?A:t,L=v?A:t;c.showOverlay&&w._fadeIn(c.fadeIn,M),v&&_._fadeIn(c.fadeIn,L)}else c.showOverlay&&w.show(),v&&_.show(),c.onBlock&&c.onBlock.bind(_)();if(u(1,s,c),g?(o=_[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(f,20)):function(e,t,n){var i=e.parentNode,r=e.style,o=(i.offsetWidth-e.offsetWidth)/2-m(i,"borderLeftWidth"),a=(i.offsetHeight-e.offsetHeight)/2-m(i,"borderTopWidth");t&&(r.left=o>0?o+"px":"0"),n&&(r.top=a>0?a+"px":"0")}(_[0],c.centerX,c.centerY),c.timeout){var N=setTimeout((function(){g?e.unblockUI(c):e(s).unblock(c)}),c.timeout);e(s).data("blockUI.timeout",N)}}}function l(t,n){var i,r,s=t==window,l=e(t),d=l.data("blockUI.history"),f=l.data("blockUI.timeout");f&&(clearTimeout(f),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),r=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(r.length>1&&(r[1].style.cursor=n.cursorReset),r.length>2&&(r[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(i=r.length,r.stop().fadeOut(n.fadeOut,(function(){0==--i&&c(r,d,n,t)}))):c(r,d,n,t)}function c(t,n,i,r){var o=e(r);if(!o.data("blockUI.isBlocked")){t.each((function(e,t){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof i.onUnblock&&i.onUnblock(r,i);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,i){var r=n==window,a=e(n);if((t||(!r||o)&&(r||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),r&&i.bindEvents&&(!t||i.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,i,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,i=!t.shiftKey&&t.target===n[n.length-1],r=t.shiftKey&&t.target===n[0];if(i||r)return setTimeout((function(){f(r)}),10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function m(t,n){return parseInt(e.css(t,n),10)||0}}n.amdO.jQuery?(r=[n(20428)],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o)):a(jQuery)}()},1727:(e,t,n)=>{var i=n(20428);n(72036);var r=n(13946),o={transitionDelay:250,blockWith:function(e){var t=i.Deferred(),n=this,a=r(arguments).rest(),s=r(a).first();return s&&s.preventDefault&&s.preventDefault(),i.blockUI({message:null}),setTimeout((function(){var o=e.apply(n,a);r(o).isObject()&&r(o.always).isFunction()?o.always((function(){i.unblockUI()})).then(t.resolve,t.reject):i.unblockUI()}),o.transitionDelay),t.promise()},makeBlocked:function(e){return r.wrap(e,o.blockWith)}};e.exports=o},20428:e=>{"use strict";e.exports=window.jQuery},13946:function(e,t,n){e.exports=function(){var e="1.13.4",t="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||Function("return this")()||{},i=Array.prototype,r=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,a=i.push,s=i.slice,l=r.toString,c=r.hasOwnProperty,u="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,f=Array.isArray,m=Object.keys,p=Object.create,g=u&&ArrayBuffer.isView,v=isNaN,h=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var o=Array(t+1);for(r=0;r<t;r++)o[r]=arguments[r];return o[t]=i,e.apply(this,o)}}function C(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function x(e){return void 0===e}function k(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function I(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var E=I("String"),S=I("Number"),j=I("Date"),O=I("RegExp"),T=I("Error"),A=I("Symbol"),M=I("ArrayBuffer"),L=I("Function"),N=t.document&&t.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof N&&(L=function(e){return"function"==typeof e||!1});var G=L,z=I("Object"),P=d&&z(new DataView(new ArrayBuffer(8))),F="undefined"!=typeof Map&&z(new Map),B=I("DataView"),q=P?function(e){return null!=e&&G(e.getInt8)&&M(e.buffer)}:B,R=f||I("Array");function D(e,t){return null!=e&&c.call(e,t)}var Q=I("Arguments");!function(){Q(arguments)||(Q=function(e){return D(e,"callee")})}();var U=Q;function H(e){return S(e)&&v(e)}function V(e){return function(){return e}}function W(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=w}}function $(e){return function(t){return null==t?void 0:t[e]}}var K=$("byteLength"),Y=W(K),J=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Z=u?function(e){return g?g(e)&&!q(e):Y(e)&&J.test(l.call(e))}:V(!1),X=$("length");function ee(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=b.length,i=e.constructor,o=G(i)&&i.prototype||r,a="constructor";for(D(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=b[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function te(e){if(!C(e))return[];if(m)return m(e);var t=[];for(var n in e)D(e,n)&&t.push(n);return y&&ee(e,t),t}function ne(e,t){var n=te(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function ie(e){return e instanceof ie?e:this instanceof ie?void(this._wrapped=e):new ie(e)}function re(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,K(e))}ie.VERSION=e,ie.prototype.value=function(){return this._wrapped},ie.prototype.valueOf=ie.prototype.toJSON=ie.prototype.value,ie.prototype.toString=function(){return String(this._wrapped)};var oe="[object DataView]";function ae(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&function e(t,n,i,r){t instanceof ie&&(t=t._wrapped),n instanceof ie&&(n=n._wrapped);var a=l.call(t);if(a!==l.call(n))return!1;if(P&&"[object Object]"==a&&q(t)){if(!q(n))return!1;a=oe}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(n);case"[object ArrayBuffer]":case oe:return e(re(t),re(n),i,r)}var s="[object Array]"===a;if(!s&&Z(t)){if(K(t)!==K(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,u=n.constructor;if(c!==u&&!(G(c)&&c instanceof c&&G(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}r=r||[];for(var d=(i=i||[]).length;d--;)if(i[d]===t)return r[d]===n;if(i.push(t),r.push(n),s){if((d=t.length)!==n.length)return!1;for(;d--;)if(!ae(t[d],n[d],i,r))return!1}else{var f,m=te(t);if(d=m.length,te(n).length!==d)return!1;for(;d--;)if(!D(n,f=m[d])||!ae(t[f],n[f],i,r))return!1}return i.pop(),r.pop(),!0}(e,t,n,i)}function se(e){if(!C(e))return[];var t=[];for(var n in e)t.push(n);return y&&ee(e,t),t}function le(e){var t=X(e);return function(n){if(null==n)return!1;var i=se(n);if(X(i))return!1;for(var r=0;r<t;r++)if(!G(n[e[r]]))return!1;return e!==me||!G(n[ce])}}var ce="forEach",ue=["clear","delete"],de=["get","has","set"],fe=ue.concat(ce,de),me=ue.concat(de),pe=["add"].concat(ue,ce,"has"),ge=F?le(fe):I("Map"),ve=F?le(me):I("WeakMap"),he=F?le(pe):I("Set"),ye=I("WeakSet");function be(e){for(var t=te(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function _n(e){for(var t={},n=te(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function we(e){var t=[];for(var n in e)G(e[n])&&t.push(n);return t.sort()}function _e(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}}var Ce=_e(se),xe=_e(te),ke=_e(se,!0);function Ie(e){if(!C(e))return{};if(p)return p(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Ee(e){return R(e)?e:[e]}function Se(e){return ie.toPath(e)}function je(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Oe(e,t,n){var i=je(e,Se(t));return x(i)?n:i}function Te(e){return e}function Ae(e){return e=xe({},e),function(t){return ne(t,e)}}function Me(e){return e=Se(e),function(t){return je(t,e)}}function Le(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)}}return function(){return e.apply(t,arguments)}}function Ne(e,t,n){return null==e?Te:G(e)?Le(e,t,n):C(e)&&!R(e)?Ae(e):Me(e)}function Ge(e,t){return Ne(e,t,1/0)}function ze(e,t,n){return ie.iteratee!==Ge?ie.iteratee(e,t):Ne(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ie.toPath=Ee,ie.iteratee=Ge;var Be=Date.now||function(){return(new Date).getTime()};function qe(e){var t=function(t){return e[t]},n="(?:"+te(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}}var Re={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},De=qe(Re),Qe=qe(_n(Re)),Ue=ie.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},He=/(.)^/,Ve={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},We=/\\|'|\r|\n|\u2028|\u2029/g;function $e(e){return"\\"+Ve[e]}var Ke=/^\s*(\w|\$)+\s*$/,Ye=0;function Je(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var o=Ie(e.prototype),a=e.apply(o,r);return C(a)?a:o}var Ze=_((function(e,t){var n=Ze.placeholder,i=function(){for(var r=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[r++]:t[s];for(;r<arguments.length;)a.push(arguments[r++]);return Je(e,i,this,this,a)};return i}));Ze.placeholder=ie;var Xe=_((function(e,t,n){if(!G(e))throw new TypeError("Bind must be called on a function");var i=_((function(r){return Je(e,i,t,this,n.concat(r))}));return i})),et=W(X);function tt(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var r=i.length,o=0,a=X(e);o<a;o++){var s=e[o];if(et(s)&&(R(s)||U(s)))if(t>1)tt(s,t-1,n,i),r=i.length;else for(var l=0,c=s.length;l<c;)i[r++]=s[l++];else n||(i[r++]=s)}return i}var nt=_((function(e,t){var n=(t=tt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Xe(e[i],e)}return e})),it=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),rt=Ze(it,ie,1);function ot(e){return function(){return!e.apply(this,arguments)}}function at(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var st=Ze(at,2);function lt(e,t,n){t=ze(t,n);for(var i,r=te(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function ct(e){return function(t,n,i){n=ze(n,i);for(var r=X(t),o=e>0?0:r-1;o>=0&&o<r;o+=e)if(n(t[o],o,t))return o;return-1}}var ut=ct(1),dt=ct(-1);function ft(e,t,n,i){for(var r=(n=ze(n,i,1))(t),o=0,a=X(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function mt(e,t,n){return function(i,r,o){var a=0,l=X(i);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+l,a):l=o>=0?Math.min(o+1,l):o+l+1;else if(n&&o&&l)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=t(s.call(i,a,l),H))>=0?o+a:-1;for(o=e>0?a:l-1;o>=0&&o<l;o+=e)if(i[o]===r)return o;return-1}}var pt=mt(1,ut,ft),gt=mt(-1,dt);function vt(e,t,n){var i=(et(e)?ut:lt)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function ht(e,t,n){var i,r;if(t=Le(t,n),et(e))for(i=0,r=e.length;i<r;i++)t(e[i],i,e);else{var o=te(e);for(i=0,r=o.length;i<r;i++)t(e[o[i]],o[i],e)}return e}function yt(e,t,n){t=ze(t,n);for(var i=!et(e)&&te(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function bt(e){var t=function(t,n,i,r){var o=!et(t)&&te(t),a=(o||t).length,s=e>0?0:a-1;for(r||(i=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;i=n(i,t[l],l,t)}return i};return function(e,n,i,r){var o=arguments.length>=3;return t(e,Le(n,r,4),i,o)}}var wt=bt(1),_t=bt(-1);function Ct(e,t,n){var i=[];return t=ze(t,n),ht(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i}function xt(e,t,n){t=ze(t,n);for(var i=!et(e)&&te(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function kt(e,t,n){t=ze(t,n);for(var i=!et(e)&&te(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function It(e,t,n,i){return et(e)||(e=be(e)),("number"!=typeof n||i)&&(n=0),pt(e,t,n)>=0}var Et=_((function(e,t,n){var i,r;return G(t)?r=t:(t=Se(t),i=t.slice(0,-1),t=t[t.length-1]),yt(e,(function(e){var o=r;if(!o){if(i&&i.length&&(e=je(e,i)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function St(e,t){return yt(e,Me(t))}function jt(e,t,n){var i,r,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=et(e)?e:be(e)).length;s<l;s++)null!=(i=e[s])&&i>o&&(o=i);else t=ze(t,n),ht(e,(function(e,n,i){((r=t(e,n,i))>a||r===-1/0&&o===-1/0)&&(o=e,a=r)}));return o}var Ot=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Tt(e){return e?R(e)?s.call(e):E(e)?e.match(Ot):et(e)?yt(e,Te):be(e):[]}function At(e,t,n){if(null==t||n)return et(e)||(e=be(e)),e[Fe(e.length-1)];var i=Tt(e),r=X(i);t=Math.max(Math.min(t,r),0);for(var o=r-1,a=0;a<t;a++){var s=Fe(a,o),l=i[a];i[a]=i[s],i[s]=l}return i.slice(0,t)}function Mt(e,t){return function(n,i,r){var o=t?[[],[]]:{};return i=ze(i,r),ht(n,(function(t,r){var a=i(t,r,n);e(o,t,a)})),o}}var Lt=Mt((function(e,t,n){D(e,n)?e[n].push(t):e[n]=[t]})),Nt=Mt((function(e,t,n){e[n]=t})),Gt=Mt((function(e,t,n){D(e,n)?e[n]++:e[n]=1})),zt=Mt((function(e,t,n){e[n?0:1].push(t)}),!0);function Pt(e,t,n){return t in n}var Ft=_((function(e,t){var n={},i=t[0];if(null==e)return n;G(i)?(t.length>1&&(i=Le(i,t[1])),t=se(e)):(i=Pt,t=tt(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}return n})),Bt=_((function(e,t){var n,i=t[0];return G(i)?(i=ot(i),t.length>1&&(n=t[1])):(t=yt(tt(t,!1,!1),String),i=function(e,n){return!It(t,n)}),Ft(e,i,n)}));function qt(e,t,n){return s.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:qt(e,e.length-t)}function Dt(e,t,n){return s.call(e,null==t||n?1:t)}var Qt=_((function(e,t){return t=tt(t,!0,!0),Ct(e,(function(e){return!It(t,e)}))})),Ut=_((function(e,t){return Qt(e,t)}));function Ht(e,t,n,i){k(t)||(i=n,n=t,t=!1),null!=n&&(n=ze(n,i));for(var r=[],o=[],a=0,s=X(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||r.push(l),o=c):n?It(o,c)||(o.push(c),r.push(l)):It(r,l)||r.push(l)}return r}var Vt=_((function(e){return Ht(tt(e,!0,!0))}));function Wt(e){for(var t=e&&jt(e,X).length||0,n=Array(t),i=0;i<t;i++)n[i]=St(e,i);return n}var $t=_(Wt);function Kt(e,t){return e._chain?ie(t).chain():t}function Yt(e){return ht(we(e),(function(t){var n=ie[t]=e[t];ie.prototype[t]=function(){var e=[this._wrapped];return a.apply(e,arguments),Kt(this,n.apply(ie,e))}})),ie}ht(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i[e];ie.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Kt(this,n)}})),ht(["concat","join","slice"],(function(e){var t=i[e];ie.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Kt(this,e)}}));var Jt=Yt({__proto__:null,VERSION:e,restArguments:_,isObject:C,isNull:function(e){return null===e},isUndefined:x,isBoolean:k,isElement:function(e){return!(!e||1!==e.nodeType)},isString:E,isNumber:S,isDate:j,isRegExp:O,isError:T,isSymbol:A,isArrayBuffer:M,isDataView:q,isArray:R,isFunction:G,isArguments:U,isFinite:function(e){return!A(e)&&h(e)&&!isNaN(parseFloat(e))},isNaN:H,isTypedArray:Z,isEmpty:function(e){if(null==e)return!0;var t=X(e);return"number"==typeof t&&(R(e)||E(e)||U(e))?0===t:0===X(te(e))},isMatch:ne,isEqual:function(e,t){return ae(e,t)},isMap:ge,isWeakMap:ve,isSet:he,isWeakSet:ye,keys:te,allKeys:se,values:be,pairs:function(e){for(var t=te(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:_n,functions:we,methods:we,extend:Ce,extendOwn:xe,assign:xe,defaults:ke,create:function(e,t){var n=Ie(e);return t&&xe(n,t),n},clone:function(e){return C(e)?R(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Oe,has:function(e,t){for(var n=(t=Se(t)).length,i=0;i<n;i++){var r=t[i];if(!D(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=ze(t,n);for(var i=te(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Te,constant:V,noop:Pe,toPath:Ee,property:Me,propertyOf:function(e){return null==e?Pe:function(t){return Oe(e,t)}},matcher:Ae,matches:Ae,times:function(e,t,n){var i=Array(Math.max(0,e));t=Le(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:Be,escape:De,unescape:Qe,templateSettings:Ue,template:function(e,t,n){!t&&n&&(t=n),t=ke({},t,ie.templateSettings);var i=RegExp([(t.escape||He).source,(t.interpolate||He).source,(t.evaluate||He).source].join("|")+"|$","g"),r=0,o="__p+='";e.replace(i,(function(t,n,i,a,s){return o+=e.slice(r,s).replace(We,$e),r=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!Ke.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(e){throw e.source=o,e}var l=function(e){return a.call(this,e,ie)};return l.source="function("+s+"){\n"+o+"}",l},result:function(e,t,n){var i=(t=Se(t)).length;if(!i)return G(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=G(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ye+"";return e?e+t:t},chain:function(e){var t=ie(e);return t._chain=!0,t},iteratee:Ge,partial:Ze,bind:Xe,bindAll:nt,memoize:function(e,t){var n=function(i){var r=n.cache,o=""+(t?t.apply(this,arguments):i);return D(r,o)||(r[o]=e.apply(this,arguments)),r[o]};return n.cache={},n},delay:it,defer:rt,throttle:function(e,t,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Be(),i=null,a=e.apply(r,o),i||(r=o=null)},c=function(){var c=Be();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=this,o=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),s=c,a=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c},debounce:function(e,t,n){var i,r,o,a,s,l=function(){var c=Be()-r;t>c?i=setTimeout(l,t-c):(i=null,n||(a=e.apply(s,o)),i||(o=s=null))},c=_((function(c){return s=this,o=c,r=Be(),i||(i=setTimeout(l,t),n&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(i),i=o=s=null},c},wrap:function(e,t){return Ze(t,e)},negate:ot,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:at,once:st,findKey:lt,findIndex:ut,findLastIndex:dt,sortedIndex:ft,indexOf:pt,lastIndexOf:gt,find:vt,detect:vt,findWhere:function(e,t){return vt(e,Ae(t))},each:ht,forEach:ht,map:yt,collect:yt,reduce:wt,foldl:wt,inject:wt,reduceRight:_t,foldr:_t,filter:Ct,select:Ct,reject:function(e,t,n){return Ct(e,ot(ze(t)),n)},every:xt,all:xt,some:kt,any:kt,contains:It,includes:It,include:It,invoke:Et,pluck:St,where:function(e,t){return Ct(e,Ae(t))},max:jt,min:function(e,t,n){var i,r,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=et(e)?e:be(e)).length;s<l;s++)null!=(i=e[s])&&i<o&&(o=i);else t=ze(t,n),ht(e,(function(e,n,i){((r=t(e,n,i))<a||r===1/0&&o===1/0)&&(o=e,a=r)}));return o},shuffle:function(e){return At(e,1/0)},sample:At,sortBy:function(e,t,n){var i=0;return t=ze(t,n),St(yt(e,(function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index})),"value")},groupBy:Lt,indexBy:Nt,countBy:Gt,partition:zt,toArray:Tt,size:function(e){return null==e?0:et(e)?e.length:te(e).length},pick:Ft,omit:Bt,first:Rt,head:Rt,take:Rt,initial:qt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Dt(e,Math.max(0,e.length-t))},rest:Dt,tail:Dt,drop:Dt,compact:function(e){return Ct(e,Boolean)},flatten:function(e,t){return tt(e,t,!1)},without:Ut,uniq:Ht,unique:Ht,union:Vt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=X(e);i<r;i++){var o=e[i];if(!It(t,o)){var a;for(a=1;a<n&&It(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Qt,unzip:Wt,transpose:Wt,zip:$t,object:function(e,t){for(var n={},i=0,r=X(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(s.call(e,i,i+=t));return n},mixin:Yt,default:ie});return Jt._=Jt,Jt}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(97377),n(1727),n(66732);var e=n(44126);n(31203);const t=function(t){return new e.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(e){let n=t.parentElement;switch(t.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),e.message.action){case"giveEmbedFormContentLoaded":const e=setTimeout((function(){clearTimeout(e),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",t.style.visibility="visible",t.style.minHeight="",n.style.height=null}),400);t.setAttribute("data-contentLoaded","1");break;case"giveScrollIframeInToView":t.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){const e=t.parentElement;window.top.addEventListener("resize",(function(){t.style.width=window.top.innerWidth+"px"}));let n=!1;window.addEventListener("beforeunload",(function(){n=!0})),t.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(t.scrollIntoView({behavior:"smooth",inline:"nearest"}),t.parentElement.querySelector(".iframe-loader").style.opacity=1,t.parentElement.querySelector(".iframe-loader").style.transition="",t.style.visibility="hidden",e.style.height="700px")})),t.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},t)},i=window.wp.i18n,r={fn:{renderNotice:function(e,t){let n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;let n,i,r;if(n=i=r="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),r=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),r=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(r,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e,t="info",n={dismissible:!0}){const r="undefined"!=typeof commonL10n?commonL10n.dismiss:(0,i.__)("Dismiss this notice.","give");return`<div class="give-notice notice notice-${t}${n.dismissible?" is-dismissible":""}"><p>${e}${n.dismissible?` <button type="button" class="notice-dismiss"><span class="screen-reader-text">${r}</span></button>`:""}</p</div>`}}},o={fn:{showOverlay:function(e){const t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},a={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){const t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){o.fn.showOverlay(e)},hideProcessingState:function(){o.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){let n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e),void 0!==n&&n.trim()}return n},setInfo:function(e,t,n,i){return!!n.length&&("nonce"===(e=void 0===e?"data":e)&&n.find('input[name="give-form-hash"]').val(t),!(void 0!==i&&!i.length)&&("attr"===e?n.attr(i,t):n.data(i,t),!0))},getGateway:function(e){let t="";return e.length?(t=e.find('input[name="payment-mode"]:checked').val().trim(),void 0!==t?t:""):t},getVariablePrices:function(e){let t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);const r=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),r)})})),n):n},getPriceID:function(e,t){const n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e));let r=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===r&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return r=t.price_id,!1})),-1===r&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(r="custom")):r=jQuery('input[name="give-price-id"]',e).val()),r},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;let t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";let t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){let t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise(((t,n)=>{jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);const r=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),r.length&&r.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){let t=e.parents("form"),n=e.val(),i=e.data("price-id");void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);const r=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),r)),"custom"!==i||n?t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i]):t.find(".give-donation-amount .give-text-input").focus()},__sendBackToForm:function(){const e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;const n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),r=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");const s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):r||o?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;const t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),r=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==r)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e,t=!1){return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||0!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:async function(e,t={}){(t=t instanceof FormData?t:new FormData(e)).append("action","give_process_donation"),t.append("give_ajax",!0);const n=await fetch(`${Give.fn.getGlobalVar("ajaxurl")}`,{method:"POST",body:t});return(await n.text()).trim()},addErrors:function(e,t){e.find("#give-purchase-button").before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){const t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((e=>{const n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e,t=null){this.resetDonationButton(e),t&&this.addErrors(e,t)},resetDonationButton:function(e){const t=e.find("#give-purchase-button"),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){const n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),r=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),r.payment("formatCardExpiry"))}))}}}},s={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},l={fn:{twitter:function(e,t){const n=parent.window?parent.window:window,i=n.innerHeight/2-126,r=n.innerWidth/2-280;n.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`,"newwindow",`width=560,height=253,top=${i},left=${r}`)},facebook:function(e){const t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,"newwindow",`width=560,height=730,top=${n},left=${i}`)}}};var c=n(98103),u=n.n(c);const d={init:function(){let e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)d[e[t]].init&&d[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){let i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:d.form.fn.getInfo("decimal_separator",n),thousand:d.form.fn.getInfo("thousands_separator",n),precision:d.form.fn.getInfo("number_decimals",n),currency:d.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){let n=u().formatNumber(e,{precision:i.precision,decimal:"."}),r=t.precision?".0":"",o="",a="",s="",l="";n=u().unformat(n,".").toString(),n=n.toString(),n.indexOf(".")>0&&(r=n.substring(n.indexOf("."),n.length)),n=Math.floor(n).toString(),o=n.substring(n.length-3),a=n.substring(0,n.length-3),""!==a&&(o=i.thousand+o),s=a.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+o+r,l=s.lastIndexOf("."),s=s.slice(0,l)+(s.slice(l)+"000000000000").substr(0,t.precision+1),e=s,void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=u().formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){const n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(u().unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){const t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?window.give_vars||{}:window.give_global_vars||{}},setCache:function(e,t,n){n.length?d.cache["form_"+d.form.fn.getInfo("form-id",n)][e]=t:d.cache[e]=t},getCache:function(e,t){let n,i=d.cache["form_"+d.form.fn.getInfo("form-id",t)];return n=t.length?void 0!==i?i[e]:"":d.cache[e],n=void 0===n?"":n,n},__getCookie:function(e){const t=("; "+document.cookie).split("; "+e+"=");let n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e,t={}){const n=(t=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},t)).loadingAnimation?'<span class="is-active spinner"></span>':"",i=null!==t.loadingText?t.loadingText:d.fn.getGlobalVar("loader_translation").updating;let r,o;return!1===t.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(r=n.length?"give-has-spinner":"",r+=i.length?" give-has-text":"",r=r.length?" "+r.trim():"",o=`<div class="give-spinner-wrap${r}"><div class="give-spinner-inner">${(i+n).trim()}</div></div>`,null===t.show?o:(e.prepend(o),!0))},removeURLParameter:function(e,t){const n=e.split("?");if(n.length>=2){const e=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g);for(let t=i.length;t-- >0;)-1!==i[t].lastIndexOf(e,0)&&i.splice(t,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};d.notice=r,d.form=a,d.donor=s,d.util=o,d.share=l;const f=d;n(19618),n(8951);var m=n(68091),p=n.n(m);jQuery((function(e){const t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),e(t).ready((function(){!function(){const e=new URLSearchParams(window.location.search),t=e.get("givewp-embed-id");e.has("givewp-embed-id")&&"donation-completed"===e.get("givewp-event")&&"show-donation-confirmation-receipt"===e.get("givewp-listener")&&e.has("givewp-receipt-id")&&document.querySelectorAll(".js-give-grid-modal-launcher").forEach((function(e){e.nextElementSibling.firstElementChild.dataset.givewpEmbedId===t&&e.click()}))}()})),void 0!==window.csGlobal&&window.jQuery((function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",(function(t,n){return!e(n).hasClass("give-card")&&t}))})),t.on("click touchend",".give-disabled",(function(e){return e.preventDefault(),!1})),t.on("give_gateway_loaded",(function(e,t,n){give_fl_trigger()})),t.on("give_checkout_billing_address_updated",(function(t,n,i){e("form#"+i).hasClass("float-labels-enabled")&&give_fl_trigger()})),t.on("click",".give-btn-reveal",(function(t){t.preventDefault();const n=e(this),i=e(this).parents("form");let r="#give-payment-mode-select",o=e(r),a="";return n.hide(),e("li",o).length>1&&(a=r+", "),i.find(a+"#give_purchase_form_wrap").slideDown(),!1})),t.on("click",".give-btn-modal",(function(t){t.preventDefault();const n=e(this).parents("div.give-form-wrap"),i=n.find("form.give-form"),r=i.find("#give-amount"),o=r.val();if(!o||o<=0)return r.focus(),!1;give_open_form_modal(n,i)}));const n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each((function(t,n){n=e(n),window.setTimeout((function(){n.slideUp()}),n.data("dismiss-interval"))})),e("body").on("click",".give-notice-close",(function(){e(this).hide(),e(this).closest(".give_notices").slideUp()})),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",(function(t){if(t.persisted||"string"!==window.performance&&2===window.performance.navigation.type){const t=e("body").find("form.give-form");t.length&&(t[0].reset(),Give.form.fn.resetAllNonce(t))}}))})),window.give_open_form_modal=function(e,t){let n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");const n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){const i=jQuery(".give-form-content-wrap",e),r=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);i.length&&!jQuery(".give-form-content-wrap",t).length&&(i.hasClass("give_post_form-content")?t.append(i):t.prepend(i)),a.length&&!jQuery(".give_errors",t).length&&a.each((function(e,n){t.prepend(jQuery(n))})),o.length&&!jQuery(">.give_error",t).length&&o.each((function(e,n){t.prepend(jQuery(n))})),r.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(r),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){const i=jQuery(".mfp-content");i.outerWidth()>=500&&i.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof p()?window.give_float_labels.rebuild():window.give_float_labels=new(p())(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){let e,t=jQuery(".give-form");t.length&&jQuery.each(t,(function(t,n){e=jQuery("input",n),e.length&&jQuery.each(e,(function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})}))}))},window.update_profile_state_field=function(){const e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);const n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){let n="";const i=e.states_label;n=void 0!==typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+i+'" value="'+e.default_state+'"/>',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),void 0!==typeof e.show_field&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1},n(23878);class g{constructor(){window.addEventListener("load",(function(){window.addDynamicEventListener(document,"click",".give-donor-content__read-more",g.readMoreBtnEvent),window.addDynamicEventListener(document,"click",".give-donor__load_more",g.loadMoreBtnEvent)}),!1),window.addEventListener("load",(function(){g.loadGravatars()}))}static readMoreBtnEvent(e){return e.preventDefault(),jQuery.magnificPopup.open({items:{src:e.target.parentNode.parentNode.parentNode.getElementsByClassName("give-donor-content__comment")[0],type:"inline"},mainClass:"give-modal give-donor-wall-modal",closeOnBgClick:!1}),!1}static loadMoreBtnEvent(e){e.preventDefault();const t=e.target,n=t.parentNode,i=n.getElementsByClassName("give-donor-wall-shortcode-attrs")[0];return jQuery.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"POST",data:{action:"give_get_donor_comments",data:i.getAttribute("data-shortcode"),nonce:i.getAttribute("data-nonce")},beforeSend(){t.className+=" give-active",t.setAttribute("disabled","disabled")}}).done((function(e){t.classList.remove("give-active"),t.removeAttribute("disabled","disabled"),e.html.length&&n.getElementsByClassName("give-grid")[0].insertAdjacentHTML("beforeend",e.html),e.shortcode.length&&i.setAttribute("data-shortcode",e.shortcode),e.remaining||t.remove(),g.loadGravatar(i)})),!1}static loadGravatars(){Array.from(document.querySelectorAll(".give-donor-wall-shortcode-attrs")).forEach((function(e,t){g.loadGravatar(e)}))}static loadGravatar(e){const t=n(93365);let i,r,o,a,s;if(a="1"===Give.fn.getParameterByName("show_avatar",decodeURIComponent(e.getAttribute("data-shortcode"))),!a)return!1;i=Array.from(e.parentNode.querySelectorAll(".give-grid__item")),i.forEach((function(e,n){if(r=e.querySelector(".give-donor-container__image"),!r.classList.contains("gravatar-loaded")){if(o=r.getAttribute("data-donor_email"),s="1"===r.getAttribute("data-has-valid-gravatar"),s){const e=document.createElement("IMG"),n=r.getAttribute("data-avatar-size");r.innerHTML="",e.setAttribute("src",t.url(o,{s:2*parseInt(n)})),r.appendChild(e)}r.className+=" gravatar-loaded"}}))}}new g;const v={targetOrigin:window.location.origin,onReady:function(){document.getElementById("give-receipt")||window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"})},onMessage:function(e){if("currentPage"in e){const t=document.getElementsByName("give-current-url");t.length&&t[0].setAttribute("value",e.currentPage)}}};jQuery((function(){if(document.querySelector("body.give-form-templates"))return!1;document.querySelectorAll(".js-give-embed-form-modal-opener").forEach((function(e){e.addEventListener("click",(function(){const n=document.getElementById(e.getAttribute("data-form-id")),i=n.querySelector('iframe[name="give-embed-form"]'),r=i.getAttribute("data-src");r&&(i.setAttribute("src",r),i.setAttribute("data-src",""),t(i)),document.documentElement.style.overflow="hidden",n.classList.add("modal"),n.classList.remove("is-hide")}))})),document.querySelectorAll(".js-give-embed-form-modal-closer").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();const n=document.getElementById(e.getAttribute("data-form-id"));document.documentElement.style.overflow="",n.classList.remove("modal"),n.classList.add("is-hide")}))})),document.querySelectorAll(".js-give-grid-modal-launcher").forEach((function(e){e.addEventListener("click",(function(){const t=e.nextElementSibling.firstElementChild,n=document.querySelector(".mfp-wrap.give-modal");n&&n.classList.add("mfp-hide"),t?(jQuery.magnificPopup.close(),t.click()):n&&n.classList.remove("mfp-hide")}))})),document.addEventListener("click",(function(e){(e.target.matches(".modal-inner-wrap")||e.target.matches(".give-embed-form-wrapper.modal"))&&e.target.querySelector(".js-give-embed-form-modal-closer").click()})),document.addEventListener("keydown",(e=>{if(e.isComposing||27!==e.keyCode)return;const t=document.querySelector(".give-embed-form-wrapper.modal");if(t){const e=t.getAttribute("id"),n=document.querySelector(`.js-give-embed-form-modal-closer[data-form-id="${e}"]`);n&&n.click()}})),window.addEventListener("load",(function(){const e=document.querySelector('.modal-content iframe[data-autoScroll="1"]');if(e){const t=e.parentElement.parentElement.parentElement.getAttribute("id"),n=document.querySelector(`.js-give-embed-form-modal-opener[data-form-id="${t}"]`);n&&n.click()}}))})),n(22979),window.addEventListener("load",(function(){window.Give.WINDOW_IS_LOADED=!0}));const{init:h,fn:y,form:b,notice:w,cache:_,donor:C,util:x,share:k}=f;window.Give={init:h,fn:y,form:b,notice:w,cache:_,donor:C,util:x,share:k,initializeIframeResize:t},window.iFrameResizer=v})()})();