// source --> https://www.dementiahub.sg/wp-content/plugins/gravityforms/js/gravityforms.min.js?ver=2.7.7 var gform=window.gform||{};function announceAJAXValidationErrors(){var e;jQuery(".gform_validation_errors").length&&((e=document.querySelector('[data-js="gform-focus-validation-error"]'))&&(e.setAttribute("tabindex","-1"),e.focus()),setTimeout(function(){wp.a11y.speak(jQuery(".gform_validation_errors > h2").text())},1e3))}function gformBindFormatPricingFields(){jQuery(".ginput_amount, .ginput_donation_amount").off("change.gform").on("change.gform",function(){gformFormatPricingField(this)}),jQuery(".ginput_amount, .ginput_donation_amount").each(function(){gformFormatPricingField(this)})}function Currency(e){this.currency=e,this.toNumber=function(e){return this.isNumeric(e)?parseFloat(e):gformCleanNumber(e,this.currency.symbol_right,this.currency.symbol_left,this.currency.decimal_separator)},this.toMoney=function(e,t){if(!1===(e=(t=t||!1)?e:gformCleanNumber(e,this.currency.symbol_right,this.currency.symbol_left,this.currency.decimal_separator)))return"";"-"==(e+=negative="")[0]&&(e=parseFloat(e.substr(1)),negative="-"),"0.00"==(money=this.numberFormat(e,this.currency.decimals,this.currency.decimal_separator,this.currency.thousand_separator))&&(negative="");t=this.currency.symbol_left?this.currency.symbol_left+this.currency.symbol_padding:"",e=this.currency.symbol_right?this.currency.symbol_padding+this.currency.symbol_right:"";return money=negative+this.htmlDecode(t)+money+this.htmlDecode(e)},this.numberFormat=function(e,t,r,i,n){n=void 0===n||n,e=(e+"").replace(",","").replace(" ","");var e=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,i=void 0===i?",":i,r=void 0===r?".":r,a="";return 3<(a=("0"==t?(e+=1e-10,""+Math.round(e)):-1==t?""+e:function(e,t){t=Math.pow(10,t);return""+Math.round(e*t)/t}(e+=1e-10,o)).split("."))[0].length&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),n&&(a[1]||"").length/i,"").replace(o,""),a=0==gformToNumber(a=gformGetPriceDifference(r,t))?"":" "+a,e=(e.attr("price",a),"option"==e[0].tagName.toLowerCase()?a:""+a+""),a=o+e;return a=window.gform_format_option_label?gform_format_option_label(a,o,e,r,t,i,n):a}function gformGetProductIds(e,t){for(var r=(jQuery(t).hasClass(e)?jQuery(t):jQuery(t).parents("."+e)).attr("class").split(" "),i=0;it?(r.text(e.name+" - "+gform_gravityforms.strings.file_exceeds_limit),wp.a11y.speak(e.name+" - "+gform_gravityforms.strings.file_exceeds_limit)):r.remove())}function gformInitSpinner(t,r,i=!0){gform.applyFilters("gform_spinner_url",r,t)!=r&&(i=!0),jQuery("#gform_"+t).submit(function(){var e;i?gformAddSpinner(t,r):(e=gform.applyFilters("gform_spinner_target_elem",jQuery("#gform_submit_button_"+t+", #gform_wrapper_"+t+" .gform_next_button, #gform_send_resume_link_button_"+t),t),gformInitializeSpinner(t,e))})}function gformInitializeSpinner(e,t,r="gform-ajax-spinner"){0==jQuery("#gform_ajax_spinner_"+e).length&&(r='',(t instanceof jQuery?t:jQuery(t)).after(r))}function gformRemoveSpinner(e="gform-ajax-spinner"){e=document.querySelector('[data-js-spinner-id="'+e+'"]');e&&e.remove()}function gformAddSpinner(e,t){void 0!==t&&t||(t=gform.applyFilters("gform_spinner_url",gf_global.spinnerUrl,e)),0==jQuery("#gform_ajax_spinner_"+e).length&&gform.applyFilters("gform_spinner_target_elem",jQuery("#gform_submit_button_"+e+", #gform_wrapper_"+e+" .gform_next_button, #gform_send_resume_link_button_"+e),e).after('')}function gformReInitTinymceInstance(e,t){var r,i,n;e&&t?(r=window.tinymce)?(i=r.get("input_"+e+"_"+t))?(n=jQuery.extend({},i.settings),i.remove(),r.init(n),gform.console.log("gformReInitTinymceInstance reinitialized TinyMCE on input_"+e+"_"+t+".")):gform.console.error("gformReInitTinymceInstance did not find an instance for input_"+e+"_"+t+"."):gform.console.error("gformReInitTinymceInstance requires tinymce to be available."):gform.console.error("gformReInitTinymceInstance requires a form and field id.")}function gf_raw_input_change(e,t){clearTimeout(__gf_keyup_timeout);var r=jQuery(t),i=r.attr("id"),n=gf_get_input_id_by_html_id(i),o=gf_get_form_id_by_html_id(i),i=gform.applyFilters("gform_field_meta_raw_input_change",{fieldId:n,formId:o},r,e),n=i.fieldId,o=i.formId;n&&(r=!(i=r.is(":checkbox")||r.is(":radio")||r.is("select"))||r.is("textarea"),"keyup"==e.type&&!r||"change"==e.type&&!i&&!r||("keyup"==e.type?__gf_keyup_timeout=setTimeout(function(){gf_input_change(t,o,n)},300):gf_input_change(t,o,n)))}function gf_get_input_id_by_html_id(e){var e=gf_get_ids_by_html_id(e),t=e[e.length-1];return 3==e.length&&(e.shift(),t=e.join(".")),t}function gf_get_form_id_by_html_id(e){return gf_get_ids_by_html_id(e)[0]}function gf_get_ids_by_html_id(e){for(var t=e?e.split("_"):[],r=t.length-1;0<=r;r--)gformIsNumber(t[r])||t.splice(r,1);return t}function gf_input_change(e,t,r){gform.doAction("gform_input_change",e,t,r)}function gformExtractFieldId(e){var t=parseInt(e.toString().split(".")[0],10);return t||e}function gformExtractInputIndex(e){e=parseInt(e.toString().split(".")[1],10);return e||!1}gform.recaptcha={renderRecaptcha:function(){jQuery(".ginput_recaptcha:not(.gform-initialized)").each(function(){var t=jQuery(this),e={sitekey:t.data("sitekey"),theme:t.data("theme"),tabindex:t.data("tabindex")},r=(t.data("stoken")&&(e.stoken=t.data("stoken")),!1);"invisible"==t.data("size")&&(r=function(e){e&&t.closest("form").submit()}),(r=gform.applyFilters("gform_recaptcha_callback",r,t))&&(e.callback=r),t.data("widget-id",grecaptcha.render(this.id,e)),e.tabindex&&t.find("iframe").attr("tabindex",e.tabindex),t.addClass("gform-initialized"),gform.doAction("gform_post_recaptcha_render",t)})},gformIsRecaptchaPending:function(e){var e=e.find(".ginput_recaptcha");return!(!e.length||"invisible"!==e.data("size")||(e=e.find(".g-recaptcha-response")).length&&e.val())},needsRender:function(){return document.querySelectorAll(".ginput_recaptcha:not(.gform-initialized)")[0]},renderOnRecaptchaLoaded:function(){var e;gform.recaptcha.needsRender()&&(e=setInterval(function(){window.grecaptcha&&window.grecaptcha.render&&(this.renderRecaptcha(),clearInterval(e))},100))}},gform.initializeOnLoaded(gform.recaptcha.renderOnRecaptchaLoaded),jQuery(document).on("gform_post_render",gform.recaptcha.renderOnRecaptchaLoaded),window.renderRecaptcha=gform.recaptcha.renderRecaptcha,window.gformIsRecaptchaPending=gform.recaptcha.gformIsRecaptchaPending,!function(g,m){g.uploaders={};var _="undefined"!=typeof gform_gravityforms?gform_gravityforms.strings:{},p="undefined"!=typeof gform_gravityforms?gform_gravityforms.vars.images_url:"";function i(o){var f,r,e=m(o).data("settings"),t=new plupload.Uploader(e);function d(e,t){m("#"+e).prepend("
  • "+h(t)+"
  • "),setTimeout(function(){wp.a11y.speak(m("#"+e).text())},1e3)}function l(e){var t=parseInt(e.gf_vars.max_files,10);0{1}{2}{5}',t,r,_,i,o).gformFormat(t.id,h(t.name),r,_.cancel_upload,i,_.cancel),m("#"+o.settings.filelist).prepend(n),s++)}),o.refresh(),0==(t=m("form#gform_"+f+" "+(e="input:hidden[name='gform_unique_id']"))).length&&(t=m(e)),""===(r=t.val())&&(r="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),t.val(r)),0'+plupload.formatSize(t.size)+"",a+=''+t.percent+"%",n=e.settings.multipart_params.form_id,i=e.settings.multipart_params.field_id,a="undefined"!=typeof gf_legacy&&gf_legacy.is_legacy?""+_.delete_file+" "+a:a+"",a=gform.applyFilters("gform_file_upload_markup",a,t,e,_,p,r),m("#"+t.id).html(a),m("#"+t.id+" span.gfield_fileupload_progressbar_progress").css("width",t.percent+"%"),100==t.percent&&(r.status&&"ok"==r.status?(n=i,o=r.data,(a=c(n)).unshift(o),i=n,r=a,o=s(),n=m("#gform_uploaded_files_"+f),i=u(i),o[i]=r,n.val(m.toJSON(o))):d(e.settings.gf_vars.message_id,_.unknown_error+": "+t.name))))}),t.bind("FilesRemoved",function(e,t){l(e.settings)}),m("#"+e.drop_element).on({dragenter:n,dragover:n})}function h(e){return m("
    ").text(e).html()}m(document).bind("gform_post_render",function(e,t){m("form#gform_"+t+" .gform_fileupload_multifile").each(function(){i(this)});var r=m("form#gform_"+t);0 li").hover(function(){jQuery(this).find(".gform-form-toolbar__submenu").toggleClass("open"),jQuery(this).find(".has_submenu").toggleClass("submenu-open")},function(){jQuery(".gform-form-toolbar__submenu.open").removeClass("open"),jQuery(".has_submenu.submenu-open").removeClass("submenu-open")}),jQuery("#gform-form-toolbar__menu .has_submenu").click(function(e){e.preventDefault()})}),jQuery(document).ready(function(){jQuery(".gform-settings-field").each(function(){1 .gform-settings-input__container").length&&jQuery(this).addClass("gform-settings-field--multiple-inputs")})}),jQuery(function(){gform.tools.trigger("gform_main_scripts_loaded")}); // source --> https://www.dementiahub.sg/wp-content/plugins/gravityforms/js/conditional_logic.min.js?ver=2.7.7 var __gf_timeout_handle;function gf_apply_rules(e,t,i){jQuery(document).trigger("gform_pre_conditional_logic",[e,t,i]);for(var a=0;a=t.length-1&&(jQuery(document).trigger("gform_post_conditional_logic",[e,t,i]),window.gformCalculateTotalPrice)&&window.gformCalculateTotalPrice(e)})}function gf_check_field_rule(e,t,i,a){var r,t=gf_get_field_logic(e,t);return t?"hide"!=(r=gf_get_field_action(e,t.section))?gf_get_field_action(e,t.field):r:"show"}function gf_get_field_logic(e,t){var i=rgars(window,"gf_form_conditional_logic/"+e);if(i){e=rgars(i,"logic/"+t);if(e)return e;var a=rgar(i,"dependents");if(a)for(var r in a)if(-1!==a[r].indexOf(t))return rgars(i,"logic/"+r)}return!1}function gf_apply_field_rule(e,t,i,a){gf_do_field_action(e,gf_check_field_rule(e,t,i,a),t,i,a);a=window.gf_form_conditional_logic[e].logic[t];a.nextButton&&gf_do_next_button_action(e,gf_get_field_action(e,a.nextButton),t,i)}function gf_get_field_action(e,t){if(!t)return"show";for(var i=0,a=0;a"]),a=-1!==jQuery.inArray(r.operator,["contains","starts_with","ends_with"]);if(t==r.value||i||a)return e.is(":checked")?"gf_other_choice"==t&&(t=jQuery("#input_{0}_{1}_other".gformFormat(n,o)).val()):t="",gf_matches_operation(t,r.value,r.operator)?!(_=!0):void 0}),_)}function gf_is_checkable_empty(e){var t=!0;return e.each(function(){jQuery(this).is(":checked")&&(t=!1)}),t}function gf_is_match_default(e,t,i,a){for(var e=e.val(),r=e instanceof Array?e:[e],n=0,o=Math.max(r.length,1),_=0;_":return e=gf_try_convert_float(e),t=gf_try_convert_float(t),!(!gformIsNumber(e)||!gformIsNumber(t))&&t https://www.dementiahub.sg/wp-content/plugins/gravityforms/assets/js/dist/utils.min.js?ver=bc402317bb1b621c1f695fe582d28717 !function(){var t={158:function(t){var e,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var c,u=[],l=!1,s=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):s=-1,u.length&&d())}function d(){if(!l){var t=a(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++s1)for(var n=1;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=t.length;n--;e.unshift(t[n]));return e}function p(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=d(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'));return e.filter((function(t){return p(t)}))}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(n&&e){if(27===t.keyCode)return e.focus(),void r();if(9===t.keyCode){var o=v(n),i=o[0],a=o[o.length-1];t.shiftKey?document.activeElement===i&&(a.focus(),t.preventDefault()):document.activeElement===a&&(i.focus(),t.preventDefault())}}}function h(t,e){Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])}))}n.r(l),n.d(l,{animate:function(){return t},applyBrowserClasses:function(){return $t},arrayEquals:function(){return _},arrayToInt:function(){return I},aspectRatioToPadding:function(){return M},bodyLock:function(){return e},browsers:function(){return Xt},checkNotificationPromise:function(){return Ue},clipboard:function(){return Qt},consoleError:function(){return T},consoleInfo:function(){return k},consoleLog:function(){return L},consoleWarn:function(){return P},convertElements:function(){return d},cookieStorage:function(){return u},debounce:function(){return Fe},deepMerge:function(){return Y},delay:function(){return G},delegate:function(){return ze},dragHorizontal:function(){return te},escapeHtml:function(){return V},escapeScripts:function(){return Q},filterObject:function(){return K},focusLoop:function(){return g},getChildren:function(){return ee},getClosest:function(){return ne},getConfig:function(){return Z},getCoords:function(){return re},getFocusable:function(){return v},getHiddenHeight:function(){return oe},getNode:function(){return ae},getNodes:function(){return ie},hasClassFromArray:function(){return ce},hasScrollbar:function(){return ue},insertAfter:function(){return le},insertBefore:function(){return se},isEmptyObject:function(){return tt},isExternalLink:function(){return fe},isFileLink:function(){return de},isFormDirty:function(){return pe},isFunction:function(){return q},isImageLink:function(){return ve},isJestTest:function(){return x},isJson:function(){return et},isObject:function(){return nt},isRtl:function(){return ge},localStorage:function(){return a},mimicFn:function(){return ht},objectAssign:function(){return mt},objectToAttributes:function(){return St},objectToFormData:function(){return yt},openNewTab:function(){return he},parseUrl:function(){return wt},popup:function(){return me},queryToJson:function(){return Ct},ready:function(){return Je},removeClassThatContains:function(){return ye},resize:function(){return Re},saferHtml:function(){return bt},sessionStorage:function(){return c},setAttributes:function(){return h},shouldLoadChunk:function(){return we},simpleBar:function(){return r},slide:function(){return o},slugify:function(){return Ot},spacerClasses:function(){return Pe},speak:function(){return j},sprintf:function(){return Et},trigger:function(){return Zt},uniqueId:function(){return Lt},updateQueryVar:function(){return Pt},viewport:function(){return i},visible:function(){return p},vsprintf:function(){return xt}});var m={containers:[]},y={previousMessage:""},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");h(e,{"aria-live":t,"aria-relevant":"additions text","aria-atomic":"true",style:"position: absolute; margin: -1px; padding: 0; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); border: 0; word-wrap: normal !important;"}),document.body.appendChild(e),m.containers.push(e)},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.replace(/<[^<>]+>/g," ");return y.previousMessage===e&&(e+=" "),y.previousMessage=e,e},O=function(){return m.containers.forEach((function(t){return t.textContent=""}))},S=function(){m.containers.length||(w("assertive"),w("polite"))};function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";S(),O();var n=m.containers.filter((function(t){return t.getAttribute("aria-live")===e}))[0];n&&(n.textContent=b(t))}var E=n(158);function x(){var t,e,n,r;return!(void 0===(null===(t=E)||void 0===E||null===(e=t.env)||void 0===e?void 0:e.JEST_WORKER_ID)||"test"!==(null===(n=E)||void 0===E||null===(r=n.env)||void 0===r?void 0:"production"))}function T(){window.console&&x()}var A=n(158);function k(){var t,e;"production"!==(null===(t=A)||void 0===A||null===(e=t.env)||void 0===e?void 0:"production")&&window.console&&x()}var C=n(158);function L(){var t,e;"production"!==(null===(t=C)||void 0===C||null===(e=t.env)||void 0===e?void 0:"production")&&window.console&&x()}function P(){window.console&&x()}function _(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((function(t,n){return t===e[n]}))}var I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){return parseInt(t,10)}))};function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split(":");return parseFloat((e[1]/e[0]*100).toFixed(5))}function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,N=function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===F}(t)};function H(t){return function(t){return!!t&&"object"===D(t)}(t)&&!N(t)}function q(t){return t&&"[object Function]"==={}.toString.call(t)}function z(t,e){return!1!==e.clone&&e.isMergeableObject(t)?$((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function J(t,e,n){return t.concat(e).map((function(t){return z(t,n)}))}function R(t,e,n){var r=t.slice();return e.forEach((function(e,o){void 0===r[o]?r[o]=n.cloneUnlessOtherwiseSpecified(e,n):n.isMergeableObject(e)?r[o]=$(t[o],e,n):-1===t.indexOf(e)&&r.push(e)})),r}function U(t){var e=J;return"combine"===t.arrayMerge?e=R:q(t.arrayMerge)&&(e=t.arrayMerge),e}function W(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function B(t,e){try{return e in t}catch(t){return!1}}function X(t,e,n){var r={};return n.isMergeableObject(t)&&W(t).forEach((function(e){r[e]=z(t[e],n)})),W(e).forEach((function(o){(function(t,e){return B(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(B(t,o)&&n.isMergeableObject(e[o])?r[o]=function(t,e){if(!e.customMerge)return $;var n=e.customMerge(t);return"function"==typeof n?n:$}(o,n)(t[o],e[o],n):r[o]=z(e[o],n))})),r}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.arrayMerge=U(n),n.isMergeableObject=n.isMergeableObject||H,n.cloneUnlessOtherwiseSpecified=z;var r=Array.isArray(e),o=Array.isArray(t),i=r===o;return i?r?n.arrayMerge(t,e,n):X(t,e,n):z(e,n)}$.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return $(t,n,e)}),{})};var Y=$,K=function(t,e){var n=Object.entries(t).filter(e);return Object.fromEntries(n)};function G(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,o=[];function i(t,n){e=window.setTimeout((function(){if(e=null,t(),o.length){var n=o.shift();i(n.fn,n.t)}}),n)}return t={delay:function(n,r){return o.length||e?o.push({fn:n,t:r}):i(n,r),t},cancel:function(){return window.clearTimeout(e),o=[],t}},t.delay(n,r)}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/)<[^<]*)*<\/script>/gi,"")}function Z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&t[e]?t[e]:t}function tt(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return JSON.stringify(t)===JSON.stringify({})}function et(t){if(null===t)return!1;try{JSON.parse(t)}catch(t){return!1}return!0}function nt(t){return!(!t||"object"!==D(t)||Array.isArray(t))}function rt(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===D(e)?e:String(e)}function ot(t,e,n){return(e=rt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function it(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:{},o=r.ignoreNonConfigurable,i=void 0!==o&&o,a=t.name,c=it(Reflect.ownKeys(e));try{for(c.s();!(n=c.n()).done;){var u=n.value;lt(t,e,u,i)}}catch(t){c.e(t)}finally{c.f()}return ft(t,e),gt(t,e,a),t}function mt(){for(var t={},e=0;e/g,">"),e+=t[n]}return e}function Ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().normalize("NFKD").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/-$/g,"")}function St(t){var e=[];return Object.entries(t).forEach((function(t){var n=f(t,2),r=n[0],o=n[1];if(o.length||"alt"===r)if(Array.isArray(o)){var i=o.filter((function(t){return t}));e.push("".concat(r,'="').concat(i.join(" "),'"'))}else e.push("".concat(r,'="').concat(o,'"'))})),e.join(" ")}var jt={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function Et(t){return Tt(kt(t),arguments)}function xt(t,e){return Et.apply(null,[t].concat(e||[]))}function Tt(t,e){var n,r,o,i,a,c,u,l,s,f=1,d=t.length,p="";for(r=0;r=0),i.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,i.width?parseInt(i.width):0);break;case"e":n=i.precision?parseFloat(n).toExponential(i.precision):parseFloat(n).toExponential();break;case"f":n=i.precision?parseFloat(n).toFixed(i.precision):parseFloat(n);break;case"g":n=i.precision?String(Number(n.toPrecision(i.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=i.precision?n.substring(0,i.precision):n;break;case"t":n=String(!!n),n=i.precision?n.substring(0,i.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=i.precision?n.substring(0,i.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=i.precision?n.substring(0,i.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}jt.json.test(i.type)?p+=n:(!jt.number.test(i.type)||l&&!i.sign?s="":(s=l?"+":"-",n=n.toString().replace(jt.sign,"")),c=i.pad_char?"0"===i.pad_char?"0":i.pad_char.charAt(1):" ",u=i.width-(s+n).length,a=i.width&&u>0?c.repeat(u):"",p+=i.align?s+n+a:"0"===c?s+a+n:a+s+n)}return p}var At=Object.create(null);function kt(t){if(At[t])return At[t];for(var e,n=t,r=[],o=0;n;){if(null!==(e=jt.text.exec(n)))r.push(e[0]);else if(null!==(e=jt.modulo.exec(n)))r.push("%");else{if(null===(e=jt.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){o|=1;var i=[],a=e[2],c=[];if(null===(c=jt.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=jt.key_access.exec(a)))i.push(c[1]);else{if(null===(c=jt.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(c[1])}e[2]=i}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}n=n.substring(e[0].length)}return At[t]=r}var Ct=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.length?t:window.location.search.slice(1),n=e.length?e.split("&"):[],r={},o=[];return n.forEach((function(t){o=t.split("="),r[o[0]]=decodeURIComponent(o[1]||"")})),JSON.parse(JSON.stringify(r))};function Lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return"".concat(t.length?"".concat(t,"-"):"").concat(Math.random().toString(36).substr(2,9))}function Pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location.href,r="?",o=n.split("#"),i=o[1]?"#".concat(o[1]):"",a=o[0].split("?"),c=a[0],u=a[1],l=void 0!==u?u.split("&"):[],s=!1;return l.forEach((function(n,r){n.startsWith("".concat(t,"="))&&(s=!0,e?l[r]="".concat(t,"=").concat(e):l.splice(r,1))})),!s&&e&&(l[l.length]="".concat(t,"=").concat(e)),"".concat(c).concat(r).concat(l.join("&")).concat(i)}var _t=function(t,e){var n,r,o,i,a,c={},u={},l=e.distanceFrom,s=void 0===l?(null===(n=t.dataset)||void 0===n?void 0:n.translateDistanceFrom)||"20px":l,f=e.distanceTo,d=void 0===f?(null===(r=t.dataset)||void 0===r?void 0:r.translateDistanceTo)||"0px":f,p=e.opacityFrom,v=void 0===p?null===(o=t.dataset)||void 0===o?void 0:o.translateOpacityFrom:p,g=e.opacityTo,h=void 0===g?null===(i=t.dataset)||void 0===i?void 0:i.translateOpacityTo:g,m=e.types;return(void 0===m?(null===(a=t.dataset)||void 0===a?void 0:a.animationTypes)||"":m).split(" ").forEach((function(t){"fadeIn"===t&&(c.opacity=v||0,u.opacity=h||1),"fadeOut"===t&&(c.opacity=v||1,u.opacity=h||0),"translateY"===t&&(c.transform="translateY(".concat(s,")"),u.transform="translateY(".concat(d,")"))})),[c,u]},It=function(t,e){var n,r,o,i=e.distanceTo,a=void 0===i?(null===(n=t.dataset)||void 0===n?void 0:n.translateDistanceTo)||"0px":i,c=e.opacityTo,u=void 0===c?null===(r=t.dataset)||void 0===r?void 0:r.translateOpacityTo:c,l=e.types;(void 0===l?(null===(o=t.dataset)||void 0===o?void 0:o.animationTypes)||"":l).split(" ").forEach((function(e){"fadeIn"===e&&(t.style.opacity=u||"1",t.setAttribute("aria-hidden","false")),"fadeOut"===e&&(t.style.opacity=u||"0",t.setAttribute("aria-hidden","true")),"translateY"===e&&(t.style.transform="translateY(".concat(a,")"))}))},Mt=function(){var t,e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r){var i=o.onAnimateInit,a=void 0===i?function(){}:i,c=o.onAnimateStart,u=void 0===c?function(){}:c,l=o.onAnimateEnd,s=void 0===l?function(){}:l,f=o.delay,d=void 0===f?(null===(t=r.dataset)||void 0===t?void 0:t.animationDelay)||0:f,p=o.duration,v=void 0===p?(null===(e=r.dataset)||void 0===e?void 0:e.animationDuration)||400:p,g=o.easing,h=void 0===g?(null===(n=r.dataset)||void 0===n?void 0:n.animationEasing)||"linear":g,m=_t(r,o);a(),setTimeout((function(){u(),requestAnimationFrame((function(){r.animate(m,{duration:Number(v),easing:h}).onfinish=function(){It(r,o),s()}}))}),d)}},Dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var e=t.target,n=t.options;Mt(e,n)}))},Ft=/(android)/i.test(window.navigator.userAgent),Nt=!!window.chrome,Ht="undefined"!=typeof InstallTrigger,qt=document.documentMode||!1,zt=!qt&&!!window.StyleMedia,Jt=!!window.navigator.userAgent.match(/(iPod|iPhone|iPad)/i),Rt=!!window.navigator.userAgent.match(/(iPod|iPhone)/i),Ut=!!window.opera||window.navigator.userAgent.indexOf(" OPR/")>=0,Wt=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||!Nt&&!Ut&&"undefined"!==window.webkitAudioContext,Bt=window.navigator.platform;function Xt(){return{android:Ft,chrome:Nt,edge:zt,firefox:Ht,ie:qt,ios:Jt,iosMobile:Rt,opera:Ut,safari:Wt,os:Bt}}function $t(){var t=Xt(),e=document.body.classList;t.android?e.add("device-android"):t.ios&&e.add("device-ios"),t.edge?e.add("browser-edge"):t.chrome?e.add("browser-chrome"):t.firefox?e.add("browser-firefox"):t.ie?e.add("browser-ie"):t.opera?e.add("browser-opera"):t.safari&&e.add("browser-safari")}var Yt=0,Kt=function(){var t=Xt();return t.ie||t.firefox||t.chrome&&!t.edge?document.documentElement:document.body},Gt=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=Kt(),n=document.body.style;Yt=e.scrollTop,n.overflowY="scroll",n.position="fixed",n.width="100%",t&&(n.marginTop="-".concat(Yt,"px"))},Vt=function(){var t=Kt(),e=document.body.style;e.overflowY="",e.position="static",e.marginTop="0px",e.width="",t.scrollTop=Yt};function Qt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",t);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var e=document.createElement("textarea");e.textContent=t,e.style.position="fixed",document.body.appendChild(e),e.select();try{return document.execCommand("copy")}catch(t){return P("Copy to clipboard failed.",t),!1}finally{document.body.removeChild(e)}}}function Zt(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=mt({data:{},el:document,event:"",native:!0},e);if(n.native)(t=document.createEvent("HTMLEvents")).initEvent(n.event,!0,!1);else try{t=new window.CustomEvent(n.event,{detail:n.data})}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent(n.event,!0,!0,n.data)}n.el.dispatchEvent(t)}function te(t){var e={isDown:!1,moveEventTriggered:!1,startX:0,scrollLeft:0};t.addEventListener("mousedown",(function(n){e.isDown=!0,t.classList.add("drag-horizontal--active"),e.startX=n.pageX-t.offsetLeft,e.scrollLeft=t.scrollLeft})),t.addEventListener("mouseleave",(function(){e.isDown=!1,t.classList.remove("drag-horizontal--active")})),t.addEventListener("mouseup",(function(){e.isDown=!1,t.classList.remove("drag-horizontal--active"),Zt({event:"gform-utils/horizontal-drag-ended",native:!1}),e.moveEventTriggered=!1})),t.addEventListener("mousemove",(function(n){if(e.isDown){n.preventDefault();var r=3*(n.pageX-t.offsetLeft-e.startX);t.scrollLeft=e.scrollLeft-r,e.moveEventTriggered||(Zt({event:"gform-utils/horizontal-drag-started",native:!1}),e.moveEventTriggered=!0)}}))}function ee(t){for(var e=[],n=t.children.length;n--;)8!==t.children[n].nodeType&&e.unshift(t.children[n]);return e}function ne(t,e){var n,r;for(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].some((function(t){return"function"==typeof document.body[t]&&(n=t,!0)}));t;){if((r=t.parentElement)&&r[n](e))return r;t=r}return null}function re(t){var e=t.getBoundingClientRect(),n=document.body,r=document.documentElement,o=window.pageYOffset||r.scrollTop||n.scrollTop,i=window.pageXOffset||r.scrollLeft||n.scrollLeft,a=r.clientTop||n.clientTop||0,c=r.clientLeft||n.clientLeft||0,u=e.top+o-a,l=e.left+i-c;return{top:Math.round(u),left:Math.round(l),bottom:Math.round(e.bottom)}}function oe(t){var e=t.clientWidth,n=t;n.style.visibility="hidden",n.style.height="auto",n.style.maxHeight="none",n.style.position="fixed",n.style.width="".concat(e,"px");var r=n.offsetHeight;return n.style.visibility="",n.style.height="",n.style.maxHeight="",n.style.width="",n.style.position="",n.style.zIndex="",r}function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=r?t:'[data-js="'.concat(t,'"]'),i=n.querySelectorAll(o);return e&&(i=d(i)),i}function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ie(t,!1,e,n);return r.length>0?r[0]:null}function ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e.some((function(e){return t.classList.contains("".concat(n).concat(e).concat(r))}))}function ue(t){return{vertical:t.scrollHeight>t.clientHeight,horizontal:t.scrollWidth>t.clientWidth}}function le(t,e){e.parentNode.insertBefore(t,e.nextElementSibling)}function se(t,e){e.parentNode.insertBefore(t,e)}function fe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.match(/^([^:/?#]+:)?(?:\/\/([^/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof e[1]&&e[1].length>0&&e[1].toLowerCase()!==window.location.protocol||"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":(".concat({"http:":80,"https:":443}[window.location.protocol],")?$")),"")!==window.location.host}function de(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("/").pop();return-1!==e.indexOf(".")}function pe(){var t,e;if(!window.gforms_original_json||!window.UpdateFormObject)return!1;window.UpdateFormObject();var n="1"===(null===(t=window)||void 0===t||null===(e=t.gf_legacy)||void 0===e?void 0:e.is_legacy),r=JSON.parse(JSON.stringify(JSON.parse(window.gforms_original_json))),o=JSON.parse(JSON.stringify(window.form));return n&&(r.fields.forEach((function(t,e){delete r.fields[e].layoutGroupId})),o.fields.forEach((function(t,e){delete o.fields[e].layoutGroupId}))),JSON.stringify(r)!==JSON.stringify(o)}function ve(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split(".").pop(),n=e.toLowerCase().match(/(jpg|jpeg|png|gif|svg)/g);return n&&n.length>0||!1}function ge(){var t=document.createElement("div");document.body.appendChild(t);var e="rtl"===window.getComputedStyle(t,null).getPropertyValue("direction");return document.body.removeChild(t),e}function he(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.createElement("a");e.href=t,e.target="_blank",document.body.appendChild(e),e.click(),e.remove()}function me(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=mt({event:null,url:"",center:!0,name:"_blank",specs:{menubar:0,scrollbars:0,status:1,titlebar:1,toolbar:0,top:100,left:100,width:500,height:300}},t);if(e.event&&(e.event.preventDefault(),e.url.length||(e.url=e.event.currentTarget.href)),e.url.length){e.center&&(e.specs.top=window.screen.height/2-e.specs.height/2,e.specs.left=window.screen.width/2-e.specs.width/2);var n=[];Object.entries(e.specs).forEach((function(t){var e=f(t,2),r=e[0],o=e[1],i="".concat(r,"=").concat(o);n.push(i)})),window.open(e.url,e.name,n.join())}}function ye(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0&&void 0!==arguments[0]?arguments[0]:"",e=document.querySelectorAll("[data-load-chunk-".concat(t,"]"));return e.length>0}var be=function(t){var e,n=(null===(e=window)||void 0===e?void 0:e.SimpleBar)||{};n.instances&&t&&ie("[data-simplebar]",!0,t,!0).forEach((function(t){var e;return null!==(e=n.instances.get(t))&&void 0!==e?e:new n(t)}))},Oe=25,Se=[],je=function(t){return t<.2074?-3.8716*t*t*t+6.137*t*t+.4*t:1.1317*(t-1)*(t-1)*(t-1)-.1975*(t-1)*(t-1)+1},Ee=function(t){Se[t]||(Se[t]={up:null,down:null})},xe=function(t){Se[t].up&&(window.cancelAnimationFrame(Se[t].up),Se[t].up=null),Se[t].down&&(window.cancelAnimationFrame(Se[t].down),Se[t].down=null)},Te=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=t.offsetHeight,i=oe(t),a=null;t.style.maxHeight="0",Ee(e),xe(e);var c=function c(u){a||(a=u);var l=u-a,s=je(l/n)*(i-o)+o;t.style.maxHeight="".concat(s,"px"),l2&&void 0!==arguments[2]?arguments[2]:400,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=t.offsetHeight,i=0,a=null;t.style.maxHeight="".concat(o,"px"),Ee(e),xe(e);var c=function c(u){a||(a=u);var l=u-a,s=je(l/n)*(i-o)+o;t.style.maxHeight="".concat(s,"px"),l1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"gform-spacing",r={};return!t||"string"!=typeof t&&"number"!=typeof t&&!Array.isArray(t)||Array.isArray(t)&&!t.length?r:"string"==typeof t||"number"==typeof t?(r["".concat(n,"--").concat(e,"bottom-").concat(t)]=!0,r):1===t.length?(["top","right","bottom","left"].forEach((function(o){r["".concat(n,"--").concat(e).concat(o,"-").concat(t[0])]=!0})),r):2===t.length?(["top","bottom"].forEach((function(o){r["".concat(n,"--").concat(e).concat(o,"-").concat(t[0])]=!0})),["right","left"].forEach((function(o){r["".concat(n,"--").concat(e).concat(o,"-").concat(t[1])]=!0})),r):3===t.length?(r["".concat(n,"--").concat(e,"top-").concat(t[0])]=!0,["right","left"].forEach((function(o){r["".concat(n,"--").concat(e).concat(o,"-").concat(t[1])]=!0})),r["gform-spacing--".concat(e,"bottom-").concat(t[2])]=!0,r):4===t.length?(r["".concat(n,"--").concat(e,"top-").concat(t[0])]=!0,r["".concat(n,"--").concat(e,"right-").concat(t[1])]=!0,r["".concat(n,"--").concat(e,"bottom-").concat(t[2])]=!0,r["".concat(n,"--").concat(e,"left-").concat(t[3])]=!0,r):r};function Pe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"gform-spacing",n={},r=["","md","lg"];return!t||"string"!=typeof t&&"number"!=typeof t&&!Array.isArray(t)&&("object"!==D(t)||Array.isArray(t))||Array.isArray(t)&&!t.length?n:(n[e]=!0,"string"==typeof t||"number"==typeof t||Array.isArray(t)?Ce(Ce({},n),Le(t,"",e)):r.reduce((function(n,r){return Object.prototype.hasOwnProperty.call(t,r)?Ce(Ce({},n),Le(t[r],r?"".concat(r,"-"):"",e)):n}),n))}var _e=function(){var t="undefined"!=typeof window&&window,e="undefined"!=typeof document&&document;return{docElem:e&&e.documentElement,win:t}},Ie=function(){var t=_e(),e=t.docElem,n=t.win,r=e.clientWidth,o=n.innerWidth;return r0?Math.min(e,n-i):Math.min(o,n))};function Fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof t)throw new TypeError("Expected the first argument to be a function, got `".concat(D(t),"`"));var n,r,o,i=e.wait,a=void 0===i?0:i,c=e.maxWait,u=void 0===c?Number.Infinity:c,l=e.before,s=void 0!==l&&l,f=e.after,d=void 0===f||f;if(!s&&!d)throw new Error("Both `before` and `after` are false, function wouldn't be called.");var p=function(){for(var e=arguments.length,i=new Array(e),c=0;c0&&u!==Number.Infinity&&!r&&(r=setTimeout(p,u)),v&&(o=t.apply(l,i)),o};return ht(p,t),p.cancel=function(){n&&(clearTimeout(n),n=void 0),r&&(clearTimeout(r),r=void 0)},p}if("undefined"!=typeof Element&&!Element.prototype.matches){var Ne=Element.prototype;Ne.matches=Ne.matchesSelector||Ne.mozMatchesSelector||Ne.msMatchesSelector||Ne.oMatchesSelector||Ne.webkitMatchesSelector}function He(t,e,n,r,o){var i=qe.apply(this,arguments);return t.addEventListener(n,i,o),{destroy:function(){t.removeEventListener(n,i,o)}}}function qe(t,e,n,r){return function(n){n.delegateTarget=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}(n.target,e),n.delegateTarget&&r.call(t,n)}}var ze=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return"function"==typeof t.addEventListener?He.apply(null,arguments):"function"==typeof n?He.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return He(t,e,n,r,o)})))};function Je(t){"loading"!==document.readyState?t():document.addEventListener?document.addEventListener("DOMContentLoaded",t):document.attachEvent("onreadystatechange",(function(){"loading"!==document.readyState&&t()}))}function Re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?window.addEventListener("resize",Fe(t,{wait:e})):window.removeEventListener("resize",Fe(t,{wait:e}))}function Ue(){try{window.Notification.requestPermission().then()}catch(t){return!1}return!0}var We=function(t,e){window.localStorage.setItem(t,e)},Be=function(t){return window.localStorage.getItem(t)},Xe=function(t){return window.localStorage.removeItem(t)},$e=function(){window.localStorage.clear()},Ye=function(t,e){window.sessionStorage.setItem(t,e)},Ke=function(t){return window.sessionStorage.getItem(t)},Ge=function(t){return window.sessionStorage.removeItem(t)},Ve=function(){window.sessionStorage.clear()},Qe=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.cookie.split(";"),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o="",i=e;if(n&&!isNaN(Number(n))){var a=new Date;a.setTime(a.getTime()+24*Number(n)*60*60*1e3),o=" expires="+a.toUTCString()}if(r){var c=Qe(t);i=""!==c&&null!==c?c+","+e:e}document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(i)+";"+o},tn=function(t){Ze(t,"",-1)};window.gform=window.gform||{},window.gform.utils=window.gform.utils||{};var en;en=window.gform.utils,Object.entries(l).forEach((function(t){var e=f(t,2),n=e[0],r=e[1];en[n]=r}))}()}();