1(function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){for(var a=this;a;){if(a.matches(s))return a;a=a.parentElement}}),document.addEventListener("DOMContentLoaded",P);function P(){var s=document.getElementsByClassName("umbraco-forms-form-config");if(s.length>0){for(var a=[],o=0;o<s.length;o++){var d=s[o],u={formId:d.dataset.id,pageButtonConditions:JSON.parse(d.dataset.serializedPageButtonConditions),fieldSetConditions:JSON.parse(d.dataset.serializedFieldsetConditions),fieldConditions:JSON.parse(d.dataset.serializedFieldConditions),triggerConditionsCheckOn:d.dataset.triggerConditionsCheckOn,disableValidationDependencyCheck:d.dataset.disableValidationDependencyCheck==="true",recordValues:JSON.parse(d.dataset.serializedFieldsNotDisplayed),formElementHtmlIdPrefix:d.dataset.formElementHtmlIdPrefix};a.push(u)}S(a,!0)}else typeof umbracoFormsCollection=="undefined"?document.addEventListener("umbracoFormLoaded",O):S(umbracoFormsCollection);var f=document.getElementById("umbraco-forms-form-submitted");if(f){var p=f.dataset.formClientId;W(p)}}function S(s,a){V();for(var o=0;o<s.length;o++)O({form:s[o]},a)}function O(s,a){for(var o=a?s.form:JSON.parse(decodeURI(s.form)),d=document.querySelectorAll(".umbraco-forms-form"),u=0;u<d.length;u++){var f=d[u];o.disableValidationDependencyCheck||T(f);var p=f.querySelector(".umbraco-forms-page"),r=new R(p,o.pageButtonConditions,o.fieldSetConditions,o.fieldConditions,o.triggerConditionsCheckOn&&o.triggerConditionsCheckOn.length>0?o.triggerConditionsCheckOn:"change",o.recordValues,o.formElementHtmlIdPrefix);r.watch(),_(f)}}function W(s){document.onreadystatechange=function(){if(document.readyState=="complete"){var u=document.querySelectorAll(".field-validation-error"),f=document.querySelectorAll(".umbraco-forms-submitmessage"),p=document.querySelectorAll(".umbraco-forms-submitmessage-html"),r=document.getElementById("umbraco_form_"+s);u.length>0?a(u):f.length>0?o(f[0].parentElement):p.length>0?o(p[0]):r&&o(r)}};function a(u){for(var f=0,p=0;p<u.length;p++){var r=d(u[p]),y=r.getBoundingClientRect().top;0<y&&(y<f||f===0)&&(f=y)}f>0&&window.scrollTo(0,f)}function o(u){u.scrollIntoView({behavior:"auto",block:"start"})}function d(u){for(var f=u;f.tagName!=="BODY";){if(f.classList.contains("umbraco-forms-field"))return f;f=f.parentNode}return u}}function V(){var s,a;if(console.log("aspnet val",window.aspnetValidation),window.aspnetValidation!==void 0){var o=new aspnetValidation.ValidationService,d=function(t,e){if(e.type.toLowerCase()==="checkbox"||e.type.toLowerCase()==="radio"){for(var n=e.form.querySelectorAll("input[name='"+e.name+"']"),l=0;l<n.length;l++)if(n[l].checked===!0)return!0;return!1}return!!t};o.addProvider("requiredcb",d),o.addProvider("required",d);var u=function(t,e,n){if(!t||!n.pattern)return!0;var l=new RegExp(n.pattern);return l.test(t)};o.addProvider("umbracoforms_regex",u);var f=function(t){return function(e,n,l){var g=!1;try{g=n.attributes.type.nodeValue=="checkbox",console.log(g?"checkbox":n.attributes.type.nodeValue)}catch(h){}return n.offsetParent===null&&g==!1?!0:t(e,n,l)}};window.addEventListener("load",function(){for(var t in o.providers)o.providers[t]=f(o.providers[t])}),o.bootstrap(),window.umbracoFormsValidationService=o;var p=function(){this.form.elements.PreviousClicked.value="clicked"},r=document.querySelectorAll("[data-umb='prev-forms-form']");r.length===0&&(r=document.getElementsByClassName("prev cancel"));for(var y=0;y<r.length;y++)r[y].form.elements.PreviousClicked.value="",r[y].addEventListener("click",p,!1);s=U();for(let t=0;t<s.length;t++)a=s[t],a.addEventListener("click",function(e){e.preventDefault();var n=e.currentTarget.form;o.validateForm(n,l=>{if(l){L(n);var g=n.querySelectorAll("[type=submit]:not(.cancel)");for(let h=0;h<g.length;h++)g[h].setAttribute("disabled","disabled")}})})}else if(typeof jQuery=="function"&&$.validator&&$.validator.unobtrusive){$.validator.setDefaults({ignore:":hidden"}),$.validator.unobtrusive.adapters.addBool("requiredcb","required"),$.validator.addMethod("umbracoforms_regex",function(t,e){var n=$(e).attr("data-regex"),l=$(e).val();return l.length===0?!0:l.match(n)}),$.validator.unobtrusive.adapters.addBool("regex","umbracoforms_regex"),s=U();for(let t=0;t<s.length;t++)a=s[t],a.addEventListener("click",function(e){e.preventDefault();var n=$(this).closest("form");
1B(n[0]),n.validate(),n.valid()&&(L(n),this.setAttribute("disabled","disabled"))}.bind(a))}}function U(){return document.querySelectorAll(".umbraco-forms-form [type=submit]:not(.cancel)")}function L(s){s.requestSubmit?s.requestSubmit():s.submit()}function T(s){var a=function(){return typeof Umbraco!="undefined"&&typeof Umbraco.Sys!="undefined"},o=function(){return document.body.id==="tinymce"};if(!(a()||o())){var d=document.createElement("div");d.className="umbraco-forms missing-library",d.style.color="#fff",d.style.backgroundColor="#9d261d",d.style.padding="15px",d.style.margin="10px 0";var u="";if(s){var f=s.getElementsByClassName("umbraco-forms missing-library");if(f.length>0)return;var p=!1;(window.jQuery&&$&&$.validator!==void 0||window.aspnetValidation!==void 0)&&(p=!0),p===!1&&(u=u+"Umbraco Forms requires a validation framework to run, please read documentation for posible options."),u!==""&&(d.innerHTML=u+'<br/> <a href="https://docs.umbraco.com/umbraco-forms/developer/prepping-frontend" target="_blank" style="text-decoration:underline; color:#fff;">See Umbraco Forms Documentation</a>',s.insertBefore(d,s.childNodes[0]))}}}function _(s){D(s)}function D(s){if("MutationObserver"in window){if(window.aspnetValidation!==void 0){var a=s.getElementsByTagName("form")[0],o=function(){B(a)};a.addEventListener("submit",o,!1)}var d=new MutationObserver(function(u){for(var f=0;f<u.length;f++){var p=u[f];if(p.target.className==="field-validation-error"){H(p.target);break}}});d.observe(s,{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1,subtree:!0})}}function B(s){for(var a=s.getElementsByClassName("field-validation-error"),o=0;o<a.length;o++)a[o].className="field-validation-valid"}function H(s){for(var a=s.previousElementSibling;a;){if(a.tagName.toLowerCase()==="input"||a.tagName.toLowerCase()==="textarea"||a.tagName.toLowerCase()==="select"){a.focus();break}if(a.classList.contains("radiobuttonlist")||a.classList.contains("checkboxlist")){for(var o=0;o<a.children.length;o++){var d=a.children[o];if(d.tagName.toLowerCase()==="input"){d.focus();break}}break}a=a.previousElementSibling}}function R(s,a,o,d,u,f,p){var r={};r.form=s,r.pageButtonConditions=a,r.fieldsetConditions=o,r.fieldConditions=d,r.triggerConditionsCheckOn=u,r.values=f,r.formElementHtmlIdPrefix=p,r.dataTypes={};function y(t,e,n){var l=t.querySelectorAll("select");for(let b=0;b<l.length;b++){const i=l[b];e[i.getAttribute("id")]=i.value,n[i.getAttribute("id")]="select"}var g=t.querySelectorAll("textarea");for(let b=0;b<g.length;b++){const i=g[b];e[i.getAttribute("id")]=i.value,n[i.getAttribute("id")]="textarea"}var h=function(b){const i=b.getAttribute("id").split("_");return i.slice(0,i.length-1).join("_")},N=t.querySelectorAll("input[type=checkbox]");for(let b=0;b<N.length;b++){const i=N[b];if(i.getAttribute("id")!==r.formElementHtmlIdPrefix+i.getAttribute("name")){const v=h(i);e[v]=null,n[v]="checkbox"}else e[i.getAttribute("id")]=null,n[i.getAttribute("id")]="checkbox"}var F=t.querySelectorAll("input");for(let b=0;b<F.length;b++){const i=F[b];if((i.getAttribute("type")==="text"||i.getAttribute("type")==="number"||i.getAttribute("type")==="email"||i.getAttribute("type")==="url"||i.getAttribute("type")==="tel"||i.getAttribute("type")==="time"||i.getAttribute("type")==="date"||i.getAttribute("type")==="datetime-local"||i.getAttribute("type")==="hidden")&&(e[i.getAttribute("id")]=i.value,n[i.getAttribute("id")]="text"),i.getAttribute("type")==="radio"&&i.matches(":checked")){const v=h(i);e[v]=i.value,n[v]="radio"}if(i.getAttribute("type")==="checkbox")if(i.getAttribute("id")!==r.formElementHtmlIdPrefix+i.getAttribute("name")){const v=h(i);i.matches(":checked")&&(e[v]===null?e[v]=i.value:e[v]+=";;"+i.value)}else e[i.getAttribute("id")]=i.matches(":checked")?"true":"false"}}return r.operators={Is:function(t,e,n){if((t||"")===e)return!0;if(t==null)return e==t;n==="checkbox"&&(e.toUpperCase()==="TRUE"||e.toUpperCase()==="ON"?e="true":(e.toUpperCase()==="FALSE"||e.toUpperCase()==="OFF")&&(e="false")),t==="true;;false"&&(t="true");var l=t.split(";;"),g=l.filter(function(h){return h===e});return g.length===l.length},IsNot:function(t,e,n){if(t==null)return e!=t;t==="true;;false"&&(t="true");var l=t.split(";;"),g=l.filter(function(h){return h===e});return n==="checkbox"&&(e.toUpperCase()==="TRUE"||e.toUpperCase()==="ON"?e="true":(e.toUpperCase()==="FALSE"||e.toUpperCase()==="OFF")&&(e="false")),(t||"")!==e&&g.length!=l.length},GreaterThen:function(t,e){return isNaN(t)||isNaN(e)?t>e:parseInt(t)>parseInt(e)},LessThen:function(t,e){return isNaN(t)||isNaN(e)?t<e:parseInt(t)<parseInt(e)},StartsWith:function(t,e){return t&&t.startsWith(e)},EndsWith:function(t,e){return t&&t.endsWith(e)},Contains:function(t,e){return t&&t.indexOf(e)>-1},ContainsIgnoreCase:function(t,e){return t&&e&&t.toUpperCase().indexOf(e.toUpperCase())>=0},StartsWithIgnoreCase:function(t,e){return t&&e&&t.toUpperCase().startsWith(e.toUpperCase())},EndsWithIgnoreCase:function(t,e){return t&&e&&t.toUpperCase().endsWith(e.toUpperCase())},NotContains:function(t,e){return!t||e&&t.indexOf(e)<0},NotStartsWith:function(t,e){return!t||e&&!t.startsWith(e)},NotEndsWith:function(t,e){return!t||e&&!t.endsWith(e)},NotContainsIgnoreCase:function(t,e){return!t||e&&t.toUpperCase().indexOf(e.toUpperCase())<0},NotStartsWithIgnoreCase:function(t,e){return!t||e&&!t.toUpperCase().startsWith(e.toUpperCase())},NotEndsWithIgnoreCase:function(t,e){return!t||e&&!t.toUpperCase().endsWith(e.toUpperCase())}},r.watch=function(){var t=r.form.querySelectorAll(".datepickerfield");for(let n=0;n<t.length;n++){const l=t[n];l.addEventListener("blur",function(){if(this.value===""){var g=this.getAttribute("id"),h=g+"_1";r.values[h]="",document.getElementById(h).value=""}y(r.form,r.values,r.dataTypes),r.run()}.bind(l))}var e=r.form.querySelectorAll("input, textarea, select");for(let n=0;n<e.length;n++){const l=e[n];l.addEventListener(r.triggerConditionsCheckOn,function(){y(r.form,r.values,r.dataTypes),r.run()}.bind(l))}y(r.form,r.values,r.dataTypes),r.run()},r.run=function(){var t,e,n,l,g={};function h(c){var m=r.values[r.formElementHtmlIdPrefix+c.field],w=r.dataTypes[c.field],A=r.operators[c.operator],I=m!==null&&A(m,c.value,w);return I}function N(c){var m=!0;return r.fieldConditions[c.field]&&(m=i(c.field,r.fieldConditions[c.field])),m?h(c):!1}function F(c,m){console.log("Evaluate condition");var w=m.logicType==="Any",A=m.logicType==="All",I={},x=!1,E=!0,C,k;if(m.rules.length===0)return!1;for(k=0;k<m.rules.length;
1k++){if(C=m.rules[k],c===C.field||c===C.fieldsetId)throw new Error("Field or fieldset "+c+" has a condition on itself.");I[C.fieldsetId]===void 0&&(r.fieldsetConditions[C.fieldsetId]?(I[C.fieldsetId]=i(C.fieldsetId,r.fieldsetConditions[C.fieldsetId]),I[C.fieldsetId]||(x=!0)):I[C.fieldsetId]=!0)}if(A&&x)return!1;for(k=0;k<m.rules.length&&(C=m.rules[k],I[C.fieldsetId]?E=N(m.rules[k]):E=!1,!(w&&E||A&&!E));k++);return E}function b(c,m){var w=m.actionType==="Show",A=g[c],I;A===void 0?(g[c]=w,I=g[c]=F(c,m)):I=A;var x=!(I^w);return x}function i(c,m){return m?b(c,m):!0}function v(c,m,w){var A=i(m,w);c&&(A?c.classList.remove("umbraco-forms-hidden"):c.classList.add("umbraco-forms-hidden"))}for(t in r.pageButtonConditions)if(Object.prototype.hasOwnProperty.call(r.pageButtonConditions,t)){var q=document.getElementById(t);q&&v(q.querySelector("input[name='__next'], button[name='__next'], input[data-form-navigate='next'], button[data-form-navigate='next']"),t,r.pageButtonConditions[t],"Page")}for(n in r.fieldsetConditions)Object.prototype.hasOwnProperty.call(r.fieldsetConditions,n)&&(e=r.formElementHtmlIdPrefix+n,v(document.getElementById(e),n,r.fieldsetConditions[n],"Fieldset"));for(l in r.fieldConditions)Object.prototype.hasOwnProperty.call(r.fieldConditions,l)&&(e=r.formElementHtmlIdPrefix+l,document.getElementById(e)&&v(document.getElementById(e).closest(".umbraco-forms-field"),l,r.fieldConditions[l],"Field"))},r}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.