if(typeof jQuery !== 'undefined') {if(typeof Cookies==='undefined'){/*! js-cookie v2.2.0 | MIT */
!function(e){var n=!1;if('function'==typeof define&&define.amd&&(define(e),n=!0),'object'==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}
return n}
function n(o){function t(n,r,i){var c;if('undefined'!=typeof document){if(arguments.length>1){if('number'==typeof(i=e({path:'/'},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}
i.expires=i.expires?i.expires.toUTCString():'';try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}
r=o.write?o.write(r,n):encodeURIComponent(r+'').replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(n+'')).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var s='';for(var f in i)i[f]&&(s+='; '+f,!0!==i[f]&&(s+='='+i[f]));return document.cookie=n+'='+r+s}
n||(c={});for(var p=document.cookie?document.cookie.split('; '):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split('='),C=l.slice(1).join('=');this.json||'"'!==C.charAt(0)||(C=C.slice(1,-1));try{var m=l[0].replace(d,decodeURIComponent);if(C=o.read?o.read(C,m):o(C,m)||C.replace(d,decodeURIComponent),this.json)try{C=JSON.parse(C)}catch(e){}
if(n===m){c=C;break}
n||(c[m]=C)}catch(e){}}
return c}}
return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,'',e(o,{expires:-1}))},t.withConverter=n,t}
return n(function(){})})}
var PDGData=(function($){var t={};t.key='pdg_lead_stage';t.getData=function(){var item=localStorage.getItem(t.key);if(item===null){return null}
return JSON.parse(item)};t.setData=function(data){localStorage.setItem(t.key,JSON.stringify(data))};t.clearData=function(){localStorage.removeItem(t.key)};return t})(jQuery);var PDG=(function($){var t={};t.base_url=null;t.ignore_ids=[];t.positions=[];t.position_requests=[];t.critical_path=null;t.tracks=[];t.url=null;t.getBaseUrl=function(){var self=$('script[src*="pdg/v1/scripts"]');var pathArray=self.attr('src').split('/');var protocol=pathArray[0];var host=pathArray[2];t.base_url=protocol+'//'+host};t.getUrlParameter=function(name){name=name.replace(/[\[]/,'\\[').replace(/[\]]/,'\\]');var regex=new RegExp('[\\?&]'+name+'=([^&#]*)');var results=regex.exec(location.search);return results===null?'':decodeURIComponent(results[1].replace(/\+/g,' '))};t.collectPositions=function(){$('[data-content-position]').each(function(){var attr=$(this).data('content-position');if(attr!==''){t.positions.push(attr)}})};t.getPath=function(){t.critical_path=null;var lead_stage=PDGData.getData();if(lead_stage!==null){t.critical_path=lead_stage}};t.getTracks=function(){return $.ajax(t.base_url+'/wp-json/pdg/v1/conversation_track',{method:'POST',global:!1,data:{lead_stage:t.critical_path,},})};t.getPositions=function(result){t.tracks=result;t.position_requests=t.positions;var position=t.position_requests.shift();if(position){t.getContentPosition(position)}};t.getContentPosition=function(slug){return $.ajax(t.base_url+'/wp-json/pdg/v1/search',{method:'GET',global:!1,data:{content_position:slug,tracks:t.tracks,url:t.url,ignore_ids:t.ignore_ids,},success:function(result){if(result.hasOwnProperty('results')){result=result.results}
var position_element=$('[data-content-position='+slug+']');t.positionCallback(slug,position_element,result);t.dispatchEvent('pdg_position_loaded',{slug:slug,position_element:position_element});var position=t.position_requests.shift();if(position){t.getContentPosition(position)}else{t.dispatchEvent('pdg_all_positions_loaded')}},})};t.positionCallback=function(content_position,position_element,html){$(position_element).html(html);var serial_numbers=[];$('div[data-id]',position_element).each(function(){if($(this).data('id')===''){return}
var offer_data=$(this).data();t.ignore_ids.push(offer_data.id);serial_numbers.push(offer_data.serial)});t.loadPositionCallback(content_position,position_element);t.trackDisplay(serial_numbers)};t.loadPositionCallback=function(content_position,position_element){return null};t.getUrl=function(){t.url=window.location.origin+window.location.pathname+window.location.hash};t.trackDisplay=function(serial_numbers){return;for(var i in serial_numbers){if(!serial_numbers.hasOwnProperty(i)){return}
$.ajax(t.base_url+'/wp-admin/admin-ajax.php',{method:'POST',global:!1,data:{action:'pdg_track_event',type:'display',serial_number:serial_numbers[i],source:'Content Position',},})}};t.trackView=function(){$.ajax(t.base_url+'/wp-json/pdg/v1/track_event',{method:'GET',global:!1,data:{url:t.url,},})};t.offerData=function(){$.ajax(t.base_url+'/wp-admin/admin-ajax.php',{method:'POST',global:!1,data:{action:'pdg_offer_data',url:t.url,},success:function(result){},})};t.dispatchEvent=function(event_name,args,element){if(!element){element=window}
var event=document.createEvent('CustomEvent');event.initCustomEvent(event_name,!0,!0,args);element.dispatchEvent(event)};t.init=function(){t.collectPositions();t.getBaseUrl();t.getUrl();if(window.PDGTrackViews===undefined||window.PDGTrackViews!==!1){t.trackView()}
if(!t.positions.length){return}
t.getPath();if(t.critical_path!==null&&Object.keys(t.critical_path).length){t.getTracks().then(t.getPositions)}else{t.getPositions([])}};return t})(jQuery);jQuery(document).ready(function(){PDG.init()});var Fulfillment=(function($){var t={};t.base_url='';t.getBaseUrl=function(){if(t.base_url){return t.base_url}
var self=$('script[src*="pdg/v1/scripts"]');var pathArray=self.attr('src').split('/');var protocol=pathArray[0];var host=pathArray[2];t.base_url=protocol+'//'+host;return t.base_url};t.runMarketo=function(data){var options={url:window.location.href,email:data.form.vals().Email,};if(data.lead_id!==null&&data.lead_id!==''){options.lead_id=data.lead_id}
t.sendFulfillment(t.base_url+'/wp-json/pdg/v1/marketo_fulfillment_send',options)};t.runEloqua=function(data){var options={url:window.location.href,};if(data.lead_id===null){options.email=MIT.getEmailAddress()}else{options.lead_id=data.lead_id}
t.sendFulfillment(t.base_url+'/wp-json/pdg/v1/eloqua_fulfillment_send',options)};t.sendFulfillment=function(url,data){var sent=!1;if(navigator&&navigator.sendBeacon){sent=navigator.sendBeacon(url,t.toFormData(data))}
if(!sent){$.post(url,data).done(function(data){})}};t.toFormData=function(data){var formData=new FormData();Object.keys(data).forEach(function(key){formData.append(key,data[key])});return formData}
t.init=function(){t.base_url=t.getBaseUrl();window.addEventListener('marketo_form_success',function(e){t.runMarketo({form:e.detail.form,form_id:e.detail.form,lead_id:e.detail.lead_id})});window.addEventListener('eloqua_form_success',function(e){t.runEloqua(e.detail)})};return t})(jQuery);jQuery(function(){Fulfillment.init()});var MarketoCleanup=(function($){var t={};t.cleanSelects=function(){$('select.mktoField option[value=""]').text('')};t.init=function(){$('#mktoForms2BaseStyle, #mktoForms2ThemeStyle, .mktoForm style').remove();$('.mktoForm [style], .mktoForm').removeAttr('style');var rows=$('.mktoFormRow');$('input.mktoField[type=hidden]').closest('.mktoFormRow').addClass('mktoFormRow--hidden');$('.mktoForm fieldset').closest('.mktoFormRow').addClass('mktoFormRow--fieldset');rows.not('.mktoFormRow--hidden, .mktoFormRow--fieldset').each(function(){var row=$(this);var fields=$('.mktoFormCol',this);var count_classes=['mktoFormRow--count-0','mktoFormRow--count-1','mktoFormRow--count-2','mktoFormRow--count-3','mktoFormRow--count-4','mktoFormRow--heading',];row.removeClass(count_classes.join(' ')).addClass('mktoFormRow--count-'+fields.length);if(!$('input, select, textarea, .mktoPlaceholder',this).length){row.addClass('mktoFormRow--heading')}});$('#emailOptin').closest('.mktoFormRow').addClass('mktoFormRow--optin');$('#Free_Trial_Opt_In__c').closest('.mktoFormRow').addClass('mktoFormRow--optin');$('select[multiple]').closest('.mktoFormRow').addClass('mktoFormRow--multi-select');t.cleanSelects();$('input.mktoField').attr('placeholder','');var textareas=$('textarea.mktoField');textareas.parents('.mktoFieldWrap').addClass('label-static');textareas.closest('.mktoFormCol').addClass('no-border');$('.mktoCheckboxList').parents('.mktoFieldWrap').addClass('label-basic checkbox-list').closest('.mktoFormCol').addClass('mktoFormCol--no-line');$('.mktoLabel').each(function(){var label=$(this);var html=label.html();html=html.replace(/\\n/g,'<br />');label.html(html)});$('.mktoField').not('[type=hidden]').each(function(){var name=$(this).attr('name');$(this).closest('.mktoFormCol').addClass('mktoFormCol--'+name);$(this).closest('.mktoFormRow').addClass(name)});var forms=$('form[id^=mktoForm]');forms.on('change','select.mktoField',function(e){setTimeout(t.cleanSelects,100)});var style_blocks=$('head style');style_blocks.each(function(){var style_block=$(this);if(style_block.text().indexOf('.mktoForm')!==-1){style_block.remove()}})};return t})(jQuery);var MarketoErrors=(function(){var t={};t.errors={};t.addError=function(key,message){t.errors[key]=message};t.removeError=function(key){delete t.errors[key]};t.hasErrors=function(){for(var key in t.errors){if(t.errors.hasOwnProperty(key)){return!0}}
return!1};t.init=function(){t.errors={}};return t})();var MarketoData=(function($){var t={};t.query_key='marketo_params';t.fetchData=function(key,fields,callback){$.post(MarketoOversight.getBaseUrl()+'/wp-json/marketo/v1/get_fields?_='+new Date().getTime()).done(function(data){var item={time:Date.now(),fields:data,};if(data.success!==!1){localStorage.setItem(key,JSON.stringify(item))}
t.sendData(item,callback)})};t.getStorage=function(key){var item=localStorage.getItem(key);if(item===null){return null}
return JSON.parse(item)};t.getData=function(key,fields,callback){var item=t.getStorage(key);if(t.dataIsFresh(item)){t.sendData(item,callback)}else{t.fetchData(key,fields,callback)}};t.dataIsFresh=function(item){if(item===null){return!1}
var time=Date.now();return(time-item.time<=900000)};t.clearData=function(key){localStorage.removeItem(key)};t.sendData=function(data,callback){callback(data.fields)};return t})(jQuery);var Marketo=(function($){var t={};t.form_data={};t.form=null;t.content_offer='';t.content_offer_field='';t.lead_source='';t.redirect_callback=null;t.redirect_url=null;t.invalid_domains=[];t.cta_label='';t.lead_id=null;t.strip_styles=!0;t.prefillDispatched=!1;t.fixCheckboxValidation=function(form){form.onValidate(function(native){var formEl=form.getFormElem()[0],topInvalid=formEl.querySelector('.mktoInvalid'),topInvalidCheckbox=formEl.querySelector('.mktoInvalid.mktoCheckboxList'),errorMessage='This field is required.';if(!native&&topInvalidCheckbox===topInvalid){form.showErrorMessage(errorMessage,MktoForms2.$(topInvalidCheckbox))}})};t.checkEmail=function(form){form.onValidate(function(){t.validateBusinessEmail(form)});$('#Email').on('blur',function(){t.validateBusinessEmail(form)})};t.validateBusinessEmail=function(form){var email=form.vals().Email;if(email){if(!t.isGoodEmail(email)){form.submitable(!1);var emailElem=form.getFormElem().find('#Email');form.showErrorMessage('Please use a business email.',emailElem)}else{form.submitable(!0)}}};t.isGoodEmail=function(email){var invalidDomains=t.invalid_domains;for(var i=0;i<invalidDomains.length;i++){var domain=invalidDomains[i].trim();if(email.indexOf(domain)!==-1){return!1}}
return!0};t.prefillCallback=function(mkt_usr,form){var form_values={};var lead_id=null;if(mkt_usr!==undefined){lead_id=mkt_usr.id;if(t.hasOwnProperty('prefill_lp')){for(var m in mkt_usr){if(mkt_usr.hasOwnProperty(m)&&mkt_usr[m]!==''){form_values[m]=mkt_usr[m]}}}else{for(var i in t.prefill_fields){if(t.prefill_fields.hasOwnProperty(i)&&mkt_usr.hasOwnProperty(t.prefill_fields[i])){form_values[i]=mkt_usr[t.prefill_fields[i]]}}}}
t.lead_id=lead_id;form.vals(form_values);var lead_stage={track:'',stage:'',};if(form_values.hasOwnProperty('ConversationTrack')){lead_stage.track=form_values.ConversationTrack}
if(form_values.hasOwnProperty('LQS')){lead_stage.stage=form_values.LQS}
if(lead_stage.track!==''||lead_stage.stage!==''){PDGData.setData(lead_stage)}
if(t.strip_styles===1){MarketoCleanup.init()}
t.checkEmail(form);t.fixCheckboxValidation(form);t.dispatchEvent('marketo_form_prefill',{form:form,form_values:form_values,form_id:form.getId(),user:mkt_usr,})};t.getMainDomain=function(){var url=new URL(window.location.href);return url.protocol+'//'+url.hostname};t.prefill=function(form){if(t.prefillDispatched){return}
t.prefillDispatched=!0;if(t.hasOwnProperty('prefill_lp')){var lpDomain=(new URL(t.prefill_lp));var DTO=new SimpleDTO({messageSource:lpDomain.protocol+'//'+lpDomain.hostname,messageTarget:[t.getMainDomain()],dataSrc:t.prefill_lp,debug:!0,mode:'receive',transport:'message',cb:function(instance,mktoFields){MktoForms2.whenReady(function(form){t.prefillCallback(mktoFields,form)});DTO.cleanup()},})}else{MarketoData.getData('prefill_fields',null,function(data){var mkt_usr;var mkt_obj=data;if(typeof data!=='object'){mkt_obj=$.parseJSON(data)}
var status='false';if(mkt_obj!==null){status=mkt_obj.success}
if(status===!0){var mkt_array=mkt_obj.result;mkt_usr=mkt_array[0]}
t.prefillCallback(mkt_usr,form)})}};t.collectData=function(fields){for(var i in fields){t.form_data[i]=fields[i]}};t.onValidate=function(form){form.onValidate(function(){if(MarketoErrors.hasErrors()){form.submittable(!1)}else{form.submittable(!0)}})};t.skipStep2=function(){return!1};t.formSuccess=function(form){MarketoData.clearData('prefill_fields');var values=form.getValues();t.collectData(values);var dataLayer=window.dataLayer=window.dataLayer||[];if(typeof ga!=='undefined'){ga('send','event','MarketoForm','submit',form.getId().toString())}
dataLayer.push({'event':'mkto.form.submit','mkto.form.id':form.getId(),'mkto.form.values':form.getValues(),})};t.dispatchEvent=function(event_name,args,element){if(!element){element=window}
var event=new CustomEvent(event_name,{bubbles:!0,cancelable:!0,detail:args,});element.dispatchEvent(event)};t.init=function(options){if(options.redirect_url){t.redirect_url=options.redirect_url}
if(options.redirect_callback){t.redirect_callback=options.redirect_callback}
if(options.prefill_fields){t.prefill_fields=options.prefill_fields}
if(options.prefill_lp){t.prefill_lp=options.prefill_lp}
if(options.lead_source){t.lead_source=options.lead_source}
if(options.content_offer){t.content_offer=options.content_offer}else{t.content_offer='None'}
if(options.content_offer_field){t.content_offer_field=options.content_offer_field}
if(options.cta_label){t.cta_label=options.cta_label}
if(options.strip_styles){t.strip_styles=parseInt(options.strip_styles)}
t.form_id=options.form_id;t.invalid_domains=options.invalid_domains;MktoForms2.loadForm('//'+options.marketo_url,options.marketo_id,options.form_id,function(form){t.form=form;t.dispatchEvent('marketo_form_load',{form:form,form_id:form.getId()});if(t.strip_styles===1){MarketoCleanup.init()}
if(t.cta_label!==''){$('button[type=submit]',form.getFormElem()).text(t.cta_label)}
if(options.prefill){t.prefill(form)}
if(t.content_offer_field!==''){var vals={};vals[t.content_offer_field]=t.content_offer;vals[t.content_offer_field.replace('Last_','Original_')]=t.content_offer;form.vals(vals)}
t.onValidate(form);form.onSuccess(function(){t.formSuccess(form);t.dispatchEvent('marketo_form_success',{form:form,form_id:form.getId(),lead_id:t.lead_id});var wait=500;setTimeout(function(){if(t.redirect_url!==null){window.location=t.redirect_url}
if(t.redirect_callback!==null){window[t.redirect_callback](form)}},wait);return!1});t.dispatchEvent('marketo_form_post_load',{form:form,form_id:form.getId()})})};return t})(jQuery);var MarketoForm=(function(){var t={};t.queue=[];t.loading=!1;t.enqueueScript=function(forms_url){if(t.loading===!0){return}
t.loading=!0;jQuery.getScript(forms_url,t.runQueue)};t.runQueue=function(){for(var i in t.queue){if(t.queue.hasOwnProperty(i)){t.callForm(t.queue[i])}}};t.addForm=function(options,forms_url){if(typeof MktoForms2!=='undefined'){t.callForm(options);return}
t.queue.push(options);t.enqueueScript(forms_url)};t.callForm=function(options){var marketo_class=Object.assign({},Marketo);marketo_class.init(options)};return t})();var MarketoOversight=(function($){var t={};t.base_url=null;t.getBaseUrl=function(){if(t.base_url){return t.base_url}
var self=$('script[src*="pdg/v1/scripts"]');var pathArray=self.attr('src').split('/');var protocol=pathArray[0];var host=pathArray[2];t.base_url=protocol+'//'+host;return t.base_url};t.getUrl=function(){return window.location.origin+window.location.pathname};t.addForm=function(el){var form_id=el.data('marketo-form-id');if(window.pdgMktoFormScriptsLoaded===!0){Marketo.dispatchEvent('pdg_load_mkto_form',{form_id:form_id});return}
var mobile_id=el.data('marketo-mobile-form-id');var redirect_url=el.data('marketo-redirect-url');var success_callback=el.data('marketo-success-callback');var mobile_redirect_url=el.data('marketo-mobile-redirect-url');var mobile_success_callback=el.data('marketo-mobile-success-callback');var submit_cta=el.data('marketo-cta-label');var url=t.getUrl();if(form_id===undefined){return!1}
var script_url=MarketoOversight.getBaseUrl()+'/form-script/?form_id='+form_id;if(mobile_id!==undefined){script_url+='&mobile_form_id='+mobile_id}
if(redirect_url!==undefined){script_url+='&redirect_url='+encodeURIComponent(redirect_url)}
if(success_callback!==undefined){script_url+='&success_callback='+encodeURIComponent(success_callback)}
if(mobile_redirect_url!==undefined){script_url+='&mobile_redirect_url='+encodeURIComponent(mobile_redirect_url)}
if(mobile_success_callback!==undefined){script_url+='&mobile_success_callback='+encodeURIComponent(mobile_success_callback)}
if(submit_cta!==undefined){script_url+='&submit_cta='+encodeURIComponent(submit_cta)}
if(url!==undefined){script_url+='&url='+encodeURIComponent(url)}
el.html('<form id="mktoForm_'+form_id+'"></form>');$.getScript(script_url,function(data,textStatus,jqxhr){})};t.init=function(){var forms=$('[data-marketo-form-id]');if(!forms.length){return}
t.getBaseUrl();forms.each(function(){t.addForm($(this))})};return t})(jQuery);jQuery(document).ready(function(){MarketoOversight.init()});
/**
 * FormsPlus Core Utility Library
 * @preserve @author Sanford Whiteman, TEKNKL (blog.teknkl.com / sandy@teknkl.com)
 * @version v1.0.8
 * @copyright Copyright 2016-2022 FigureOne, Inc.
 * @license MIT License: http://www.opensource.org/licenses/mit-license
 * You MUST include the licenses and credits herein in uses & reproductions of this software.

 * includes JavaScript Cookie v2.1.4 https://github.com/js-cookie/js-cookie
 * @copyright Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * @license MIT License http://www.opensource.org/licenses/mit-license

 * includes URI.js v1.18.0 http://medialize.github.io/URI.js/  URI.js - Mutating URLs
 * @copyright Copyright 2011 Rodney Rehm
 * @license MIT License http://www.opensource.org/licenses/mit-license

 * includes Mozilla Object.assign polyfill https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#polyfill
 * @license CC-BY-SA http://creativecommons.org/licenses/by-sa/2.5/legalcode

 * contains [assignment.js v2.2.0](https://github.com/bevacqua/assignment)
 * @copyright Copyright (c) 2015 Nicolas Bevacqua
 * @license https://github.com/bevacqua/assignment/blob/master/license
 *
 * contains [TC39 RegExp.escape proposal polyfill](https://github.com/tc39/proposal-regex-escaping/blob/main/polyfill.js)
 * @copyright Copyright (c) 2015 Benjamin Gruenbaum
 * @license CC0 1.0 https://github.com/tc39/proposal-regex-escaping/blob/main/LICENSE.txt
 */
window.FormsPlus={util:{}};if(typeof Object.assign!="function"){Object.defineProperty(Object,"assign",{value:function assign(target,varArgs){if(target==null){throw new TypeError("Cannot convert undefined or null to object")}
var to=Object(target);for(var index=1;index<arguments.length;index++){var nextSource=arguments[index];if(nextSource!=null){for(var nextKey in nextSource){if(Object.prototype.hasOwnProperty.call(nextSource,nextKey)){to[nextKey]=nextSource[nextKey]}}}}
return to},writable:!0,configurable:!0,})}
!function(){!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o){n[t]=o[t]}}
return n}
function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if(i=e({path:"/"},t.defaults,i),"number"==typeof i.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864E5*i.expires),i.expires=a}
i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e$0){}
r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape);var f="";for(var s in i){i[s]&&(f+="; "+s,i[s]!==!0&&(f+="="+i[s]))}
return document.cookie=n+"="+r+f}
n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var u=p[d].split("="),l=u.slice(1).join("=");'"'===l.charAt(0)&&(l=l.slice(1,-1));try{var g=u[0].replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent);if(l=o.read?o.read(l,g):o(l,g)||l.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent),this.json){try{l=JSON.parse(l)}catch(e$1){}}
if(n===g){c=l;break}
n||(c[g]=l)}catch(e$2){}}
return c}}
return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}
return n(function(){})});window.FormsPlus.util.Cookies=window.Cookies.noConflict()}();!function(){(function(root,factory){root.URI=factory(root.punycode,root.IPv6,root.SecondLevelDomains,root)})(this,function(punycode,IPv6,SLD,root){var _URI=root&&root.URI;function URI(url,base){var _urlSupplied=arguments.length>=1;var _baseSupplied=arguments.length>=2;if(!(this instanceof URI)){if(_urlSupplied){if(_baseSupplied){return new URI(url,base)}
return new URI(url)}
return new URI}
if(url===undefined){if(_urlSupplied){throw new TypeError("undefined is not a valid argument for URI")}
if(typeof location!=="undefined"){url=location.href+""}else{url=""}}
this.href(url);if(base!==undefined){return this.absoluteTo(base)}
return this}
URI.version="1.18.0";var p=URI.prototype;var hasOwn=Object.prototype.hasOwnProperty;function escapeRegEx(string){return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}
function getType(value){if(value===undefined){return"Undefined"}
return String(Object.prototype.toString.call(value)).slice(8,-1)}
function isArray(obj){return getType(obj)==="Array"}
function filterArrayValues(data,value){var lookup={};var i,length;if(getType(value)==="RegExp"){lookup=null}else if(isArray(value)){for(i=0,length=value.length;i<length;i++){lookup[value[i]]=!0}}else{lookup[value]=!0}
for(i=0,length=data.length;i<length;i++){var _match=lookup&&lookup[data[i]]!==undefined||!lookup&&value.test(data[i]);if(_match){data.splice(i,1);length--;i--}}
return data}
function arrayContains(list,value){var i,length;if(isArray(value)){for(i=0,length=value.length;i<length;i++){if(!arrayContains(list,value[i])){return!1}}
return!0}
var _type=getType(value);for(i=0,length=list.length;i<length;i++){if(_type==="RegExp"){if(typeof list[i]==="string"&&list[i].match(value)){return!0}}else if(list[i]===value){return!0}}
return!1}
function arraysEqual(one,two){if(!isArray(one)||!isArray(two)){return!1}
if(one.length!==two.length){return!1}
one.sort();two.sort();for(var i=0,l=one.length;i<l;i++){if(one[i]!==two[i]){return!1}}
return!0}
function trimSlashes(text){var trim_expression=/^\/+|\/+$/g;return text.replace(trim_expression,"")}
URI._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:URI.duplicateQueryParameters,escapeQuerySpace:URI.escapeQuerySpace,}};URI.duplicateQueryParameters=!1;URI.escapeQuerySpace=!0;URI.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;URI.idn_expression=/[^a-z0-9\.-]/i;URI.punycode_expression=/(xn--)/i;URI.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;URI.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;URI.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;URI.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,};URI.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};URI.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/;URI.domAttributes={"a":"href","blockquote":"cite","link":"href","base":"href","script":"src","form":"action","img":"src","area":"href","iframe":"src","embed":"src","source":"src","track":"src","input":"src","audio":"src","video":"src",};URI.getDomAttribute=function(node){if(!node||!node.nodeName){return undefined}
var nodeName=node.nodeName.toLowerCase();if(nodeName==="input"&&node.type!=="image"){return undefined}
return URI.domAttributes[nodeName]};function escapeForDumbFirefox36(value){return escape(value)}
function strictEncodeURIComponent(string){return encodeURIComponent(string).replace(/[!'()*]/g,escapeForDumbFirefox36).replace(/\*/g,"%2A")}
URI.encode=strictEncodeURIComponent;URI.decode=decodeURIComponent;URI.iso8859=function(){URI.encode=escape;URI.decode=unescape};URI.unicode=function(){URI.encode=strictEncodeURIComponent;URI.decode=decodeURIComponent};URI.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@",},},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}},},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=",},},},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@",},},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}},},};URI.encodeQuery=function(string,escapeQuerySpace){var escaped=URI.encode(string+"");if(escapeQuerySpace===undefined){escapeQuerySpace=URI.escapeQuerySpace}
return escapeQuerySpace?escaped.replace(/%20/g,"+"):escaped};URI.decodeQuery=function(string,escapeQuerySpace){string+="";if(escapeQuerySpace===undefined){escapeQuerySpace=URI.escapeQuerySpace}
try{return URI.decode(escapeQuerySpace?string.replace(/\+/g,"%20"):string)}catch(e){return string}};var _parts={"encode":"encode","decode":"decode"};var _part;var generateAccessor=function(_group,_part){return function(string){try{return URI[_part](string+"").replace(URI.characters[_group][_part].expression,function(c){return URI.characters[_group][_part].map[c]})}catch(e){return string}}};for(_part in _parts){URI[_part+"PathSegment"]=generateAccessor("pathname",_parts[_part]);URI[_part+"UrnPathSegment"]=generateAccessor("urnpath",_parts[_part])}
var generateSegmentedPathFunction=function(_sep,_codingFuncName,_innerCodingFuncName){return function(string){var actualCodingFunc;if(!_innerCodingFuncName){actualCodingFunc=URI[_codingFuncName]}else{actualCodingFunc=function(string){return URI[_codingFuncName](URI[_innerCodingFuncName](string))}}
var segments=(string+"").split(_sep);for(var i=0,length=segments.length;i<length;i++){segments[i]=actualCodingFunc(segments[i])}
return segments.join(_sep)}};URI.decodePath=generateSegmentedPathFunction("/","decodePathSegment");URI.decodeUrnPath=generateSegmentedPathFunction(":","decodeUrnPathSegment");URI.recodePath=generateSegmentedPathFunction("/","encodePathSegment","decode");URI.recodeUrnPath=generateSegmentedPathFunction(":","encodeUrnPathSegment","decode");URI.encodeReserved=generateAccessor("reserved","encode");URI.parse=function(string,parts){var pos;if(!parts){parts={}}
pos=string.indexOf("#");if(pos>-1){parts.fragment=string.substring(pos+1)||null;string=string.substring(0,pos)}
pos=string.indexOf("?");if(pos>-1){parts.query=string.substring(pos+1)||null;string=string.substring(0,pos)}
if(string.substring(0,2)==="//"){parts.protocol=null;string=string.substring(2);string=URI.parseAuthority(string,parts)}else{pos=string.indexOf(":");if(pos>-1){parts.protocol=string.substring(0,pos)||null;if(parts.protocol&&!parts.protocol.match(URI.protocol_expression)){parts.protocol=undefined}else if(string.substring(pos+1,pos+3)==="//"){string=string.substring(pos+3);string=URI.parseAuthority(string,parts)}else{string=string.substring(pos+1);parts.urn=!0}}}
parts.path=string;return parts};URI.parseHost=function(string,parts){string=string.replace(/\\/g,"/");var pos=string.indexOf("/");var bracketPos;var t;if(pos===-1){pos=string.length}
if(string.charAt(0)==="["){bracketPos=string.indexOf("]");parts.hostname=string.substring(1,bracketPos)||null;parts.port=string.substring(bracketPos+2,pos)||null;if(parts.port==="/"){parts.port=null}}else{var firstColon=string.indexOf(":");var firstSlash=string.indexOf("/");var nextColon=string.indexOf(":",firstColon+1);if(nextColon!==-1&&(firstSlash===-1||nextColon<firstSlash)){parts.hostname=string.substring(0,pos)||null;parts.port=null}else{t=string.substring(0,pos).split(":");parts.hostname=t[0]||null;parts.port=t[1]||null}}
if(parts.hostname&&string.substring(pos).charAt(0)!=="/"){pos++;string="/"+string}
return string.substring(pos)||"/"};URI.parseAuthority=function(string,parts){string=URI.parseUserinfo(string,parts);return URI.parseHost(string,parts)};URI.parseUserinfo=function(string,parts){var firstSlash=string.indexOf("/");var pos=string.lastIndexOf("@",firstSlash>-1?firstSlash:string.length-1);var t;if(pos>-1&&(firstSlash===-1||pos<firstSlash)){t=string.substring(0,pos).split(":");parts.username=t[0]?URI.decode(t[0]):null;t.shift();parts.password=t[0]?URI.decode(t.join(":")):null;string=string.substring(pos+1)}else{parts.username=null;parts.password=null}
return string};URI.parseQuery=function(string,escapeQuerySpace){if(!string){return{}}
string=string.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!string){return{}}
var items={};var splits=string.split("&");var length=splits.length;var v,name,value;for(var i=0;i<length;i++){v=splits[i].split("=");name=URI.decodeQuery(v.shift(),escapeQuerySpace);value=v.length?URI.decodeQuery(v.join("="),escapeQuerySpace):null;if(hasOwn.call(items,name)){if(typeof items[name]==="string"||items[name]===null){items[name]=[items[name]]}
items[name].push(value)}else{items[name]=value}}
return items};URI.build=function(parts){var t="";if(parts.protocol){t+=parts.protocol+":"}
if(!parts.urn&&(t||parts.hostname)){t+="//"}
t+=URI.buildAuthority(parts)||"";if(typeof parts.path==="string"){if(parts.path.charAt(0)!=="/"&&typeof parts.hostname==="string"){t+="/"}
t+=parts.path}
if(typeof parts.query==="string"&&parts.query){t+="?"+parts.query}
if(typeof parts.fragment==="string"&&parts.fragment){t+="#"+parts.fragment}
return t};URI.buildHost=function(parts){var t="";if(!parts.hostname){return""}else if(URI.ip6_expression.test(parts.hostname)){t+="["+parts.hostname+"]"}else{t+=parts.hostname}
if(parts.port){t+=":"+parts.port}
return t};URI.buildAuthority=function(parts){return URI.buildUserinfo(parts)+URI.buildHost(parts)};URI.buildUserinfo=function(parts){var t="";if(parts.username){t+=URI.encode(parts.username)}
if(parts.password){t+=":"+URI.encode(parts.password)}
if(t){t+="@"}
return t};URI.buildQuery=function(data,duplicateQueryParameters,escapeQuerySpace){var t="";var unique,key,i,length;for(key in data){if(hasOwn.call(data,key)&&key){if(isArray(data[key])){unique={};for(i=0,length=data[key].length;i<length;i++){if(data[key][i]!==undefined&&unique[data[key][i]+""]===undefined){t+="&"+URI.buildQueryParameter(key,data[key][i],escapeQuerySpace);if(duplicateQueryParameters!==!0){unique[data[key][i]+""]=!0}}}}else if(data[key]!==undefined){t+="&"+URI.buildQueryParameter(key,data[key],escapeQuerySpace)}}}
return t.substring(1)};URI.buildQueryParameter=function(name,value,escapeQuerySpace){return URI.encodeQuery(name,escapeQuerySpace)+(value!==null?"="+URI.encodeQuery(value,escapeQuerySpace):"")};URI.addQuery=function(data,name,value){if(typeof name==="object"){for(var key in name){if(hasOwn.call(name,key)){URI.addQuery(data,key,name[key])}}}else if(typeof name==="string"){if(data[name]===undefined){data[name]=value;return}else if(typeof data[name]==="string"){data[name]=[data[name]]}
if(!isArray(value)){value=[value]}
data[name]=(data[name]||[]).concat(value)}else{throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")}};URI.removeQuery=function(data,name,value){var i,length,key;if(isArray(name)){for(i=0,length=name.length;i<length;i++){data[name[i]]=undefined}}else if(getType(name)==="RegExp"){for(key in data){if(name.test(key)){data[key]=undefined}}}else if(typeof name==="object"){for(key in name){if(hasOwn.call(name,key)){URI.removeQuery(data,key,name[key])}}}else if(typeof name==="string"){if(value!==undefined){if(getType(value)==="RegExp"){if(!isArray(data[name])&&value.test(data[name])){data[name]=undefined}else{data[name]=filterArrayValues(data[name],value)}}else if(data[name]===String(value)&&(!isArray(value)||value.length===1)){data[name]=undefined}else{if(isArray(data[name])){data[name]=filterArrayValues(data[name],value)}}}else{data[name]=undefined}}else{throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")}};URI.hasQuery=function(data,name,value,withinArray){switch(getType(name)){case "String":break;case "RegExp":for(var key in data){if(hasOwn.call(data,key)){if(name.test(key)&&(value===undefined||URI.hasQuery(data,key,value))){return!0}}}
return!1;case "Object":for(var _key in name){if(hasOwn.call(name,_key)){if(!URI.hasQuery(data,_key,name[_key])){return!1}}}
return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}
switch(getType(value)){case "Undefined":return name in data;case "Boolean":var _booly=Boolean(isArray(data[name])?data[name].length:data[name]);return value===_booly;case "Function":return!!value(data[name],name,data);case "Array":if(!isArray(data[name])){return!1}
var op=withinArray?arrayContains:arraysEqual;return op(data[name],value);case "RegExp":if(!isArray(data[name])){return Boolean(data[name]&&data[name].match(value))}
if(!withinArray){return!1}
return arrayContains(data[name],value);case "Number":value=String(value);case "String":if(!isArray(data[name])){return data[name]===value}
if(!withinArray){return!1}
return arrayContains(data[name],value);default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}};URI.joinPaths=function(){var input=[];var segments=[];var nonEmptySegments=0;for(var i=0;i<arguments.length;i++){var url=new URI(arguments[i]);input.push(url);var _segments=url.segment();for(var s=0;s<_segments.length;s++){if(typeof _segments[s]==="string"){segments.push(_segments[s])}
if(_segments[s]){nonEmptySegments++}}}
if(!segments.length||!nonEmptySegments){return new URI("")}
var uri=(new URI("")).segment(segments);if(input[0].path()===""||input[0].path().slice(0,1)==="/"){uri.path("/"+uri.path())}
return uri.normalize()};URI.commonPath=function(one,two){var length=Math.min(one.length,two.length);var pos;for(pos=0;pos<length;pos++){if(one.charAt(pos)!==two.charAt(pos)){pos--;break}}
if(pos<1){return one.charAt(0)===two.charAt(0)&&one.charAt(0)==="/"?"/":""}
if(one.charAt(pos)!=="/"||two.charAt(pos)!=="/"){pos=one.substring(0,pos).lastIndexOf("/")}
return one.substring(0,pos+1)};URI.withinString=function(string,callback,options){options||(options={});var _start=options.start||URI.findUri.start;var _end=options.end||URI.findUri.end;var _trim=options.trim||URI.findUri.trim;var _attributeOpen=/[a-z0-9-]=["']?$/i;_start.lastIndex=0;while(!0){var match=_start.exec(string);if(!match){break}
var start=match.index;if(options.ignoreHtml){var attributeOpen=string.slice(Math.max(start-3,0),start);if(attributeOpen&&_attributeOpen.test(attributeOpen)){continue}}
var end=start+string.slice(start).search(_end);var slice=string.slice(start,end).replace(_trim,"");if(options.ignore&&options.ignore.test(slice)){continue}
end=start+slice.length;var result=callback(slice,start,end,string);string=string.slice(0,start)+result+string.slice(end);_start.lastIndex=start+result.length}
_start.lastIndex=0;return string};URI.ensureValidHostname=function(v){if(v.match(URI.invalid_hostname_characters)){if(!punycode){throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available')}
if(punycode.toASCII(v).match(URI.invalid_hostname_characters)){throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]')}}};URI.noConflict=function(removeAll){if(removeAll){var unconflicted={URI:this.noConflict()};if(root.URITemplate&&typeof root.URITemplate.noConflict==="function"){unconflicted.URITemplate=root.URITemplate.noConflict()}
if(root.IPv6&&typeof root.IPv6.noConflict==="function"){unconflicted.IPv6=root.IPv6.noConflict()}
if(root.SecondLevelDomains&&typeof root.SecondLevelDomains.noConflict==="function"){unconflicted.SecondLevelDomains=root.SecondLevelDomains.noConflict()}
return unconflicted}else if(root.URI===this){root.URI=_URI}
return this};p.build=function(deferBuild){if(deferBuild===!0){this._deferred_build=!0}else if(deferBuild===undefined||this._deferred_build){this._string=URI.build(this._parts);this._deferred_build=!1}
return this};p.clone=function(){return new URI(this)};p.valueOf=p.toString=function(){return this.build(!1)._string};function generateSimpleAccessor(_part){return function(v,build){if(v===undefined){return this._parts[_part]||""}else{this._parts[_part]=v||null;this.build(!build);return this}}}
function generatePrefixAccessor(_part,_key){return function(v,build){if(v===undefined){return this._parts[_part]||""}else{if(v!==null){v=v+"";if(v.charAt(0)===_key){v=v.substring(1)}}
this._parts[_part]=v;this.build(!build);return this}}}
p.protocol=generateSimpleAccessor("protocol");p.username=generateSimpleAccessor("username");p.password=generateSimpleAccessor("password");p.hostname=generateSimpleAccessor("hostname");p.port=generateSimpleAccessor("port");p.query=generatePrefixAccessor("query","?");p.fragment=generatePrefixAccessor("fragment","#");p.search=function(v,build){var t=this.query(v,build);return typeof t==="string"&&t.length?"?"+t:t};p.hash=function(v,build){var t=this.fragment(v,build);return typeof t==="string"&&t.length?"#"+t:t};p.pathname=function(v,build){if(v===undefined||v===!0){var res=this._parts.path||(this._parts.hostname?"/":"");return v?(this._parts.urn?URI.decodeUrnPath:URI.decodePath)(res):res}else{if(this._parts.urn){this._parts.path=v?URI.recodeUrnPath(v):""}else{this._parts.path=v?URI.recodePath(v):"/"}
this.build(!build);return this}};p.path=p.pathname;p.href=function(href,build){var key;if(href===undefined){return this.toString()}
this._string="";this._parts=URI._parts();var _URI=href instanceof URI;var _object=typeof href==="object"&&(href.hostname||href.path||href.pathname);if(href.nodeName){var attribute=URI.getDomAttribute(href);href=href[attribute]||"";_object=!1}
if(!_URI&&_object&&href.pathname!==undefined){href=href.toString()}
if(typeof href==="string"||href instanceof String){this._parts=URI.parse(String(href),this._parts)}else if(_URI||_object){var src=_URI?href._parts:href;for(key in src){if(hasOwn.call(this._parts,key)){this._parts[key]=src[key]}}}else{throw new TypeError("invalid input")}
this.build(!build);return this};p.is=function(what){var ip=!1;var ip4=!1;var ip6=!1;var name=!1;var sld=!1;var idn=!1;var punycode=!1;var relative=!this._parts.urn;if(this._parts.hostname){relative=!1;ip4=URI.ip4_expression.test(this._parts.hostname);ip6=URI.ip6_expression.test(this._parts.hostname);ip=ip4||ip6;name=!ip;sld=name&&SLD&&SLD.has(this._parts.hostname);idn=name&&URI.idn_expression.test(this._parts.hostname);punycode=name&&URI.punycode_expression.test(this._parts.hostname)}
switch(what.toLowerCase()){case "relative":return relative;case "absolute":return!relative;case "domain":case "name":return name;case "sld":return sld;case "ip":return ip;case "ip4":case "ipv4":case "inet4":return ip4;case "ip6":case "ipv6":case "inet6":return ip6;case "idn":return idn;case "url":return!this._parts.urn;case "urn":return!!this._parts.urn;case "punycode":return punycode}
return null};var _protocol=p.protocol;var _port=p.port;var _hostname=p.hostname;p.protocol=function(v,build){if(v!==undefined){if(v){v=v.replace(/:(\/\/)?$/,"");if(!v.match(URI.protocol_expression)){throw new TypeError('Protocol "'+v+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]")}}}
return _protocol.call(this,v,build)};p.scheme=p.protocol;p.port=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v!==undefined){if(v===0){v=null}
if(v){v+="";if(v.charAt(0)===":"){v=v.substring(1)}
if(v.match(/[^0-9]/)){throw new TypeError('Port "'+v+'" contains characters other than [0-9]')}}}
return _port.call(this,v,build)};p.hostname=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v!==undefined){var x={};var res=URI.parseHost(v,x);if(res!=="/"){throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]')}
v=x.hostname}
return _hostname.call(this,v,build)};p.origin=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined){var protocol=this.protocol();var authority=this.authority();if(!authority){return""}
return(protocol?protocol+"://":"")+this.authority()}else{var origin=URI(v);this.protocol(origin.protocol()).authority(origin.authority()).build(!build);return this}};p.host=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined){return this._parts.hostname?URI.buildHost(this._parts):""}else{var res=URI.parseHost(v,this._parts);if(res!=="/"){throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]')}
this.build(!build);return this}};p.authority=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined){return this._parts.hostname?URI.buildAuthority(this._parts):""}else{var res=URI.parseAuthority(v,this._parts);if(res!=="/"){throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]')}
this.build(!build);return this}};p.userinfo=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined){var t=URI.buildUserinfo(this._parts);return t?t.substring(0,t.length-1):t}else{if(v[v.length-1]!=="@"){v+="@"}
URI.parseUserinfo(v,this._parts);this.build(!build);return this}};p.resource=function(v,build){var parts;if(v===undefined){return this.path()+this.search()+this.hash()}
parts=URI.parse(v);this._parts.path=parts.path;this._parts.query=parts.query;this._parts.fragment=parts.fragment;this.build(!build);return this};p.subdomain=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined){if(!this._parts.hostname||this.is("IP")){return""}
var end=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,end)||""}else{var e=this._parts.hostname.length-this.domain().length;var sub=this._parts.hostname.substring(0,e);var replace=new RegExp("^"+escapeRegEx(sub));if(v&&v.charAt(v.length-1)!=="."){v+="."}
if(v){URI.ensureValidHostname(v)}
this._parts.hostname=this._parts.hostname.replace(replace,v);this.build(!build);return this}};p.domain=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(typeof v==="boolean"){build=v;v=undefined}
if(v===undefined){if(!this._parts.hostname||this.is("IP")){return""}
var t=this._parts.hostname.match(/\./g);if(t&&t.length<2){return this._parts.hostname}
var end=this._parts.hostname.length-this.tld(build).length-1;end=this._parts.hostname.lastIndexOf(".",end-1)+1;return this._parts.hostname.substring(end)||""}else{if(!v){throw new TypeError("cannot set domain empty")}
URI.ensureValidHostname(v);if(!this._parts.hostname||this.is("IP")){this._parts.hostname=v}else{var replace=new RegExp(escapeRegEx(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(replace,v)}
this.build(!build);return this}};p.tld=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(typeof v==="boolean"){build=v;v=undefined}
if(v===undefined){if(!this._parts.hostname||this.is("IP")){return""}
var pos=this._parts.hostname.lastIndexOf(".");var tld=this._parts.hostname.substring(pos+1);if(build!==!0&&SLD&&SLD.list[tld.toLowerCase()]){return SLD.get(this._parts.hostname)||tld}
return tld}else{var replace;if(!v){throw new TypeError("cannot set TLD empty")}else if(v.match(/[^a-zA-Z0-9-]/)){if(SLD&&SLD.is(v)){replace=new RegExp(escapeRegEx(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(replace,v)}else{throw new TypeError('TLD "'+v+'" contains characters other than [A-Z0-9]')}}else if(!this._parts.hostname||this.is("IP")){throw new ReferenceError("cannot set TLD on non-domain host")}else{replace=new RegExp(escapeRegEx(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(replace,v)}
this.build(!build);return this}};p.directory=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined||v===!0){if(!this._parts.path&&!this._parts.hostname){return""}
if(this._parts.path==="/"){return"/"}
var end=this._parts.path.length-this.filename().length-1;var res=this._parts.path.substring(0,end)||(this._parts.hostname?"/":"");return v?URI.decodePath(res):res}else{var e=this._parts.path.length-this.filename().length;var directory=this._parts.path.substring(0,e);var replace=new RegExp("^"+escapeRegEx(directory));if(!this.is("relative")){if(!v){v="/"}
if(v.charAt(0)!=="/"){v="/"+v}}
if(v&&v.charAt(v.length-1)!=="/"){v+="/"}
v=URI.recodePath(v);this._parts.path=this._parts.path.replace(replace,v);this.build(!build);return this}};p.filename=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined||v===!0){if(!this._parts.path||this._parts.path==="/"){return""}
var pos=this._parts.path.lastIndexOf("/");var res=this._parts.path.substring(pos+1);return v?URI.decodePathSegment(res):res}else{var mutatedDirectory=!1;if(v.charAt(0)==="/"){v=v.substring(1)}
if(v.match(/\.?\//)){mutatedDirectory=!0}
var replace=new RegExp(escapeRegEx(this.filename())+"$");v=URI.recodePath(v);this._parts.path=this._parts.path.replace(replace,v);if(mutatedDirectory){this.normalizePath(build)}else{this.build(!build)}
return this}};p.suffix=function(v,build){if(this._parts.urn){return v===undefined?"":this}
if(v===undefined||v===!0){if(!this._parts.path||this._parts.path==="/"){return""}
var filename=this.filename();var pos=filename.lastIndexOf(".");var s,res;if(pos===-1){return""}
s=filename.substring(pos+1);res=/^[a-z0-9%]+$/i.test(s)?s:"";return v?URI.decodePathSegment(res):res}else{if(v.charAt(0)==="."){v=v.substring(1)}
var suffix=this.suffix();var replace;if(!suffix){if(!v){return this}
this._parts.path+="."+URI.recodePath(v)}else if(!v){replace=new RegExp(escapeRegEx("."+suffix)+"$")}else{replace=new RegExp(escapeRegEx(suffix)+"$")}
if(replace){v=URI.recodePath(v);this._parts.path=this._parts.path.replace(replace,v)}
this.build(!build);return this}};p.segment=function(segment,v,build){var separator=this._parts.urn?":":"/";var path=this.path();var absolute=path.substring(0,1)==="/";var segments=path.split(separator);if(segment!==undefined&&typeof segment!=="number"){build=v;v=segment;segment=undefined}
if(segment!==undefined&&typeof segment!=="number"){throw new Error('Bad segment "'+segment+'", must be 0-based integer')}
if(absolute){segments.shift()}
if(segment<0){segment=Math.max(segments.length+segment,0)}
if(v===undefined){return segment===undefined?segments:segments[segment]}else if(segment===null||segments[segment]===undefined){if(isArray(v)){segments=[];for(var i=0,l=v.length;i<l;i++){if(!v[i].length&&(!segments.length||!segments[segments.length-1].length)){continue}
if(segments.length&&!segments[segments.length-1].length){segments.pop()}
segments.push(trimSlashes(v[i]))}}else{if(v||typeof v==="string"){v=trimSlashes(v);if(segments[segments.length-1]===""){segments[segments.length-1]=v}else{segments.push(v)}}}}else if(v){segments[segment]=trimSlashes(v)}else{segments.splice(segment,1)}
if(absolute){segments.unshift("")}
return this.path(segments.join(separator),build)};p.segmentCoded=function(segment,v,build){var segments,i,l;if(typeof segment!=="number"){build=v;v=segment;segment=undefined}
if(v===undefined){segments=this.segment(segment,v,build);if(!isArray(segments)){segments=segments!==undefined?URI.decode(segments):undefined}else{for(i=0,l=segments.length;i<l;i++){segments[i]=URI.decode(segments[i])}}
return segments}
if(!isArray(v)){v=typeof v==="string"||v instanceof String?URI.encode(v):v}else{for(i=0,l=v.length;i<l;i++){v[i]=URI.encode(v[i])}}
return this.segment(segment,v,build)};var q=p.query;p.query=function(v,build){if(v===!0){return URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace)}else if(typeof v==="function"){var data=URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace);var result=v.call(this,data);this._parts.query=URI.buildQuery(result||data,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!build);return this}else if(v!==undefined&&typeof v!=="string"){this._parts.query=URI.buildQuery(v,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!build);return this}else{return q.call(this,v,build)}};p.setQuery=function(name,value,build){var data=URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof name==="string"||name instanceof String){data[name]=value!==undefined?value:null}else if(typeof name==="object"){for(var key in name){if(hasOwn.call(name,key)){data[key]=name[key]}}}else{throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")}
this._parts.query=URI.buildQuery(data,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);if(typeof name!=="string"){build=value}
this.build(!build);return this};p.addQuery=function(name,value,build){var data=URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace);URI.addQuery(data,name,value===undefined?null:value);this._parts.query=URI.buildQuery(data,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);if(typeof name!=="string"){build=value}
this.build(!build);return this};p.removeQuery=function(name,value,build){var data=URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace);URI.removeQuery(data,name,value);this._parts.query=URI.buildQuery(data,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);if(typeof name!=="string"){build=value}
this.build(!build);return this};p.hasQuery=function(name,value,withinArray){var data=URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return URI.hasQuery(data,name,value,withinArray)};p.setSearch=p.setQuery;p.addSearch=p.addQuery;p.removeSearch=p.removeQuery;p.hasSearch=p.hasQuery;p.normalize=function(){if(this._parts.urn){return this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()}
return this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()};p.normalizeProtocol=function(build){if(typeof this._parts.protocol==="string"){this._parts.protocol=this._parts.protocol.toLowerCase();this.build(!build)}
return this};p.normalizeHostname=function(build){if(this._parts.hostname){if(this.is("IDN")&&punycode){this._parts.hostname=punycode.toASCII(this._parts.hostname)}else if(this.is("IPv6")&&IPv6){this._parts.hostname=IPv6.best(this._parts.hostname)}
this._parts.hostname=this._parts.hostname.toLowerCase();this.build(!build)}
return this};p.normalizePort=function(build){if(typeof this._parts.protocol==="string"&&this._parts.port===URI.defaultPorts[this._parts.protocol]){this._parts.port=null;this.build(!build)}
return this};p.normalizePath=function(build){var _path=this._parts.path;if(!_path){return this}
if(this._parts.urn){this._parts.path=URI.recodeUrnPath(this._parts.path);this.build(!build);return this}
if(this._parts.path==="/"){return this}
_path=URI.recodePath(_path);var _was_relative;var _leadingParents="";var _parent,_pos;if(_path.charAt(0)!=="/"){_was_relative=!0;_path="/"+_path}
if(_path.slice(-3)==="/.."||_path.slice(-2)==="/."){_path+="/"}
_path=_path.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");if(_was_relative){_leadingParents=_path.substring(1).match(/^(\.\.\/)+/)||"";if(_leadingParents){_leadingParents=_leadingParents[0]}}
while(!0){_parent=_path.search(/\/\.\.(\/|$)/);if(_parent===-1){break}else if(_parent===0){_path=_path.substring(3);continue}
_pos=_path.substring(0,_parent).lastIndexOf("/");if(_pos===-1){_pos=_parent}
_path=_path.substring(0,_pos)+_path.substring(_parent+3)}
if(_was_relative&&this.is("relative")){_path=_leadingParents+_path.substring(1)}
this._parts.path=_path;this.build(!build);return this};p.normalizePathname=p.normalizePath;p.normalizeQuery=function(build){if(typeof this._parts.query==="string"){if(!this._parts.query.length){this._parts.query=null}else{this.query(URI.parseQuery(this._parts.query,this._parts.escapeQuerySpace))}
this.build(!build)}
return this};p.normalizeFragment=function(build){if(!this._parts.fragment){this._parts.fragment=null;this.build(!build)}
return this};p.normalizeSearch=p.normalizeQuery;p.normalizeHash=p.normalizeFragment;p.iso8859=function(){var e=URI.encode;var d=URI.decode;URI.encode=escape;URI.decode=decodeURIComponent;try{this.normalize()}finally{URI.encode=e;URI.decode=d}
return this};p.unicode=function(){var e=URI.encode;var d=URI.decode;URI.encode=strictEncodeURIComponent;URI.decode=unescape;try{this.normalize()}finally{URI.encode=e;URI.decode=d}
return this};p.readable=function(){var uri=this.clone();uri.username("").password("").normalize();var t="";if(uri._parts.protocol){t+=uri._parts.protocol+"://"}
if(uri._parts.hostname){if(uri.is("punycode")&&punycode){t+=punycode.toUnicode(uri._parts.hostname);if(uri._parts.port){t+=":"+uri._parts.port}}else{t+=uri.host()}}
if(uri._parts.hostname&&uri._parts.path&&uri._parts.path.charAt(0)!=="/"){t+="/"}
t+=uri.path(!0);if(uri._parts.query){var q="";for(var i=0,qp=uri._parts.query.split("&"),l=qp.length;i<l;i++){var kv=(qp[i]||"").split("=");q+="&"+URI.decodeQuery(kv[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");if(kv[1]!==undefined){q+="="+URI.decodeQuery(kv[1],this._parts.escapeQuerySpace).replace(/&/g,"%26")}}
t+="?"+q.substring(1)}
t+=URI.decodeQuery(uri.hash(),!0);return t};p.absoluteTo=function(base){var resolved=this.clone();var properties=["protocol","username","password","hostname","port"];var basedir,i,p;if(this._parts.urn){throw new Error("URNs do not have any generally defined hierarchical components")}
if(!(base instanceof URI)){base=new URI(base)}
if(!resolved._parts.protocol){resolved._parts.protocol=base._parts.protocol}
if(this._parts.hostname){return resolved}
for(i=0;p=properties[i];i++){resolved._parts[p]=base._parts[p]}
if(!resolved._parts.path){resolved._parts.path=base._parts.path;if(!resolved._parts.query){resolved._parts.query=base._parts.query}}else if(resolved._parts.path.substring(-2)===".."){resolved._parts.path+="/"}
if(resolved.path().charAt(0)!=="/"){basedir=base.directory();basedir=basedir?basedir:base.path().indexOf("/")===0?"/":"";resolved._parts.path=(basedir?basedir+"/":"")+resolved._parts.path;resolved.normalizePath()}
resolved.build();return resolved};p.relativeTo=function(base){var relative=this.clone().normalize();var relativeParts,baseParts,common,relativePath,basePath;if(relative._parts.urn){throw new Error("URNs do not have any generally defined hierarchical components")}
base=(new URI(base)).normalize();relativeParts=relative._parts;baseParts=base._parts;relativePath=relative.path();basePath=base.path();if(relativePath.charAt(0)!=="/"){throw new Error("URI is already relative")}
if(basePath.charAt(0)!=="/"){throw new Error("Cannot calculate a URI relative to another relative URI")}
if(relativeParts.protocol===baseParts.protocol){relativeParts.protocol=null}
if(relativeParts.username!==baseParts.username||relativeParts.password!==baseParts.password){return relative.build()}
if(relativeParts.protocol!==null||relativeParts.username!==null||relativeParts.password!==null){return relative.build()}
if(relativeParts.hostname===baseParts.hostname&&relativeParts.port===baseParts.port){relativeParts.hostname=null;relativeParts.port=null}else{return relative.build()}
if(relativePath===basePath){relativeParts.path="";return relative.build()}
common=URI.commonPath(relativePath,basePath);if(!common){return relative.build()}
var parents=baseParts.path.substring(common.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");relativeParts.path=parents+relativeParts.path.substring(common.length)||"./";return relative.build()};p.equals=function(uri){var one=this.clone();var two=new URI(uri);var one_map={};var two_map={};var checked={};var one_query,two_query,key;one.normalize();two.normalize();if(one.toString()===two.toString()){return!0}
one_query=one.query();two_query=two.query();one.query("");two.query("");if(one.toString()!==two.toString()){return!1}
if(one_query.length!==two_query.length){return!1}
one_map=URI.parseQuery(one_query,this._parts.escapeQuerySpace);two_map=URI.parseQuery(two_query,this._parts.escapeQuerySpace);for(key in one_map){if(hasOwn.call(one_map,key)){if(!isArray(one_map[key])){if(one_map[key]!==two_map[key]){return!1}}else if(!arraysEqual(one_map[key],two_map[key])){return!1}
checked[key]=!0}}
for(key in two_map){if(hasOwn.call(two_map,key)){if(!checked[key]){return!1}}}
return!0};p.duplicateQueryParameters=function(v){this._parts.duplicateQueryParameters=!!v;return this};p.escapeQuerySpace=function(v){this._parts.escapeQuerySpace=!!v;return this};return URI});window.FormsPlus.util.URI=window.URI.noConflict(!0)}();window.FormsPlus.util.DNS={};window.FormsPlus.util.DNS.climbDomains=function(b,d,a){var c=[];b=b||[];a=a||document.location.hostname;a.split(".").reverse().reduce(function(e,b){var a=[b,e].join(".");c.push(a);return a});c.forEach(function(a){-1==b.indexOf(a)&&d(a)})};window.FormsPlus.util.DNS.findPrivateSuffix=function(a){var e={},g=RegExp("(?:^|\\s|;)(?:_mch_auto_domain=)(.*?)(?:;|$)","ig"),c={};a=a||{};e[2]=!0;try{var b=sessionStorage.getItem("shortestPrivateSuffix");if(a.cache&&!b){try{sessionStorage.setItem("_mch_cache_test",""),sessionStorage.removeItem("_mch_cache_test"),e[1]=!0}catch(h){}}}catch(h){}
if(a.cache&&b){c.source=1}else{for(var d=document.location.hostname.split(/\./),f=0,k=d.length;f<k;f++){a=d.slice(f).join("."),FormsPlus.util.Cookies.set("_mch_auto_domain",a,{domain:a})}
for(d=document.cookie.toString();a=g.exec(d);){if(a=a[1],!b||a.length<b.length){b=a,FormsPlus.util.Cookies.remove("_mch_auto_domain",{domain:a})}}
c.source=2;1==e[1]&&sessionStorage.setItem("shortestPrivateSuffix",b)}
c.cookieDomain="."+b;c.domainLevel=b.split(".").length;return c};window.FormsPlus.strings={MARKETO_TRACKING_COOKIE:"_mkto_trk",MARKETO_EMAIL_ASSOCIATOR_TOKEN:"mkt_tok",MARKETO_FORM_DATA_CACHE:"aliId"};window.FormsPlus.util.Object={};window.FormsPlus.util.Object.assign2=function assignment(c){for(var d=Array.prototype.slice.call(arguments,1),b,a;d.length;){for(a in b=d.shift(),b){b.hasOwnProperty(a)&&("object"===typeof c[a]&&c[a]&&"[object Array]"!==Object.prototype.toString.call(c[a])?c[a]="object"===typeof b[a]&&null!==b[a]?assignment(c[a],b[a]):b[a]:c[a]=b[a])}}
return c};window.FormsPlus.util.RegExp={};window.FormsPlus.util.RegExp.escape=RegExp.escape||function(s){return String(s).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")};window.FormsPlus.util.Forms={};window.FormsPlus.util.Forms.freezeInput=function freezeInput(a,b,c){a=a.getFormElem()[0].querySelector("input[name='"+b+"']");if(!a||!/^(|text|email|tel|url|checkbox)$/.test(a.type)){throw "Field not found in form. Note only <input type=checkbox>, <input type=text> and text subtypes are freezable by this function."}
Object.defineProperty(a,"checkbox"==a.type?"checked":"value",{get:function(){return c},set:function(d){},enumerable:!0,configurable:!0})};
/*
 @author Sanford Whiteman, TEKNKL (blog.teknkl.com / sandy@teknkl.com)
 @version v2.0.4
 @copyright Copyright 2016, 2017, 2018, 2019 FigureOne, Inc.
 @license MIT License: You must include this license and the above credits in all uses & reproductions of this software.
*/
function SimpleDTO(a){var l=getSelection.call.bind([].slice),f=FormsPlus.util.URI.URI().origin(),g=FormsPlus.util.URI.URI(a.dataSrc).origin(),h=document.referrer?FormsPlus.util.URI.URI(document.referrer).origin():null,m=FormsPlus.util.Cookies.get("_mkto_trk");switch(a.transport){case "document":try{a.debug&&console.log("SimpleDTO: Unifying domains "+[document.domain,a.documentDomain].join(", ")),document.domain=a.documentDomain}catch(n){throw "SimpleDTO: Domain unification failed, domain: "+a.documentDomain}
break;case "message":if("receive"==a.mode&&(-1==[].concat(a.messageTarget).indexOf(f)||g!=a.messageSource)){throw "SimpleDTO: Message receive preflight failed, origin: "+f+" and "+g+" cannot exchange messages"}}
if("receive"==a.mode){var b=document.createElement("iframe");this.setSource=function(a){b.src=a};this.getSource=function(){return c};switch(a.transport){case "document":b.addEventListener("load",function(){this.data||this.src?(a.debug&&console.log("SimpleDTO: running callback"),a.cb&&a.cb.call(this,k)):a.debug&&console.log("SimpleDTO: skipping load event due to empty data src or callback")});break;case "message":window.addEventListener("message",function(b){b.origin==a.messageSource&&"1.3.6.1.4.1.26100.messages.simpledto"==b.data.oid&&(a.debug&&console.log("SimpleDTO: running callback"),a.cb&&a.cb.call(this,k,b.data.payload))})}
b.setAttribute("data-transfer-object","true");[["visibility","hidden"],["position","absolute"],["height","0"]].forEach(function(a){b.style.setProperty.apply(b.style,a)});var c=document.createElement("a");c.href=a.dataSrc||"";a.noReplaceQuery||(c.search=document.location.search);window.__mktTokVal&&(c.search+="&mkt_tok="+window.__mktTokVal);"message"==a.transport&&(c.search+="&_mkt_trk="+encodeURIComponent(m));a.noInit||this.setSource(c.href);document.body.appendChild(b)}
var k=this;return{getGlobal:function(){return b.contentWindow},cleanup:function(){b.parentNode.removeChild(b)},parse:function(b){(function(){var c=document.querySelector('.dto-xml[data-field-collection="'+b+'"]').text;c=(new DOMParser).parseFromString(c,"application/xml");var d=c.querySelector("mktoPreFillFields");d=d.getAttribute("varName")||d.tagName;var e={};l(c.querySelectorAll("mktoPreFillFields mktoField")).forEach(function(a){e[a.getAttribute("inputName")]=a.textContent});switch(a.transport){case "document":self[d]=e;break;case "message":window.parent.postMessage({oid:"1.3.6.1.4.1.26100.messages.simpledto",payload:e,},-1!=[].concat(a.messageTarget).indexOf(h)?h:null)}})()},}}
window.SimpleDTO=SimpleDTO;!function(){function e(e){return e&&e.__esModule?e.default:e}String.prototype.padStart||Object.defineProperty(String.prototype,"padStart",{configurable:!0,writable:!0,value:function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))}});var t={};function r(e){return e<10?"0".concat(e):e}function n(){var e,t,n,a,i=new Date,o=r(i.getUTCMonth()+1),s=r(i.getUTCDate()),u=(t=r((e=i).getUTCHours()),n=r(e.getUTCMinutes()),a=r(e.getUTCSeconds()),"".concat(t,":").concat(n,":").concat(a));return"".concat(i.getUTCFullYear(),"-").concat(o,"-").concat(s,"T").concat(u,"Z")}function a(e){return window.fetch(e,{method:"GET"}).then((function(e){return e.json()}))}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new FormData;return Object.keys(e).forEach((function(n){var a=n;t&&(a="".concat(t,"[").concat(n,"]")),r.append(a,e[n])})),r}function o(r,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1;navigator&&navigator.sendBeacon&&(o=navigator.sendBeacon(r,i(n,a))),o||(a&&(n=e(t)({},a,n)),jQuery.ajax(r,{method:"POST",global:!1,data:n}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e};var s=function(){var e={send_result:!0,start_time:null,multiTrackStartTime:function(){return n()},submitTime:function(){return n()}};return e.getDevice=function(){return e=navigator.userAgent,/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"Tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"Mobile":"Desktop";var e},e.generateUUID=function(){return"ANN"+Math.random().toString(36).substring(2,9)+Math.random().toString(36).substring(2,3)+Math.random().toString(36).substring(2,9)},e.getFieldValueFromSet=function(e,t){var r="",n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value,c=t?"#".concat(t,' [name="').concat(u,'"]'):'[name="'.concat(u,'"]'),l=document.querySelectorAll(c);if(l&&l.length){var f=!0,m=!1,d=void 0;try{for(var g,h=l.values()[Symbol.iterator]();!(f=(g=h.next()).done);f=!0){var v=g.value;if(""!==v.value){r=v.value;break}}}catch(e){m=!0,d=e}finally{try{f||null==h.return||h.return()}finally{if(m)throw d}}}if(""!==r)break}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r},e.getEmailAddress=function(t){return e.getFieldValueFromSet(["Email","email","EmailAddress","emailAddress","email_address"],t)},e.getFormCount=function(t){return e.getFieldValueFromSet(["formCount","FormCount","formcount","form_count"],t)},e.getContentOffer=function(){return null!==window.MITMap.settings.offer&&window.MITMap.settings.offer.hasOwnProperty("serial_number")?window.MITMap.settings.offer.serial_number:"undefined"!=typeof pdg_vars&&pdg_vars.hasOwnProperty("serial_number")?pdg_vars.serial_number:"none"},e.getData=function(t){return{email_address:e.getEmailAddress(t),uuid:e.generateUUID(),interaction_timestamp:e.submitTime(),visit_timestamp:e.start_time,device:e.getDevice(),form:"Formfill",form_count:e.getFormCount(t),content_offer_serial:e.getContentOffer(),action_url:window.location.href,previous_url:MITData.getPreviousUrl(),referrer_url:MITData.getReferrerUrl(),query_params:JSON.stringify(MITData.getAllParameters())}},e.save=function(t,r){r||(r=!1),!1!==e.send_result&&!0!==r?(window.MITMap.settings&&window.MITMap.settings.nonce&&(t.nonce=window.MITMap.settings.nonce),o(window.MITMap.base_url+"/wp-json/mit/v1/save_mit_data",t,"data")):console.table(t)},e.debug=function(){window.MITMap.debug()},e.run=function(t,r){t||(t=!1);var n=e.getData(r);window.MITMap.run((function(r){Object.values(r).forEach((function(e){n[e.mit_name]=e.value})),"function"==typeof window.mit_data_filter&&(n=window.mit_data_filter(n)),e.save(n,t)}),null,r)},e.test=function(t){e.run(!0,t)},e.init=function(){e.start_time||(e.start_time=e.multiTrackStartTime())},e},u=function(){var e={activeForm:null,forms:{},settings:null,results:{},callback:null,callback_options:{},base_url:"",requestedSettings:!1,settingsLoaded:!1,runFormCallback:function(t){var r=e.results;t&&e.forms[t]&&"function"==typeof e.forms[t].callback&&(r=e.forms[t].results,e.forms[t].callback(r,e.forms[t].callbackArgs),e.forms[t].callback=null,e.forms[t].callbackArgs=null),"function"==typeof e.callback&&(e.callback(r,e.callback_options),e.callback=null,e.callback_options=null)},cleanupRule:function(e){return e?("string"!=typeof e&&(e=e.toString()),e.toLowerCase().replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/^,|,$/g,"").replace(/^\s+|\s+$/g,"").split(",")):[""]},checkRule:function(t){var r="";switch(t.type){case"parameter":r=window.MITData.getParameter(t.parameter);break;case"referrer":r=window.MITData.getReferrerUrl();break;case"previous_url":r=window.MITData.getPreviousUrl();break;case"current_url":r=window.location.href}if("string"!=typeof r)return!1;r=r.toLowerCase();var n=e.cleanupRule(t.matches||"");switch(t.operation){case"equals":return n.includes(r);case"not-equals":return!n.includes(r);case"contains":return void 0!==n.find((function(e){if(e.length&&-1!==r.indexOf(e))return!0}));case"not-contains":return void 0===n.find((function(e){if(e.length&&-1!==r.indexOf(e))return!0}));case"is-set":return""!==r;case"is-not-set":return""===r}return!1},setResultValue:function(t,r,n){n&&e.forms[n]&&(e.forms[n].results[t.mit_name]={mit_name:t.mit_name,field_name:t.field_name,value:r}),e.results[t.mit_name]={mit_name:t.mit_name,field_name:t.field_name,value:r}},processParameter:function(t,r){var n=window.MITData.getParameter(t.parameter_name);null!==n&&""!==n&&e.setResultValue(t,n,r)},processSetting:function(t,r){if(t.rules&&t.rules.length){var n=t.rules;Object.keys(n).every((function(t){return!0===e.checkRule(n[t])}))&&e.setResultValue(t,t.mapped_value,r)}},processDefault:function(t,r){var n=!0;if((r&&e.forms[r]&&e.forms[r].results[t.mit_name]||!r&&e.results.hasOwnProperty(t.mit_name))&&(n=!1),n){var a=t.default_value||"";if(a.includes("{{")){var i=a.replace(/{{|}}/g,"").split("="),o=i[0];if(r&&e.forms[r])try{a=e.forms[r].formEl.querySelector("[name='".concat(o,"']")).value}catch(e){a=i[1]}else try{a=document.querySelector("[name='".concat(o,"']")).value}catch(e){a=i[1]}""!==a&&void 0!==i[1]||(a="none")}e.setResultValue(t,a,r)}},processFormSettings:function(t){(!t||e.forms[t]&&!e.forms[t].processed)&&(Object.keys(e.settings.parameters).forEach((function(r){return e.processParameter(e.settings.parameters[r],t)})),Object.keys(e.settings.mappings).forEach((function(r){return e.processSetting(e.settings.mappings[r],t)})),Object.keys(e.settings.defaults).forEach((function(r){return e.processDefault(e.settings.defaults[r],t)})),t&&e.forms[t]&&(e.forms[t].processed=!0))},setup:function(t){e.settings=t,e.results={},e.runFormCallback()}};return e.getSettings=function(t){if(e.requestedSettings&&e.settingsLoaded&&(t&&e.forms[t]?(e.forms[t].processed?e.results=e.forms[t].results:e.processFormSettings(t),e.runFormCallback(t)):e.runFormCallback()),!e.requestedSettings){e.requestedSettings=!0;var r=encodeURIComponent(window.location.origin+window.location.pathname+window.location.hash);a("".concat(e.base_url,"/wp-json/mit/v1/get_settings?url=").concat(r)).then((function(t){e.setup(t)})).catch(console.error).finally((function(){e.settingsLoaded=!0;var t=new CustomEvent("mit_settings_loaded",{bubbles:!0});window.dispatchEvent(t)}))}},e.run=function(t,r,n){t&&(e.callback=t),r&&(e.callback_options=r),e.getSettings(n)},e.parseResults=function(e){var t={};return Object.values(e).forEach((function(e){t[e.field_name]=e.value})),t},e.mapMarketo=function(t,r){var n=r.form,a=e.parseResults(t),i=Object.keys(n.vals()),o={};Object.keys(a).forEach((function(e){if(e.includes("*")){var t=e.replace("*","");i.forEach((function(r){r.includes(t)&&(o[r]=a[e])}))}else o[e]=a[e]})),n.vals(o),n.onSubmit((function(t){!0===t.submittable()&&(e.form=t.getFormElem(),window.MIT.run(!1,e.form[0].id))}))},e.setupForm=function(t,r,n){e.forms[t.id]={id:t.id,formEl:t,callback:r,callbackArgs:n,results:{},processed:!1},e.settingsLoaded?(e.processFormSettings(t.id),e.runFormCallback(t.id)):window.addEventListener("mit_settings_loaded",(function(){e.processFormSettings(t.id),e.runFormCallback(t.id)})),e.run()},e.defaultChecks=function(){window.addEventListener("marketo_form_load",(function(t){var r=t.detail.form.getFormElem()[0];e.setupForm(r,e.mapMarketo,{form:t.detail.form})})),window.addEventListener("eloqua_form_load",(function(t){e.setupForm(t.detail.form,e.mapEloqua,{form:t.detail.form})}))},e.getBaseUrl=function(){if(e.base_url)return e.base_url;var t;if(window.MITScriptEl&&window.MITScriptEl.src)t=window.MITScriptEl.src;else{var r=document.querySelector('script[src*="pdg/v1/scripts"]');(r&&r.src||(r=document.querySelector("script[data-pdg-script]"))&&r.src)&&(t=r.src)}if(t&&t.length){var n;try{n=new URL(t)}catch(t){return e.base_url}e.base_url="".concat(n.protocol,"//").concat(n.hostname)}return e.base_url},e.debug=function(){e.run((function(e){console.table(e)}))},e.init=function(){e.getBaseUrl(),e.defaultChecks()},e},c={},l={};Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(e){return e&&e.constructor===Symbol?"symbol":typeof e},function(t,r){var n={version:"2.13.1",areas:{},apis:{},inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||n.replace)},parse:function(e,t){try{return JSON.parse(e,t||n.revive)}catch(t){return e}},fn:function(e,t){for(var r in n.storeAPI[e]=t,n.apis)n.apis[r][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,r){var a=n.inherit(n.storeAPI,(function(e,t,r){return 0===arguments.length?a.getAll():"function"==typeof t?a.transact(e,t,r):void 0!==t?a.set(e,t,r):"string"==typeof e||"number"==typeof e?a.get(e):"function"==typeof e?a.each(e):e?a.setAll(e,t):a.clear()}));a._id=e;try{var i="__store2_test";t.setItem(i,"ok"),a._area=t,t.removeItem(i)}catch(e){a._area=n.storage("fake")}return a._ns=r||"",n.areas[e]||(n.areas[e]=a._area),n.apis[a._ns+a._id]||(n.apis[a._ns+a._id]=a),a},storeAPI:{area:function(e,t){var r=this[e];return r&&r.area||(r=n.Store(e,t,this._ns),this[e]||(this[e]=r)),r},namespace:function(e,t){if(!e)return this._ns?this._ns.substring(0,this._ns.length-1):"";var r=e,a=this[r];if(!(a&&a.namespace||(a=n.Store(this._id,this._area,this._ns+r+"."),this[r]||(this[r]=a),t)))for(var i in n.areas)a.area(i,n.areas[i]);return a},isFake:function(e){return e?(this._real=this._area,this._area=n.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):!!(this._in(e)in this._area)},size:function(){return this.keys().length},each:function(e,t){for(var r=0,a=n.length(this._area);r<a;r++){var i=this._out(n.key(this._area,r));if(void 0!==i&&!1===e.call(this,i,this.get(i),t))break;a>n.length(this._area)&&(a--,r--)}return t||this},keys:function(e){return this.each((function(e,t,r){r.push(e)}),e||[])},get:function(e,t){var r,a=n.get(this._area,this._in(e));return"function"==typeof t&&(r=t,t=null),null!==a?n.parse(a,r):null!=t?t:a},getAll:function(e){return this.each((function(e,t,r){r[e]=t}),e||{})},transact:function(e,t,r){var n=this.get(e,r),a=t(n);return this.set(e,void 0===a?n:a),this},set:function(e,t,r){var a,i=this.get(e);return null!=i&&!1===r?t:("boolean"!=typeof r&&(a=r),n.set(this._area,this._in(e),n.stringify(t,a))||i)},setAll:function(e,t){var r,n;for(var a in e)n=e[a],this.set(a,n,t)!==n&&(r=!0);return r},add:function(t,r,a){var i=this.get(t);if(i instanceof Array)r=i.concat(r);else if(null!==i){var o=void 0===i?"undefined":e(l)(i);if(o===(void 0===r?"undefined":e(l)(r))&&"object"===o){for(var s in r)i[s]=r[s];r=i}else r=i+r}return n.set(this._area,this._in(t),n.stringify(r,a)),r},remove:function(e,t){var r=this.get(e,t);return n.remove(this._area,this._in(e)),r},clear:function(){return this._ns?this.each((function(e){n.remove(this._area,this._in(e))}),1):n.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in n.areas)n.areas.hasOwnProperty(t)&&(this._area=n.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=n.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return n.inherit(n.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},a=n.Store("local",function(){try{return localStorage}catch(e){}}());a.local=a,a._=n,a.area("session",function(){try{return sessionStorage}catch(e){}}()),a.area("page",n.storage("page")),"function"==typeof r&&void 0!==r.amd?r("store2",[],(function(){return a})):c?c=a:(t.store&&(n.conflict=t.store),t.store=a)}(void 0,void 0),e(c)._.revive=function(e,t){if("string"==typeof t&&isNaN(t))try{return JSON.parse(t)}catch(e){return t}return t},e(c)._.replacer=function(e){return"object"==typeof e?JSON.stringify(e):e};var f,m;window.MITScriptEl=document.currentScript,window.MIT=Object.assign(s(),window.MIT||{}),window.MITMap=Object.assign(u(),window.MITMap||{}),window.MITData=Object.assign(f={query_key:"mit_params",referrerKey:"mit_referrer",previousUrlKey:"mit_previous_url",minuteInMicroseconds:6e4,getStorage:function(t){return e(c).get(t)},setStorage:function(t,r){return e(c).set(t,r)},sessionGet:function(t){return e(c).session.get(t)},sessionSet:function(t,r){return e(c).session.set(t,r)},getUrlParameter:function(e){try{return new window.URL(window.location.href).searchParams.get(e)}catch(e){return null}},getAllParameters:function(){var e=f.getStorage(f.query_key);return null===e||"object"!=typeof e?{}:e},getParameterFromStorage:function(e){var t=f.getAllParameters();return t.hasOwnProperty(e)?t[e]:null},saveParameterToStorage:function(e,t){var r=f.getAllParameters();r[e]=t,void 0===r.time&&(r.time=Date.now()),void 0===r[f.referrerKey]&&(r[f.referrerKey]=window.document.referrer),f.setStorage(f.query_key,r)},getHostname:function(e){try{return new window.URL(e).hostname}catch(e){return null}},getParameter:function(e){var t,r=f.getUrlParameter(e);return null!==r?(f.saveParameterToStorage(e,r),r):null!==(t=f.getParameterFromStorage(e))&&void 0!==t?t:""},clearParameterStorage:function(){e(c).remove(f.query_key)},maybeTrackData:function(){var e=""!==window.location.search;!window.document.referrer&&!e||window.document.referrer&&f.getHostname(window.document.referrer)===f.getHostname(window.location.href)||(f.clearParameterStorage(),f.trackAllParams())},maybeClearOldLocalStorage:function(){var e=Date.now(),t=f.getAllParameters();Object.keys(t).length&&t.time&&e-t.time>30*f.minuteInMicroseconds&&f.clearParameterStorage()},trackAllParams:function(){var e;f.saveParameterToStorage(f.referrerKey,window.document.referrer);try{e=new URL(window.location.href)}catch(e){return}e.searchParams.forEach((function(e,t){f.saveParameterToStorage(t,e)}))},getReferrerUrl:function(){return f.getParameterFromStorage(f.referrerKey)},getPreviousUrl:function(){return window.document.referrer},init:function(){f.maybeClearOldLocalStorage(),f.maybeTrackData()}},window.MITData||{}),m=function(){window.MIT.init(),window.MITMap.init(),window.MITData.init()},"loading"!==document.readyState?m():document.addEventListener("DOMContentLoaded",m)}();function mit_data_filter(mit){var getCookie=function(name){var v=document.cookie.match('(^|;) ?'+name+'=([^;]*)(;|$)');return v?v[2]:null};var id=Marketo.lead_id;if(id===null||id===''){id=getCookie('_mkto_trk')}
mit.email_address=id;return mit}
jQuery(function(){if(window.location.host==='info.nwea.org'&&typeof MktoForms2!=='undefined'){MktoForms2.whenReady(function(form){var event=new CustomEvent('marketo_form_load',{bubbles:!0,cancelable:!0,detail:{form:form,form_id:form.getId(),}});window.dispatchEvent(event)})}
var leadid=MITData.getUrlParameter('leadId');if(window.location.pathname.indexOf('/resource-center/')===-1||leadid!==null){return}
var getCookie=function(name){var v=document.cookie.match('(^|;) ?'+name+'=([^;]*)(;|$)');return v?v[2]:null};var didUnlockCheck=!1;window.addEventListener('marketo_form_prefill',function(e){if(typeof e.detail.user==='undefined'){return}
if(didUnlockCheck){return}
didUnlockCheck=!0;var lead_id=e.detail.user.id;var lead_cookie=getCookie('_mkto_trk');var serial_number=Marketo.content_offer;if(lead_id===''||serial_number.toLowerCase()==='none'){return}
var url=MarketoOversight.getBaseUrl()+'/wp-json/pdg/v1/lead_submitted?lead_id='+lead_id+'&serial_number='+serial_number+'&lead_cookie='+encodeURIComponent(lead_cookie);jQuery.get(url,function(data){if(data.hasOwnProperty('submitted')&&data.submitted===!0){if(typeof window.offer_unlock==='function'){window.offer_unlock()}}else{if(typeof window.offer_lock==='function'){window.offer_lock()}}})})});function marketoResetLink(data,form){var form_parent=form.getFormElem().parents('div[data-marketo-form-id]');var form_data=form_parent.data();if(!form_data.hasOwnProperty('resetField')){return}
if(data.hasOwnProperty('Email')&&data.hasOwnProperty(form_data.resetField)&&data.Email!==''){jQuery('[name='+form_data.resetField+']',form_parent).each(function(){var input_element=jQuery(this);var input_row=input_element.closest('.mktoFormRow');var form=input_element.closest('.mktoForm');if(input_element.length&&!jQuery('.not-me',form).length){var txt='<div class="not-me">Not you? click <a href="#">here</a></div>';input_row.after(txt)}})}}
function removeParam(key,sourceURL){var rtn=sourceURL.split('?')[0],param,params_arr=[],queryString=(sourceURL.indexOf('?')!==-1)?sourceURL.split('?')[1]:'';if(queryString!==''){params_arr=queryString.split('&');for(var i=params_arr.length-1;i>=0;i-=1){param=params_arr[i].split('=')[0];if(param===key){params_arr.splice(i,1)}}
rtn=rtn+'?'+params_arr.join('&')}
return rtn}
function marketoResetForm(e){var form=jQuery(e.target).closest('.mktoForm');var form_id=jQuery('[name=formid]',form).val();var form_zone=2;switch(form_id){case '3087':form_zone=1;break;case '2673':form_zone=2;break;case '2678':form_zone=3;break}
var cookie_names=['_mkto_trk','_mkto_trk_http',];var domains=[window.location.hostname,'.marketo.com','.nwea.org','info.nwea.org',];for(var i in domains){for(var c in cookie_names){Cookies.remove(cookie_names[c],{path:'/',domain:domains[i]})}}
MarketoData.clearData('prefill_fields');var hostname=window.location.host;var pathname=window.location.pathname;var new_url=hostname+pathname;var x=location.search;var altered_url=removeParam('mkt_tok',x);var params='form-reset=1&form-type='+form_zone;if(altered_url===''){altered_url='?'+params}else{altered_url=altered_url+'&'+params}
setTimeout(function(){window.location=window.location.protocol+'//'+new_url+altered_url},250)}
jQuery(function(){jQuery('body').on('click','.not-me a',function(e){e.preventDefault();marketoResetForm(e)});window.addEventListener('marketo_form_prefill',function(e){var form_values=e.detail.form_values;var form=e.detail.form;if(form_values.hasOwnProperty('Enrollment__c_contact')){setTimeout(function(){form.vals({'Enrollment__c_contact':form_values.Enrollment__c_contact})},250)}
if(form_values.hasOwnProperty('Current_Testing_Provider_Other__c')){setTimeout(function(){form.vals({'Current_Testing_Provider_Other__c':form_values.Current_Testing_Provider_Other__c})},250)}
if(form_values.hasOwnProperty('Contact_Me_Details__c')){setTimeout(function(){form.vals({'Contact_Me_Details__c':form_values.Contact_Me_Details__c})},250)}});var didDataLayerPush=!1;window.addEventListener('marketo_form_prefill',function(e){var data={event:'marketo_prefill',};if(typeof e.detail.user!=='undefined'){var user_data=e.detail.user;data.known=!0;data.user_id=user_data.id;data.track=user_data.Track;data.stage=user_data.Stage;marketoResetLink(user_data,e.detail.form)}else{data.known=!1;data.user_id=0;data.track='';data.stage=''}
if(didDataLayerPush){return}
didDataLayerPush=!0;window.dataLayer=window.dataLayer||[];dataLayer.push(data)});if(window.location.pathname.indexOf('/resource-center/')===-1){return}
jQuery.ajax(MarketoOversight.getBaseUrl()+'/wp-json/pdg/v1/offer_data',{method:'GET',global:!1,data:{url:window.location.origin+window.location.pathname+window.location.hash,},success:function(result){if(result.hasOwnProperty('id')){var data=result;data.event='pdg_ready';window.dataLayer=window.dataLayer||[];dataLayer.push(data)}},})})}