PageSourceSearch

https://econoomy.com/wp-content/cache/min/1/widget/latest/webview.js?ver=1791349746

js econoomy.com collected 2026-10-07 06:26:25 UTC 59,445 bytes, 354 lines download raw bytes

1(()=>{(function(){var e=Object.defineProperty,t=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},r,i,a,o,s,c=t((()=>{r=``,i=()=>{var e;let t=document.currentScript;r=(e=t==null?void 0:t.nonce)==null?``:e},a=e=>{var t;return(t=e==null?void 0:e.getAttribute(`csp-nonce`))==null?``:t},o=e=>{let t=e.getRootNode(),n=t instanceof ShadowRoot?t.host:null;return a(e.closest(`[csp-nonce]`))||a(n)||r},s=(e,t)=>(t&&e.setAttribute(`nonce`,t),e)})),l,u,d,f,p,m,h,g,_,v=t((()=>{l=`data-hf-style`,u=(e,t)=>!!(t&&`replaceSync`in t.prototype&&`adoptedStyleSheets`in e),d=e=>/@import\b/i.test(e),f=(e,t,n)=>{var r;let i=e.ownerDocument,a=(r=i.defaultView)==null?void 0:r.CSSStyleSheet;if(!d(t)&&u(e,a)){let n=new a;n.replaceSync(t),e.adoptedStyleSheets=[...e.adoptedStyleSheets,n];return}let o=i.createElement(`style`);n&&o.setAttribute(`nonce`,n),o.textContent=t,e.appendChild(o)},p=`!important`,m=e=>e.includes(`-`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),h=(e,t,n)=>{for(let r of Object.keys(t))r in n||e.style.removeProperty(m(r));for(let[t,r]of Object.entries(n)){let n=String(r).trim().endsWith(p);e.style.setProperty(m(t),n?String(r).replace(p,``).trim():r,n?`important`:``)}},g=e=>{e.querySelectorAll(`[style]`).forEach(e=>{var t;let n=(t=e.getAttribute(`style`))==null?``:t;e.removeAttribute(`style`),n.trim()&&e.setAttribute(l,n)})},_=e=>{e.querySelectorAll(`[${l}]`).forEach(e=>{var t;e.style.cssText=(t=e.getAttribute(`data-hf-style`))==null?``:t,e.removeAttribute(l)})}})),y,ee,te,ne,re=t((()=>{v(),y=(e,t)=>[...t.querySelectorAll(e)],ee=e=>{let t=new DOMParser().parseFromString(e,`text/html`),n=t.querySelector(`body`);return g(n),{head:t.querySelector(`head`),body:n}},te=(e,t,n)=>{let r=RegExp(`heyflow\\[(?:'|")${t}(?:'|")\\]`,`g`),i=`heyflow['${n}']`;e.head.innerHTML=e.head.innerHTML.replace(r,i),e.body.innerHTML=e.body.innerHTML.replace(r,i);let a=e.head.querySelector(`#window-props`);return a&&(a.innerHTML=a.innerHTML.replace(t,n)),e},ne=()=>{let e=document.querySelectorAll(`heyflow-wrapper`);return Array.from(e).reduce((e,t)=>{let n=t.getAttribute(`flow-id`);return n&&e.push(n),e},[])}})),b,x,ie,ae=t((()=>{b=()=>({VITE_FLOW_URL_PATTERN:`https://mini-serve.prd.heyflow.com/[FLOW_ID]`,VITE_API_ENDPOINT:`https://api.prd.heyflow.com`}),x=e=>{for(let[t,n]of Object.entries(e))if(n===void 0)throw Error(`Missing variable ${t} in env`);return e},ie=x(b())}));function S(e){"@babel/helpers - typeof";return S=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},S(e)}var oe=t((()=>{}));function se(e,t){if(S(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(S(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ce=t((()=>{oe()}));function le(e){var t=se(e,`string`);return S(t)==`symbol`?t:t+``}var ue=t((()=>{oe(),ce()}));function de(e,t,n){return(t=le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe=t((()=>{ue()}));function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pe(Object(n),!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var me=t((()=>{fe()})),he,ge,w,_e=t((()=>{ae(),re(),me(),{VITE_API_ENDPOINT:he}=ie,ge=({flowID:e,embeddedFlowIDs:t,message:n,severity:r,data:i,embedIndex:a,source:o})=>{let s=C({flowID:e,embeddedFlowIDs:t,message:n,severity:r,userAgent:window.navigator.userAgent,hostname:window.location.hostname,pathname:window.location.pathname,embedIndex:a,clientTimestamp:new Date().toISOString(),source:o,sessionID:void 0},i?{data:i}:{});setTimeout(async()=>{var t,n;if(a!==void 0){var r,i;let t=(r=window.heyflow)==null?void 0:r[`${e}-${a}`];s.sessionID=t==null||(i=t.runtime)==null?void 0:i.sessionId}let o=`${he}/widget/logs`;if(typeof((t=window)==null||(t=t.navigator)==null?void 0:t.sendBeacon)==`function`){window.navigator.sendBeacon(o,JSON.stringify(s))?console.debug(`[Widget Logs] Successfully sent log via sendBeacon`):console.warn(`[Widget Logs] Failed to send log via sendBeacon`);return}console.debug(`[Widget Logs] Sending log via fetch`),await fetch(o,{method:`POST`,headers:{"Content-Type":`application/json`,"x-heyflow-session-id":(n=s.sessionID)==null?``:n},body:JSON.stringify(s)}).catch(e=>{console.error(`Error sending widget log:`,e,o,s)})},100)},w=({message:e,error:t,flowID:n,embedIndex:r,source:i})=>{let a={message:e,severity:`error`,data:{error:`${t.name} ${t.message}`}};if(n)ge(C(C({},a),{},{flowID:n,embedIndex:r,source:i}));else{let e=ne();e.length>0&&ge(C(C({},a),{},{embeddedFlowIDs:e,source:i}))}}}));c(),_e();var ve=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ye,be,xe,Se,Ce,we,Te,Ee,De=t((()=>{ye=window,be=ye.ShadowRoot&&(ye.ShadyCSS===void 0||ye.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,xe=Symbol(),Se=new WeakMap,Ce=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==xe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(be&&e===void 0){let n=t!==void 0&&t.length===1;
1n&&(e=Se.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Se.set(t,e))}return e}toString(){return this.cssText}},we=e=>new Ce(typeof e==`string`?e:e+``,void 0,xe),Te=(e,t)=>{be?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{let n=document.createElement(`style`),r=ye.litNonce;r!==void 0&&n.setAttribute(`nonce`,r),n.textContent=t.cssText,e.appendChild(n)}))},Ee=be?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return we(t)})(e):e})),Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,T,Le=t((()=>{De(),ke=window,Ae=ke.trustedTypes,je=Ae?Ae.emptyScript:``,Me=ke.reactiveElementPolyfillSupport,Ne={toAttribute(e,t){switch(t){case Boolean:e=e?je:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},Pe=(e,t)=>t!==e&&(t==t||e==e),Fe={attribute:!0,type:String,converter:Ne,reflect:!1,hasChanged:Pe},Ie=`finalized`,T=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)==null?this.h=[]:t).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach(((t,n)=>{let r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=Fe){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e==`symbol`?Symbol():`__`+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){let i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Fe}static finalize(){if(this.hasOwnProperty(Ie))return!1;this[Ie]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty(`properties`)){let e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(Ee(e))}else e!==void 0&&t.push(Ee(e));return t}static _$Ep(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)==null||e.forEach((e=>e(this)))}addController(e){var t,n;((t=this._$ES)==null?this._$ES=[]:t).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}
1removeController(e){var t;(t=this._$ES)==null||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;let t=(e=this.shadowRoot)==null?this.attachShadow(this.constructor.shadowRootOptions):e;return Te(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)==null||e.forEach((e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)==null||e.forEach((e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Fe){var r;let i=this.constructor._$Ep(e,n);if(i!==void 0&&!0===n.reflect){let a=(((r=n.converter)==null?void 0:r.toAttribute)===void 0?Ne:n.converter).toAttribute(t,n.type);this._$El=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(e,t){var n;let r=this.constructor,i=r._$Ev.get(e);if(i!==void 0&&this._$El!==i){let e=r.getPropertyOptions(i),a=typeof e.converter==`function`?{fromAttribute:e.converter}:((n=e.converter)==null?void 0:n.fromAttribute)===void 0?Ne:e.converter;this._$El=i,this[i]=a.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Pe)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)==null||e.forEach((e=>{var t;return(t=e.hostUpdate)==null?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)==null||t.forEach((e=>{var t;return(t=e.hostUpdated)==null?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}},T[Ie]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:`open`},Me==null||Me({ReactiveElement:T}),((Oe=ke.reactiveElementVersions)==null?ke.reactiveElementVersions=[]:Oe).push(`1.6.3`)}));function Re(e,t){if(!Array.isArray(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Ve===void 0?t:Ve.createHTML(t)}function E(e,t,n=e,r){var i,a,o,s;if(t===I)return t;let c=r===void 0?n._$Cl:(i=n._$Co)==null?void 0:i[r],l=M(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)==null||a.call(c,!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,n,r)),r===void 0?n._$Cl=c:((o=(s=n)._$Co)==null?s._$Co=[]:o)[r]=c),c!==void 0&&(t=E(e,c._$AS(e,t.values),c,r)),t}var ze,Be,D,Ve,O,k,He,Ue,A,j,M,We,Ge,Ke,N,qe,Je,P,Ye,Xe,Ze,Qe,F,I,L,$e,R,et,tt,nt,z,B,rt,it,at,ot,st,ct,lt,ut,V=t((()=>{Be=window,D=Be.trustedTypes,Ve=D?D.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,O=`$lit$`,k=`lit$${(Math.random()+``).slice(9)}$`,He=`?`+k,Ue=`<${He}>`,A=document,j=()=>A.createComment(``),M=e=>e===null||typeof e!=`object`&&typeof e!=`function`,We=Array.isArray,Ge=e=>We(e)||typeof(e==null?void 0:e[Symbol.iterator])==`function`,Ke=`[ 	
2\f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qe=/-->/g,Je=/>/g,P=RegExp(`>|${Ke}(?:([^\\s"'>=/]+)(${Ke}*=${Ke}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Ye=/'/g,Xe=/"/g,Ze=/^(?:script|style|textarea|title)$/i,Qe=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),F=Qe(1),Qe(2),I=Symbol.for(`lit-noChange`),L=Symbol.for(`lit-nothing`),$e=new WeakMap,R=A.createTreeWalker(A,129,null,!1),et=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:``,o=N;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===N?c[1]===`!--`?o=qe:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=P):(Ze.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=P):o=Je:o===P?c[0]===`>`?(o=i==null?N:i,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?P:c[3]===`"`?Xe:Ye):o===Xe||o===Ye?o=P:o===qe||o===Je?o=N:(o=P,i=void 0);let d=o===P&&e[t+1].startsWith(`/>`)?` `:``;a+=o===N?n+Ue:l>=0?(r.push(s),n.slice(0,l)+O+n.slice(l)+k+d):n+k+(l===-2?(r.push(void 0),t):d)}return[Re(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:``)),r]},tt=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=et(t,n);if(this.el=e.createElement(l,r),R.currentNode=this.el.content,n===2){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;(i=R.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes()){let e=[];for(let t of i.getAttributeNames())if(t.endsWith(O)||t.startsWith(k)){let n=u[o++];if(e.push(t),n!==void 0){let e=i.getAttribute(n.toLowerCase()+O).split(k),t=/([.?@])?(.*)/.exec(n);c.push({type:1,index:a,name:t[2],strings:e,ctor:t[1]===`.`?rt:t[1]===`?`?at:t[1]===`@`?ot:B})}else c.push({type:6,index:a})}for(let t of e)i.removeAttribute(t)}if(Ze.test(i.tagName)){let e=i.textContent.split(k),t=e.length-1;if(t>0){i.textContent=D?D.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],j()),R.nextNode(),c.push({type:2,index:++a});i.append(e[t],j())}}}else if(i.nodeType===8){if(i.data===He)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(k,e+1))!==-1;)c.push({type:7,index:a}),e+=k.length-1}}a++}}static createElement(e,t){let n=A.createElement(`template`);return n.innerHTML=e,n}},nt=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:n},parts:r}=this._$AD,i=((t=e==null?void 0:e.creationScope)==null?A:t).importNode(n,!0);R.currentNode=i;let a=R.nextNode(),o=0,s=0,c=r[0];for(;c!==void 0;){if(o===c.index){let t;c.type===2?t=new z(a,a.nextSibling,this,e):c.type===1?t=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(t=new st(a,this,e)),this._$AV.push(t),c=r[++s]}o!==(c==null?void 0:c.index)&&(a=R.nextNode(),o++)}return R.currentNode=A,i}v(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},z=class e{constructor(e,t,n,r){var i;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(i=r==null?void 0:r.isConnected)==null||i}get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)==null?this._$Cp:t}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=E(this,e,t),M(e)?e===L||e==null||e===``?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==I&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Ge(e)?this.T(e):this._(e):this.$(e):this.g(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==L&&M(this._$AH)?this._$AA.nextSibling.data=e:this.$(A.createTextNode(e)),this._$AH=e}g(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=tt.createElement(Re(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)==null?void 0:t._$AD)===i)this._$AH.v(n);else{let e=new nt(i,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=$e.get(e.strings);return t===void 0&&$e.set(e.strings,t=new tt(e)),t}T(t){We(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.k(j()),this.k(j()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;
2for((n=this._$AP)==null||n.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)==null||t.call(this,e))}},B=class{constructor(e,t,n,r,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=E(this,e,t,0),a=!M(e)||e!==this._$AH&&e!==I,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=E(this,r[n+o],t,o),s===I&&(s=this._$AH[o]),a||(a=!M(s)||s!==this._$AH[o]),s===L?e=L:e!==L&&(e+=(s==null?``:s)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e==null?``:e)}},rt=class extends B{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}},it=D?D.emptyScript:``,at=class extends B{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}},ot=class extends B{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){var n;if((e=(n=E(this,e,t,0))==null?L:n)===I)return;let r=this._$AH,i=e===L&&r!==L||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==L&&(r===L||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH==`function`?this._$AH.call((n=(t=this.options)==null?void 0:t.host)==null?this.element:n,e):this._$AH.handleEvent(e)}},st=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){E(this,e)}},ct={O,P:k,A:He,C:1,M:et,L:nt,R:Ge,D:E,I:z,V:B,H:at,N:ot,U:rt,F:st},lt=Be.litHtmlPolyfillSupport,lt==null||lt(tt,z),((ze=Be.litHtmlVersions)==null?Be.litHtmlVersions=[]:ze).push(`2.8.0`),ut=(e,t,n)=>{var r,i;let a=(r=n==null?void 0:n.renderBefore)==null?t:r,o=a._$litPart$;if(o===void 0){let e=(i=n==null?void 0:n.renderBefore)==null?null:i;a._$litPart$=o=new z(t.insertBefore(j(),e),e,void 0,n==null?{}:n)}return o._$AI(e),o}})),dt,ft,H,pt,mt=t((()=>{Le(),Le(),V(),V(),H=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;let t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ut(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return I}},H.finalized=!0,H._$litElement$=!0,(dt=globalThis.litElementHydrateSupport)==null||dt.call(globalThis,{LitElement:H}),pt=globalThis.litElementPolyfillSupport,pt==null||pt({LitElement:H}),((ft=globalThis.litElementVersions)==null?globalThis.litElementVersions=[]:ft).push(`3.3.3`)})),ht=t((()=>{})),gt=t((()=>{Le(),V(),mt(),ht()}));function _t(e,t){customElements.get(e)===void 0&&customElements.define(e,t)}var vt=t((()=>{})),yt=n({LoaderElement:()=>St,default:()=>xt}),bt,xt,St,Ct=t((()=>{gt(),vt(),v(),bt=`
3  div {
4    height: 100%;
5    display: flex;
6    justify-content: center;
7    align-items: center;
8    flex-direction: column;
9    gap: 2rem;
10  }
11  img {
12    width: 8rem;
13  }
14  #dots #dot1 {
15    animation: load 0.8s infinite;
16  }
17  #dots #dot2 {
18    animation: load 0.8s infinite;
19    animation-delay: 0.1s;
20  }
21  #dots #dot3 {
22    animation: load 0.8s infinite;
23    animation-delay: 0.2s;
24  }
25  @keyframes load {
26    0% {
27      opacity: 0;
28    }
29    50% {
30      opacity: 1;
31    }
32    100% {
33      opacity: 0;
34    }
35  }
36`,xt=()=>_t(`loader-element`,St),St=class extends H{constructor(...e){super(...e),this.stylesAdopted=!1}connectedCallback(){super.connectedCallback(),!this.stylesAdopted&&this.shadowRoot&&(this.stylesAdopted=!0,f(this.shadowRoot,bt,o(this)))}render(){return F`<div>
37      <svg
38        id="dots"
39        width="75px"
40        height="16px"
41        viewBox="0 0 132 70"
42        version="1.1"
43        xmlns="http://www.w3.org/2000/svg"
44      >
45        <title>dots</title>
46        <defs></defs>
47        <g
48          id="Page-1"
49          stroke="none"
50          stroke-width="1"
51          fill="darkgrey"
52          fill-rule="evenodd"
53        >
54          <g id="dots">
55            <circle id="dot1" cx="-40" cy="35" r="35"></circle>
56            <circle id="dot2" cx="65" cy="35" r="35"></circle>
57            <circle id="dot3" cx="165" cy="35" r="35"></circle>
58          </g>
59        </g>
60      </svg>
61    </div>`}}})),wt=t((()=>{}));function U(e){return(t,n)=>n===void 0?Tt(e,t):Et(e,t,n)}var Tt,Et,Dt=t((()=>{me(),Tt=(e,t)=>t.kind===`method`&&t.descriptor&&!(`value`in t.descriptor)?C(C({},t),{},{finisher(n){n.createProperty(t.key,e)}}):{kind:`field`,key:Symbol(),placement:`own`,descriptor:{},originalKey:t.key,initializer(){typeof t.initializer==`function`&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}},Et=(e,t,n)=>{t.constructor.createProperty(n,e)}}));function Ot(e){return U(C(C({},e),{},{state:!0}))}var kt=t((()=>{Dt(),me()})),At=t((()=>{})),jt=t((()=>{})),Mt=t((()=>{})),Nt=t((()=>{})),Pt,Ft=t((()=>{(Pt=window.HTMLSlotElement)==null||Pt.prototype.assignedElements})),It=t((()=>{Ft()})),Lt=t((()=>{wt(),Dt(),kt(),At(),jt(),Mt(),Nt(),Ft(),It()})),Rt,zt,Bt,Vt=t((()=>{Rt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},zt=e=>(...t)=>({_$litDirective$:e,values:t}),Bt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}})),W,Ht=t((()=>{V(),Vt(),W=zt(class extends Bt{constructor(e){var t;if(super(e),e.type!==Rt.ATTRIBUTE||e.name!==`class`||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter((t=>e[t])).join(` `)+` `}update(e,[t]){var n,r;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter((e=>e!==``))));for(let e in t)t[e]&&!((n=this.nt)!=null&&n.has(e))&&this.it.add(e);return this.render(t)}let i=e.element.classList;this.it.forEach((e=>{e in t||(i.remove(e),this.it.delete(e))}));for(let e in t){let n=!!t[e];n===this.it.has(e)||(r=this.nt)!=null&&r.has(e)||(n?(i.add(e),this.it.add(e)):(i.remove(e),this.it.delete(e)))}return I}})})),Ut=t((()=>{Ht()})),Wt,Gt,Kt=t((()=>{V(),{I:Wt}=ct,Gt=e=>e.strings===void 0}));function qt(e){this._$AN===void 0?this._$AM=e:(Yt(this),this._$AM=e,Xt(this))}function Jt(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0){if(t){if(Array.isArray(r))for(let e=n;e<r.length;e++)G(r[e],!1),Yt(r[e]);else r!=null&&(G(r,!1),Yt(r))}else G(this,e)}}var G,Yt,Xt,Zt,Qt,$t=t((()=>{Kt(),Vt(),G=(e,t)=>{var n,r;let i=e._$AN;if(i===void 0)return!1;for(let e of i)(r=(n=e)._$AO)==null||r.call(n,t,!1),G(e,t);return!0},Yt=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},Xt=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Zt(t)}},Zt=e=>{var t,n;e.type==Rt.CHILD&&((t=e)._$AP!=null||(t._$AP=Jt),(n=e)._$AQ!=null||(n._$AQ=qt))},Qt=class extends Bt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Xt(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?(n=this.reconnected)==null||n.call(this):(r=this.disconnected)==null||r.call(this)),t&&(G(this,e),Yt(this))}setValue(e){if(Gt(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}})),en,tn,nn,rn,an=t((()=>{V(),$t(),Vt(),en=()=>new tn,tn=class{},nn=new WeakMap,rn=zt(class extends Qt{render(e){return L}update(e,[t]){var n;let r=t!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.dt=(n=e.options)==null?void 0:n.host,this.ot(this.lt=e.element)),L}ot(e){var t;if(typeof this.G==`function`){let n=(t=this.dt)==null?globalThis:t,r=nn.get(n);r===void 0&&(r=new WeakMap,nn.set(n,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.dt,e)}else this.G.value=e}get rt(){var e,t,n;return typeof this.G==`function`?(t=nn.get((e=this.dt)==null?globalThis:e))==null?void 0:t.get(this.G):(n=this.G)==null?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}})})),on=t((()=>{an()})),sn,cn=t((()=>{sn=`@keyframes slideInFromBottom {
62  0% {
63    opacity: 0;
64    transform: translateY(20%);
65  }
66  100% {
67    opacity: 1;
68    transform: translateY(0);
69  }
70}
71
72@keyframes slideOutToBottom {
73  0% {
74    opacity: 1;
75    transform: translateY(0);
76  }
77  100% {
78    opacity: 0;
79    transform: translateY(20%);
80  }
81}
82
83.hey__modal-wrapper {
84  margin: 0 auto;
85  position: absolute;
86  left: -10000px;
87  top: 0;
88  width: 100%;
89  height: 100%;
90  z-index: -10000;
91}
92
93.hey__modal-wrapper-visible {
94  visibility: visible !important;
95  z-index: 1000;
96  left: 0;
97}
98
99.hey__modal {
100  position: fixed;
101  opacity: 0;
102  top: 0;
103  left: 0;
104  z-index: 1001;
105  transition: top 0.2s;
106}
107
108.hey__modal_web-component {
109  top: 0;
110  left: 0;
111  right: 0;
112  bottom: 0;
113  max-width: 100vw;
114}
115
116.hey__modal-web-component-wrapper {
117  position: absolute;
118  z-index: 1001;
119  overflow-y: scroll;
120  scrollbar-width: none;
121  width: fit-content;
122  max-height: 100%;
123  max-width: 100%;
124  top: 50%;
125  left: 50%;
126  transform: translate(-50%, -50%);
127
128  &::-webkit-scrollbar {
129    display: none;
130  }
131}
132
133.hey__modal-web-component-wrapper_with-close-btn {
134  // space for the close button
135  padding: 0 20px;
136  max-width: calc(100% - 40px);
137
138  &.hey__modal-web-component-wrapper_auto-width {
139    padding: 0;
140    max-width: 100%;
141  }
142}
143
144.hey__modal-web-component-wrapper_auto-width {
145  width: 100%;
146}
147
148.hey__modal-visible {
149  opacity: 1;
150  animation: 0.2s ease-out 0s 1 slideInFromBottom;
151}
152
153.hey__modal-hide {
154  animation: 0.2s ease-out 0s 1 slideOutToBottom;
155  opacity: 0;
156  z-index: -1000;
157}
158
159.hey__modal-full-screen {
160  top: 0 !important;
161  left: 0 !important;
162  height: 100%;
163  width: 100% !important;
164  overflow: scroll;
165
166  ::slotted(heyflow-wrapper) {
167    --heyflow-widget-height: 100%;
168  }
169}
170
171.hey__modal-full-height {
172  height: 100%;
173
174  iframe {
175    height: 100% !important;
176  }
177}
178
179.hey__overlay {
180  position: fixed;
181  display: none;
182  opacity: 0;
183  left: 0;
184  top: 0;
185  background: rgba(0, 0, 0, 0.75);
186  height: 100%;
187  width: 100%;
188  z-index: -999;
189  transition: background, 0.2s;
190}
191
192.hey__overlay-visible {
193  display: block;
194  opacity: 1;
195  z-index: 999;
196}
197
198.hey__close-modal-button {
199  outline: none;
200  font: inherit;
201  visibility: visible;
202  position: absolute;
203  cursor: pointer;
204  transition: top 0.2s ease 0s;
205  display: flex;
206  align-items: center;
207  justify-content: center;
208  top: 8px;
209  right: 8px;
210  z-index: 6;
211  appearance: none;
212  background: #cbcbcf;
213  border: 0;
214  height: 32px;
215  width: 32px;
216  border-radius: 50%;
217  padding: 0;
218  color: #56565d;
219
220  &:hover {
221    background: #27272a;
222    color: #c8c8ca;
223  }
224
225  svg {
226    width: 12px;
227    height: 12px;
228  }
229}
230
231.hey__close-modal-button_full-screen {
232  top: 5px;
233  right: 5px;
234}
235
236.hey__modal-full-height .hey__close-modal-button {
237  top: 0;
238}
239`}));function K(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ln=t((()=>{})),un=n({ModalElement:()=>q,default:()=>pn}),dn,fn,pn,q,mn=t((()=>{gt(),Lt(),Ut(),on(),cn(),c(),vt(),v(),ln(),dn=`heyflow-modal-element:open`,fn=`heyflow-modal-element:closed`,pn=()=>_t(`heyflow-modal-element`,q),q=class extends H{constructor(...e){super(...e),this.WIDGET_TAG_NAME=`HEYFLOW-WRAPPER`,this.bodyOverflow=``,this.stylesAdopted=!1,this.wrapperRef=en(),this.overlayRef=en(),this.isFullscreen=!1,this.modalId=``,this.overlayBackgroundColor=`rgba(0, 0, 0, 0.6)`,this.hideCloseButton=!1,this.isOpened=!1,this.areFlowStylesSet=!1,this.areFlowEventListenersSet=!1,this.doesFlowHaveWidth=!1,this.boundOnKeyDown=this.onKeyDown.bind(this),this.boundOnCustomEvent=this.onCustomEvent.bind(this),this.boundOnIframeMessage=this.onIframeMessage.bind(this)}connectedCallback(){try{super.connectedCallback(),!this.stylesAdopted&&this.shadowRoot&&(this.stylesAdopted=!0,f(this.shadowRoot,sn,o(this))),this.modalId||console.warn("Please set `modal-id`"),this.bodyOverflow=document.body.style.overflow,document.addEventListener(`keydown`,this.boundOnKeyDown),window.addEventListener(dn,this.boundOnCustomEvent)}catch(t){var e;let n=(e=this.querySelector(this.WIDGET_TAG_NAME.toLowerCase()))==null?void 0:e.getAttribute(`flow-id`);console.warn(`An error occurred while initialising modal element`,{error:t,flowID:n}),w({flowID:n,message:`Error initializing modal element`,error:t,source:`modal`})}}disconnectedCallback(){document.removeEventListener(`keydown`,this.boundOnKeyDown),window.removeEventListener(`message`,this.boundOnIframeMessage),window.removeEventListener(dn,this.boundOnCustomEvent),super.disconnectedCallback()}openModal(){document.body.style.overflow=`hidden`,this.isOpened=!0,this.setPropertiesBasedOnWidget()}closeModal(){this.isOpened&&(document.body.style.overflow=this.bodyOverflow,this.isOpened=!1,window.dispatchEvent(new CustomEvent(fn,{detail:{modalId:this.modalId}})))}setPropertiesBasedOnWidget(){var e;if(!this.slotChild){var t;this.slotChild=(t=this.shadowRoot)==null||(t=t.querySelector(`slot`))==null?void 0:t.assignedElements()[0]}if(((e=this.slotChild)==null?void 0:e.tagName)===this.WIDGET_TAG_NAME){var n;!this.areFlowStylesSet&&!this.isFullscreen&&this.setStylesBasedOnFlow(),this.areFlowEventListenersSet||window.addEventListener(`message`,this.boundOnIframeMessage);let e=(n=this.slotChild)==null?void 0:n.getAttribute(`style-config`),t={};if(e)try{t=JSON.parse(e)}catch(e){t={}}t.width&&(this.doesFlowHaveWidth=!0)}}onKeyDown(e){e.code===`Escape`&&this.closeModal()}onCustomEvent(e){var t;e.type===dn&&((t=e.detail)==null?void 0:t.modalId)===this.modalId&&this.openModal()}setStylesBasedOnFlow(){var e,t;this.areFlowStylesSet=!0;let{"width-mid":n,"width-wide":r}=(e=(t=window.heyflow)==null||(t=t.constants)==null?void 0:t.STYLES)==null?{"width-mid":`800px`,"width-wide":`1200px`}:e,i=`
240			@media screen and (min-width: ${n}) {
241				.hey__modal-wrapper .hey__modal-web-component-wrapper {
242					top: 50%;
243					left: 50%;
244					right: auto;
245					bottom: auto;
246					transform: translate(-50%, -50%);
247					max-height: 90%;
248					max-width: min(${n}, 80%);
249					padding: 20px;
250				}
251			}
252
253			@media screen and (min-width: ${r}) {
254				.hey__modal-wrapper .hey__modal-web-component-wrapper {
255					max-width: min(${r}, 60%);
256				}
257			}
258		`;this.shadowRoot&&f(this.shadowRoot,i,o(this))}onIframeMessage(e){if(!e.data)return;let t;try{t=JSON.parse(e.data)}catch(e){return}if([`goToScreen`,`goBack`].includes(t.event)){var n;if([``,`true`].includes(String((n=this.slotChild)==null?void 0:n.getAttribute(`scroll-up-on-navigation`)))){var r;let e=(r=this.shadowRoot)==null?void 0:r.querySelector(`.hey__modal-web-component-wrapper`);e&&(e.scrollTop=0)}}t.event===`closeModal`&&this.closeModal()}updated(){let e=this.wrapperRef.value;e&&(e.style.display=this.isOpened?`block`:`none`);let t=this.overlayRef.value;
258t&&(t.style.backgroundColor=this.overlayBackgroundColor)}render(){return F`
259      <div
260        ${rn(this.wrapperRef)}
261        class=${W({"hey__modal-wrapper":!0,"hey__modal-wrapper-visible":this.isOpened})}
262      >
263        <div
264          class=${W({hey__modal:!0,"hey__modal_web-component":!0,"hey__modal-visible":this.isOpened,"hey__modal-hide":!this.isOpened,"hey__modal-full-screen":this.isFullscreen})}
265        >
266          <div
267            class=${W({"hey__modal-web-component-wrapper":!0,"hey__modal-web-component-wrapper_auto-width":!this.doesFlowHaveWidth,"hey__modal-web-component-wrapper_with-close-btn":!this.hideCloseButton})}
268          >
269            <slot></slot>
270            ${this.hideCloseButton?F``:F`<button
271aria-label="Close"
272title="Close"
273class=${W({"hey__close-modal-button":!0,"hey__close-modal-button_full-screen":this.isFullscreen})}
274@click="${this.closeModal}"><svg
275xmlns="http://www.w3.org/2000/svg"
276fill="none"
277viewBox="0 0 12 12"><path
278fill="currentColor"
279d="M11.747 10.535a.858.858 0 1 1-1.214 1.214L6 7.214l-4.535 4.533a.859.859 0 0 1-1.214-1.214L4.786 6 .253 1.466A.858.858 0 1 1 1.467.252L6 4.787 10.535.25a.858.858 0 1 1 1.214 1.214L7.214 6l4.533 4.535Z"/></svg></button>`}
280          </div>
281          <div
282            ${rn(this.overlayRef)}
283            class=${W({hey__overlay:!0,"hey__overlay-visible":this.isOpened})}
284            @click="${this.closeModal}"
285          ></div>
286        </div>
287      </div>
288    `}},K([U({attribute:`full-screen`,type:Boolean})],q.prototype,`isFullscreen`,void 0),K([U({attribute:`modal-id`,type:String})],q.prototype,`modalId`,void 0),K([U({attribute:`overlay-background-color`,type:String})],q.prototype,`overlayBackgroundColor`,void 0),K([U({attribute:`hide-close-button`,type:Boolean})],q.prototype,`hideCloseButton`,void 0),K([Ot()],q.prototype,`isOpened`,void 0),K([Ot()],q.prototype,`areFlowStylesSet`,void 0),K([Ot()],q.prototype,`areFlowEventListenersSet`,void 0),K([Ot()],q.prototype,`doesFlowHaveWidth`,void 0)})),J,hn=t((()=>{J=[]})),gn,_n=t((()=>{hn(),gn=function(){return J.some(function(e){return e.activeTargets.length>0})}})),vn,yn=t((()=>{hn(),vn=function(){return J.some(function(e){return e.skippedTargets.length>0})}})),bn,xn,Sn=t((()=>{bn=`ResizeObserver loop completed with undelivered notifications.`,xn=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:bn}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=bn),window.dispatchEvent(e)}})),Cn,wn=t((()=>{(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(Cn||(Cn={}))})),Y,Tn=t((()=>{Y=function(e){return Object.freeze(e)}})),En,Dn=t((()=>{Tn(),En=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,Y(this)}return e}()})),On,kn=t((()=>{Tn(),On=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Y(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}()})),An,jn,Mn,Nn,Pn=t((()=>{An=function(e){return e instanceof SVGElement&&`getBBox`in e},jn=function(e){if(An(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Mn=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Nn=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1}})),X,Fn=t((()=>{X=typeof window<`u`?window:{}})),In,Ln,Rn,zn,Z,Q,Bn,Vn,Hn,Un=t((()=>{wn(),Dn(),kn(),Pn(),Tn(),Fn(),In=new WeakMap,Ln=/auto|scroll/,Rn=/^tb|vertical/,zn=/msie|trident/i.test(X.navigator&&X.navigator.userAgent),Z=function(e){return parseFloat(e||`0`)},Q=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new En((n?t:e)||0,(n?e:t)||0)},Bn=Y({devicePixelContentBoxSize:Q(),borderBoxSize:Q(),contentBoxSize:Q(),contentRect:new On(0,0,0,0)}),Vn=function(e,t){if(t===void 0&&(t=!1),In.has(e)&&!t)return In.get(e);if(jn(e))return In.set(e,Bn),Bn;var n=getComputedStyle(e),r=An(e)&&e.ownerSVGElement&&e.getBBox(),i=!zn&&n.boxSizing===`border-box`,a=Rn.test(n.writingMode||``),o=!r&&Ln.test(n.overflowY||``),s=!r&&Ln.test(n.overflowX||``),c=r?0:Z(n.paddingTop),l=r?0:Z(n.paddingRight),u=r?0:Z(n.paddingBottom),d=r?0:Z(n.paddingLeft),f=r?0:Z(n.borderTopWidth),p=r?0:Z(n.borderRightWidth),m=r?0:Z(n.borderBottomWidth),h=r?0:Z(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,ee=s?e.offsetHeight-y-e.clientHeight:0,te=o?e.offsetWidth-v-e.clientWidth:0,ne=i?g+v:0,re=i?_+y:0,b=r?r.width:Z(n.width)-ne-te,x=r?r.height:Z(n.height)-re-ee,ie=b+g+te+v,ae=x+_+ee+y,S=Y({devicePixelContentBoxSize:Q(Math.round(b*devicePixelRatio),Math.round(x*devicePixelRatio),a),borderBoxSize:Q(ie,ae,a),contentBoxSize:Q(b,x,a),contentRect:new On(d,c,b,x)});return In.set(e,S),S},Hn=function(e,t,n){var r=Vn(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Cn.DEVICE_PIXEL_CONTENT_BOX:return o;case Cn.BORDER_BOX:return i;default:return a}}})),Wn,Gn=t((()=>{Un(),Tn(),Wn=function(){function e(e){var t=Vn(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Y([t.borderBoxSize]),this.contentBoxSize=Y([t.contentBoxSize]),this.devicePixelContentBoxSize=Y([t.devicePixelContentBoxSize])}return e}()})),Kn,qn=t((()=>{Pn(),Kn=function(e){if(jn(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t}})),Jn,Yn=t((()=>{hn(),Gn(),qn(),Un(),Jn=function(){var e=1/0,t=[];J.forEach(function(n){if(n.activeTargets.length!==0){var r=[];
288n.activeTargets.forEach(function(t){var n=new Wn(t.target),i=Kn(t.target);r.push(n),t.lastReportedSize=Hn(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e}})),Xn,Zn=t((()=>{hn(),qn(),Xn=function(e){J.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Kn(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})}})),Qn,$n=t((()=>{_n(),yn(),Sn(),Yn(),Zn(),Qn=function(){var e=0;for(Xn(e);gn();)e=Jn(),Xn(e);return vn()&&xn(),e>0}})),er,tr,nr,rr,ir=t((()=>{tr=[],nr=function(){return tr.splice(0).forEach(function(e){return e()})},rr=function(e){if(!er){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return nr()}).observe(n,{characterData:!0}),er=function(){n.textContent=`${t?t--:t++}`}}tr.push(e),er()}})),ar,or=t((()=>{ir(),ar=function(e){rr(function(){requestAnimationFrame(e)})}})),sr,cr,lr,ur,dr,fr,pr,mr,hr,gr=t((()=>{$n(),Fn(),or(),sr=0,cr=function(){return!!sr},lr=250,ur={attributes:!0,characterData:!0,childList:!0,subtree:!0},dr=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],fr=function(e){return e===void 0&&(e=0),Date.now()+e},pr=!1,mr=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=lr),!pr){pr=!0;var n=fr(e);ar(function(){var r=!1;try{r=Qn()}finally{if(pr=!1,e=n-fr(),!cr())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ur)};document.body?t():X.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dr.forEach(function(t){return X.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),dr.forEach(function(t){return X.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),hr=function(e){!sr&&e>0&&mr.start(),sr+=e,!sr&&mr.stop()}})),_r,vr,yr=t((()=>{wn(),Un(),Pn(),_r=function(e){return!An(e)&&!Nn(e)&&getComputedStyle(e).display===`inline`},vr=function(){function e(e,t){this.target=e,this.observedBox=t||Cn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Hn(this.target,this.observedBox,!0);return _r(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}()})),br,xr=t((()=>{br=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}()})),Sr,Cr,wr,Tr=t((()=>{gr(),yr(),xr(),hn(),Sr=new WeakMap,Cr=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},wr=function(){function e(){}return e.connect=function(e,t){var n=new br(e,t);Sr.set(e,n)},e.observe=function(e,t,n){var r=Sr.get(e),i=r.observationTargets.length===0;Cr(r.observationTargets,t)<0&&(i&&J.push(r),r.observationTargets.push(new vr(t,n&&n.box)),hr(1),mr.schedule())},e.unobserve=function(e,t){var n=Sr.get(e),r=Cr(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&J.splice(J.indexOf(n),1),n.observationTargets.splice(r,1),hr(-1))},e.disconnect=function(e){var t=this,n=Sr.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}()})),Er,Dr=t((()=>{Tr(),Pn(),Er=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);wr.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Mn(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);wr.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Mn(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);wr.unobserve(this,e)},e.prototype.disconnect=function(){wr.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}()})),Or=t((()=>{Dr(),Gn(),Dn()})),kr,Ar=t((()=>{kr=class{constructor(){this.queue=[],this.acquired=!1,this.currentOwner=null}createAndSetOwnerToken(){let e=Symbol(`ResourceLockToken`);return this.currentOwner=e,e}async acquire(){return this.acquired?new Promise((e,t)=>
288{this.queue.push(()=>{e(this.createAndSetOwnerToken())})}):(this.acquired=!0,this.createAndSetOwnerToken())}async release(e,t){if(this.currentOwner!==e){console.warn(`Attempted to release ResourceLock without valid ownership token`,t?`(embed: ${t})`:``);return}if(this.currentOwner=null,this.queue.length===0){this.acquired=!1;return}let n=this.queue.shift();if(n!==void 0)return new Promise(e=>{n(),e()})}}})),jr,Mr=t((()=>{jr=class{static set(e,t){try{window.localStorage.setItem(e,t)}catch(e){console.warn(`Failed to write to localStorage:`,e)}}static get(e){try{return window.localStorage.getItem(e)}catch(e){return console.warn(`Failed to read from localStorage:`,e),null}}}})),Nr,Pr,Fr,Ir,Lr,Rr=t((()=>{ae(),Mr(),Nr=e=>{let t={"x-is-heyflow-embed":`true`},n=jr.get(`heyflow-variant-${e}`);return n!==null&&(t[`x-heyflow-variant`]=n),t},Pr=async e=>{let t=Lr(e);console.log(`flowSrc `,t);let n=await fetch(t,{headers:Nr(e)}),r=n.headers.get(`x-heyflow-variant`);if(r!==null&&jr.set(`heyflow-variant-${e}`,r),!n.ok){let e=`Error while fetching Flow: ${n.status}`;throw Error(e)}return n.text()},{VITE_FLOW_URL_PATTERN:Fr}=ie,Ir=`[FLOW_ID]`,Lr=e=>Fr.replace(Ir,e)}));function zr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Br=t((()=>{}));function Vr(e,t){if(e==null)return{};var n,r,i=zr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Hr=t((()=>{Br()})),Ur=n({HeyflowWrapper:()=>$,default:()=>qr}),Wr,Gr,Kr,qr,Jr,Yr,$,Xr=t((()=>{Or(),gt(),Lt(),on(),_e(),Ar(),c(),vt(),re(),Rr(),v(),ln(),me(),Hr(),Wr=[`height`],Kr=new kr,qr=()=>_t(`heyflow-wrapper`,$),Jr=.01,Yr=`
289  :host {
290    all: initial;
291    width: 100%;
292  }
293
294  /*Workaround to make Material Icons Work https://github.com/google/material-design-icons/issues/1165*/
295  .material-icons {
296    font-family: 'Material Icons';
297    font-style: normal;
298  }
299
300  /* No height here: a non-modal embed has no --heyflow-widget-height, so any height clamps it (see git history). */
301  .heyflow-widget-root {
302    margin: 0 auto;
303    max-width: 100%;
304    /* A full-bleed screen sizes to the viewport; the published body clips
305       that, the host page does not. */
306    overflow-x: clip;
307  }
308
309  /* TODO these are hacky overrides to fix sizing issues if the web component is embedded inside of an iframe.
310    The iframe class is set only if the web component is running inside of an iframe.*/
311  .parent-is-iframe .multiple-choice .option-content.picture {
312    height: auto;
313  }
314
315  /* This prevents weird whitespace problem under large images. */
316  .parent-is-iframe .block-content.image-block {
317    display: flex;
318  }
319
320  .parent-is-iframe img {
321    /* overrides an inline style. */
322    height: auto !important;
323    max-height: 100%;
324  }
325
326  /* adds an overflow hidden to the span in the button cause it shows scroll bars in Safari and this would break the button */
327  .generic-button-block .content .label,
328  .generic-button-block .content .line2 {
329    overflow: hidden;
330  }
331
332  /* !importants are here because of packages/flow/src/style/x_responsive.less */
333  form section > .block > .inner-wide {
334    width: min(var(--heyflow-widget-width-wide), 100%) !important;
335  }
336
337  form section > .block > .inner-mid {
338    width: min(var(--heyflow-widget-width-mid), 100%) !important;
339  }
340
341  form section > .block > .inner-narrow {
342    width: min(var(--heyflow-widget-width-narrow), 100%) !important;
343  }
344`,$=class e extends H{constructor(...t){super(...t),this.scriptQueue=[],this.embedIndex=0,this.embedReference=``,this.boundOnLessCompiled=this.onLessCompiled.bind(this),this.boundOnIframeMessage=this.onIframeMessage.bind(this),this.cspNonce=``,this.stylesAdopted=!1,this.articleRef=en(),this.appliedStyle={},this.template=e.loadingTemplate,this.dynamicHeight=!1,this.urlParams=``,this.scrollUpOnNavigation=!1,this.lang=navigator.language,this.getSafeNumber=e=>e&&!isNaN(e)?e:0}getHeyflowWindowContext(){var e;return(e=window.heyflow)==null?void 0:e[this.embedReference]}releaseOwnLock(){if(!this.lockToken)return;let e=this.lockToken;return this.lockToken=void 0,Kr.release(e,this.embedReference)}setWidthOverrides(){var e,t,n,r;let{"width-narrow":i,"width-mid":a,"width-wide":o}=(e=(t=(n=window.heyflow)==null||(n=n.constants)==null?void 0:n.STYLES)==null?(r=this.getHeyflowWindowContext())==null||(r=r.constants)==null?void 0:r.STYLES:t)==null?{}:e;Object.entries({"width-narrow":i,"width-mid":a,"width-wide":o}
344).forEach(([e,t])=>{document.documentElement.style.setProperty(`--heyflow-widget-${e}`,t)})}getStyleConfig(){var e,t;return!this.dynamicHeight&&((e=this.styleConfig)==null?void 0:e.height)!==void 0?C({overflow:`auto`},this.styleConfig):this.closest(`heyflow-modal-element`)&&((t=this.styleConfig)==null?void 0:t.width)===`100%`?C(C({},this.styleConfig),{},{width:`100vw`}):this.styleConfig}render(){return F`
345      <article
346        ${rn(this.articleRef)}
347        class="heyflow-widget-root"
348        lang="${this.lang}"
349      >
350        ${this.template}
351      </article>
352    `}updated(){let e=this.articleRef.value;if(!e)return;let t=C({},this.getStyleConfig());h(e,this.appliedStyle,t),this.appliedStyle=t}async connectedCallback(){var e;this.lockToken=await Kr.acquire(),window.embeds=(e=window.embeds)==null?new Set:e;try{if(!this.isConnected||(super.connectedCallback(),this.cspNonce=o(this),!this.stylesAdopted&&this.shadowRoot&&(this.stylesAdopted=!0,f(this.shadowRoot,Yr,this.cspNonce)),!this.flowId)||(this.setupEmbedReference(),await this.updateTemplateWithFlow(),!this.isConnected))return;this.detectIFrameEnvironment(),this.setupEventListeners(),this.injectFontDefinitions(),this.initFlow(),this.setupResizeObserver()}catch(e){this.isConnected&&(console.warn(`An error occurred while initialising a heyflow widget`,{error:e,flowId:this.flowId,embedIndex:this.embedIndex}),(e==null?void 0:e.message)!==`Error while fetching Flow: 404`&&w({flowID:this.flowId,message:`Error initializing heyflow-wrapper`,error:e,embedIndex:this.embedIndex,source:`embed`}))}finally{let e=this.releaseOwnLock();e&&await e}}disconnectedCallback(){var e,t;this.releaseOwnLock(),window.removeEventListener(`lessCompiled`,this.boundOnLessCompiled),window.removeEventListener(`message`,this.boundOnIframeMessage),window.embeds.delete(this.embedReference),(e=this.getHeyflowWindowContext())==null||(t=e.cleanupTracking)==null||t.call(e)}detectIFrameEnvironment(){var e;window.top!==window.self&&((e=this.shadowRoot)==null||(e=e.querySelector(`article`))==null||e.classList.add(`parent-is-iframe`))}setupEmbedReference(){document.querySelectorAll(`heyflow-wrapper`).length!==1&&(this.embedIndex=window.embeds.size),this.embedReference=`${this.flowId}-${this.embedIndex}`,window.embeds.add(this.embedReference),this.setAttribute(`index`,this.embedReference)}async updateTemplateWithFlow(){var t;let n=ee(await Pr(this.flowId));this.flow=te(n,this.flowId,this.embedReference);try{await this.injectFlowStyles(),this.adoptBodyStyles(),this.enqueueScripts(),await this.injectScripts()}catch(e){throw w({flowID:this.flowId,message:`Error injecting assets while initialising widget`,error:e,embedIndex:this.embedIndex,source:`embed`}),e}this.template=(t=F`${this.flow.body}`)==null?e.fallbackTemplate:t,await this.updateComplete,this.shadowRoot&&_(this.shadowRoot)}adoptBodyStyles(){if(!this.flow||!this.shadowRoot)return;let e=this.shadowRoot;y(`style`,this.flow.body).forEach(t=>{var n;f(e,(n=t.textContent)==null?``:n,this.cspNonce),t.remove()})}async injectFlowStyles(){return new Promise(e=>{var t,n;let r=!1,i=(t=this.flow)==null?void 0:t.head.querySelector(`style#less\\:static-flow-src-style`);if(!i){var a;let e=(a=this.flow)==null?void 0:a.head.querySelectorAll(`style`);i=e==null?void 0:e[(e==null?void 0:e.length)-1]}let o=(n=this.flow)==null?void 0:n.head.querySelectorAll(`link[rel="stylesheet"]`),c=e=>{try{var t;(t=this.shadowRoot)==null||t.appendChild(e)}catch(e){throw w({flowID:this.flowId,message:`Error appending style related node to shadowRoot`,error:e,embedIndex:this.embedIndex,source:`embed`}),e}},l=t=>()=>{clearTimeout(t),e()},u=e=>(t,n,r,i,a)=>{clearTimeout(e),a&&w({flowID:this.flowId,message:`Error loading stylesheet`,error:a,embedIndex:this.embedIndex,source:`embed`})};i&&this.shadowRoot&&(f(this.shadowRoot,i.innerHTML.replace(/:root/g,`:host`).replace(/(\d)(rem)/g,`$1em`),this.cspNonce),i.remove());let d=(e,t,n)=>{let i=s(document.createElement(`link`),this.cspNonce),a=t.replace(n[0],n[1]);i.href=`${e.href.replace(t,a)}?q=${this.embedReference}`,i.rel=e.rel,r=!0;let o=setTimeout(()=>{ge({flowID:this.flowId,message:`Stylesheet has not been loaded after 5000ms`,data:{filename:t},embedIndex:this.embedIndex,source:`embed`})},5e3);i.onload=l(o),i.onerror=u(o),c(i),e.remove()};
352o==null||o.forEach(e=>{let t=e.href.split(`/`).pop();(t!=null&&t.match(/app(?:-.+|)\.css/)||t!=null&&t.match(/flow(?:-.+|)\.css/))&&d(e,t,[`flow`,`app`]),t!=null&&t.match(/theme(?:-.+|)\.css/)&&d(e,t,[`theme`,`embed-theme`])}),(!i&&!(o!=null&&o.length)||!r)&&e()})}enqueueScripts(){if(this.flow){let e=y(`script`,this.flow.head),t=y(`script[data-hf-layout-script]`,this.flow.body);t.forEach(e=>e.remove()),this.scriptQueue=[...e,...t]}}async injectScripts(){return new Promise(e=>{let t=this.scriptQueue.filter(e=>!!e.src),n=t.filter(e=>e.getAttribute(`data-is-heyflow-script`)===`true`),r=n.length>0,i=r?n:t,a=0;function o(t){r&&t.getAttribute(`data-is-heyflow-script`)!==`true`||(a++,a===i.length&&e())}this.scriptQueue.forEach(e=>{var t,n;let r=s(document.createElement(`script`),this.cspNonce);if(e.src)r.src=e.src,r.type=e.type,r.onload=()=>o(e),r.onerror=()=>{console.warn(`failed to inject script from: ${r.src}, please disable your ad-blocker`)};else{for(let{name:t,value:n}of Array.from(e.attributes))t!==`nonce`&&r.setAttribute(t,n);r.innerHTML=e.innerHTML}e.src.match(/(app|flow|custom-code)(?:-.+|)\.js/)&&e.type===`module`&&(r.src=`${e.src}?q=${this.embedReference}`);let i=e.hasAttribute(`data-hf-layout-script`);i&&(window.heyflowLayoutScriptRoot=(t=this.shadowRoot)==null?void 0:t),(n=this.shadowRoot)==null||n.appendChild(r),i&&(window.heyflowLayoutScriptRoot=void 0)}),i.length===0&&e()})}injectFontDefinitions(){this.flow&&y(`link[as="style"]:not([data-is-heyflow-style])`,this.flow.head).forEach(e=>{let t=s(document.createElement(`link`),this.cspNonce);t.rel=`stylesheet`,t.href=e.href,document.head.appendChild(t)})}onLessCompiled(){var e;let t=document.getElementById(`less:static-flow-src-style`);t&&((e=this.shadowRoot)==null||e.appendChild(s(t,this.cspNonce)))}onIframeMessage(e){if(!e.data)return;let t;try{t=JSON.parse(e.data)}catch(e){return}if([`goToScreen`,`goBack`].includes(t.event)&&this.scrollUpOnNavigation){var n;let e=document.querySelector(`[index="${t.widgetWrapperRef}"]`),r=e==null||(n=e.shadowRoot)==null?void 0:n.querySelector(`[data-id="heyflow-main"]`);this.dynamicHeight?e==null||e.scrollIntoView():r&&(r.scrollTop=0,r.scrollIntoView())}}setupEventListeners(){window.addEventListener(`lessCompiled`,this.boundOnLessCompiled),window.addEventListener(`message`,this.boundOnIframeMessage)}initFlow(){if(this.setWidthOverrides(),document.dispatchEvent(new CustomEvent(`finishedInjection`,{detail:{urlParams:this.urlParams,embedReference:this.embedReference}})),this.screen){var e,t,n;if((e=window.heyflow)!=null&&e.setAlternativeInitialScreen)window.heyflow.setAlternativeInitialScreen(this.screen,!0);else if((t=this.getHeyflowWindowContext())!=null&&t.setAlternativeInitialScreen)(n=this.getHeyflowWindowContext())==null||n.setAlternativeInitialScreen(this.screen,!0);else return}delete window.currentlyMounting}loadResizeObserver(){return window.ResizeObserver?window.ResizeObserver:Er}setupResizeObserver(){var e;let t=new(this.loadResizeObserver())(e=>{let t=e[0].borderBoxSize[0].blockSize;this.handleDynamicSizing(Math.ceil(t))}),n=(e=this.shadowRoot)==null?void 0:e.querySelector(`form`);n&&t.observe(n)}checkIfBottomStickyBarExistsOnPage(){var e;return!!((e=this.shadowRoot)!=null&&e.querySelector(`section.visible > .block.sticky-bottom`))}clearAppliedHeight(){var e;let t=(e=this.styleConfig)==null?{}:e,{height:n}=t,r=Vr(t,Wr);this.styleConfig=r}handleDynamicSizing(e){if(this.checkIfBottomStickyBarExistsOnPage()){this.clearAppliedHeight();return}if(this.dynamicHeight){var t,n,r,i,a,o,s,c,l,u,d,f,p,m;let h=(t=this.shadowRoot)==null?void 0:t.querySelector(`form + div`),g=(n=this.shadowRoot)==null?void 0:n.querySelector(`form`),_=(r=this.shadowRoot)==null?void 0:r.querySelector(`header`),v=(i=this.shadowRoot)==null?void 0:i.querySelector(`.footer-container`),y=(a=this.shadowRoot)==null?void 0:a.querySelector(`.heyflow-widget-root`),ee=this.getSafeNumber(parseInt((o=y==null||(s=y.style)==null?void 0:s.borderTopWidth)==null?`0`:o,10)+parseInt((c=y==null||(l=y.style)==null?void 0:l.borderBottomWidth)==null?`0`:c,10)),te=g?this.getSafeNumber(parseInt((u=getComputedStyle(g).marginTop)==null?0:u)+parseInt((d=getComputedStyle(g).marginBottom)==null?0:d)):0,ne=Math.floor(e*Jr),re=((f=_==null?void 0:_.clientHeight)==null?0:f)+((p=v==null?void 0:v.clientHeight)==null?0:p)+((m=h==null?void 0:h.clientHeight)==null?0:m)+e+ee+te+ne;this.styleConfig=C(C({},this.styleConfig),{},{height:`${re}px`})}}},Gr=$,Gr.fallbackTemplate=F`<p>
353    🤕 Error integrating Heyflow, check javascript console for details!
354  </p>`,Gr.loadingTemplate=F`<loader-element />`,K([U()],$.prototype,`template`,void 0),K([U({attribute:`flow-id`})],$.prototype,`flowId`,void 0),K([U({attribute:`screen`})],$.prototype,`screen`,void 0),K([U({attribute:`style-config`,type:Object})],$.prototype,`styleConfig`,void 0),K([U({attribute:`dynamic-height`,type:Boolean})],$.prototype,`dynamicHeight`,void 0),K([U({attribute:`url-parameters`}
354)],$.prototype,`urlParams`,void 0),K([U({attribute:`scroll-up-on-navigation`,type:Boolean})],$.prototype,`scrollUpOnNavigation`,void 0),K([U({attribute:`lang`})],$.prototype,`lang`,void 0)}));c(),re(),_e(),i(),window.addEventListener(`unhandledrejection`,e=>{var t;let n=(t=e.reason)==null?void 0:t.stack;if(!(n!=null&&n.includes(`/webview.js`)))return;let r=ne();r.length>0&&ge({embeddedFlowIDs:r,message:`Unhandled rejection`,severity:`error`,data:{error:`${e.reason}`},source:`unknown`})}),ve(()=>Promise.resolve().then(()=>(Ct(),yt)).then(e=>e.default()),void 0).catch(e=>{console.error(e),w({message:`Failed to import loader-element`,error:e,source:`loader`})}),ve(()=>Promise.resolve().then(()=>(mn(),un)).then(e=>e.default()),void 0).catch(e=>{console.error(e),w({message:`Failed to import modal-element`,error:e,source:`modal`})}),ve(()=>Promise.resolve().then(()=>(Xr(),Ur)).then(e=>e.default()),void 0).catch(e=>{console.error(e),w({message:`Failed to import heyflow-wrapper`,error:e,source:`embed`})})})()})()

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.