/home/awneajlw/www/wp-content/plugins/formidable/js/welcome-tour.js
/*! For license information please see welcome-tour.js.LICENSE.txt */
(()=>{var t={8616:t=>{t.exports=function(t,e){var r,n,o=0;function i(){var i,a,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(a=0;a<s;a++)if(c.args[a]!==arguments[a]){c=c.next;continue t}return c!==r&&(c===n&&(n=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return c={args:i,val:t.apply(null,i)},r?(r.prev=c,c.next=r):n=c,o===e.maxSize?(n=n.prev).next=null:o++,r=c,c.val}return e=e||{},i.clear=function(){r=null,n=null,o=0},i}},7604:(t,e,r)=>{var n;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(t){return function(t,e){var r,n,a,c,s,u,l,f,p,d=1,h=t.length,m="";for(n=0;n<h;n++)if("string"==typeof t[n])m+=t[n];else if("object"==typeof t[n]){if((c=t[n]).keys)for(r=e[d],a=0;a<c.keys.length;a++){if(null==r)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',c.keys[a],c.keys[a-1]));r=r[c.keys[a]]}else r=c.param_no?e[c.param_no]:e[d++];if(o.not_type.test(c.type)&&o.not_primitive.test(c.type)&&r instanceof Function&&(r=r()),o.numeric_arg.test(c.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(i("[sprintf] expecting number but found %T",r));switch(o.number.test(c.type)&&(f=r>=0),c.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,c.width?parseInt(c.width):0);break;case"e":r=c.precision?parseFloat(r).toExponential(c.precision):parseFloat(r).toExponential();break;case"f":r=c.precision?parseFloat(r).toFixed(c.precision):parseFloat(r);break;case"g":r=c.precision?String(Number(r.toPrecision(c.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=c.precision?r.substring(0,c.precision):r;break;case"t":r=String(!!r),r=c.precision?r.substring(0,c.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=c.precision?r.substring(0,c.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=c.precision?r.substring(0,c.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(c.type)?m+=r:(!o.number.test(c.type)||f&&!c.sign?p="":(p=f?"+":"-",r=r.toString().replace(o.sign,"")),u=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",l=c.width-(p+r).length,s=c.width&&l>0?u.repeat(l):"",m+=c.align?p+r+s:"0"===u?p+s+r:s+p+r)}return m}(function(t){if(c[t])return c[t];for(var e,r=t,n=[],i=0;r;){if(null!==(e=o.text.exec(r)))n.push(e[0]);else if(null!==(e=o.modulo.exec(r)))n.push("%");else{if(null===(e=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){i|=1;var a=[],s=e[2],u=[];if(null===(u=o.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(s=s.substring(u[0].length));)if(null!==(u=o.key_access.exec(s)))a.push(u[1]);else{if(null===(u=o.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}e[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return c[t]=n}(t),arguments)}function a(t,e){return i.apply(null,[t].concat(e||[]))}var c=Object.create(null);"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(n=function(){return{sprintf:i,vsprintf:a}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function e(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function n(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var i,a=document.getElementById("frm-welcome-tour");a&&(i={welcomeTour:a,checklist:a.querySelector(".frm-checklist"),dismiss:a.querySelector(".frm-checklist__dismiss"),spotlight:document.querySelector(".frm-welcome-tour-spotlight")});var c,s,u,l,f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==o(t)||null===t)throw new Error("createPageElements: initialElements must be a non-null object");var r=t;return{getElements:function(){return r},addElements:function(t){if("object"!==o(t)||null===t)throw new Error("addElements: newElements must be a non-null object");r=e(e({},r),t)}}}(i),p=f.getElements,d=f.addElements,h=r(8616),m=r.n(h);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}r(7604),m()(console.error),c={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],u={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var b={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};var g={contextDelimiter:"",onMissingKey:null};function _(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},g)this.options[r]=void 0!==e&&r in e?e[r]:g[r]}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=y(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}_.prototype.getPluralForm=function(t,e){var r,n,o,i,a=this.pluralForms[t];return a||("function"!=typeof(o=(r=this.data[t][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(t){var e=function(t){for(var e,r,n,o,i=[],a=[];e=t.match(l);){for(r=e[0],(n=t.substr(0,e.index).trim())&&i.push(n);o=a.pop();){if(u[r]){if(u[r][0]===o){r=u[r][1]||r;break}}else if(s.indexOf(o)>=0||c[o]<c[r]){a.push(o);break}i.push(o)}u[r]||a.push(r),t=t.substr(e.index+r.length)}return(t=t.trim())&&i.push(t),i.concat(a.reverse())}(t);return function(t){return function(t,e){var r,n,o,i,a,c,s=[];for(r=0;r<t.length;r++){if(a=t[r],i=b[a]){for(n=i.length,o=Array(n);n--;)o[n]=s.pop();try{c=i.apply(null,o)}catch(t){return t}}else c=e.hasOwnProperty(a)?e[a]:+a;s.push(c)}return s[0]}(e,t)}}(n),o=function(t){return+i({n:t})}),a=this.pluralForms[t]=o),a(e)},_.prototype.dcnpgettext=function(t,e,r,n,o){var i,a,c;return i=void 0===o?0:this.getPluralForm(t,o),a=r,e&&(a=e+this.options.contextDelimiter+r),(c=this.data[t][a])&&c[i]?c[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===i?r:n)};var k={"":{plural_forms:function(t){return 1===t?0:1}}},O=/^i18n\.(n?gettext|has_translation)(_|$)/;const S=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},j=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},E=function(t,e){return function(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t[e];if(j(r)&&S(n))if("function"==typeof o)if("number"==typeof i){var c={callback:o,priority:i,namespace:n};if(a[r]){var s,u=a[r].handlers;for(s=u.length;s>0&&!(i>=u[s-1].priority);s--);s===u.length?u[s]=c:u.splice(s,0,c),a.__current.forEach(function(t){t.name===r&&t.currentIndex>=s&&t.currentIndex++})}else a[r]={handlers:[c],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,n,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},P=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,o){var i=t[e];if(j(n)&&(r||S(o))){if(!i[n])return 0;var a=0;if(r)a=i[n].handlers.length,i[n]={runs:i[n].runs,handlers:[]};else for(var c=i[n].handlers,s=function(t){c[t].namespace===o&&(c.splice(t,1),a++,i.__current.forEach(function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--}))},u=c.length-1;u>=0;u--)s(u);return"hookRemoved"!==n&&t.doAction("hookRemoved",n,o),a}}},F=function(t,e){return function(r,n){var o=t[e];return void 0!==n?r in o&&o[r].handlers.some(function(t){return t.namespace===n}):r in o}},T=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var o=t[e];o[n]||(o[n]={handlers:[],runs:0}),o[n].runs++;for(var i=o[n].handlers,a=arguments.length,c=new Array(a>1?a-1:0),s=1;s<a;s++)c[s-1]=arguments[s];if(!i||!i.length)return r?c[0]:void 0;var u={name:n,currentIndex:0};for(o.__current.push(u);u.currentIndex<i.length;){var l=i[u.currentIndex].callback.apply(null,c);r&&(c[0]=l),u.currentIndex++}return o.__current.pop(),r?c[0]:void 0}},A=function(t,e){return function(){var r,n,o=t[e];return null!==(r=null===(n=o.__current[o.__current.length-1])||void 0===n?void 0:n.name)&&void 0!==r?r:null}},L=function(t,e){return function(r){var n=t[e];return void 0===r?void 0!==n.__current[0]:!!n.__current[0]&&r===n.__current[0].name}},D=function(t,e){return function(r){var n=t[e];if(j(r))return n[r]&&n[r].runs?n[r].runs:0}};var I=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=E(this,"actions"),this.addFilter=E(this,"filters"),this.removeAction=P(this,"actions"),this.removeFilter=P(this,"filters"),this.hasAction=F(this,"actions"),this.hasFilter=F(this,"filters"),this.removeAllActions=P(this,"actions",!0),this.removeAllFilters=P(this,"filters",!0),this.doAction=T(this,"actions"),this.applyFilters=T(this,"filters",!0),this.currentAction=A(this,"actions"),this.currentFilter=A(this,"filters"),this.doingAction=L(this,"actions"),this.doingFilter=L(this,"filters"),this.didAction=D(this,"actions"),this.didFilter=D(this,"filters")},C=new I,R=(C.addAction,C.addFilter,C.removeAction,C.removeFilter,C.hasAction,C.hasFilter,C.removeAllActions,C.removeAllFilters,C.doAction,C.applyFilters,C.currentAction,C.currentFilter,C.doingAction,C.doingFilter,C.didAction,C.didFilter,C.actions,C.filters,function(t,e,r){var n=new _({}),o=new Set,i=function(){o.forEach(function(t){return t()})},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";n.data[e]=x(x(x({},k),n.data[e]),t),n.data[e][""]=x(x({},k[""]),n.data[e][""])},c=function(t,e){a(t,e),i()},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return n.data[t]||a(void 0,t),n.dcnpgettext(t,e,r,o,i)},u=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},l=function(t,e,n){var o=s(n,e,t);return r?(o=r.applyFilters("i18n.gettext_with_context",o,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),o,t,e,n)):o};if(r){var f=function(t){O.test(t)&&i()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[t]},setLocaleData:c,resetLocaleData:function(t,e){n.data={},n.pluralForms={},c(t,e)},subscribe:function(t){return o.add(t),function(){return o.delete(t)}},__:function(t,e){var n=s(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:l,_n:function(t,e,n,o){var i=s(o,void 0,t,e,n);return r?(i=r.applyFilters("i18n.ngettext",i,t,e,n,o),r.applyFilters("i18n.ngettext_"+u(o),i,t,e,n,o)):i},_nx:function(t,e,n,o,i){var a=s(i,o,t,e,n);return r?(a=r.applyFilters("i18n.ngettext_with_context",a,t,e,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+u(i),a,t,e,n,o,i)):a},isRTL:function(){return"rtl"===l("ltr","text direction")},hasTranslation:function(t,e,o){var i,a,c=e?e+""+t:t,s=!(null===(i=n.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[c]);return r&&(s=r.applyFilters("i18n.has_translation",s,t,e,o),s=r.applyFilters("i18n.has_translation_"+u(o),s,t,e,o)),s}}}(0,0,C));R.getLocaleData.bind(R),R.setLocaleData.bind(R),R.resetLocaleData.bind(R),R.subscribe.bind(R);var G=R.__.bind(R),N=(R._x.bind(R),R._n.bind(R),R._nx.bind(R),R.isRTL.bind(R),R.hasTranslation.bind(R),Promise.resolve(),frmDom),B=N.div,M=(N.span,N.tag),q=N.a,z=(N.img,N.svg,frmDom.modal),U=z.maybeCreateModal,$=(z.footerButton,frmDom.util),K=$.onClickPreventDefault,Z=($.documentOn,frmDom.ajax.doJsonPost),H=new URL(window.location.href).searchParams,X=window.frmGlobal,J=(X.url,X.nonce,window.frmWelcomeTourVars),W=J.IS_DASHBOARD_PAGE,V=J.IS_WELCOME_TOUR_SEEN,Y=(J.CHECKLIST_STEPS,J.TOUR_URL),Q=J.PROGRESS_BAR_PERCENT;const tt=function(){var t,e;W&&!V&&function(t){p().beginTourModal||d({beginTourModal:t})}(((t=U("frm_get_started_modal",{title:G("Get Started with Formidable Forms","formidable"),content:(e={className:"frm-px-md",text:G("Here's a quick checklist to help you set up and explore the key features of the plugin, so you can start building powerful forms in no time.","formidable")},M("p",e)),footer:B({className:"frmcenter",child:q({className:"button button-primary frm-button-primary",href:Y,text:G("Begin Tour","formidable")})}),width:"440px",dialogClass:"frm-fadein-up-back"})).classList.add("frm_wrap","frm-welcome-tour-modal","frmcenter"),t))};function et(t,e){if(e.offsetParent){var r=e.getBoundingClientRect();if(0!==r.width&&0!==r.height){var n,o=t.dataset.leftPosition;switch(o){case"middle":n=r.left+Math.round(r.width/2);break;case"end":n=r.right;break;default:n=r.left+parseInt(o)}t.style.left="".concat(n||r.left,"px");var i="bottom"===t.dataset.placement?r.top+r.height:r.top+Math.round(r.height/2);t.style.top="".concat(i,"px")}}}function rt(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return nt(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,c=0,s=t,p.n=r,a}};function d(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];r>3?(o=h===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,s=h;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,s)):p.n=s:p.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?s:r.call(n,p))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(nt(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,nt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,nt(f,"constructor",u),nt(u,"constructor",s),s.displayName="GeneratorFunction",nt(u,o,"GeneratorFunction"),nt(f),nt(f,o,"Generator"),nt(f,n,function(){return this}),nt(f,"toString",function(){return"[object Generator]"}),(rt=function(){return{w:i,m:p}})()}function nt(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}nt=function(t,e,r,n){function i(e,r){nt(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},nt(t,e,r,n)}function ot(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}var it="frm-checklist__step";function at(t){return ct.apply(this,arguments)}function ct(){var t;return t=rt().m(function t(e){var r,n,o,i;return rt().w(function(t){for(;;)switch(t.p=t.n){case 0:if(p().checklist){t.n=1;break}return t.a(2);case 1:if(r=document.getElementById("".concat(it,"-").concat(e))){t.n=2;break}return t.a(2);case 2:if(r.classList.contains("".concat(it,"--active"))){t.n=3;break}return t.a(2);case 3:return(n=new FormData).append("step_key",e),t.p=4,t.n=5,Z("mark_checklist_step_as_completed",n);case 5:if(r.classList.remove("".concat(it,"--active")),r.classList.add("".concat(it,"--completed")),o=r.nextElementSibling){t.n=6;break}return t.a(2);case 6:o.classList.add("".concat(it,"--active")),o.dataset.link&&st(o),t.n=8;break;case 7:t.p=7,i=t.v,console.error("Failed to mark step as completed:",i);case 8:return t.a(2)}},t,null,[[4,7]])}),ct=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){ot(i,n,o,a,c,"next",t)}function c(t){ot(i,n,o,a,c,"throw",t)}a(void 0)})},ct.apply(this,arguments)}function st(t){var e=t.querySelector(".frm-checklist__step-title");if(null==e||!e.querySelector("a")){var r=q({href:t.dataset.link,className:"frm-h-stack-xs",children:Array.from(e.childNodes)});e.replaceChildren(r)}}function ut(){var t=p(),e=t.welcomeTour,r=t.spotlight;null==e||e.remove(),null==r||r.remove(),Z("dismiss_welcome_tour",new FormData)}function lt(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return ft(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,c=0,s=t,p.n=r,a}};function d(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];r>3?(o=h===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,s=h;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,s)):p.n=s:p.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?s:r.call(n,p))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(ft(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,ft(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,ft(f,"constructor",u),ft(u,"constructor",s),s.displayName="GeneratorFunction",ft(u,o,"GeneratorFunction"),ft(f),ft(f,o,"Generator"),ft(f,n,function(){return this}),ft(f,"toString",function(){return"[object Generator]"}),(lt=function(){return{w:i,m:p}})()}function ft(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ft=function(t,e,r,n){function i(e,r){ft(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},ft(t,e,r,n)}function pt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function dt(){return ht.apply(this,arguments)}function ht(){var t;return t=lt().m(function t(){return lt().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,at("style-form");case 1:window.location.reload();case 2:return t.a(2)}},t)}),ht=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){pt(i,n,o,a,c,"next",t)}function c(t){pt(i,n,o,a,c,"throw",t)}a(void 0)})},ht.apply(this,arguments)}var mt;mt=function(){var t,e;tt(),document.querySelectorAll(".frm-spotlight").forEach(function(t){setTimeout(function(){!function(t){var e=document.querySelector(t.dataset.target);e&&(document.body.appendChild(t),function(t){for(var e=[window],r=t.parentElement;r&&document.body!==r;){var n=getComputedStyle(r),o=n.overflow,i=n.overflowY;(["auto","scroll"].includes(o)||["auto","scroll"].includes(i))&&e.push(r),r=r.parentElement}return e}(e).forEach(function(r){r.addEventListener("scroll",function(){et(t,e),function(t){var e=document.getElementById("frm_top_bar");if(e){var r=t.getBoundingClientRect().top+24<=e.getBoundingClientRect().bottom;r&&!t.classList.contains("frm-fadeout")?(t.classList.remove("frm-fadein"),t.classList.add("frm-fadeout")):r||t.classList.contains("frm-fadein")||(t.classList.remove("frm-fadeout"),t.classList.add("frm-fadein"))}}(t)},{passive:!0})}),window.addEventListener("resize",function(){return et(t,e)},{passive:!0}),setTimeout(function(){et(t,e),t.classList.remove("frm-force-hidden")},200))}(t)},0)}),(e=document.querySelector(".frm-welcome-tour .frm-checklist__progress-fill"))&&(e.style.width="".concat(Q,"%")),document.addEventListener("frm_added_field",function(){return at("add-fields")}),function(){var t=p().checklist;t&&t.querySelector(".frm-checklist__header").addEventListener("click",function(){return function(t){t.classList.toggle("frm-checklist--collapsed")}(t)})}(),(t=p().dismiss)&&t.addEventListener("click",ut),"formidable-styles"===H.get("page")&&K(document.getElementById("frm_submit_side_top"),dt)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",mt):mt())})()})();