!function(){"use strict";function t(t,n){return"function"==typeof t?function(n){return t.bind(n)}:function(t){return n.bind(null,t)}}var n=Array.from||function(t){return Array.prototype.slice.call(t)};var e=t(Array.prototype.includes,r);function r(t,n){return-1!==t.indexOf(n)}var o=t(Array.prototype.find,(function(t,n){for(var e=0;e2&&void 0!==arguments[2]&&arguments[2];void 0===C&&(C=R()),(e||C)&&(P?L(t,n):N(t,n))}function L(t,n){"object"!==s(n)&&"undefined"!=typeof Error&&(n=new Error(n)),D.has(t)||(D.add(t),P.notify(n,{name:t,fingerprint:t,context:{revision:"1.10.17",cert_id:U.id,scheme:"https",lock:U.lock}}))}function N(t,n){var e=document.createElement("script"),r=document.getElementsByTagName("head")[0],o=(new Date).getTime(),i=setTimeout(c,1e4);function c(){i&&clearTimeout(i),r.removeChild(e)}e.type="text/javascript",e.async=!0,e.src="https://js.honeybadger.io/v3.0/honeybadger.min.js?ts=".concat(o),e.onerror=c,e.onload=function(){if(i&&clearTimeout(i),"undefined"==typeof Honeybadger)return c();try{0,(P=Honeybadger.factory({apiKey:U.honeybadger_api_key})).configure({environment:"production",revision:"1.10.17",enableUncaught:!1,enableUnhandledRejection:!1}),L(t,n)}catch(t){P=null,c()}},r.appendChild(e)}var $={state:0,iframe:null,XHR:window.XMLHttpRequest,loads:0};function q(){try{if($.loads++,$.state=0,$.XHR=window.XMLHttpRequest,$.loads>10)throw new Error("Too many reloads");if(!M(XMLHttpRequest)||!M(XMLHttpRequest.prototype.open)){var t=$.iframe=document.createElement("iframe");t.style.display="none",t.style.border="none",t.setAttribute(U.tfIgnoreAttr,"true"),t.onload=function(){if(0===$.state){$.state=2;var n=t&&t.contentWindow;if(t&&n&&n.XMLHttpRequest&&n.XMLHttpRequest.prototype&&Object.freeze)try{Object.freeze(n.XMLHttpRequest),Object.freeze(n.XMLHttpRequest.prototype),$.XHR=n.XMLHttpRequest}catch(t){$.state=1,$.XHR=window.XMLHttpRequest}else $.state=1}},document.body.appendChild(t),(e=new MutationObserver((function(t){t.forEach((function(t){var r;t.removedNodes.length&&(r=t.removedNodes,((r=n(r)).indexOf($.iframe)>-1||r.some((function(t){return t.nodeType===Node.ELEMENT_NODE&&t.contains($.iframe)})))&&(e.disconnect(),q()))}))}))).observe(document.body,{subtree:!0,childList:!0})}}catch(t){H("xhr:setup",t)}var e}try{q()}catch(t){H("xhr:init",t)}var z="https://api.trustedform.com/certs",K="https://cert.trustedform.com",X={recordUrl:"events",snapshotUrl:"snapshot",fingerprintUrl:"fingerprints",updateUrl:"update"},J=function(t){var n="";if("pingUrl"===t)n=U.ping_url;else if("certificateUrl"===t)n=[K,U.id].join("/");else{var e=X[t];if(!e)throw new Error("No service name found for ".concat(t));n=[z,U.id,e].join("/")}return n},V=[],W={pingUrl:"",certificateUrl:""};function B(t){o(V)((function(n){return n.form===t}))||V.push({form:t,fieldValues:{}})}function G(){var t={},n=U.field,e=U.token_field,r=U.ping_field,o=J("certificateUrl"),i=J("pingUrl");return t[n]=o,t[e]=o,t[r]=i,t}function Q(t){var n=function(t){var n=t;try{n=decodeURIComponent(t)}catch(n){console.warn("Invalid selector in form_selector parameter",t)}return n}(t),e=[],r=[],o=[];return""===n.trim()?{all:!0,classes:e,ids:r,names:o}:(n.split(",").forEach((function(t){t.includes(".")?e.push(t.replace(/^\./,"")):t.includes("#")?r.push(t.replace(/^#/,"")):o.push(t)})),{all:!1,classes:e,ids:r,names:o})}function Y(t,e){var r=Q(e),o=r.all,i=r.classes,c=r.ids,u=r.names;try{var a=t.document.querySelectorAll("form");n(a).forEach((function(t){var n=t;(o||i.length&&i.some((function(t){return n.classList.contains(t)}))||c.length&&c.some((function(t){return n.id===t}))||u.length&&u.some((function(t){return n.name===t})))&&B(n)}))}catch(t){H("certInsertion.checkForForms",t)}}function Z(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=document.createElement("input");return r.type="hidden",r.name=t,r.value=n,e&&(r.id=e),r}function tt(t,n,e,r){W.pingUrl===r&&W.certificateUrl===e||("function"==typeof t.trustedFormCallback?setTimeout(t.trustedFormCallback,0,n):"function"==typeof t.trustedFormCertIdCallback?setTimeout(t.trustedFormCertIdCallback,0,n):"function"==typeof t.trustedFormCertUrlCallback&&setTimeout(t.trustedFormCertUrlCallback,0,e,r),W.pingUrl=r,W.certificateUrl=e)}function nt(t,n,e){var r=t.form,o=t.fieldValues;try{for(var i in e){var c=o[i],u=e[i];if(c!==u){var a=r.querySelector('input[name="'.concat(i,'"]'));if(a)a.value=u;else{var f=Z(i,u,"".concat(i,"_").concat(n));r.appendChild(f)}o[i]=u}}}catch(t){H("certInsertion.updateFieldsInForm",t)}}function et(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var e=G(),r=J("pingUrl"),o=J("certificateUrl");Y(t,U.form_selector),V.forEach((function(t,n){return nt(t,n,e)})),n||tt(t,U.id,o,r),U.certInsertionTimer||(U.certInsertionTimer=setInterval((function(){et(t)}),500))}catch(t){H("certInsertion.certInsertion",t)}}var rt=["field","form_selector","identifier","invert_field_sensitivity","l","load_async","lock","ping_field","provide_referrer","referrer","sandbox","token_field","use_tagged_consent"];function ot(t){var n=window.innerWidth||document.documentElement.clientWidth||document.body.offsetWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.offsetHeight,o=i({},function(){var t={};for(var n in window.trustedForm)e(rt)(n)&&(t[n]=U[n]);return t}(),t),c={page_url:document.location.toString(),user_agent:navigator.userAgent,tfscript_version:"1.10.17",tfscript_params:o,snapshot_metadata:{browser_width:n,browser_height:r,screen_width:screen.width,screen_height:screen.height}};return window!==window.parent&&(c.parent_url=document.referrer),I({browserWidth:n,browserHeight:r}),new j((function(t,n){try{var e=function(){if(2!==$.state)return new window.XMLHttpRequest;try{return new $.XHR}catch(t){return $.state=1,$.XHR=window.XMLHttpRequest,new window.XMLHttpRequest}}();e.open("POST","https://api.trustedform.com/certs",!0),e.setRequestHeader("Content-Type","text/plain"),e.onreadystatechange=function(){if(4===e.readyState&&201===e.status){var r=JSON.parse(e.response);I(r),et(window),t(r)}else if(4===e.readyState){var o=new Error("TrustedForm Script failed to load: ".concat(e.status));n(o)}},e.send(JSON.stringify(c))}catch(t){console.error(t),n(t)}}))}function it(){I(window.trustedForm),ot().then((function(t){var n,e=document.querySelector('script[src*="trustedform"]')||document.querySelector('script[src*="bootstrap.js"]');if(e){(n=e)&&n.parentNode&&n.parentNode.removeChild(n);var r=document.createElement("script");r.type="text/javascript",r.async="true"===window.trustedForm.load_async,r.src="https://cdn.trustedform.com/trustedform-1.10.17.js";var o=document.querySelector("head");o.appendChild(r),function(t){if(window.trustedForm.audit&&"true"===window.trustedForm.audit){var n=document.createElement("script");n.type="text/javascript",n.src="https://cdn.trustedform-staging.com/tf-audit.js";var e=document.createElement("div");e.id="____tf-audit-application",document.body.append(e),t.appendChild(n)}}(o)}else console.warn("Could not find bootstrap script")}))}try{if(window._GPL)throw new Error("DNSUnlocker");!function(){var t=!!document.addEventListener,n=!1,e=!1,r=[];if(t&&"complete"===document.readyState)i();else if(t)document.addEventListener("DOMContentLoaded",o,!0),window.addEventListener("load",i,!1);else{document.attachEvent("onreadystatechange",o),window.attachEvent("onload",i);try{e=null===window.frameElement}catch(t){}document.documentElement.doScroll&&e&&function t(){if(!n){try{document.documentElement.doScroll("left")}catch(n){return void window.setTimeout(t,15)}i()}}()}function o(){t?document.removeEventListener("DOMContentLoaded",o,!0):"complete"===document.readyState&&document.detachEvent("onreadystatechange",o),i()}function i(){if(!n){n=!0;for(var t=r.length,e=0;e