"use strict";var DefaultPixel=(()=>{var Ft=Object.defineProperty,ha=Object.defineProperties,Sa=Object.getOwnPropertyDescriptor,ya=Object.getOwnPropertyDescriptors,ba=Object.getOwnPropertyNames,Mt=Object.getOwnPropertySymbols;var En=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable;var Zo=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))En.call(t,n)&&Zo(e,n,t[n]);if(Mt)for(var n of Mt(t))Jo.call(t,n)&&Zo(e,n,t[n]);return e},A=(e,t)=>ha(e,ya(t));var vn=(e,t)=>{var n={};for(var o in e)En.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Mt)for(var o of Mt(e))t.indexOf(o)<0&&Jo.call(e,o)&&(n[o]=e[o]);return n};var Ea=(e,t)=>{for(var n in t)Ft(e,n,{get:t[n],enumerable:!0})},va=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ba(t))!En.call(e,r)&&r!==n&&Ft(e,r,{get:()=>t[r],enumerable:!(o=Sa(t,r))||o.enumerable});return e};var La=e=>va(Ft({},"__esModule",{value:!0}),e);var b=(e,t,n)=>new Promise((o,r)=>{var i=a=>{try{l(n.next(a))}catch(d){r(d)}},s=a=>{try{l(n.throw(a))}catch(d){r(d)}},l=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,s);l((n=n.apply(e,t)).next())});var tm={};Ea(tm,{on:()=>Fe,scheduler:()=>Gs,submitForm:()=>Bs});var S=class{static isVerbose(){return window.__defaultPixel__logging__verbose===!0}static formatMessage(t,n){return t?`${this.PREFIX} [${t}] ${n}`:`${this.PREFIX} ${n}`}static log(t,n,o,...r){let i=this.formatMessage(n,o);switch(t){case"debug":this.isVerbose()&&console.debug(i,...r);break;case"info":console.info(i,...r);break;case"warn":console.warn(i,...r);break;case"error":console.error(i,...r);break}}static debug(t,...n){this.log("debug",null,t,...n)}static info(t,...n){this.log("info",null,t,...n)}static warn(t,...n){this.log("warn",null,t,...n)}static error(t,...n){this.log("error",null,t,...n)}static module(t){return{debug:(n,...o)=>this.log("debug",t,n,...o),info:(n,...o)=>this.log("info",t,n,...o),warn:(n,...o)=>this.log("warn",t,n,...o),error:(n,...o)=>this.log("error",t,n,...o),success:(n,...o)=>this.log("debug",t,`\u2713 ${n}`,...o),found:(n,o)=>{let r=o!==void 0?`Found ${o} ${n}`:`Found ${n}`;this.log("debug",t,r)},sent:(n,...o)=>this.log("debug",t,`\u2192 Sent ${n}`,...o),received:(n,...o)=>this.log("debug",t,`\u2190 Received ${n}`,...o)}}};S.PREFIX="[Default.com]";var _a=S.module("Config"),Ln=class e{constructor(){this.config=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}initialize(t){this.config=t,_a.success(`Config initialized with endpoint ${t.endpoint}`)}get(){return this.config}getPublicKey(){var t;return((t=this.config)==null?void 0:t.publicKey)||null}getEndpoint(){var t;return((t=this.config)==null?void 0:t.endpoint)||null}isInitialized(){return this.config!==null}reset(){this.config=null}},k=Ln.getInstance();var j={SESSION_START:"/api/session/start",SESSION_END:"/api/session/end",PAGEVIEW:"/api/events/pageview",FORM_SUBMISSION:"/api/form-submission",FORM_INTERACTION:"/api/form-interaction",FORM_CATALOG:"/api/form-catalog",SCHEDULER_STYLE:"/api/pixel/scheduler-style",KNOWN_FORMS:"/api/pixel/known-forms",WEBSITE_INTENT:"/api/pixel/website-intent"};var C=S.module("API"),tt=()=>Date.now(),Ct=!0;function Qo(e){Ct=e,C.debug(`Capture ${e?"enabled":"disabled"}`)}function er(){return Ct}function wa(e){if(e===null||typeof e!="object")return null;try{let t=JSON.stringify(e);return typeof t=="string"&&t.length>0?t:null}catch(t){return null}}function kt(e,t){if(!Ct){C.debug("Capture disabled, skipping beacon");return}let n=k.getEndpoint();if(!n){C.debug("No endpoint configured, skipping beacon");return}let o=wa(t);if(o===null){C.debug("Beacon payload is not serializable JSON, skipping");return}let r=`${n}${e}`;try{let i=new Blob([o],{type:"text/plain"});navigator.sendBeacon(r,i)||(C.debug("sendBeacon failed, falling back to fetch"),fetch(r,{method:"POST",headers:{"Content-Type":"text/plain"},body:o,keepalive:!0}).catch(()=>{C.debug("Fetch fallback also failed")}))}catch(i){C.debug("Failed to send beacon")}}function nt(e,t){return b(this,null,function*(){if(!Ct)return C.debug("Capture disabled, skipping request"),null;let n=k.getEndpoint();if(!n)return C.debug("No endpoint configured, skipping request"),null;let o=k.getPublicKey();if(!o)return C.warn("No public key configured, skipping request"),null;let r=`${n}${e}`;try{let i=yield fetch(r,{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify(A(h({},t),{publicKey:o}))});return i.ok?(C.success(`Request to ${e} succeeded`),i):(C.warn(`Request to ${e} failed with status ${i.status}`),null)}catch(i){return C.warn(`Request to ${e} threw error`,i),null}})}var Ia=r=>b(null,[r],function*({url:e,data:t,publicKey:n,mode:o}){return fetch(e,{method:"POST",headers:o==="json_auth"?{"Content-Type":"application/json",Authorization:`Bearer ${n}`}:{"Content-Type":"text/plain;charset=UTF-8"},body:JSON.stringify(t)})}),Ta=e=>e===401||e===415,xa=e=>{var t,n,o,r;return{server_timing:(t=e.headers.get("server-timing"))!=null?t:void 0,x_vercel_id:(n=e.headers.get("x-vercel-id"))!=null?n:void 0,x_vercel_cache:(o=e.headers.get("x-vercel-cache"))!=null?o:void 0,x_matched_path:(r=e.headers.get("x-matched-path"))!=null?r:void 0}};function tr(o,r){return b(this,arguments,function*(e,t,n={}){let i=k.getEndpoint();if(!i)return{success:!1,status:0,error:"No endpoint configured"};let s=k.getPublicKey();if(!s)return{success:!1,status:0,error:"No public key configured"};let l=`${i}${e}`,a=n.preferSimpleRequest?["simple_text","json_auth"]:["json_auth"];for(let[d,c]of a.entries()){let u=d===a.length-1,g=tt();try{let f=yield Ia({url:l,data:t,publicKey:s,mode:c}),v=tt(),m=xa(f),p=yield f.json().catch(()=>{}),y=tt(),E={request_mode:c,request_start_ms:g,headers_received_ms:v,body_parsed_ms:y,headers_wait_ms:Math.max(0,v-g),body_parse_ms:Math.max(0,y-v),total_duration_ms:Math.max(0,y-g)};if(!f.ok){let L={success:!1,status:f.status,body:p,headers:m,timing:E,error:`Request to ${e} failed with status ${f.status}`},D=c==="simple_text"&&Ta(f.status);if(!u&&D)continue;return L}return{success:!0,status:f.status,body:p,headers:m,timing:E}}catch(f){let v={success:!1,status:0,timing:{request_mode:c,request_start_ms:g,headers_received_ms:g,body_parsed_ms:tt(),headers_wait_ms:0,body_parse_ms:0,total_duration_ms:Math.max(0,tt()-g)},error:f instanceof Error?f.message:"Unknown error"};if(!u&&c==="simple_text")continue;return v}}return{success:!1,status:0,error:"No request mode available"}})}function nr(e){kt(j.SESSION_START,e)}function wn(e){kt(j.SESSION_END,e)}function or(e){kt(j.PAGEVIEW,e)}var V={Redirect:"redirect",DisplayScheduler:"display_scheduler"};function rr(e){return b(this,null,function*(){let t=yield nt(j.FORM_SUBMISSION,e);if(!t)return null;try{return yield t.json()}catch(n){return C.warn("Failed to parse form submission response",n),null}})}function ir(e){return b(this,null,function*(){let t=yield nt(j.FORM_INTERACTION,e);if(!t)return null;try{return yield t.json()}catch(n){return C.warn("Failed to parse form interaction response",n),null}})}function sr(e){kt(j.FORM_CATALOG,e)}var qo={schedulerStyle:null,logoUrl:null,schedulerFormIds:[]};function ar(){return b(this,null,function*(){var t,n;let e=yield nt(j.SCHEDULER_STYLE,{});if(!e)return qo;try{let o=yield e.json();return{schedulerStyle:(t=o.schedulerStyle)!=null?t:null,logoUrl:(n=o.logoUrl)!=null?n:null,schedulerFormIds:Array.isArray(o.schedulerFormIds)?o.schedulerFormIds:[]}}catch(o){return C.warn("Failed to parse scheduler style response",o),qo}})}var Aa=e=>{var i,s;if(!e||typeof e!="object")return null;let t=e;if(!t.hashes||typeof t.hashes!="object")return null;let n={};for(let[l,a]of Object.entries(t.hashes))Array.isArray(a)&&(n[l]=a.filter(d=>typeof d=="string"));let o={},r={};if(t.cosmeticStrippedHashes&&typeof t.cosmeticStrippedHashes=="object")for(let[l,a]of Object.entries(t.cosmeticStrippedHashes))Array.isArray(a)?o[l]=a.filter(d=>typeof d=="string"):typeof a=="string"&&(o[l]=[a]);if(t.catalogCosmeticsUseNonAscii&&typeof t.catalogCosmeticsUseNonAscii=="object")for(let[l,a]of Object.entries(t.catalogCosmeticsUseNonAscii))typeof a=="boolean"&&(r[l]=a);return{hashes:n,cosmeticStrippedHashes:o,catalogCosmeticsUseNonAscii:r,ids:Array.isArray(t.ids)?t.ids.filter(l=>typeof l=="string"):[],path:{known:!!((i=t.path)!=null&&i.known),linked:Array.isArray((s=t.path)==null?void 0:s.linked)?t.path.linked.filter(l=>!!l&&typeof l=="object"):[]}}};function lr(e){return b(this,null,function*(){let t=yield nt(j.KNOWN_FORMS,{pathname:e});if(!t)return null;try{let n=yield t.json();return Aa(n.knownForms)}catch(n){return C.warn("Failed to parse known forms response",n),null}})}var _n={vector:null},Ma=5e3;function cr(){return b(this,null,function*(){let e=new Promise(t=>setTimeout(()=>t(_n),Ma));return Promise.race([Fa(),e])})}function Fa(){return b(this,null,function*(){let e=yield nt(j.WEBSITE_INTENT,{});if(!e)return _n;try{let t=yield e.json();return{vector:typeof t.vector=="boolean"?t.vector:null}}catch(t){return C.warn("Failed to parse website intent response",t),_n}})}var Rt="__dftCatalog";var ur="__dftCatalogBoot__";var Dt=S.module("Catalog"),dr,mr,Ca=(mr=(dr=document.currentScript)==null?void 0:dr.src)!=null?mr:null,fr=(e,t)=>{let n=null;try{n=Ra(new URL(window.location.href))}catch(l){return}if(!n)return;let o=Ha();if(!o){Dt.warn("Cannot locate the catalog overlay bundle next to the pixel script");return}let r={token:n.token,endpoint:e,publicKey:t,pathname:window.location.pathname};window[ur]=r;let{source:i}=n,s=document.createElement("script");s.async=!0,s.src=o,s.onload=()=>Da(i),s.onerror=()=>Dt.warn("Failed to load the catalog overlay bundle; the launch token was left in the URL"),document.head.appendChild(s),Dt.debug("Catalog mode requested, loading overlay")},pr=`${Rt}=`,gr=e=>{let t=e.hash.replace(/^#/,"");return t?t.split("&"):[]},hr=e=>e.startsWith(pr),ka=e=>{let t=e.slice(pr.length);try{return decodeURIComponent(t)}catch(n){return t}},Ra=e=>{let t=gr(e).find(hr);if(t){let o=ka(t);if(o)return{token:o,source:"fragment"}}let n=e.searchParams.get(Rt);return n?{token:n,source:"query"}:null},Da=e=>{try{let t=new URL(window.location.href);e==="fragment"?t.hash=gr(t).filter(n=>!hr(n)).join("&"):t.searchParams.delete(Rt),window.history.replaceState(window.history.state,"",t.toString())}catch(t){Dt.debug("Could not rewrite the URL to drop the catalog token")}},Ha=()=>{let e=Ca||Pa();return e?e.replace(/[^/]+$/,"catalog-overlay.js"):null},Pa=()=>{var n;let t=Array.from(document.querySelectorAll("script[src]")).find(o=>/\/(index|core)\.js(\?|$)/.test(o.src));return(n=t==null?void 0:t.src)!=null?n:null};var Fr="5.0.1";function Nt(e,t){return new Promise(n=>setTimeout(n,e,t))}function Oa(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function Na(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(o=>n.call(window,()=>o(),{timeout:t})):Nt(Math.min(e,t))}function Cr(e){return!!e&&typeof e.then=="function"}function Sr(e,t){try{let n=e();Cr(n)?n.then(o=>t(!0,o),o=>t(!1,o)):t(!0,n)}catch(n){t(!1,n)}}function yr(e,t,n=16){return b(this,null,function*(){let o=Array(e.length),r=Date.now();for(let i=0;i<e.length;++i){o[i]=t(e[i],i);let s=Date.now();s>=r+n&&(r=s,yield Oa())}return o})}function ot(e){return e.then(void 0,()=>{}),e}function Ua(e,t){for(let n=0,o=e.length;n<o;++n)if(e[n]===t)return!0;return!1}function Va(e,t){return!Ua(e,t)}function Fn(e){return parseInt(e)}function ie(e){return parseFloat(e)}function ce(e,t){return typeof e=="number"&&isNaN(e)?t:e}function O(e){return e.reduce((t,n)=>t+(n?1:0),0)}function kr(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Ba(e){var t,n;let o=`Unexpected syntax '${e}'`,r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,s={},l=/([.:#][\w-]+|\[.+?\])/gi,a=(d,c)=>{s[d]=s[d]||[],s[d].push(c)};for(;;){let d=l.exec(r[2]);if(!d)break;let c=d[0];switch(c[0]){case".":a("class",c.slice(1));break;case"#":a("id",c.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(u)a(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(o);break}default:throw new Error(o)}}return[i,s]}function Ga(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o>127)return new TextEncoder().encode(e);t[n]=o}return t}function pe(e,t){let n=e[0]>>>16,o=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,l=t[0]&65535,a=t[1]>>>16,d=t[1]&65535,c=0,u=0,g=0,f=0;f+=i+d,g+=f>>>16,f&=65535,g+=r+a,u+=g>>>16,g&=65535,u+=o+l,c+=u>>>16,u&=65535,c+=n+s,c&=65535,e[0]=c<<16|u,e[1]=g<<16|f}function X(e,t){let n=e[0]>>>16,o=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,l=t[0]&65535,a=t[1]>>>16,d=t[1]&65535,c=0,u=0,g=0,f=0;f+=i*d,g+=f>>>16,f&=65535,g+=r*d,u+=g>>>16,g&=65535,g+=i*a,u+=g>>>16,g&=65535,u+=o*d,c+=u>>>16,u&=65535,u+=r*a,c+=u>>>16,u&=65535,u+=i*l,c+=u>>>16,u&=65535,c+=n*d+o*a+r*l+i*s,c&=65535,e[0]=c<<16|u,e[1]=g<<16|f}function De(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function W(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function x(e,t){e[0]^=t[0],e[1]^=t[1]}var $a=[4283543511,3981806797],Wa=[3301882366,444984403];function br(e){let t=[0,e[0]>>>1];x(e,t),X(e,$a),t[1]=e[0]>>>1,x(e,t),X(e,Wa),t[1]=e[0]>>>1,x(e,t)}var Ht=[2277735313,289559509],Pt=[1291169091,658871167],Er=[0,5],za=[0,1390208809],Ka=[0,944331445];function Ya(e,t){let n=Ga(e);t=t||0;let o=[0,n.length],r=o[1]%16,i=o[1]-r,s=[0,t],l=[0,t],a=[0,0],d=[0,0],c;for(c=0;c<i;c=c+16)a[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,a[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,d[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,d[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,X(a,Ht),De(a,31),X(a,Pt),x(s,a),De(s,27),pe(s,l),X(s,Er),pe(s,za),X(d,Pt),De(d,33),X(d,Ht),x(l,d),De(l,31),pe(l,s),X(l,Er),pe(l,Ka);a[0]=0,a[1]=0,d[0]=0,d[1]=0;let u=[0,0];switch(r){case 15:u[1]=n[c+14],W(u,48),x(d,u);case 14:u[1]=n[c+13],W(u,40),x(d,u);case 13:u[1]=n[c+12],W(u,32),x(d,u);case 12:u[1]=n[c+11],W(u,24),x(d,u);case 11:u[1]=n[c+10],W(u,16),x(d,u);case 10:u[1]=n[c+9],W(u,8),x(d,u);case 9:u[1]=n[c+8],x(d,u),X(d,Pt),De(d,33),X(d,Ht),x(l,d);case 8:u[1]=n[c+7],W(u,56),x(a,u);case 7:u[1]=n[c+6],W(u,48),x(a,u);case 6:u[1]=n[c+5],W(u,40),x(a,u);case 5:u[1]=n[c+4],W(u,32),x(a,u);case 4:u[1]=n[c+3],W(u,24),x(a,u);case 3:u[1]=n[c+2],W(u,16),x(a,u);case 2:u[1]=n[c+1],W(u,8),x(a,u);case 1:u[1]=n[c],x(a,u),X(a,Ht),De(a,31),X(a,Pt),x(s,a)}return x(s,o),x(l,o),pe(s,l),pe(l,s),br(s),br(l),pe(s,l),pe(l,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}function ja(e){var t;return h({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
`)},e)}function Xa(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Za(e){return typeof e!="function"}function Ja(e,t){let n=ot(new Promise(o=>{let r=Date.now();Sr(e.bind(null,t),(...i)=>{let s=Date.now()-r;if(!i[0])return o(()=>({error:i[1],duration:s}));let l=i[1];if(Za(l))return o(()=>({value:l,duration:s}));o(()=>new Promise(a=>{let d=Date.now();Sr(l,(...c)=>{let u=s+Date.now()-d;if(!c[0])return a({error:c[1],duration:u});a({value:c[1],duration:u})})}))})}));return function(){return n.then(r=>r())}}function qa(e,t,n,o){let r=Object.keys(e).filter(s=>Va(n,s)),i=ot(yr(r,s=>Ja(e[s],t),o));return function(){return b(this,null,function*(){let l=yield i,a=yield yr(l,u=>ot(u()),o),d=yield Promise.all(a),c={};for(let u=0;u<r.length;++u)c[r[u]]=d[u];return c})}}function Rr(){let e=window,t=navigator;return O(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Qa(){let e=window,t=navigator;return O(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Rr()}function rt(){let e=window,t=navigator;return O(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function se(){let e=window,t=navigator;return O(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Cn(){let e=window,{HTMLElement:t,Document:n}=e;return O(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function it(){let e=window;return Xa(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Dr(){var e,t;let n=window;return O(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function el(){let e=window;return O([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function tl(){let e=window,{URLPattern:t}=e;return O(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function nl(){let e=window;return O(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function st(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:o}=e;return O([!("getStorageUpdates"in t),o&&"popover"in o.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function ol(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return O(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function rl(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function il(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function kn(){let e=rt(),t=Dr(),n=window,o=navigator,r="connection";return e?O([!("SharedWorker"in n),o[r]&&"ontypechange"in o[r],!("sinkId"in new Audio)])>=2:t?O(["onorientationchange"in n,"orientation"in n,/android/i.test(o.appVersion)])>=2:!1}function sl(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:o}=t;return O(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,o&&"segments"in o,"getTextInformation"in Image.prototype])>=3}function al(){return ul()?-4:ll()}function ll(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(cl())return-1;let n=4500,o=5e3,r=new t(1,o,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;let s=r.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,i.connect(s),s.connect(r.destination),i.start(0);let[l,a]=dl(r),d=ot(l.then(c=>ml(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(a(),d)}function cl(){return se()&&!Cn()&&!nl()}function ul(){return se()&&st()&&it()||rt()&&sl()&&tl()}function dl(e){let i=()=>{};return[new Promise((l,a)=>{let d=!1,c=0,u=0;e.oncomplete=v=>l(v.renderedBuffer);let g=()=>{setTimeout(()=>a(vr("timeout")),Math.min(500,u+5e3-Date.now()))},f=()=>{try{let v=e.startRendering();switch(Cr(v)&&ot(v),e.state){case"running":u=Date.now(),d&&g();break;case"suspended":document.hidden||c++,d&&c>=3?a(vr("suspended")):setTimeout(f,500);break}}catch(v){a(v)}};f(),i=()=>{d||(d=!0,u>0&&g())}}),i]}function ml(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function vr(e){let t=new Error(e);return t.name=e,t}function Hr(e,t,n=50){return b(this,null,function*(){var o,r,i;let s=document;for(;!s.body;)yield Nt(n);let l=s.createElement("iframe");try{for(yield new Promise((a,d)=>{let c=!1,u=()=>{c=!0,a()},g=m=>{c=!0,d(m)};l.onload=u,l.onerror=g;let{style:f}=l;f.setProperty("display","block","important"),f.position="absolute",f.top="0",f.left="0",f.visibility="hidden",t&&"srcdoc"in l?l.srcdoc=t:l.src="about:blank",s.body.appendChild(l);let v=()=>{var m,p;c||(((p=(m=l.contentWindow)===null||m===void 0?void 0:m.document)===null||p===void 0?void 0:p.readyState)==="complete"?u():setTimeout(v,10))};v()});!(!((r=(o=l.contentWindow)===null||o===void 0?void 0:o.document)===null||r===void 0)&&r.body);)yield Nt(n);return yield e(l,l.contentWindow)}finally{(i=l.parentNode)===null||i===void 0||i.removeChild(l)}})}function fl(e){let[t,n]=Ba(e),o=document.createElement(t!=null?t:"div");for(let r of Object.keys(n)){let i=n[r].join(" ");r==="style"?pl(o.style,i):o.setAttribute(r,i)}return o}function pl(e,t){for(let n of t.split(";")){let o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(o){let[,r,i,,s]=o;e.setProperty(r,i,s||"")}}}function gl(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}var hl="mmMwWLliI0O&1",Sl="48px",He=["monospace","sans-serif","serif"],Lr=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function yl(){return Hr((n,o)=>b(null,[n,o],function*(e,{document:t}){let r=t.body;r.style.fontSize=Sl;let i=t.createElement("div");i.style.setProperty("visibility","hidden","important");let s={},l={},a=m=>{let p=t.createElement("span"),{style:y}=p;return y.position="absolute",y.top="0",y.left="0",y.fontFamily=m,p.textContent=hl,i.appendChild(p),p},d=(m,p)=>a(`'${m}',${p}`),c=()=>He.map(a),u=()=>{let m={};for(let p of Lr)m[p]=He.map(y=>d(p,y));return m},g=m=>He.some((p,y)=>m[y].offsetWidth!==s[p]||m[y].offsetHeight!==l[p]),f=c(),v=u();r.appendChild(i);for(let m=0;m<He.length;m++)s[He[m]]=f[m].offsetWidth,l[He[m]]=f[m].offsetHeight;return Lr.filter(m=>g(v[m]))}))}function bl(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let o=e[n];if(!o)continue;let r=[];for(let i=0;i<o.length;++i){let s=o[i];r.push({type:s.type,suffixes:s.suffixes})}t.push({name:o.name,description:o.description,mimeTypes:r})}return t}function El(){return vl(Al())}function vl(e){let t=!1,n,o,[r,i]=Ll();return _l(r,i)?(t=wl(i),e?n=o="skipped":[n,o]=Il(r,i)):n=o="unsupported",{winding:t,geometry:n,text:o}}function Ll(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function _l(e,t){return!!(t&&e.toDataURL)}function wl(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function Il(e,t){Tl(e,t);let n=In(e),o=In(e);return n!==o?["unstable","unstable"]:(xl(e,t),[In(e),n])}function Tl(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function xl(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,o,r]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(o,r,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function In(e){return e.toDataURL()}function Al(){return se()&&st()&&it()}function Ml(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Fn(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(r){n=!1}let o="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:o}}function Fl(){return navigator.oscpu}function Cl(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))rt()&&el()||t.push(e.languages);else if(typeof e.languages=="string"){let o=e.languages;o&&t.push(o.split(","))}return t}function kl(){return window.screen.colorDepth}function Rl(){return ce(ie(navigator.deviceMemory),void 0)}function Dl(){if(!(se()&&st()&&it()))return Hl()}function Hl(){let e=screen,t=o=>ce(Fn(o),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var Pl=2500,Ol=10,Ot,Tn;function Nl(){if(Tn!==void 0)return;let e=()=>{let t=An();Mn(t)?Tn=setTimeout(e,Pl):(Ot=t,Tn=void 0)};e()}function Ul(){return Nl(),()=>b(null,null,function*(){let e=An();if(Mn(e)){if(Ot)return[...Ot];rl()&&(yield il(),e=An())}return Mn(e)||(Ot=e),e})}function Vl(){if(se()&&st()&&it())return()=>Promise.resolve(void 0);let e=Ul();return()=>b(null,null,function*(){let t=yield e(),n=o=>o===null?null:kr(o,Ol);return[n(t[0]),n(t[1]),n(t[2]),n(t[3])]})}function An(){let e=screen;return[ce(ie(e.availTop),null),ce(ie(e.width)-ie(e.availWidth)-ce(ie(e.availLeft),0),null),ce(ie(e.height)-ie(e.availHeight)-ce(ie(e.availTop),0),null),ce(ie(e.availLeft),null)]}function Mn(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Bl(){return ce(Fn(navigator.hardwareConcurrency),void 0)}function Gl(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let o=new t().resolvedOptions().timeZone;if(o)return o}let n=-$l();return`UTC${n>=0?"+":""}${n}`}function $l(){let e=new Date().getFullYear();return Math.max(ie(new Date(e,0,1).getTimezoneOffset()),ie(new Date(e,6,1).getTimezoneOffset()))}function Wl(){try{return!!window.sessionStorage}catch(e){return!0}}function zl(){try{return!!window.localStorage}catch(e){return!0}}function Kl(){if(!(Rr()||Qa()))try{return!!window.indexedDB}catch(e){return!0}}function Yl(){return!!window.openDatabase}function jl(){return navigator.cpuClass}function Xl(){let{platform:e}=navigator;return e==="MacIntel"&&se()&&!Cn()?ol()?"iPad":"iPhone":e}function Zl(){return navigator.vendor||""}function Jl(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function ql(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Ql(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function ec(){return b(this,arguments,function*({debug:e}={}){if(!tc())return;let t=Ql(),n=Object.keys(t),o=[].concat(...n.map(s=>t[s])),r=yield nc(o);e&&oc(t,r);let i=n.filter(s=>{let l=t[s];return O(l.map(d=>r[d]))>l.length*.6});return i.sort(),i})}function tc(){return se()||kn()}function nc(e){return b(this,null,function*(){var t;let n=document,o=n.createElement("div"),r=new Array(e.length),i={};_r(o);for(let s=0;s<e.length;++s){let l=fl(e[s]);l.tagName==="DIALOG"&&l.show();let a=n.createElement("div");_r(a),a.appendChild(l),o.appendChild(a),r[s]=l}for(;!n.body;)yield Nt(50);n.body.appendChild(o);try{for(let s=0;s<e.length;++s)r[s].offsetParent||(i[e[s]]=!0)}finally{(t=o.parentNode)===null||t===void 0||t.removeChild(o)}return i})}function _r(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function oc(e,t){let n="DOM blockers debug:\n```";for(let o of Object.keys(e)){n+=`
${o}:`;for(let r of e[o])n+=`
  ${t[r]?"\u{1F6AB}":"\u27A1\uFE0F"} ${r}`}console.log(`${n}
\`\`\``)}function rc(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function ic(){if(wr("inverted"))return!0;if(wr("none"))return!1}function wr(e){return matchMedia(`(inverted-colors: ${e})`).matches}function sc(){if(Ir("active"))return!0;if(Ir("none"))return!1}function Ir(e){return matchMedia(`(forced-colors: ${e})`).matches}var ac=100;function lc(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=ac;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function cc(){if(Pe("no-preference"))return 0;if(Pe("high")||Pe("more"))return 1;if(Pe("low")||Pe("less"))return-1;if(Pe("forced"))return 10}function Pe(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function uc(){if(Tr("reduce"))return!0;if(Tr("no-preference"))return!1}function Tr(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function dc(){if(xr("reduce"))return!0;if(xr("no-preference"))return!1}function xr(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function mc(){if(Ar("high"))return!0;if(Ar("standard"))return!1}function Ar(e){return matchMedia(`(dynamic-range: ${e})`).matches}var _=Math,P=()=>0;function fc(){let e=_.acos||P,t=_.acosh||P,n=_.asin||P,o=_.asinh||P,r=_.atanh||P,i=_.atan||P,s=_.sin||P,l=_.sinh||P,a=_.cos||P,d=_.cosh||P,c=_.tan||P,u=_.tanh||P,g=_.exp||P,f=_.expm1||P,v=_.log1p||P,m=w=>_.pow(_.PI,w),p=w=>_.log(w+_.sqrt(w*w-1)),y=w=>_.log(w+_.sqrt(w*w+1)),E=w=>_.log((1+w)/(1-w))/2,L=w=>_.exp(w)-1/_.exp(w)/2,D=w=>(_.exp(w)+1/_.exp(w))/2,re=w=>_.exp(w)-1,U=w=>(_.exp(2*w)-1)/(_.exp(2*w)+1),$=w=>_.log(1+w);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:p(1e154),asin:n(.12312423423423424),asinh:o(1),asinhPf:y(1),atanh:r(.5),atanhPf:E(.5),atan:i(.5),sin:s(-1e300),sinh:l(1),sinhPf:L(1),cos:a(10.000000000123),cosh:d(1),coshPf:D(1),tan:c(-1e300),tanh:u(1),tanhPf:U(1),exp:g(1),expm1:f(1),expm1Pf:re(1),log1p:v(10),log1pPf:$(10),powPI:m(-100)}}var pc="mmMwWLliI0fiflO&1",xn={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function gc(){return hc((e,t)=>{let n={},o={};for(let r of Object.keys(xn)){let[i={},s=pc]=xn[r],l=e.createElement("span");l.textContent=s,l.style.whiteSpace="nowrap";for(let a of Object.keys(i)){let d=i[a];d!==void 0&&(l.style[a]=d)}n[r]=l,t.append(e.createElement("br"),l)}for(let r of Object.keys(xn))o[r]=n[r].getBoundingClientRect().width;return o})}function hc(e,t=4e3){return Hr((n,o)=>{let r=o.document,i=r.body,s=i.style;s.width=`${t}px`,s.webkitTextSizeAdjust=s.textSizeAdjust="none",rt()?i.style.zoom=`${1/o.devicePixelRatio}`:se()&&(i.style.zoom="reset");let l=r.createElement("div");return l.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),i.appendChild(l),e(r,i)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Sc(){return navigator.pdfViewerEnabled}function yc(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function bc(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(Ec())return-3;try{return e.canMakePayments()?1:0}catch(t){return vc(t)}}var Ec=gl;function vc(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Lc(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Pr=-1,Or=-2,_c=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),wc=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Ic=["FRAGMENT_SHADER","VERTEX_SHADER"],Tc=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Nr="WEBGL_debug_renderer_info",xc="WEBGL_polygon_mode";function Ac({cache:e}){var t,n,o,r,i,s;let l=Ur(e);if(!l)return Pr;if(!Br(l))return Or;let a=Vr()?null:l.getExtension(Nr);return{version:((t=l.getParameter(l.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=l.getParameter(l.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:a?(o=l.getParameter(a.UNMASKED_VENDOR_WEBGL))===null||o===void 0?void 0:o.toString():"",renderer:((r=l.getParameter(l.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:a?(i=l.getParameter(a.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((s=l.getParameter(l.SHADING_LANGUAGE_VERSION))===null||s===void 0?void 0:s.toString())||""}}function Mc({cache:e}){let t=Ur(e);if(!t)return Pr;if(!Br(t))return Or;let n=t.getSupportedExtensions(),o=t.getContextAttributes(),r=[],i=[],s=[],l=[],a=[];if(o)for(let c of Object.keys(o))i.push(`${c}=${o[c]}`);let d=Mr(t);for(let c of d){let u=t[c];s.push(`${c}=${u}${_c.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let c of n){if(c===Nr&&Vr()||c===xc&&kc())continue;let u=t.getExtension(c);if(!u){r.push(c);continue}for(let g of Mr(u)){let f=u[g];l.push(`${g}=${f}${wc.has(f)?`=${t.getParameter(f)}`:""}`)}}for(let c of Ic)for(let u of Tc){let g=Fc(t,c,u);a.push(`${c}.${u}=${g.join(",")}`)}return l.sort(),s.sort(),{contextAttributes:i,parameters:s,shaderPrecisions:a,extensions:n,extensionParameters:l,unsupportedExtensions:r}}function Ur(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let o of["webgl","experimental-webgl"]){try{n=t.getContext(o)}catch(r){}if(n)break}return e.webgl={context:n},n}function Fc(e,t,n){let o=e.getShaderPrecisionFormat(e[t],e[n]);return o?[o.rangeMin,o.rangeMax,o.precision]:[]}function Mr(e){return Object.keys(e.__proto__).filter(Cc)}function Cc(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function Vr(){return Dr()}function kc(){return rt()||se()}function Br(e){return typeof e.getParameter=="function"}function Rc(){if(!(kn()||se()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function Dc(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}var Hc={fonts:yl,domBlockers:ec,fontPreferences:gc,audio:al,screenFrame:Vl,canvas:El,osCpu:Fl,languages:Cl,colorDepth:kl,deviceMemory:Rl,screenResolution:Dl,hardwareConcurrency:Bl,timezone:Gl,sessionStorage:Wl,localStorage:zl,indexedDB:Kl,openDatabase:Yl,cpuClass:jl,platform:Xl,plugins:bl,touchSupport:Ml,vendor:Zl,vendorFlavors:Jl,cookiesEnabled:ql,colorGamut:rc,invertedColors:ic,forcedColors:sc,monochrome:lc,contrast:cc,reducedMotion:uc,reducedTransparency:dc,hdr:mc,math:fc,pdfViewerEnabled:Sc,architecture:yc,applePay:bc,privateClickMeasurement:Lc,audioBaseLatency:Rc,dateTimeLocale:Dc,webGlBasics:Ac,webGlExtensions:Mc};function Pc(e){return qa(Hc,e,[])}var Oc="$ if upgrade to Pro: https://fpjs.dev/pro";function Nc(e){let t=Uc(e),n=Vc(t);return{score:t,comment:Oc.replace(/\$/g,`${n}`)}}function Uc(e){if(kn())return .4;if(se())return Cn()&&!(st()&&it())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Vc(e){return kr(.99+.01*e,1e-4)}function Bc(e){let t="";for(let n of Object.keys(e).sort()){let o=e[n],r="error"in o?"error":JSON.stringify(o.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${r}`}return t}function Gr(e){return JSON.stringify(e,(t,n)=>n instanceof Error?ja(n):n,2)}function $r(e){return Ya(Bc(e))}function Gc(e){let t,n=Nc(e);return{get visitorId(){return t===void 0&&(t=$r(this.components)),t},set visitorId(o){t=o},confidence:n,components:e,version:Fr}}function $c(e=50){return Na(e,e*2)}function Wc(e,t){let n=Date.now();return{get(r){return b(this,null,function*(){let i=Date.now(),s=yield e(),l=Gc(s);return(t||r!=null&&r.debug)&&console.log(`Copy the text below to get the debug data:

\`\`\`
version: ${l.version}
userAgent: ${navigator.userAgent}
timeBetweenLoadAndGet: ${i-n}
visitorId: ${l.visitorId}
components: ${Gr(s)}
\`\`\``),l})}}}function zc(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Fr}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function Kc(){return b(this,arguments,function*(e={}){var t;(!((t=e.monitoring)!==null&&t!==void 0)||t)&&zc();let{delayFallback:n,debug:o}=e;yield $c(n);let r=Pc({cache:{},debug:o});return Wc(r,o)})}var Wr={load:Kc,hashComponents:$r,componentsToDebugString:Gr};var zr=()=>!0;function Kr(e){zr=e}function Z(){return zr()}var Yc="_dflt_",ct=365*24*60*60*1e3,Yr=S.module("Session");function jr(e){Kr(e)}function Xr(){let e=window.location.hostname;if(e==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(e))return e;let t=e.split(".");return t.length<=2?e:t.slice(-2).join(".")}function Oe(e){return`${Yc}${e}`}function jc(){return window.location.protocol==="https:"}function Zr(e){return e!=="localhost"&&!/^\d+\.\d+\.\d+\.\d+$/.test(e)}function at(e,t,n=ct){let o=Oe(e),r=Xr(),i=Math.floor(n/1e3),s=jc()?"; Secure":"",l=Zr(r)?`; Domain=.${r}`:"";document.cookie=`${o}=${encodeURIComponent(t)}; Max-Age=${i}; Path=/${l}; SameSite=Lax${s}`}function Rn(e){let t=Oe(e),n=document.cookie.split(";");for(let o of n){let[r,...i]=o.trim().split("=");if(r===t)return decodeURIComponent(i.join("="))}return null}function Xc(e){let t=Oe(e),n=Xr(),o=Zr(n)?`; Domain=.${n}`:"";document.cookie=`${t}=; Max-Age=0; Path=/${o}; SameSite=Lax`}function lt(e,t){try{let n=Oe(e);sessionStorage.setItem(n,t)}catch(n){Yr.debug("Failed to set session storage")}}function Ut(e){try{let t=Oe(e);return sessionStorage.getItem(t)}catch(t){return null}}function Jr(e){try{let t=Oe(e);sessionStorage.removeItem(t)}catch(t){Yr.debug("Failed to remove session storage")}}function Ne(e){let t=Ut(e);return t||Rn(e)}function Vt(e,t,n){if(e==="consent"){at(e,t,n),lt(e,t);return}Z()&&(at(e,t,n),lt(e,t))}function ut(e){return Ut(e)}function Ue(e,t){Z()&&(lt(e,t),at(e,t))}function dt(e){Xc(e),Jr(e)}function Dn(e){Jr(e)}var H=class{constructor(){this.isInitialized=!1}ensureNotInitialized(){return!this.isInitialized}markInitialized(){this.isInitialized=!0}get initialized(){return this.isInitialized}reset(){this.isInitialized=!1}};function qr(){if(typeof crypto!="undefined"&&crypto.randomUUID)try{return crypto.randomUUID.call(crypto)}catch(e){}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Qr(){if(typeof crypto!="undefined"&&crypto.randomUUID)try{return`fb_${crypto.randomUUID.call(crypto)}`}catch(n){}let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,15);return`fb_${e}_${t}`}var N=S.module("Identity"),Hn=class e extends H{constructor(){super(...arguments);this.agent=null;this.anonymousId=null;this.initPromise=null;this.generation=0}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){return b(this,null,function*(){return this.initPromise?(N.debug("Init already in progress, returning existing promise"),this.initPromise):(N.debug("Initializing fingerprint manager"),this.initPromise=this.doInit(),this.initPromise)})}doInit(){return b(this,null,function*(){let n=this.generation;if(!Z())return N.debug("Analytics consent withheld, skipping FingerprintJS and using an ephemeral id"),this.adoptEphemeralId();let o=Ne("aid");if(o)return this.anonymousId=o,this.markInitialized(),N.success(`Restored anonymousId ${o.slice(0,8)}... from cache`),o;N.debug("No cached anonymousId, generating new one");try{N.debug("Loading FingerprintJS...");let r=yield Wr.load(),i=yield r.get();return n!==this.generation?(N.debug("Consent was revoked mid-init, discarding FingerprintJS result"),i.visitorId):(this.agent=r,this.anonymousId=i.visitorId,Vt("aid",this.anonymousId,ct),this.markInitialized(),N.success(`Generated anonymousId ${this.anonymousId.slice(0,8)}... via FingerprintJS`),this.anonymousId)}catch(r){N.warn("FingerprintJS failed, using fallback",r);let i=this.generateFallbackId();return n!==this.generation?(N.debug("Consent was revoked mid-init, discarding fallback result"),i):(this.anonymousId=i,Vt("aid",this.anonymousId,ct),this.markInitialized(),N.success(`Generated fallback anonymousId ${this.anonymousId.slice(0,8)}...`),this.anonymousId)}})}adoptEphemeralId(){return this.anonymousId=this.generateFallbackId(),this.markInitialized(),N.success(`Generated ephemeral anonymousId ${this.anonymousId.slice(0,8)}...`),this.anonymousId}generateFallbackId(){return Qr()}getAnonymousId(){if(this.anonymousId)return this.anonymousId;if(!Z())return this.adoptEphemeralId();let n=Ne("aid");return n?(this.anonymousId=n,this.initialized||this.markInitialized(),N.debug(`Lazy-loaded anonymousId ${n.slice(0,8)}... from cache`),this.anonymousId):(this.initPromise?N.warn("getAnonymousId called while init in progress - generating emergency fallback"):N.error("getAnonymousId called before init started - generating emergency fallback"),this.anonymousId=this.generateFallbackId(),Vt("aid",this.anonymousId,ct),this.markInitialized(),this.anonymousId)}isReady(){return this.initialized&&this.anonymousId!==null}waitForReady(){return b(this,null,function*(){return this.anonymousId?this.anonymousId:this.init()})}reset(){super.reset(),this.generation++,this.anonymousId=null,this.agent=null,this.initPromise=null,dt("aid")}},J=Hn.getInstance();function Ve(){var t;return((t=new URLSearchParams(window.location.search).get("gclid"))==null?void 0:t.trim())||void 0}var Pn=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];var Dm=[...Pn,"gclid","submission_url","referrer"];function Be(){let e=new URLSearchParams(window.location.search),t={};for(let n of Pn){let o=e.get(n);o&&(t[n]=o)}return t}var ei=null,ti=null;function ni(e,t){return b(this,null,function*(){return(yield fetch(e,{method:t,cache:"no-store",credentials:"same-origin"})).status})}function Zc(e){return b(this,null,function*(){try{let t=yield ni(e,"HEAD");if(t!==404&&t!==410)return!1;let n=yield ni(e,"GET");return n===404||n===410}catch(t){return!1}})}function oi(e){return ei!==e&&(ei=e,ti=Zc(e)),ti}function Ge(){if(typeof performance=="undefined"||typeof performance.getEntriesByType!="function")return;let[e]=performance.getEntriesByType("navigation"),t=e==null?void 0:e.responseStatus;return typeof t=="number"&&Number.isInteger(t)&&t>0?t:void 0}var Bt=1800*1e3,ri=60*1e3,T=S.module("Session"),On=class e extends H{constructor(){super(...arguments);this.sessionId=null;this.lastActivity=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){T.debug("Already initialized, skipping");return}T.debug("Initializing session manager");let n=this.tryRestoreFromSessionStorage();if(n==="expired"){this.startNewSession(),this.postInitialization();return}if(n){this.restoreSession(n.from,n.sessionId,n.lastActivity),this.postInitialization();return}let o=this.tryRestoreFromCookie();if(o==="expired"){this.startNewSession(),this.postInitialization();return}o?this.restoreSession(o.from,o.sessionId,o.lastActivity):(T.debug("No existing session found - starting new session"),this.startNewSession()),this.postInitialization()}tryRestoreFromSessionStorage(){let n=ut("sid"),o=ut("la");if(!n||!o)return null;let r=parseInt(o,10);return T.found("existing session in sessionStorage",1),this.isSessionValid(r)?{sessionId:n,lastActivity:r,from:"sessionStorage"}:(this.handleExpiredSession(n,r,"sessionStorage"),"expired")}tryRestoreFromCookie(){let n=Ne("sid"),o=Ne("la");if(!n||!o)return null;let r=parseInt(o,10);return T.found("existing session in cookie (from another tab)",1),this.isSessionValid(r)?{sessionId:n,lastActivity:r,from:"cookie"}:(this.handleExpiredSession(n,r,"cookie"),"expired")}restoreSession(n,o,r){this.sessionId=o,this.lastActivity=r,n==="cookie"&&(Ue("sid",this.sessionId),Ue("la",this.lastActivity.toString())),this.updateActivity();let i=n==="sessionStorage"?"sessionStorage":"cookie (shared across tabs)";T.success(`Restored session ${this.formatSessionId(o)}... from ${i}`)}handleExpiredSession(n,o,r){let i=Math.round((Date.now()-o)/ri),s=r==="sessionStorage"?"Session":"Cookie session";T.debug(`${s} expired ${i} minutes ago`),this.endExpiredSession(n,o)}postInitialization(){this.markInitialized(),T.success("Session manager initialized")}formatSessionId(n){return n.slice(0,8)}isSessionValid(n){let o=Date.now()-n,r=o<Bt;if(r){let i=Math.round((Bt-o)/ri);T.debug(`Session valid, ${i} minutes until timeout`)}return r}generateSessionId(){return qr()}startNewSession(){this.sessionId=this.generateSessionId(),this.lastActivity=Date.now(),Ue("sid",this.sessionId),Ue("la",this.lastActivity.toString()),T.success(`Started new session ${this.formatSessionId(this.sessionId)}...`),this.sendSessionStart()}updateActivity(){this.sessionId&&(this.lastActivity=Date.now(),Ue("la",this.lastActivity.toString()))}touch(){return!this.sessionId||!this.lastActivity?(T.debug("No active session, starting new one"),this.startNewSession(),{isNewSession:!0,sessionId:this.sessionId}):this.isSessionValid(this.lastActivity)?(this.updateActivity(),{isNewSession:!1,sessionId:this.sessionId}):(T.debug("Session timed out, rotating to new session"),this.endExpiredSession(this.sessionId,this.lastActivity),this.startNewSession(),{isNewSession:!0,sessionId:this.sessionId})}endExpiredSession(n,o){T.debug(`Ending expired session ${this.formatSessionId(n)}...`);let r=this.buildSessionEndPayload(n,o,"timeout");r&&Z()&&(wn(r),T.sent("session end (expired)",{sessionId:this.formatSessionId(n),endedAt:new Date(o).toISOString()})),this.clearSessionStorage()}endSession(n){this.sessionId&&(T.debug(`Ending session (reason: ${n})`),this.sendSessionEnd(n),this.clearSessionState(),T.success("Session ended and cleared from sessionStorage"))}clearSessionStorage(){Dn("sid"),Dn("la")}clearSessionState(){this.clearSessionStorage(),this.sessionId=null,this.lastActivity=null}reset(){super.reset(),this.sessionId=null,this.lastActivity=null,dt("sid"),dt("la")}sendSessionStart(){if(!Z()){T.debug("Analytics consent withheld, skipping session start");return}if(!this.sessionId){T.warn("Cannot send session start: missing sessionId");return}let n=k.get();if(!n){T.warn("Cannot send session start: missing config");return}let o=Ve(),r=Ge(),i=h(A(h({publicKey:n.publicKey,anonymousId:J.getAnonymousId(),sessionId:this.sessionId,startedAt:this.lastActivity||Date.now(),pageUrl:window.location.href,referrer:document.referrer,utmParams:Be()},o&&{gclid:o}),{userAgent:navigator.userAgent}),r!==void 0&&{responseStatus:r});nr(i),T.sent("session start",{sessionId:this.formatSessionId(this.sessionId)})}sendSessionEnd(n){if(!Z()){T.debug("Analytics consent withheld, skipping session end");return}if(!this.sessionId)return;this.updateActivity();let o=this.buildSessionEndPayload(this.sessionId,this.lastActivity||Date.now(),n);o&&(wn(o),T.sent("session end",{reason:n}))}buildSessionEndPayload(n,o,r){let i=k.get();return i?{publicKey:i.publicKey,anonymousId:J.getAnonymousId(),sessionId:n,endedAt:o,reason:r}:null}sendSessionEndWithoutClearing(n){this.sessionId&&(T.debug(`Sending session end beacon (reason: ${n}) without clearing state for potential reconciliation`),this.sendSessionEnd(n))}getSessionId(){if(!this.sessionId){let n=ut("sid"),o=ut("la");if(n&&o){let r=parseInt(o,10);if(this.isSessionValid(r))return this.sessionId=n,this.lastActivity=r,this.markInitialized(),T.debug(`Lazy-loaded sessionId ${this.formatSessionId(n)}... from cache`),this.sessionId}T.warn("getSessionId called before init completed - generating session"),this.startNewSession(),this.markInitialized()}return this.sessionId}getLastActivity(){return this.lastActivity}isReady(){return this.initialized&&this.sessionId!==null}},q=On.getInstance();var Jc=S.module("Consent"),ii="consent",si=1;function Gt(){let e=Rn(ii);if(!e)return null;try{let t=JSON.parse(e);return t.v!==si?null:t}catch(t){return Jc.warn("Failed to parse stored consent, ignoring"),null}}function ai(e){var i,s,l,a,d,c;let t=Gt(),n=(s=(i=e.analytics)!=null?i:t==null?void 0:t.analytics)!=null?s:!0,o=(l=t==null?void 0:t.analytics)!=null?l:!0,r={analytics:n,marketing:(d=(a=e.marketing)!=null?a:t==null?void 0:t.marketing)!=null?d:!0,v:si,r:((c=t==null?void 0:t.r)!=null?c:0)+(o&&!n?1:0)};at(ii,JSON.stringify(r))}var mt=S.module("Consent"),li={analytics:!0,marketing:!0},Nn=class e{constructor(){this.state=h({},li);this.listeners=[]}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){let t=Gt();t&&(this.state={analytics:t.analytics,marketing:t.marketing},mt.debug(`Restored consent state: ${JSON.stringify(this.state)}`),t.analytics||(mt.info("Restored analytics consent is withheld \u2014 purging any leftover persisted identity"),this.clearPersistedIdentity()))}getConsent(){return this.sharedState()}setConsent(t){let n=this.state,o=this.sharedState(),r=h(h({},o),t);this.state=r,this.persistConsent(r),n.analytics&&!r.analytics&&(mt.info("Analytics consent revoked \u2014 clearing persisted identity"),this.clearPersistedIdentity()),o.marketing&&!r.marketing&&mt.info("Marketing consent revoked \u2014 future Vector loads/identify calls will be skipped (an already-injected Vector script cannot be retracted)"),mt.success(`Consent updated: ${JSON.stringify(r)}`),this.listeners.forEach(i=>i(this.getConsent()))}onChange(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}sharedState(){let t=Gt();return t?{analytics:t.analytics,marketing:t.marketing}:h({},this.state)}clearPersistedIdentity(){J.reset(),q.reset()}persistConsent(t){ai(t)}reset(){this.state=h({},li),this.listeners=[]}},Q=Nn.getInstance();var ee=S.module("Vector"),ci="https://cdn.vector.co/pixel.js",ui="89c23b71-2ba2-4fb3-90b6-e77270348967",qc=Bt;function Qc(e){let t=Ut("wi");if(!t)return null;try{let n=JSON.parse(t);return n.publicKey!==e||typeof n.vector!="boolean"||typeof n.at!="number"||Date.now()-n.at>qc?null:n.vector}catch(n){return null}}function eu(e,t){let n={publicKey:e,vector:t,at:Date.now()};lt("wi",JSON.stringify(n))}var Un=class e extends H{constructor(){super(...arguments);this.initPromise=null;this.orgVectorOn=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){return b(this,null,function*(){return this.initPromise||(this.initPromise=this.performInit().finally(()=>{this.initialized||(this.initPromise=null)})),this.initPromise})}performInit(){return b(this,null,function*(){if(!this.ensureNotInitialized())return;if(!Q.getConsent().marketing){ee.debug("Marketing consent not granted, skipping Vector initialization");return}if(!ui){ee.warn("No VECTOR_PIXEL_ID configured, skipping Vector initialization");return}let n=k.getPublicKey();if(!n){ee.warn("No public key available, skipping Vector initialization");return}if(!(yield this.isOnForOrg(n))){ee.debug("Vector is off for this workspace, skipping Vector initialization");return}if(!Q.getConsent().marketing){ee.debug("Marketing consent revoked while checking the workspace toggle, skipping");return}try{if(yield this.loadScript(),!Q.getConsent().marketing){ee.debug("Marketing consent revoked while the script was loading, skipping identify");return}this.identify(n),this.markInitialized(),ee.success("Vector initialized")}catch(o){ee.warn("Failed to initialize Vector",o)}})}isOnForOrg(n){return b(this,null,function*(){if(this.orgVectorOn!==null)return this.orgVectorOn;let o=Qc(n);if(o!==null)return this.orgVectorOn=o,o;let r=!0;try{let i=yield cr();typeof(i==null?void 0:i.vector)=="boolean"&&eu(n,i.vector),r=(i==null?void 0:i.vector)!==!1}catch(i){ee.warn("Could not resolve the workspace Website Intent toggle, loading Vector",i)}return this.orgVectorOn=r,r})}loadScript(){return new Promise((n,o)=>{if(document.querySelector(`script[src="${ci}"]`)){ee.debug("Vector script already loaded"),n();return}let r=document.createElement("script");r.src=ci,r.async=!0,r.onload=()=>{ee.debug("Vector script loaded"),n()},r.onerror=()=>{o(new Error("Failed to load Vector script"))},document.head.appendChild(r)})}identify(n){let o=window.vector;if(!o)throw new Error("Vector SDK not available after script load");let r=J.getAnonymousId();o.partnerId=JSON.stringify({publicKey:n,anonymousId:r}),o.load(ui),ee.debug(`Identified with publicKey=${n.slice(0,8)}...`)}},$t=Un.getInstance();var Vn=null;function di(e){Vn=e}function mi(){return Vn?Vn():null}function we(){let e=k.get();if(!e)return null;let t=mi();if(!t)return null;let n=Ve(),o=Ge();return h(A(h({publicKey:e.publicKey,anonymousId:t.anonymousId,sessionId:t.sessionId,utmParams:Be()},n&&{gclid:n}),{userAgent:navigator.userAgent,pageUrl:window.location.href,referrer:document.referrer,ts:Date.now()}),o!==void 0&&{responseStatus:o})}var Bn=(u=>(u.TEXT="text",u.TEXTAREA="textarea",u.EMAIL="email",u.PHONE="phone",u.URL="url",u.NUMBER="number",u.BOOLEAN="boolean",u.DATE="date",u.SELECT="select",u.MULTISELECT="multiselect",u.HIDDEN="hidden",u))(Bn||{}),Ff={text:"string",textarea:"string",email:"email",phone:"phone",url:"url",number:"number",boolean:"boolean",date:"date",select:"select",multiselect:"multiselect",hidden:"string"};var tu=new Set(Object.values(Bn));function fi(e){return tu.has(e)}var nu={text:{tag:"input",inputType:"text"},textarea:{tag:"textarea",inputType:null},email:{tag:"input",inputType:"email"},phone:{tag:"input",inputType:"tel"},url:{tag:"input",inputType:"url"},number:{tag:"input",inputType:"number"},boolean:{tag:"input",inputType:"checkbox"},date:{tag:"input",inputType:"date"},select:{tag:"select",inputType:null},multiselect:{tag:"select",inputType:"select-multiple"},hidden:{tag:"input",inputType:"hidden"}};function pi(e){return nu[e]}var gi=new Intl.Collator("en"),hi=(e,t)=>gi.compare(e.name,t.name),ou=e=>{var t,n;return(n=(t=e.inputType)!=null?t:e.input_type)!=null?n:null},ru=e=>e==="select"||e==="textarea",Si=e=>{let t=e.type==="string"?"text":e.type;if(fi(t)&&!ru(t)){let{tag:n,inputType:o}=pi(t);return{type:n,inputType:o}}return{type:e.type,inputType:ou(e)}},iu=e=>e?[...e].map(t=>{var n;return{value:t.value,label:(n=t.label)!=null?n:""}}).sort((t,n)=>gi.compare(t.value,n.value)):null,Gn=e=>JSON.stringify([...e].sort(hi).map(t=>({name:t.name,type:Si(t).type}))),Ie=e=>JSON.stringify([...e].sort(hi).map(t=>{var r,i,s;let{type:n,inputType:o}=Si(t);return{name:t.name,type:n,inputType:o,label:(r=t.label)!=null?r:null,placeholder:(i=t.placeholder)!=null?i:null,required:(s=t.required)!=null?s:!1,options:iu(t.options)}}));function yi(e){let t=0;if(typeof e!="string"||e.length===0)return String(t);for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);t=(t<<5)-t+o,t=t&t}return t=t>>>0,Number(t).toString(32).toUpperCase()}var su=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(32).toUpperCase()},ft=e=>`${yi(e)}${su(e)}`;var Wt=e=>{let t=new Map;for(let n of e)t.set(n.name,n);return[...t.values()]},$e=e=>ft(Gn(Wt(e))),We=e=>ft(Ie(Wt(e))),au=e=>Wt(e).map(t=>{var n,o;return A(h({},t),{label:null,placeholder:null,options:(o=(n=t.options)==null?void 0:n.map(r=>({value:r.value,label:""})))!=null?o:null})}),bi=e=>ft(Ie(au(e))),$n=e=>{for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!0;return!1},Ei=e=>{var t;for(let n of Wt(e)){if(n.label&&$n(n.label)||n.placeholder&&$n(n.placeholder))return!0;for(let o of(t=n.options)!=null?t:[])if(o.label&&$n(o.label))return!0}return!1};function ge(){if(document.querySelector('meta[name="default:pixel"][content="noform"]'))return!1;let t=[/\/login/i,/\/signin/i,/\/account/i,/\/checkout/i,/\/oauth/i,/\/admin\//i],n=window.location.pathname;return!t.some(o=>o.test(n))}function I(e,t){var i,s,l,a,d;let n=e[t];if(typeof n=="string")return n;let o=(l=(s=(i=e.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.HTMLFormElement)==null?void 0:l.prototype,r=(d=(a=Object.getOwnPropertyDescriptor(o!=null?o:HTMLFormElement.prototype,t))==null?void 0:a.get)==null?void 0:d.call(e);return typeof r=="string"?r:e.getAttribute(t)||""}var lu=S.module("Frames"),cu=3;function Wn(e){try{return e.contentDocument}catch(t){return null}}function zt(e,t){let n=new Set([e]),o=(r,i)=>{let s=r.querySelectorAll("iframe"),l=0;s.forEach(a=>{let d=Wn(a);d||l++,t(a,d),!(!d||n.has(d)||i+1>=cu)&&(n.add(d),o(d,i+1))}),s.length>0&&lu.debug(`Walked ${s.length} frames at depth ${i}, ${l} unreachable`)};o(e,0)}function uu(e,t){let n=new Set([e]);zt(e,(o,r)=>{!r||n.has(r)||(n.add(r),t(r,o))})}function Kt(e,t=document){if(!e)return null;let n=null;return zt(t,o=>{!n&&o.contentWindow===e&&(n=o)}),n}function Yt(e=document){let t=[e];return uu(e,n=>{t.push(n)}),t}var te={PARDOT:"pardot",PARDOT_ACTION_HOSTS:["pardot.com"],HS_CLASS:/\bhs-form\b/i,HS_ID:/^hsForm_/,HS_ACTION_HOSTS:["hsforms.com","hubspot.com"],MKTO_CLASS:/\bmktoForm\b/i,MKTO_ID:/^mktoForm_/,MKTO_ACTION_HOSTS:["marketo.com","mktoweb.com"],META_PIXEL_HOSTS:["facebook.com","www.facebook.com"],META_PIXEL_PATH:"/tr"},du={PASSWORD:/password/i,SECRET:/secret/i,TOKEN:/token/i,KEY:/(api|private|secret|access|stripe|signing|encryption)[_-]?key/i,AUTH:/auth/i,CREDENTIAL:/credential/i,SSN:/ssn/i,CREDIT_CARD:/credit.?card/i,CVV:/cvv/i,CVC:/cvc/i},jt=Object.values(du);function zn(e,t){if(!e.getAttribute("action"))return!1;let n=I(e,"action"),o;try{o=new URL(n)}catch(i){return!1}let r=o.hostname.toLowerCase();return t.some(i=>r===i||r.endsWith(`.${i}`))}function vi(e){let t=I(e,"id"),n=e.className||"";return te.HS_ID.test(t)?"id":te.HS_CLASS.test(n)?"class":zn(e,te.HS_ACTION_HOSTS)?"action-host":e.querySelector('[name="hs_context"]')?"hs_context":null}function Li(e){let t=I(e,"id"),n=e.className||"";return te.MKTO_ID.test(t)?"id":te.MKTO_CLASS.test(n)?"class":zn(e,te.MKTO_ACTION_HOSTS)?"action-host":e.querySelector('[name="munchkinId"], [id^="Mkto"]')?"input":null}function _i(e){let t=e.getAttribute("name")||"",n=I(e,"id");return zn(e,te.PARDOT_ACTION_HOSTS)?"action-host":t.includes(te.PARDOT)?"name":n.includes(te.PARDOT)?"id":e.querySelector('[name*="pardot"]')?"input":null}function wi(e){return _i(e)!==null}function Ii(e){return vi(e)!==null}function Ti(e){return Li(e)!==null}function xi(e){let t=vi(e);if(t)return{vendor:"hubspot",reason:t};let n=Li(e);if(n)return{vendor:"marketo",reason:n};let o=_i(e);return o?{vendor:"pardot",reason:o}:null}function pt(e){var i,s;let t=I(e,"action");if(!t)return!1;let n;try{n=new URL(t)}catch(l){let a=(s=(i=e.ownerDocument.defaultView)==null?void 0:i.location)==null?void 0:s.href;if(!a)return!1;try{n=new URL(t,a)}catch(d){return!1}}let o=n.hostname.toLowerCase();return te.META_PIXEL_HOSTS.includes(o)?(n.pathname.endsWith("/")?n.pathname.slice(0,-1):n.pathname)===te.META_PIXEL_PATH:!1}function z(e){var n;let t=e;for(;t;){if(t.hasAttribute("data-default-ignore"))return!0;t=(n=t.parentElement)!=null?n:mu(t)}return!1}function Kn(e){let t=e.trim().toLowerCase();return t?Yt().some(n=>Array.from(n.querySelectorAll("[data-form-id], form[id]")).some(o=>{var r,i;return(((r=o.getAttribute("data-form-id"))==null?void 0:r.toLowerCase())===t||((i=o.getAttribute("id"))==null?void 0:i.toLowerCase().includes(t)))&&z(o)})):!1}function mu(e){var t,n;try{return(n=(t=e.ownerDocument.defaultView)==null?void 0:t.frameElement)!=null?n:null}catch(o){return null}}var Ai="hsForm_",Xt="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",fu=new RegExp(`^${Xt}$`,"i"),ip=new RegExp(`^${Xt}-${Xt}$`,"i"),pu=new RegExp(`^(${Xt})_[0-9]+$`,"i"),gu=/(?:^|[^0-9a-f])([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i,Mi=e=>fu.test(e);function Fi(e){var o,r;let t=e.trim();if(!t)return null;if(Mi(t))return t.toLowerCase();if(t.toLowerCase().startsWith(Ai.toLowerCase())){let i=t.slice(Ai.length);if(Mi(i))return i.toLowerCase();let s=i.match(pu);return(r=(o=s==null?void 0:s[1])==null?void 0:o.toLowerCase())!=null?r:null}let n=t.match(gu);return n!=null&&n[1]?n[1].toLowerCase():null}function Yn(e,t){if(e==null&&t==null)return!0;if(e==null||t==null)return!1;if(e===t)return!0;let n=Fi(e),o=Fi(t);return n!=null&&o!=null&&n.toLowerCase()===o.toLowerCase()}var jn=(e,t)=>{if(!t)return{send:!1,reason:"catalog_unavailable"};let n=t.hashes[e.structureHash];if(n){if(!n.includes(e.contentHash))return{send:!0,reason:"content_drift"};let o=t.path.linked.some(r=>Yn(r.htmlFormId,e.htmlFormId)&&r.structureHash===e.structureHash&&r.contentHash===e.contentHash);return!t.path.known||!o?{send:!0,reason:"page_discovery"}:{send:!1,reason:"unchanged"}}return e.htmlFormId&&t.ids.some(o=>Yn(o,e.htmlFormId))?{send:!0,reason:"shape_drift"}:{send:!1,reason:"never_catalogued"}};function K(e){return(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE}function Ci(e){let t=e==null?void 0:e.nodeType;return t===Node.TEXT_NODE||t===Node.CDATA_SECTION_NODE||t===Node.COMMENT_NODE||t===Node.PROCESSING_INSTRUCTION_NODE}function ne(e){return K(e)&&e.localName==="input"}function Te(e){return K(e)&&e.localName==="select"}function ki(e){return K(e)&&e.localName==="textarea"}function Ri(e){return K(e)&&e.localName==="iframe"}function Di(e){var t;return(t=e.ownerDocument)!=null?t:e}var Pi=S.module("FormCatalog"),hu=["submit","button","image","file","password"],Hi=["page","pass","path"];function Su(e){return jt.some(t=>t.test(e))}var yu=new Set(["submit","button","image","file"]);function Zn(e){let t=new Set,n=!1;return e.querySelectorAll("input[name], textarea[name], select[name]").forEach(o=>{o.name&&(ne(o)&&yu.has(o.type)||(o.name==="pass"&&ne(o)&&o.type==="password"&&(n=!0),t.add(o.name)))}),!n||t.size!==Hi.length?!1:Hi.every(o=>t.has(o))}function Oi(e,t){var i,s,l;if(e.id){let a=t.querySelector(`label[for="${e.id}"]`);if(a!=null&&a.textContent)return a.textContent.trim()}let n=e.closest("label");if(n!=null&&n.textContent){let a=n.cloneNode(!0);a.querySelectorAll("input, select, textarea").forEach(u=>u.remove());let c=(i=a.textContent)==null?void 0:i.trim();if(c)return c}let o=e.getAttribute("aria-label");if(o)return o.trim();let r=e.getAttribute("aria-labelledby");if(r){let a=[];for(let d of r.split(/\s+/)){if(!d)continue;let c=(l=(s=t.ownerDocument.getElementById(d))==null?void 0:s.textContent)==null?void 0:l.trim();c&&a.push(c)}if(a.length>0)return a.join(" ")}return null}function bu(e){for(let t of e.children)if(t.tagName==="LEGEND")return t;return null}function Eu(e,t){let n=e.querySelectorAll("input[name], textarea[name], select[name]"),o=!1;for(let r of n)if(r.name&&(o=!0,r.name!==t))return!1;return o}function vu(e,t){var s,l,a;let n=e.closest("fieldset");if(!n||!e.name||!Eu(n,e.name))return null;let o=bu(n);if(o){let d=o.cloneNode(!0);d.querySelectorAll("input, select, textarea").forEach(u=>u.remove());let c=(s=d.textContent)==null?void 0:s.trim();if(c)return c}let r=n.getAttribute("aria-labelledby");if(!r)return null;let i=[];for(let d of r.split(/\s+/)){if(!d)continue;let c=(a=(l=t.ownerDocument.getElementById(d))==null?void 0:l.textContent)==null?void 0:a.trim();c&&i.push(c)}return i.length>0?i.join(" "):null}function Lu(e,t){var n;if(Te(e)){let o=[];for(let r=0;r<e.options.length;r++){let i=e.options[r];o.push({value:i.value||"",label:((n=i.textContent)==null?void 0:n.trim())||""})}return o.length>0?o:null}if(ne(e)&&(e.type==="radio"||e.type==="checkbox")){let o=e.name,r=t.querySelectorAll(`input[name="${o}"][type="${e.type}"]`);if(r.length>1){let i=[];return r.forEach(s=>{let l=Oi(s,t);i.push({value:s.value||"",label:l||s.value||""})}),i.length>0?i:null}}return null}var Xn=new WeakMap;function _u(e){if(Xn.has(e))return Xn.get(e);let t=wu(e);return Xn.set(e,t),t}function wu(e){var i,s,l;let t=e.querySelectorAll("h1, h2, h3, h4");if(t.length>0){let a=(i=t[0].textContent)==null?void 0:i.trim();if(a&&a.length>0&&a.length<100)return a}let n=e.previousElementSibling;for(;n;){if(["H1","H2","H3","H4"].includes(n.tagName)){let a=(s=n.textContent)==null?void 0:s.trim();if(a&&a.length>0&&a.length<100)return a;break}if((l=n.previousElementSibling)!=null&&l.previousElementSibling)break;n=n.previousElementSibling}let o=e.querySelector('button[type="submit"]');if(o!=null&&o.textContent){let a=o.textContent.trim();if(a&&a.length>0&&a.length<100)return a}let r=e.querySelector('input[type="submit"]');if(r!=null&&r.value){let a=r.value.trim();if(a&&a.length>0&&a.length<100)return a}return null}function ze(e){return e.dataset.formName||_u(e)||e.getAttribute("name")||I(e,"id")||void 0}function Iu(e){return Ii(e)?"hubspot":Ti(e)?"marketo":wi(e)?"pardot":"html"}function Tu(e){return!e.name||ne(e)&&hu.includes(e.type)?!1:Su(e.name)?(Pi.debug(`Skipping sensitive field: ${e.name}`),!1):!0}function xu(e){return e.tagName.toLowerCase()}function Au(e,t){return e.inputType!=="hidden"?!1:!(ne(t)&&t.type==="hidden")}function Mu(e){return ne(e)?e.type:Te(e)&&e.multiple?"select-multiple":null}function gt(e){var l;let t=[],n=new Map;e.querySelectorAll("input, textarea, select").forEach((a,d)=>{if(!Tu(a))return;let c=n.get(a.name);if(c!==void 0&&!Au(t[c],a)){Pi.debug(`Skipping duplicate field name: ${a.name}`);return}let u=(ne(a)||ki(a))&&a.placeholder||null,g="required"in a?a.required:!1,f=Lu(a,e),v=f&&ne(a)&&(a.type==="radio"||a.type==="checkbox")?vu(a,e):null,m=v!=null?v:Oi(a,e),p={name:a.name,type:xu(a),inputType:Mu(a),label:m,placeholder:u,required:g,fieldOrder:d,options:f};if(c!==void 0){t[c]=p;return}n.set(a.name,t.length),t.push(p)});let r=window.location.href,i=window.location.pathname,s=window.location.hostname;return{url:r,pathname:i,domain:s,formIdentifier:I(e,"id")||null,formName:(l=ze(e))!=null?l:null,formType:Iu(e),fields:t,detectedAt:new Date().toISOString()}}var qn=null,Qn=!1,Ni=0,Zt=null,Ui,Jn=new Set,Vi=()=>{Ui=new Promise(e=>{Zt=e})};Vi();var Bi=()=>(Fu(),++Ni),eo=(e,t)=>{if(!(t!==void 0&&t!==Ni)){qn=e,Qn=!0,Zt==null||Zt();for(let n of[...Jn])n(e)}},Gi=e=>(Jn.add(e),()=>{Jn.delete(e)}),xe=()=>qn;var $i=e=>b(null,null,function*(){Qn||(yield Promise.race([Ui,new Promise(t=>{setTimeout(t,e)})]))});function Fu(){qn=null,Qn=!1,Vi()}var Cu=["translated-ltr","translated-rtl"],zi=500;function Wi(e=document){let t=e.documentElement;return t?Cu.some(n=>t.classList.contains(n)):!1}function to(e){return Wi(e.ownerDocument)||Wi(document)}function Ki(e,t,n,o,r){var d,c;if(!o)return!1;let i=o.hashes[t];if(!(i!=null&&i.length)||i.includes(n))return!1;let s=(d=o.cosmeticStrippedHashes)==null?void 0:d[t];if(!(s!=null&&s.length))return!1;let l=bi(e);if(!s.includes(l))return!1;let a=(c=o.catalogCosmeticsUseNonAscii)==null?void 0:c[t];return a===!0||a!==!1?!1:Ei(e)}function no(e){return A(h({},e),{formName:null,fields:e.fields.map(ku)})}function ku(e){var t,n;return{name:e.name,type:e.type,inputType:e.inputType,required:e.required,fieldOrder:e.fieldOrder,options:(n=(t=e.options)==null?void 0:t.map(o=>({value:o.value})))!=null?n:e.options}}var R=S.module("FormCatalog"),Ru=3e3,oo=class e extends H{constructor(){super(...arguments);this.sentFormFingerprints=new WeakMap;this.scanTimeout=null;this.scannedWithoutCatalog=!1;this.unsubscribeFromCatalog=null;this.contentDriftGeneration=0;this.contentDriftWait=new WeakMap;this.contentDriftTimeouts=new Set}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){R.debug("Already initialized, skipping");return}this.markInitialized(),R.success("Form catalog tracker initialized"),this.unsubscribeFromCatalog=Gi(n=>{!n||!this.scannedWithoutCatalog||(this.scannedWithoutCatalog=!1,R.debug("Catalog arrived after the scan gate expired, rescanning"),this.scheduleScan())}),this.scanAndSend()}onRouteChange(){this.sentFormFingerprints=new WeakMap,this.clearContentDriftWaits(),R.debug("Route changed, reset sent forms tracking"),this.scheduleScan()}onFormDomChanged(n){this.scheduleScan()}onNewFormDetected(n){this.onFormDomChanged(n)}onFrameAttached(){this.scheduleScan()}scheduleScan(){this.scanTimeout&&clearTimeout(this.scanTimeout),this.scanTimeout=setTimeout(()=>{this.scanAndSend(),this.scanTimeout=null},200)}scanAndSend(){return b(this,null,function*(){if(!this.initialized){R.debug("Not initialized, skipping scan");return}if(!ge()){R.debug("Page not eligible for capture, skipping scan");return}let n=window.location.href;if(yield oi(n)){R.debug("Page returned 404/410, skipping scan");return}if(window.location.href!==n){R.debug("Navigated while checking page status, deferring to the next scan");return}yield $i(Ru),this.scannedWithoutCatalog=xe()===null;for(let o of Yt())o.querySelectorAll("form").forEach(r=>{this.considerForm(r)})})}considerForm(n){if(z(n)){R.debug("Skipping ignored form");return}if(Zn(n)){R.debug("Skipping password-gate form");return}if(pt(n)){R.debug("Skipping Meta Pixel beacon form");return}let o=gt(n);if(o.fields.length===0){R.debug("Skipping form with no extractable fields");return}let r=Ie(o.fields);if(this.sentFormFingerprints.get(n)===r)return;let i=jn({structureHash:$e(o.fields),contentHash:We(o.fields),htmlFormId:o.formIdentifier},xe());if(!i.send){R.debug(`Skipping catalog beacon: ${i.reason}`);return}if(to(n)){if(i.reason==="content_drift"){this.clearContentDriftWait(n),R.debug("Skipping catalog beacon: translated_content_drift");return}this.sendCatalog(n,no(o),r,i.reason);return}if(i.reason==="content_drift"){this.scheduleContentDriftSend(n);return}this.sendCatalog(n,o,r,i.reason)}scheduleContentDriftSend(n){let o=this.contentDriftGeneration,r=this.contentDriftWait.get(n);r&&(clearTimeout(r.timeout),this.contentDriftTimeouts.delete(r.timeout));let i=setTimeout(()=>{this.contentDriftTimeouts.delete(i),o===this.contentDriftGeneration&&(this.contentDriftWait.delete(n),this.flushContentDriftSend(n))},zi);this.contentDriftTimeouts.add(i),this.contentDriftWait.set(n,{timeout:i,generation:o})}flushContentDriftSend(n){if(z(n)||Zn(n)||pt(n))return;let o=gt(n);if(o.fields.length===0)return;let r=Ie(o.fields);if(this.sentFormFingerprints.get(n)===r)return;let i=jn({structureHash:$e(o.fields),contentHash:We(o.fields),htmlFormId:o.formIdentifier},xe());if(!i.send||i.reason!=="content_drift")return;if(to(n)){R.debug("Skipping catalog beacon: translated_content_drift");return}let s=$e(o.fields),l=We(o.fields),a=Ki(o.fields,s,l,xe(),n)?no(o):o;this.sendCatalog(n,a,r,i.reason)}clearContentDriftWait(n){let o=this.contentDriftWait.get(n);o&&(clearTimeout(o.timeout),this.contentDriftTimeouts.delete(o.timeout),this.contentDriftWait.delete(n))}clearContentDriftWaits(){for(let n of this.contentDriftTimeouts)clearTimeout(n);this.contentDriftTimeouts.clear(),this.contentDriftGeneration++}sendCatalog(n,o,r,i){let s=we();if(!s){R.warn("Cannot send catalog: missing base context");return}let l=h(h({},o),s);sr(l),this.sentFormFingerprints.set(n,r),this.clearContentDriftWait(n);let a=o.formName||o.formIdentifier||"unnamed";R.debug(`Sent catalog for form: ${a}`,{fields:o.fields.length,type:o.formType,reason:i})}reset(){var n;super.reset(),this.sentFormFingerprints=new WeakMap,this.scannedWithoutCatalog=!1,(n=this.unsubscribeFromCatalog)==null||n.call(this),this.unsubscribeFromCatalog=null,this.scanTimeout&&(clearTimeout(this.scanTimeout),this.scanTimeout=null),this.clearContentDriftWaits()}},Ke=oo.getInstance();function Yi(e){let t=e.tagName.toLowerCase();return!!(["input","textarea","select"].includes(t)||t==="div"&&e.getAttribute("contenteditable")==="true")}function ji(e){return e==="keydown"||e==="copy"?!1:["focus","blur","focusout","change","input","paste"].includes(e)}function he(e,t=void 0){return!(jt.some(n=>n.test(e))||t==="password")}function ro(e){var t;try{if(e instanceof HTMLInputElement){if(e.type==="checkbox"||e.type==="radio")return e.checked?"true":"false";if(e.type==="file")return(t=e.files)!=null&&t.length?`${e.files.length} file(s) selected`:""}return e.value||""}catch(n){return""}}var Xi=";";var Zi=Xi;function Ji(e){if(!e.includes(Zi))return e;let t=e.split(Zi).map(n=>n.trim()).filter(Boolean);return t.length<=1||t.some(n=>/\s/.test(n))?e:t}var Du=/^\d+-\d+\//;function io(e){return e.replace(Du,"")||e}var qi=new WeakMap,Hu=1;function ht(e){let t=qi.get(e);if(t)return t;let n=`inst:${Hu++}`;return qi.set(e,n),n}function Jt(e){if(!(e instanceof File)){if(Array.isArray(e)){let t=[],n=new Set;for(let o of e){let r=Jt(o);if(r===void 0)continue;let i=Array.isArray(r)?r:[String(r).trim()];for(let s of i)!s||n.has(s)||(n.add(s),t.push(s))}return t.length===0?void 0:t.length===1?t[0]:t}if(typeof e=="string")return e.trim();if(typeof e=="number"||typeof e=="boolean")return e;if(e!=null)return String(e).trim()}}function so(e){let t=[],n=new Set;for(let o of e){let r=Array.isArray(o)?o:[o];for(let i of r){let s=typeof i=="string"?i.trim():String(i);!s||n.has(s)||(n.add(s),t.push(typeof i=="string"?i.trim():i))}}if(t.length!==0)return t.length===1?t[0]:t.map(String)}function Qi(e){if(e.checked)return e.value||"true"}function Pu(e){let t=new Map;for(let[o,r]of e.entries()){if(!he(o))continue;let i=Jt(r);if(i===void 0)continue;let s=t.get(o);s?s.push(i):t.set(o,[i])}let n={};for(let[o,r]of t){let i=so(r);i!==void 0&&(n[o]=i)}return n}function es(e,t,n){var r;if(!he(t))return;let o=Jt(n);o!==void 0&&(e[t]=t in e&&(r=so([e[t],o]))!=null?r:o)}function ts(e){var i;let t=new Map;for(let{name:s,raw:l}of e){if(!he(s))continue;let a=Jt(l);if(a===void 0)continue;let d=typeof a=="string"?Ji(a):a,c=t.get(s);c?c.push(d):t.set(s,[d])}let n=[];for(let[s,l]of t){let a=so(l);a!==void 0&&n.push({name:s,value:a})}let o=new Map;for(let{name:s}of n){let l=io(s);o.set(l,((i=o.get(l))!=null?i:0)+1)}let r={};for(let{name:s,value:l}of n){r[s]=l;let a=io(s);a===s||o.get(a)!==1||!he(a)||a in r||(r[a]=l)}return r}function ns(e,t){return{responses:Pu(t),form_id:I(e,"id")||void 0,form_name:ze(e),form_instance_key:ht(e),form_class:e.className||void 0,form_action:I(e,"action")||void 0,form_method:I(e,"method")||void 0,form_type:"html",location:Ye()}}function os(e,t){let n=t?Object.entries(t).map(([o,r])=>({name:o,raw:r})):[];return{responses:ts(n),form_id:e.formId,form_type:"hubspot",location:Ye(),metadata:{conversionId:e.conversionId}}}function rs(e,t){let n=t&&t.length>0?t.map(o=>({name:o.name,raw:o.value})):[];return{responses:ts(n),form_id:e,form_type:"hubspot",location:Ye(),metadata:{formId:e,version:"v4"}}}function is(e,t){let n={};return t&&Object.entries(t).forEach(([o,r])=>{es(n,o,r)}),{responses:n,form_id:e,form_type:"marketo",location:Ye(),metadata:{formId:e}}}function ss(e){var o,r,i;let t={};return(((o=e==null?void 0:e.details)==null?void 0:o.data)||[]).forEach(s=>{let l=s.customKey||s.key||s.label;l&&es(t,l,s.value)}),{responses:t,form_id:(e==null?void 0:e.id)||String(e==null?void 0:e.embed_id)||void 0,form_type:"paperform",location:Ye(),metadata:{submissionId:((r=e==null?void 0:e.details)==null?void 0:r.submission_id)||"",total:((i=e==null?void 0:e.details)==null?void 0:i.total)||0,embedId:(e==null?void 0:e.embed_id)||0,messageId:(e==null?void 0:e.id)||""}}}function Ou(e){let t={},n=new Map,o=[],r=e.querySelectorAll("input, textarea, select");for(let i of Array.from(r)){let s=i,l=s.name||s.id;if(!l)continue;let a=s.type||s.tagName.toLowerCase();if(he(l,a)){if(ne(s)&&(s.type==="checkbox"||s.type==="radio")){let d=n.get(l);d?d.push(s):n.set(l,[s]);continue}o.push(s)}}for(let[i,s]of n){let l=[],a=new Set;for(let d of s){let c=Qi(d);c===void 0||a.has(c)||(a.add(c),l.push(c))}l.length!==0&&(t[i]=l.length===1?l[0]:l)}for(let i of o){let s=i.name||i.id;if(!s)continue;if(Te(i)&&i.multiple){let a=Array.from(i.selectedOptions,d=>d.value).filter(Boolean);if(a.length===0)continue;t[s]=a.length===1?a[0]:a;continue}let l=ro(i);l!==""&&(t[s]=l)}return t}function as(e,t,n){var a;let o=I(e,"id")||void 0,r=t.name||t.id||void 0,i=t.type||t.tagName.toLowerCase(),s;r&&i&&he(r,i)&&(ne(t)&&(t.type==="checkbox"||t.type==="radio")?s=(a=Qi(t))!=null?a:"":Te(t)&&t.multiple?s=Array.from(t.selectedOptions,d=>d.value).filter(Boolean).join(";"):s=ro(t));let l=Ou(e);return r&&s!==void 0&&he(r,i)&&i!=="checkbox"&&i!=="radio"&&!(Te(t)&&t.multiple)&&(l[r]=s),A(h({form_id:o,form_name:ze(e),form_instance_key:ht(e),form_class:e.className||void 0,form_action:I(e,"action")||void 0,form_method:I(e,"method")||void 0,form_type:"html"},Object.keys(l).length>0?{responses:l}:{}),{interaction:{fieldName:r,fieldType:i,eventType:n,fieldValue:s},location:Ye()})}function Ye(){return{href:window.location.href,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer}}var ao="dft-scheduler",ls=["displayed","closed","meeting_booked","meeting_cancelled","meeting_timeout"],Nu=new Set(ls),St=e=>{if(!e||typeof e!="object")return null;let t=e;return t.source!==ao||typeof t.type!="string"||!Nu.has(t.type)?null:{source:ao,type:t.type,payload:t.payload}};var Uu=S.module("Scheduler"),lo=class e{constructor(){this.listeners=new Map;this.allowedOrigins=new Set;this.listenerInstalled=!1;this.onMessage=t=>{if(this.allowedOrigins.size>0&&!this.allowedOrigins.has(t.origin))return;let n=St(t.data);if(!n)return;let o=this.listeners.get(n.type);!o||o.size===0||o.forEach(r=>{try{r(n.payload)}catch(i){Uu.warn(`Scheduler event handler for "${n.type}" threw`,i)}})}}static getInstance(){return e.instance||(e.instance=new e),e.instance}setAllowedOrigins(t){this.allowedOrigins=new Set(t.filter(Boolean))}addAllowedOrigin(t){t&&this.allowedOrigins.add(t)}subscribe(t,n){this.ensureListenerInstalled();let o=this.listeners.get(t);o||(o=new Set,this.listeners.set(t,o));let r=n;return o.add(r),()=>{o==null||o.delete(r)}}ensureListenerInstalled(){this.listenerInstalled||typeof window=="undefined"||(window.addEventListener("message",this.onMessage),this.listenerInstalled=!0)}},Y=lo.getInstance();var cs="__default_scheduler_close__",us=":re:";var co=e=>{if(typeof e!="string")return;let t=`${cs}${us}`;if(!e.startsWith(t))return;let n=e.slice(t.length);return!n||n==="null"?null:n};var Vu=["http:","https:"],Bu=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Se=e=>{try{return Vu.includes(new URL(e).protocol)}catch(t){return!1}},uo=e=>{let t=e.trim();return!t||Se(t)||Bu.test(t)?t:`https://${t}`};var mo=e=>{if(e!=null&&Number.isFinite(Number(e)))return Math.min(300,Math.max(0,Math.floor(Number(e))))};var ms="__default_scheduler_handoff__",ds=e=>{if(typeof e!="string")return;let t=e.trim();if(!t||t==="undefined"||t==="null")return;let n=uo(t);return Se(n)?n:void 0},Qt=e=>{var s;if(!e||typeof e!="object")return null;let t=e,n=ds(t.redirectOnBooked),o=ds(t.redirectOnNotBooked),r=n!=null?mo((s=t.redirectOnBookedDelaySeconds)!=null?s:10):void 0,i=t.hideClose===!0?!0:void 0;return n==null&&o==null&&r===void 0&&i==null?null:h(h(h(h({},n!=null&&{redirectOnBooked:n}),o!=null&&{redirectOnNotBooked:o}),r!==void 0&&{redirectOnBookedDelaySeconds:r}),i!=null&&{hideClose:i})};var fo=e=>{let t=Qt(e);return t?{type:ms,config:t}:null};var F={UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",GCLID:"gclid",ANONYMOUS_ID:"anonymous_id",SESSION_ID:"session_id",EMBED:"embed",PAGE_EMBED:"page_embed",EMBED_LAYOUT:"embed_layout",WORKFLOW_EXECUTION_ID:"workflowExecutionId",TIMEOUT:"timeout"},Gu=[F.UTM_SOURCE,F.UTM_MEDIUM,F.UTM_CAMPAIGN,F.UTM_TERM,F.UTM_CONTENT,F.GCLID],fs=[F.ANONYMOUS_ID,F.SESSION_ID],ps=[F.EMBED,F.PAGE_EMBED,F.EMBED_LAYOUT],gs=[F.WORKFLOW_EXECUTION_ID],hs=[F.TIMEOUT],$u=[...Gu,...fs,...ps,...gs,...hs],Wu=[...fs,...ps,...gs,...hs],Eg=new Set($u),vg=new Set(Wu.map(e=>e.toLowerCase()));var zu=new Set(["relative","absolute","fixed","sticky"]),je=e=>e?typeof e=="string"?document.querySelector(e):e:null,Xe=e=>{zu.has(getComputedStyle(e).position)||(e.style.position="relative")};var ae="dftDefaultLoadingModal",po="dftDefaultLoadingModal__overlay",go="dftDefaultLoadingModal__card",ho="dftDefaultLoadingModal__banner",Ze="dftDefaultLoadingModal__logo",So="dftDefaultLoadingModal__progressRow",yt="dftDefaultLoadingModal__progressLabel",bt="dftDefaultLoadingModal__progressPercent",yo="dftDefaultLoadingModal__progressStatus",bo="dftDefaultLoadingModal__progressBar",Et="dftDefaultLoadingModal__progressBarFill",Eo="dftDefaultLoadingModal__steps",ue="dftDefaultLoadingModal__step",vo="dftDefaultLoadingModal__stepIcon",Lo="dftDefaultLoadingModal__stepText",Ae="dftDefaultLoadingModal__stepDots",vt="dftDefaultLoadingModal--noLogo",en="dftDefaultLoadingModal--contained",_o="dftDefaultLoadingModal__style";var Me=[{id:"processing",label:"Processing your submission."},{id:"routing",label:"Getting you to the right place..."},{id:"almost-there",label:"Hang tight..."}],Ku='<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>',Ss='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',Yu='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg>',ju={processing:Ss,routing:Yu,"almost-there":Ku},ys=e=>{var t;return(t=ju[e])!=null?t:Ss},ye="data-state";var M={bg:"--dft-modal-bg",fg:"--dft-modal-fg",font:"--dft-modal-font",overlay:"--dft-modal-overlay",overlayBlur:"--dft-modal-overlay-blur"},le={[M.bg]:"#fff",[M.fg]:"#18181b",[M.font]:"inherit",[M.overlay]:"rgba(0,0,0,0.5)",[M.overlayBlur]:"none"};var bs=`
.${ae} {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: var(${M.font}, inherit);
}

.${ae}.${en} {
  position: absolute;
  z-index: auto;
}

.${po} {
  position: absolute;
  inset: 0;
  background: var(${M.overlay}, rgba(0,0,0,0.5));
  backdrop-filter: var(${M.overlayBlur}, none);
  -webkit-backdrop-filter: var(${M.overlayBlur}, none);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.${go} {
  width: 100%;
  max-width: 502px;
  background: var(${M.bg}, #fff);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  color: var(${M.fg}, #18181b);
  box-sizing: border-box;
}

.${ho} {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
}

.${Ze} {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.${ae}.${vt} .${Ze} {
  display: none;
}

.${So} {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.195px;
  box-sizing: border-box;
}

.${yt} {
  color: currentColor;
  font-weight: 420;
  margin: 0 10px 0 0;
}

.${bt} {
  color: currentColor;
  opacity: 0.6;
  font-weight: 500;
}

.${yo} {
  color: currentColor;
  opacity: 0.6;
  font-weight: 420;
  margin-left: auto;
}

.${bo} {
  width: 100%;
  height: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 9999px;
  overflow: hidden;
}

.${Et} {
  width: 0%;
  height: 100%;
  background: currentColor;
  border-radius: 9999px;
  transition: width 350ms ease;
}

.${Eo} {
  background: color-mix(in srgb, currentColor 6%, var(${M.bg}, #fff));
  padding: 32px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.${ue} {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 20px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.195px;
  color: currentColor;
  transition: opacity 200ms ease;
}

.${ue}[${ye}="pending"] {
  opacity: 0.4;
}

.${ue}[${ye}="completed"] {
  opacity: 0.6;
}

.${ue}[${ye}="active"] {
  font-weight: 500;
}

.${vo} {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.${Lo} {
  margin: 0;
  white-space: nowrap;
}

.${Ae} {
  display: none;
  margin-left: 4px;
  align-items: center;
  gap: 3px;
}

.${ue}[${ye}="active"] .${Ae} {
  display: inline-flex;
}

.${Ae} > span {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.5;
  animation: dft-default-modal-dot 1200ms infinite ease-in-out;
}

.${Ae} > span:nth-child(2) {
  animation-delay: 150ms;
}

.${Ae} > span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes dft-default-modal-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-1px); }
}
`,Xu=(e,t)=>`
        <div class="${ue}" ${ye}="${t}" data-step-id="${e.id}">
          <span class="${vo}">${ys(e.id)}</span>
          <span class="${Lo}">${e.label}</span>
          <span class="${Ae}" aria-hidden="true"><span></span><span></span><span></span></span>
        </div>`,Es=()=>{let e=Me[0],t=0,n=Me.map((o,r)=>Xu(o,r===0?"active":"pending")).join("");return`
<div class="${ae}" role="status" aria-live="polite">
  <div class="${po}">
    <div class="${go}">
      <div class="${ho}">
        <img class="${Ze}" alt="" />
        <div class="${So}">
          <span class="${yt}">${e.label}</span>
          <span class="${bt}">${t}%</span>
          <span class="${yo}">loading...</span>
        </div>
        <div class="${bo}">
          <div class="${Et}" style="width: ${t}%"></div>
        </div>
      </div>
      <div class="${Eo}">${n}
      </div>
    </div>
  </div>
</div>
`};var Zu=3e3,Ju=6e4,tn=null,nn=null,on=new Set,an=()=>typeof document=="undefined"?null:document.querySelector(`.${ae}`),rn=(e,t)=>{for(let[n,o]of Object.entries(t))e.style.setProperty(n,o)},Io=()=>{tn&&(clearInterval(tn),tn=null)},_s=()=>{nn&&(clearTimeout(nn),nn=null)},vs=()=>{_s(),nn=setTimeout(()=>B(),Ju)},Ls=(e,t)=>{e.setAttribute(ye,t)},qu=e=>Math.min(100,Math.round(e/Me.length*100)),wo=(e,t,n)=>{let o=e.querySelector(`.${yt}`),r=e.querySelector(`.${bt}`),i=e.querySelector(`.${Et}`),s=Me[Math.min(t,Me.length-1)];o&&s&&(o.textContent=s.label);let l=qu(n);r&&(r.textContent=`${l}%`),i&&(i.style.width=`${l}%`)},Qu=e=>{Io();let t=Array.from(e.querySelectorAll(`.${ue}`));if(t.length===0)return;let n=0;wo(e,n,0),tn=setInterval(()=>{let o=t[n];o&&Ls(o,"completed");let r=n+1;if(r>=t.length){wo(e,t.length-1,t.length),Io();return}n=r;let i=t[n];i&&Ls(i,"active"),wo(e,n,r)},Zu)},sn=(e,t)=>{let n=e.querySelector(`.${Ze}`);n&&(t?(e.classList.remove(vt),n.src=t):(e.classList.add(vt),n.removeAttribute("src")))},be=(e={theme:h({},le),logoUrl:null},t={})=>{if(typeof document=="undefined")return;let n=je(t.target),o=n!=null?n:document.body;n&&Xe(n);let r=o.querySelector(`.${ae}`);if(r){r.style.display="",rn(r,e.theme),sn(r,e.logoUrl),vs();return}if(!document.getElementById(_o)){let s=document.createElement("style");s.id=_o,s.textContent=bs,document.head.appendChild(s)}o.insertAdjacentHTML("beforeend",Es());let i=o.querySelector(`.${ae}`);i&&(n&&i.classList.add(en),rn(i,e.theme),sn(i,e.logoUrl),Qu(i),vs())},ws=()=>{typeof document!="undefined"&&(Io(),_s(),document.querySelectorAll(`.${ae}`).forEach(e=>{e.remove()}))},Is=e=>{let t=Symbol("loading-modal-lease");return on.add(t),be(e),t},de=e=>{on.delete(e)&&on.size===0&&ws()},B=()=>{on.clear(),ws()};function ed(e){try{let t=new URL(e),n=t.pathname,o="other";return n.startsWith("/book/")?o="book":n.startsWith("/embed/")&&(o="embed"),{pathKind:o,pathname:n,origin:t.origin}}catch(t){return{pathKind:"invalid"}}}function Ts(e){var l;let{pathKind:t,pathname:n}=ed(e);if(t!=="book"&&t!=="embed")return null;let o=(l=n==null?void 0:n.split("/").filter(Boolean))!=null?l:[];if(o.length<3)return null;let r=o[1],i=o[2],s=o[3];return!r||!i?null:h({orgSlug:r,bookingParam:i},s?{hostSlug:s}:{})}function Lt(e){try{let t=new URL(e);return t.pathname.startsWith("/book/")&&(t.pathname=t.pathname.replace("/book/","/embed/")),t.searchParams.set(F.EMBED,"true"),t.toString()}catch(t){return e}}var me=S.module("SDK"),xs="__default_scheduler_modal__",Je=null;function td(e){try{let t=new URL(e);return t.searchParams.set(F.EMBED_LAYOUT,"inline"),t.toString()}catch(t){return e}}var nd=1e4,Ee=()=>{},xo=e=>{if(typeof window=="undefined"||typeof window.requestAnimationFrame!="function"){setTimeout(e,0);return}window.requestAnimationFrame(()=>window.requestAnimationFrame(e))};function As(e,t){let n=Ts(e);return n?Y.subscribe("displayed",o=>{(o==null?void 0:o.orgSlug)!==n.orgSlug||(o==null?void 0:o.bookingParam)!==n.bookingParam||xo(t)}):Ee}function Ms(e,t){let n=document.createElement("div");n.textContent="Loading scheduler...",n.setAttribute("role","status"),n.style.cssText=["position: absolute","inset: 0","display: flex","align-items: center","justify-content: center","background: #fff","color: #111",'font: 14px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',"z-index: 0"].join(";"),e.style.opacity="0",e.style.transition="opacity 120ms ease";let o=!1,r=()=>{o||(o=!0,n.remove(),e.style.opacity="1")};return e.addEventListener("load",r,{once:!0}),t.appendChild(n),{reveal:r,cleanup:()=>{e.removeEventListener("load",r),n.remove()}}}function Ao(e){try{return new URL(e).origin}catch(t){return null}}var od=[0,100,300,500,1e3,1500,2e3],_t=(e,t,n)=>{let o=n?fo(n):null;if(!o)return Ee;let r=Ao(t);if(!r)return Ee;let i=!1,s=Ee,l=()=>{var c;if(!i)try{(c=e.contentWindow)==null||c.postMessage(o,r)}catch(u){me.warn("Failed to post scheduler handoff config to iframe")}},a=()=>{let c=[];for(let u of od){let g=setTimeout(()=>{i||l()},u);c.push(g)}return()=>{for(let u of c)clearTimeout(u)}},d=()=>{s(),s=a()};return e.addEventListener("load",d),()=>{i=!0,s(),e.removeEventListener("load",d)}};function rd(e,t){let n=!!(t!=null&&t.redirectOnBooked),o=!!(t!=null&&t.redirectOnNotBooked),i=["meeting_booked","meeting_cancelled","meeting_timeout","closed"].map(s=>Y.subscribe(s,()=>{s==="meeting_booked"&&n||s==="closed"&&o||e()}));return()=>i.forEach(s=>s())}function To(e,t,n){if(!t)return me.warn("Skipping scheduler close listener \u2014 invalid Chronos URL"),Ee;let o=r=>{if(r.origin!==t||r.source!==e.contentWindow)return;let i=co(r.data);i!==void 0&&n(i)};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)}function id(e,t,n){if(typeof document=="undefined")return n!=null&&n.loadingModalLease&&de(n.loadingModalLease),me.warn("displaySchedulerModal called outside the browser"),()=>{};Je==null||Je();let o=document.getElementById(xs);o&&o.remove();let r=Ao(e);r&&Y.addAllowedOrigin(r);let i=Lt(e),s=document.createElement("div");s.id=xs,s.style.cssText=["position: fixed","inset: 0","z-index: 2147483646","background: transparent"].join(";");let l=n==null?void 0:n.loadingModalLease,a=!!(l&&an());a&&(s.style.visibility="hidden");let d=!a,c=null,u=()=>{l&&(de(l),l=void 0)},g=()=>{d||(d=!0,c&&clearTimeout(c),s.style.visibility="visible",u())},f=document.createElement("iframe");f.src=i,f.title="Scheduler",f.style.cssText=["position: absolute","inset: 0","width: 100%","height: 100%","border: none","display: block","background: transparent"].join(";"),f.setAttribute("allow","clipboard-write; payment"),f.setAttribute("allowtransparency","true");let v=!1,m=null,p=!1,y=a?{reveal:()=>{},cleanup:()=>{}}:Ms(f,s),E=()=>{v||p||(p=!0,y.reveal(),g())},L=As(i,E),D=()=>{xo(E)};f.addEventListener("load",D,{once:!0});let re=_t(f,i,t),U=Ee,$=()=>{v||(v=!0,c&&clearTimeout(c),u(),L(),U(),y.cleanup(),re(),f.removeEventListener("load",D),f.removeEventListener("error",w),m==null||m(),s.remove(),Je===$&&(Je=null))},w=()=>{me.warn(`Scheduler iframe failed to load (${i})`),$()};return f.addEventListener("error",w,{once:!0}),U=To(f,r,bn=>{$(),bn&&Se(bn)&&(window.location.href=bn)}),s.appendChild(f),document.body.appendChild(s),a&&(c=setTimeout(g,nd)),m=rd($,t),Je=$,me.success(`Scheduler modal mounted (${i})`),$}function sd(e,t,n,o,{loader:r=!1}={}){if(typeof document=="undefined")return me.warn("displaySchedulerInline called outside the browser"),()=>{};let i=je(t);if(!i)return me.warn(`Scheduler target not found: ${String(t)}`),()=>{};let s=Ao(e);s&&Y.addAllowedOrigin(s);let l=td(Lt(e));if(i instanceof HTMLIFrameElement){i.src=l;let L=!1,D=_t(i,l,n),re=Ee,U=()=>{L||(L=!0,re(),D(),i.removeAttribute("src"))};return re=To(i,s,$=>{U(),$&&Se($)&&(window.location.href=$)}),me.success(`Scheduler URL set on existing iframe (${l})`),U}r&&(Xe(i),be(void 0,{target:i}));let a=document.createElement("iframe");a.src=l,a.style.cssText=["width: 100%","height: 100%","border: none","display: block"].join(";"),a.setAttribute("allow","clipboard-write; payment");let d=document.createElement("div");d.style.cssText=["position: relative","width: 100%","height: 100%"].join(";");let c=!1,u=!1,g=Ms(a,d);r&&a.addEventListener("load",()=>B(),{once:!0});let f=()=>{c||u||(u=!0,g.reveal(),r&&B())},v=As(l,f),m=()=>{xo(f)};a.addEventListener("load",m,{once:!0});let p=_t(a,l,n),y=Ee,E=()=>{c||(c=!0,v(),y(),g.cleanup(),r&&B(),p(),a.removeEventListener("load",m),d.remove())};return y=To(a,s,L=>{E(),L&&Se(L)&&(window.location.href=L)}),d.appendChild(a),i.appendChild(d),me.success(`Scheduler iframe mounted inline (${l})`),E}function ln(e,t,n,o){return t===!1?()=>{}:t===!0||t===void 0?id(e,n,o):sd(e,t.target,n,o,{loader:t.loader})}var Fs=null,Cs=e=>{Fs=e},qe=()=>Fs;var cn=S.module("Scheduler"),ad=[".default.com",".vercel.app"],ks=["https:"],ld=["development","local"],Mo=e=>{try{return new URL(e)}catch(t){return cn.warn("Failed to parse URL",e),null}},wt=e=>{if(!e)return null;if(ld.includes("production"))return Mo(e);let t=Mo(e);return t?ad.some(o=>t.hostname.endsWith(o))?ks.includes(t.protocol)?t:(cn.warn("Invalid scheduler URL protocol",t.protocol),null):(cn.warn("Invalid scheduler domain",t.hostname),null):null},Fo=e=>{let t=Mo(e);return t?(t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="0.0.0.0"||t.hostname==="[::1]")&&["http:","https:"].includes(t.protocol)||ks.includes(t.protocol)?t:(cn.warn("Invalid redirect URL protocol",t.protocol),null):null},ve=e=>{let t=Fo(e);return t?(window.location.href=t.toString(),!0):!1};var It="__default_pending_scheduler_handoff__",Qe="__dflt_scheduler_handoff",cd=30*6e4,ud=2*6e4,dd=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Co=()=>{if(typeof window=="undefined")return!1;try{return typeof window.sessionStorage!="undefined"}catch(e){return!1}},md=e=>e.type===V.DisplayScheduler&&typeof e.timeout=="number"&&Number.isFinite(e.timeout)&&e.timeout>0?e.timeout*6e4+ud:cd,Tt=e=>{var n;if((e==null?void 0:e.type)!==V.DisplayScheduler)return;let t={};return e.redirectOnBooked&&(t.redirectOnBooked=e.redirectOnBooked,t.redirectOnBookedDelaySeconds=(n=e.redirectOnBookedDelaySeconds)!=null?n:10),e.redirectOnNotBooked&&(t.redirectOnNotBooked=e.redirectOnNotBooked),e.hideClose&&(t.hideClose=!0),Object.keys(t).length>0?t:void 0},fd=e=>{if((e==null?void 0:e.type)!==V.DisplayScheduler||typeof e.redirectToSchedulerUrl!="string")return;let t=e.redirectToSchedulerUrl.trim();return t.length>0?t:void 0},pd=e=>{if(e.type!==V.DisplayScheduler)throw new Error("Expected display scheduler handoff");let t=Tt(e);return h({version:1,expiresAt:Date.now()+md(e),schedulerUrl:e.schedulerUrl},t&&{handoffConfig:t})},Rs=e=>{var o;if(!dd(e)||e.version!==1||typeof e.expiresAt!="number"||e.expiresAt<=Date.now()||typeof e.schedulerUrl!="string"||e.schedulerUrl.length===0)return null;let t=wt(e.schedulerUrl);if(!t)return null;let n=(o=Qt(e.handoffConfig))!=null?o:void 0;return h({schedulerUrl:t.toString()},n&&{handoffConfig:n})},gd=e=>{let t=encodeURIComponent(JSON.stringify(e));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},hd=e=>{try{let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"=");return JSON.parse(decodeURIComponent(atob(n)))}catch(t){return null}},Sd=e=>{if(!Co())return!1;try{return window.sessionStorage.setItem(It,JSON.stringify(e)),!0}catch(t){return!1}},yd=()=>{if(!Co())return null;try{let e=window.sessionStorage.getItem(It);if(!e)return null;let t=Rs(JSON.parse(e));return t||window.sessionStorage.removeItem(It),t}catch(e){try{window.sessionStorage.removeItem(It)}catch(t){}return null}},bd=()=>{if(Co())try{window.sessionStorage.removeItem(It)}catch(e){}},Ds=e=>{let t=e.startsWith("#")?e.slice(1):e;if(!t)return{payload:null,nextHash:null};let n=t.indexOf("?"),o=n>=0?t.slice(0,n):"",r=n>=0?t.slice(n+1):t,i=new URLSearchParams(r),s=i.get(Qe);if(!s)return{payload:null,nextHash:null};i.delete(Qe);let l=i.toString(),a=n>=0?l?`${o}?${l}`:o:l;return{payload:s,nextHash:a}},Ed=()=>{if(typeof window=="undefined")return null;let{payload:e}=Ds(window.location.hash);if(!e)return null;let t=Rs(hd(e));return t||Hs(),t},Hs=()=>{if(typeof window=="undefined")return;let{payload:e,nextHash:t}=Ds(window.location.hash);if(e)try{let n=new URL(window.location.href);n.hash=t!=null?t:"",window.history.replaceState(window.history.state,document.title,n.toString())}catch(n){}},vd=(e,t)=>{if(typeof window!="undefined")try{let n=new URL(e,window.location.href),o=gd(t),r=n.hash.startsWith("#")?n.hash.slice(1):n.hash;if(!r)return n.hash=`${Qe}=${o}`,n.toString();let i=r.indexOf("?");if(i>=0){let s=r.slice(0,i),l=new URLSearchParams(r.slice(i+1));return l.set(Qe,o),n.hash=`${s}?${l.toString()}`,n.toString()}if(r.includes("=")||r.includes("&")){let s=new URLSearchParams(r);return s.set(Qe,o),n.hash=s.toString(),n.toString()}return n.hash=`${r}?${Qe}=${o}`,n.toString()}catch(n){return}},Ld=e=>{if(typeof window=="undefined")return!1;try{return new URL(e,window.location.href).origin===window.location.origin}catch(t){return!1}},un=e=>{let t=fd(e);if(!t||(e==null?void 0:e.type)!==V.DisplayScheduler||!wt(e.schedulerUrl))return;let n=Fo(t);if(!n)return;let o=n.toString(),r=pd(e);return Ld(o)&&Sd(r)?o:vd(o,r)},Ps=()=>{var e;return(e=yd())!=null?e:Ed()},et=()=>{bd(),Hs()};var _d=S.module("SDK");function wd(e,t){var l,a;let n=e?document.getElementById(e):null,o=n!=null?n:document.activeElement instanceof HTMLElement?document.activeElement.closest("form"):null;if(!o&&t){let d=Array.from(document.querySelectorAll("form"));if(d.length===1)o=(l=d[0])!=null?l:null;else if(d.length>1){let c=d.filter(u=>u.dataset.pixelFormId===t||u.getAttribute("data-pixel-form-id")===t||u.getAttribute("data-form-id")===t);c.length===1&&(o=(a=c[0])!=null?a:null)}}if(!o)return{};let r=ze(o),i=I(o,"action"),s=I(o,"method");return A(h(h(h(h({},r?{form_name:r}:{}),i?{form_action:i}:{}),o.className?{form_class:o.className}:{}),s?{form_method:s}:{}),{form_instance_key:ht(o)})}function Id(e){var o;let t=(o=e==null?void 0:e.workflow)==null?void 0:o.handoff;if(!t||typeof t!="object")return;let n=t;if(n.type===V.DisplayScheduler&&typeof n.schedulerUrl=="string"&&n.schedulerUrl.length>0||n.type===V.Redirect&&typeof n.url=="string"&&n.url.length>0)return t}function Os(e,t=!0){return b(this,null,function*(){var d,c,u;let{pixelFormId:n,formId:o,responses:r}=e;if(!n&&!o)return{success:!1,status:0,error:"pixelFormId or formId is required"};if(!r||Object.keys(r).length===0)return{success:!1,status:0,error:"responses must include at least one field"};let i=we();if(!i)return{success:!1,status:0,error:"SDK not initialized \u2014 call DefaultPixelSDK.init() first"};let s=(c=(d=e.autoDisplayScheduler)!=null?d:t)!=null?c:!0,a=s===!0?Is((u=qe())!=null?u:void 0):void 0;try{return yield Td(e,i,s,a)}catch(g){throw a&&de(a),g}})}function Td(e,t,n,o){return b(this,null,function*(){let{pixelFormId:r,formId:i,responses:s,metadata:l}=e,a={href:window.location.href,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer},d=wd(i,r),c=A(h(h({responses:s,form_type:"html"},i?{form_id:i}:{}),d),{location:a,pixel_form_id:r}),[u,g]=yield Promise.all([ko(c),Ro(c)]),f=A(h(h(A(h({},t),{responses:s}),r?{pixel_form_id:r}:{}),i?{form_id:i}:{}),{submission_source:"sdk",form_type:"html",location:a,metadata:h(h(h({},l!=null?l:{}),u?{preEnrichment:u}:{}),g?{crmPrematch:g}:{})}),v=yield tr(j.FORM_SUBMISSION,f,{preferSimpleRequest:!0});if(!v.success){let L=r!=null?r:i;return _d.warn(`submitForm failed for ${L}: ${v.error}`),o&&de(o),{success:!1,status:v.status,error:v.error}}let m=v.body,p=Id(m),y,E;if((p==null?void 0:p.type)===V.DisplayScheduler){let L=h({},o?{loadingModalLease:o}:{}),D=Lt(p.schedulerUrl);y={url:D};let re=Tt(p),U=un(p);U&&(ve(U)?E={url:U}:et()),!E&&n!==!1?ln(D,n,re,L):o&&de(o)}else(p==null?void 0:p.type)===V.Redirect?(ve(p.url)&&(E={url:p.url}),o&&de(o)):o&&de(o);return h(h({success:!0,status:v.status,workflow:m==null?void 0:m.workflow},y?{scheduler:y}:{}),E?{redirect:E}:{})})}var Do=!0;function Ns(e){Do=e}function Us(){return Do}function Vs(e){try{let t=new URL(e),n=new Set([t.origin]),o=t.hostname.toLowerCase();return o.startsWith("api.")&&n.add(`${t.protocol}//book.${o.slice(4)}`),[...n]}catch(t){return[]}}function Fe(e,t){return Y.subscribe(e,t)}function Bs(e){return Os(e,Do)}var Gs={onDisplayed:e=>Fe("displayed",e),onClosed:e=>Fe("closed",e),onMeetingBooked:e=>Fe("meeting_booked",e),onMeetingCancelled:e=>Fe("meeting_cancelled",e),onMeetingTimeout:e=>Fe("meeting_timeout",e),display:ln};var Ho=S.module("Scheduler"),$s="__DEFAULT_IFRAME__",xd="__default_scheduler_close__",Ad=":re:",Md="999998",dn=(e,t,n={})=>{if(typeof document=="undefined")return!1;if(document.getElementById($s))return Ho.debug("Scheduler iframe already present, skipping"),!0;let o=wt(e);if(!o)return Ho.warn("Invalid scheduler URL, dismissing modal",e),B(),!1;let r=je(n.target),i=document.createElement("iframe");o.pathname.startsWith("/book/")&&(o.pathname=o.pathname.replace("/book/","/embed/")),o.searchParams.set(F.EMBED,"true"),r&&o.searchParams.set(F.EMBED_LAYOUT,"inline"),i.src=o.toString(),i.id=$s,i.height="100%",i.width="100%",i.style.border="none",i.style.top="0px",i.style.left="0px",r?(Xe(r),i.style.position="absolute"):(i.style.position="fixed",i.style.zIndex=Md),i.style.background="transparent",i.style.visibility="hidden",i.setAttribute("allow","clipboard-write; payment"),Y.addAllowedOrigin(o.origin);let s=!1,l=!1,a=null,d=()=>{s||l||(l=!0,i.style.visibility="visible",B())},c=_t(i,o.toString(),t),u=()=>{requestAnimationFrame(()=>requestAnimationFrame(d))};function g(){s||(s=!0,c(),i.removeEventListener("load",u),i.removeEventListener("error",f),a==null||a(),window.removeEventListener("message",v),document.removeEventListener("keydown",m),i.remove(),B())}function f(){Ho.warn("Scheduler iframe failed to load"),g()}let v=p=>{if(p.origin!==o.origin)return;let y=St(p.data);if((y==null?void 0:y.type)==="displayed"){requestAnimationFrame(()=>requestAnimationFrame(d));return}if(p.source!==i.contentWindow||typeof p.data!="string")return;let[E,L]=p.data.split(Ad);if(E!==xd)return;g();let D=L&&L!=="null"?L:null;D&&ve(D)},m=p=>{p.key==="Escape"&&g()};return i.addEventListener("load",u),i.addEventListener("error",f),a=Y.subscribe("closed",()=>{t!=null&&t.redirectOnNotBooked||g()}),window.addEventListener("message",v),document.addEventListener("keydown",m),(r!=null?r:document.body).appendChild(i),!0};var Le=S.module("Form"),zs=!0,fn=new Map,pn=new Map,mn=new Map,Fd=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Po(e){var n,o,r,i,s,l;let t=e.form_id||e.form_name||null;return t?`form:${t}`:e.pixel_form_id?`pixel:${e.pixel_form_id}`:["path",(n=e.location.pathname)!=null?n:"",(o=e.form_type)!=null?o:"",(r=e.form_action)!=null?r:"",(i=e.form_class)!=null?i:"",(s=e.form_method)!=null?s:"",(l=e.form_instance_key)!=null?l:""].join("|")}function Cd(e){var n;let t=(n=fn.get(e))!=null?n:null;return fn.delete(e),t}function kd(e){var n;let t=(n=pn.get(e))!=null?n:null;return pn.delete(e),t}function Rd(e,t){let n=fn.get(e);n!=null&&n.triggered&&!t.triggered||fn.set(e,t)}function Dd(e,t){let n=pn.get(e);n!=null&&n.triggered&&!t.triggered||pn.set(e,t)}function Oo(e){return e.trim().toLowerCase()}var Hd=["email","Email","work_email","Work_email","workEmail","WorkEmail"];function Ws(e){if(typeof e!="string")return null;let t=Oo(e);return Fd.test(t)?t:null}function Ks(e){for(let t of Hd){let n=Ws(e[t]);if(n)return n}for(let[t,n]of Object.entries(e)){if(!t.toLowerCase().includes("email"))continue;let o=Ws(n);if(o)return o}return null}var Ys=e=>b(null,null,function*(){let t=mn.get(e);if(t)try{yield t}catch(n){}});function ko(e){return b(this,null,function*(){let t=Po(e);return yield Ys(t),Pd(Cd(t),e)})}function Ro(e){return b(this,null,function*(){let t=Po(e);return yield Ys(t),Od(kd(t),e)})}function Pd(e,t){if(!e)return null;if(!e.email)return e;let n=Ks(t.responses);return!n||Oo(e.email)!==n?null:e}function Od(e,t){if(!e)return null;if(!e.email)return e;let n=Ks(t.responses);return!n||Oo(e.email)!==n?null:e}function js(){return zs}function G(){return er()}function fe(n){return b(this,arguments,function*(e,{schedulerEnabled:t=!0}={}){var m,p;if(!G()){Le.debug("Capture disabled, skipping form submission");return}let o=we();if(!o){Le.warn("Cannot send form submission: missing context");return}let r=Us(),i=r&&typeof r=="object"?r.target:void 0,s=t&&!(r&&typeof r=="object"&&r.loader===!1),l=qe();s&&(i?be(l!=null?l:void 0,{target:i}):be(l!=null?l:void 0));let a=yield ko(e),d=yield Ro(e),v=e,{form_instance_key:c}=v,u=vn(v,["form_instance_key"]),g=A(h(h({},u),o),{metadata:h(h(h({},(m=u.metadata)!=null?m:{}),a?{preEnrichment:a}:{}),d?{crmPrematch:d}:{})}),f=e.form_id||e.form_name||"unknown";Le.debug(`Sending form submission: ${f}`);try{let y=yield rr(g),E=(p=y==null?void 0:y.workflow)==null?void 0:p.handoff;if((E==null?void 0:E.type)===V.DisplayScheduler&&E.schedulerUrl){Le.sent("form submission",{formId:f,type:e.form_type,schedulerUrl:E.schedulerUrl});let L=un(E);if(L){if(ve(L)){B();return}et()}dn(E.schedulerUrl,Tt(E),i?{target:i}:{});return}if((E==null?void 0:E.type)===V.Redirect&&E.url&&(Le.sent("form submission",{formId:f,type:e.form_type,redirect:E.url}),ve(E.url))){B();return}y!=null&&y.success&&Le.sent("form submission",{formId:f,type:e.form_type}),B()}catch(y){Le.warn("Form submission threw",y),B()}})}function Xs(e){return b(this,null,function*(){if(!G()||!zs)return;let t=we();if(!t){Le.warn("Cannot send form interaction: missing context");return}let l=e,{form_instance_key:n}=l,o=vn(l,["form_instance_key"]),r=h(h({},o),t),i=Po(e),s=b(null,null,function*(){let a=yield ir(r);a!=null&&a.preEnrichment&&Rd(i,a.preEnrichment),a!=null&&a.crmPrematch&&Dd(i,a.crmPrematch)});mn.set(i,s);try{yield s}finally{mn.get(i)===s&&mn.delete(i)}})}var gn=new Set,Zs=e=>{gn=new Set(e)},xt=()=>({enabled:!1,resolvedHtmlFormId:null}),No=e=>{let t=I(e,"id");if(t!==""&&gn.has(t))return{enabled:!0,resolvedHtmlFormId:t};if(gn.size===0)return xt();let n=xe();if(!(n!=null&&n.path.linked.length))return xt();let o=gt(e);if(o.fields.length===0)return xt();let r=$e(o.fields),i=We(o.fields),s=n.path.linked.filter(a=>a.structureHash===r&&a.contentHash===i&&a.htmlFormId!=null);if(s.length!==1)return xt();let l=s[0].htmlFormId;return gn.has(l)?{enabled:!0,resolvedHtmlFormId:l}:xt()},Js=e=>No(e).enabled;var Nd=S.module("Listener"),oe=class extends H{constructor(){super(...arguments);this.log=Nd}ensureNotInitialized(){return this.isInitialized?(this.log.debug(`${this.getName()} already initialized, skipping`),!1):!0}markInitialized(){super.markInitialized(),this.log.success(`${this.getName()} listeners attached`)}cleanup(){}reset(){this.isInitialized&&this.cleanup(),super.reset()}};var Ud={hubspot:"HubSpot",marketo:"Marketo",pardot:"Pardot"},Uo=class e extends oe{constructor(){super(...arguments);this.initializedDocuments=new WeakSet;this.documentHandlers=new Map}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"HTML"}cleanup(){this.documentHandlers.forEach((n,o)=>{o.removeEventListener("submit",n.submitHandler,{capture:!0}),n.interactionHandlers.forEach((r,i)=>{o.removeEventListener(i,r)})}),this.documentHandlers.clear(),this.initializedDocuments=new WeakSet}init(n=document){if(this.initializedDocuments.has(n)){this.log.debug(`${this.getName()} already initialized for this document, skipping`);return}let o=this.onSubmit.bind(this);n.addEventListener("submit",o,{capture:!0});let r=this.setupFormInteractionListeners(n);this.documentHandlers.set(n,{submitHandler:o,interactionHandlers:r}),this.initializedDocuments.add(n),this.isInitialized||this.markInitialized()}onSubmit(n){if(!G())return;let o=n.target,r=xi(o);if(r){let c=Ud[r.vendor],u=r.vendor==="pardot"?"Skipping as vendor form":`Skipping ${c} form (handled by ${c} listener)`;this.log.warn(u,{vendor:r.vendor,formId:I(o,"id")||o.getAttribute("name")||"unnamed",reason:r.reason});return}if(pt(o)){this.log.debug("Skipping Meta Pixel beacon form");return}if(z(o)){this.log.debug("Skipping form (ignored by configuration)");return}let i=No(o);i.enabled&&(n.preventDefault(),this.log.debug(`Intercepted scheduler-enabled form: ${I(o,"id")}`));let s=I(o,"id")||o.getAttribute("name")||"unnamed";this.log.found(`HTML form submission: ${s}`);let l=new FormData(o),a=Array.from(l.keys()).length;this.log.debug(`Form has ${a} fields`);let d=ns(o,l);i.resolvedHtmlFormId&&d.form_id!==i.resolvedHtmlFormId&&(d.form_id=i.resolvedHtmlFormId),fe(d,{schedulerEnabled:i.enabled}),this.log.sent("HTML form submission",{formId:s,fieldCount:a})}setupFormInteractionListeners(n){let o=["focus","focusout","change","paste","copy"],r=new Map;return o.forEach(i=>{let s=l=>{this.onInteraction(l,i)};r.set(i,s),n.addEventListener(i,s,{passive:!0})}),this.log.debug("Form interaction listeners attached"),r}onInteraction(n,o){if(!G()||!js())return;let r=n.target;if(!Yi(r))return;let i=r.closest("form");if(!(!i||z(i))&&ji(o)){let s=r,l=(s.name||s.id||"").toLowerCase(),a=s instanceof HTMLInputElement&&(s.type||"").toLowerCase()==="email"||l.includes("email");if(o==="change"&&a)return;let d=s.name||s.id||"unnamed",c=I(i,"id")||i.getAttribute("name")||"unnamed";this.log.debug(`Form interaction: ${o} on ${d} in ${c}`);let u=as(i,s,o);Xs(u)}}},hn=Uo.getInstance();var Vo=class e extends oe{constructor(){super(...arguments);this.isPlatformAvailable=!1;this.isV4PlatformAvailable=!1;this.readyV4Handler=null;this.readyMessageHandler=null;this.submissionMessageHandler=null;this.v4SubmissionHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"HubSpot"}init(){this.ensureNotInitialized()&&(this.setupReadyListeners(),this.setupSubmissionListeners(),this.setupV4Listeners(),this.markInitialized())}cleanup(){this.readyV4Handler&&(window.removeEventListener("hs-form-event:on-ready",this.readyV4Handler),this.readyV4Handler=null),this.readyMessageHandler&&(window.removeEventListener("message",this.readyMessageHandler),this.readyMessageHandler=null),this.submissionMessageHandler&&(window.removeEventListener("message",this.submissionMessageHandler),this.submissionMessageHandler=null),this.v4SubmissionHandler&&(window.removeEventListener("hs-form-event:on-submission:success",this.v4SubmissionHandler),this.v4SubmissionHandler=null),this.isPlatformAvailable=!1,this.isV4PlatformAvailable=!1}setupReadyListeners(){this.readyV4Handler=()=>{try{this.isV4PlatformAvailable=!0,this.log.found("HubSpot V4 platform")}catch(n){this.log.error("Error in HubSpot V4 ready listener",n)}},window.addEventListener("hs-form-event:on-ready",this.readyV4Handler),this.readyMessageHandler=n=>{try{n.data.type==="hsFormCallback"&&n.data.eventName==="onFormReady"&&(this.isPlatformAvailable=!0,this.log.found("HubSpot platform"))}catch(o){this.log.error("Error in HubSpot ready listener",o)}},window.addEventListener("message",this.readyMessageHandler),this.log.debug("HubSpot ready listeners attached")}setupSubmissionListeners(){this.submissionMessageHandler=n=>{var o,r,i;try{if(!G())return;if(n.data.type==="hsFormCallback"&&n.data.eventName==="onFormSubmitted"&&(o=n==null?void 0:n.data)!=null&&o.id&&(i=(r=n==null?void 0:n.data)==null?void 0:r.data)!=null&&i.submissionValues){let s=n.data.id,l=Kt(n.source);if(l&&z(l)||Kn(s)){this.log.debug(`Skipping HubSpot form (ignored by configuration): ${s}`);return}this.log.found(`HubSpot form submission: ${s}`);let a=os({conversionId:n.data.data.conversionId,formId:s},n.data.data.submissionValues);fe(a).catch(d=>{this.log.warn("Error sending HubSpot form submission",d)}),this.log.sent("HubSpot form submission",{formId:s})}}catch(s){this.log.warn("Error processing HubSpot form submission",s)}},window.addEventListener("message",this.submissionMessageHandler)}setupV4Listeners(){this.v4SubmissionHandler=n=>b(this,null,function*(){var o;try{if(!G())return;let r=n,i=(o=window.HubSpotFormsV4)==null?void 0:o.getFormFromEvent(r);if(!i){this.log.warn("Could not get form from HubSpot V4 event");return}let s=i.getFormId();if(Kn(s)){this.log.debug(`Skipping HubSpot V4 form (ignored by configuration): ${s}`);return}this.log.found(`HubSpot V4 form submission: ${s}`);let l=yield i.getFormFieldValues();if(!l||(l==null?void 0:l.length)===0){this.log.warn("Could not get form field values from HubSpot V4");return}let a=l.length;this.log.debug(`Form has ${a} fields`);let d=rs(s,l);fe(d).catch(c=>{this.log.warn("Error sending HubSpot V4 form submission",c)}),this.log.sent("HubSpot V4 form submission",{formId:s,fieldCount:a})}catch(r){this.log.warn("Error processing HubSpot V4 form submission",r)}}),window.addEventListener("hs-form-event:on-submission:success",this.v4SubmissionHandler)}isReady(){return this.isInitialized&&(this.isPlatformAvailable||this.isV4PlatformAvailable)}},qs=Vo.getInstance();var Bo=class e extends oe{constructor(){super(...arguments);this.isPlatformAvailable=!1}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Marketo"}init(){this.ensureNotInitialized()&&(window.MktoForms2?(this.isPlatformAvailable=!0,this.log.found("Marketo platform"),window.MktoForms2.whenReady(n=>{if(G())try{let o=n.getFormElem()[0],r=o.id||"unnamed";this.log.debug(`Marketo form ready: ${r}`),n.onSuccess(i=>{if(z(o)){this.log.debug(`Skipping Marketo form (ignored by configuration): ${r}`);return}this.log.found(`Marketo form submission: ${r}`);let s=Object.keys(i).length;this.log.debug(`Form has ${s} fields`);let l=is(r,i);if(fe(l),this.log.sent("Marketo form submission",{formId:r,fieldCount:s}),Js(o))return this.log.debug(`Blocked Marketo follow-up URL for scheduler form: ${r}`),!1})}catch(o){this.log.error("Error setting up Marketo form",o)}}),this.markInitialized()):this.log.debug("Marketo not detected on page"))}cleanup(){this.isPlatformAvailable=!1}isReady(){return this.isInitialized&&this.isPlatformAvailable}},At=Bo.getInstance();var Vd=["type","name","placeholder","required","aria-label","aria-labelledby","for","id","value"],Sn={childList:!0,subtree:!0,attributes:!0,attributeFilter:[...Vd],attributeOldValue:!0,characterData:!0};var Bd="input, textarea, select";function ta(e){let t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function Qs(e){if(!K(e))return!1;let t=e,n=t.tagName;return ta(t)||n==="OPTION"||n==="LABEL"||n==="LEGEND"?!0:t.querySelector(`${Bd}, option, label, legend`)!==null}function Gd(e,t){if(t==="value")return e.tagName==="OPTION";let n=e.tagName;return ta(e)||n==="LABEL"||n==="OPTION"}function ea(e){return e.closest("label, option, legend")!==null}var na=new Set(["root","__next","__nuxt","app","application"]);function $d(e){return typeof CSS!="undefined"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function Wd(e){let t=n=>{if(!n)return!1;for(let o=0;o<n.length;o++){let r=n[o];if(r.nodeType===Node.TEXT_NODE||r.nodeType===Node.ELEMENT_NODE)return!0}return!1};return t(e.addedNodes)||t(e.removedNodes)}function zd(e){let t=e.ownerDocument;if(e===t.documentElement||e===t.body)return!1;let n=e.id;return!(!n||na.has(n)||e.querySelector("form"))}function Kd(e){if(!K(e))return[];let t=e,n=[];return t.id&&n.push(t.id),t.querySelectorAll("[id]").forEach(o=>{o.id&&n.push(o.id)}),n}var Go=class e extends oe{constructor(){super(...arguments);this.observer=null;this.domContentLoadedHandler=null;this.observedFrameDocuments=new WeakSet;this.navigationWatchedFrames=new WeakSet}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Mutation"}init(){this.ensureNotInitialized()&&(this.observer=new MutationObserver(n=>{var d;if(!G())return;let o=new Set,r=!1,i=c=>{if(!c)return;if(c.tagName==="FORM"){o.add(c);return}let u=c.closest("form");u&&o.add(u)},s=(c,u)=>{!u||na.has(u)||c.querySelectorAll(`[aria-labelledby~="${$d(u)}"]`).forEach(g=>{i(g)})},l=c=>{if(!c)return;let u=c.id?c:c.closest("[id]");!u||!zd(u)||s(u.ownerDocument,u.id)},a=c=>{let u=Di(c);for(let g of Kd(c))s(u,g)};for(let c of n){if(c.type==="attributes"){if(!K(c.target))continue;if(Gd(c.target,c.attributeName)&&i(c.target),c.attributeName==="id"){let u=c.target.ownerDocument;s(u,c.oldValue),s(u,c.target.id||null)}continue}if(c.type==="characterData"){let u=Ci(c.target)?c.target.parentElement:null;u!=null&&u.closest("label, option, legend")&&i(u),l(u);continue}c.type==="childList"&&(K(c.target)&&ea(c.target)&&i(c.target),K(c.target)&&(ea(c.target)||Wd(c))&&l(c.target),c.addedNodes.forEach(u=>{if(!K(u))return;let g=u;(Ri(g)||g.querySelector("iframe"))&&(r=!0),g.tagName==="FORM"&&o.add(g),g.querySelectorAll("form").forEach(f=>{o.add(f)}),Qs(u)&&K(c.target)&&i(c.target),a(u)}),(d=c.removedNodes)==null||d.forEach(u=>{Qs(u)&&K(c.target)&&i(c.target),a(u)}))}r&&this.attachToFrames(),o.forEach(c=>{Ke.onFormDomChanged(c)}),window.MktoForms2&&!At.initialized&&(this.log.debug("Marketo detected via mutation, setting up listeners"),At.init())}),this.observe(),this.attachToFrames(),this.markInitialized())}attachToFrames(n=document){zt(n,o=>{this.attachToFrameElement(o)})}attachToFrameElement(n){let o=Wn(n);if(o){this.attachToFrame(n,o);return}this.watchFrameNavigation(n)}attachToFrame(n,o){hn.init(o),this.watchFrameNavigation(n),this.observeFrameDocument(o)&&(this.log.debug("Observing frame document for form catalog changes"),Ke.onFrameAttached())}observeFrameDocument(n){return!this.observer||this.observedFrameDocuments.has(n)?!1:(this.observedFrameDocuments.add(n),this.observer.observe(n,Sn),!0)}watchFrameNavigation(n){this.navigationWatchedFrames.has(n)||(this.navigationWatchedFrames.add(n),n.addEventListener("load",()=>{this.attachToFrames()}))}observe(){if(!this.observer)return;let n=document.documentElement;n&&(document.readyState==="loading"?this.domContentLoadedHandler||(this.domContentLoadedHandler=()=>{var o;(o=this.observer)==null||o.observe(n,Sn),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)},document.addEventListener("DOMContentLoaded",this.domContentLoadedHandler)):this.observer.observe(n,Sn))}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)}cleanup(){this.disconnect(),this.observedFrameDocuments=new WeakSet,this.navigationWatchedFrames=new WeakSet}},$o=Go.getInstance();var Wo=class e extends oe{constructor(){super(...arguments);this.messageHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Paperform"}init(){this.ensureNotInitialized()&&(this.messageHandler=n=>{var o,r,i;if(G()&&typeof n.data=="string"&&(o=n==null?void 0:n.data)!=null&&o.includes("paperform:")&&(r=n==null?void 0:n.data)!=null&&r.includes("submission_id")&&(i=n==null?void 0:n.data)!=null&&i.includes('"action":"submission"')){try{let s=JSON.parse(n.data.slice(10)),l=(s==null?void 0:s.id)||(s==null?void 0:s.embed_id)||"unnamed",a=Kt(n.source);if(a&&z(a)){this.log.debug(`Skipping Paperform form (ignored by configuration): ${l}`);return}this.log.found(`Paperform submission: ${l}`);let d=ss(s);fe(d),this.log.sent("Paperform submission",{formId:l})}catch(s){this.log.warn("Error processing Paperform submission",s)}return}},window.addEventListener("message",this.messageHandler),this.markInitialized())}cleanup(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null)}},oa=Wo.getInstance();var zo=S.module("Lifecycle"),Ko=class e{constructor(){this.isInitialized=!1;this.isSetupInProgress=!1;this.readystatechangeHandler=null;this.domContentLoadedHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}setup(t){if(this.isInitialized){zo.debug("Already initialized, skipping");return}if(this.isSetupInProgress){zo.debug("Setup already in progress, skipping");return}this.isSetupInProgress=!0;let n=()=>{if(this.isInitialized)return;this.isInitialized=!0;let o=t();o instanceof Promise&&o.catch(r=>{zo.error("Initialization failed",r)}),this.cleanup()};document.readyState==="complete"?n():(this.readystatechangeHandler=()=>{document.readyState==="complete"&&n()},document.addEventListener("readystatechange",this.readystatechangeHandler),this.domContentLoadedHandler=()=>{n()},document.addEventListener("DOMContentLoaded",this.domContentLoadedHandler))}cleanup(){this.readystatechangeHandler&&(document.removeEventListener("readystatechange",this.readystatechangeHandler),this.readystatechangeHandler=null),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)}reset(){this.cleanup(),this.isInitialized=!1,this.isSetupInProgress=!1}},ra=Ko.getInstance();function ia(e,t=50){let n;return()=>{n&&clearTimeout(n),n=window.setTimeout(()=>e(),t)}}var Yo=class e extends H{constructor(){super(...arguments);this.originalPushState=null;this.originalReplaceState=null;this.debouncedCallback=null;this.popstateHandler=null;this.hashchangeHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}setup(n){this.ensureNotInitialized()&&(this.markInitialized(),this.originalPushState=window.history.pushState,this.originalReplaceState=window.history.replaceState,this.debouncedCallback=ia(n,50),window.history.pushState=((...o)=>{var i;let r=this.originalPushState.apply(window.history,o);return(i=this.debouncedCallback)==null||i.call(this),r}),window.history.replaceState=((...o)=>{var i;let r=this.originalReplaceState.apply(window.history,o);return(i=this.debouncedCallback)==null||i.call(this),r}),this.popstateHandler=()=>{var o;(o=this.debouncedCallback)==null||o.call(this)},this.hashchangeHandler=()=>{var o;(o=this.debouncedCallback)==null||o.call(this)},window.addEventListener("popstate",this.popstateHandler),window.addEventListener("hashchange",this.hashchangeHandler))}reset(){this.initialized&&(this.originalPushState&&(window.history.pushState=this.originalPushState),this.originalReplaceState&&(window.history.replaceState=this.originalReplaceState),this.popstateHandler&&window.removeEventListener("popstate",this.popstateHandler),this.hashchangeHandler&&window.removeEventListener("hashchange",this.hashchangeHandler)),super.reset(),this.originalPushState=null,this.originalReplaceState=null,this.debouncedCallback=null,this.popstateHandler=null,this.hashchangeHandler=null}},Yd=Yo.getInstance();function sa(e){Yd.setup(e)}var _e=S.module("Session"),aa="__dflt_lc";function la(){return window[aa]===!0}function ca(e){window[aa]=e}var Ce=null,ke=null;function ua(){if(la()){_e.debug("Lifecycle listeners already attached, skipping");return}(Ce||ke)&&(_e.debug("Removing existing lifecycle listeners before re-attaching"),Zd()),Ce=jd,ke=Xd,window.addEventListener("pagehide",Ce),document.addEventListener("visibilitychange",ke),ca(!0),_e.debug("Lifecycle listeners attached")}function jd(e){e.persisted?(_e.debug("Page going to bfcache (back/forward) - updating activity"),q.updateActivity()):(_e.debug("Page unload detected - sending session end beacon (session continues if refreshed)"),q.sendSessionEndWithoutClearing("page_unload"))}function Xd(){document.visibilityState==="hidden"?(q.updateActivity(),_e.debug("Visibility hidden - activity updated")):document.visibilityState==="visible"&&(q.touch(),_e.debug("Visibility visible - session touched"))}function Zd(){!la()&&!Ce&&!ke||(Ce&&(window.removeEventListener("pagehide",Ce),Ce=null),ke&&(document.removeEventListener("visibilitychange",ke),ke=null),ca(!1),_e.debug("Lifecycle listeners removed"))}var Re=S.module("Pageview"),jo=class e extends H{constructor(){super(...arguments);this.lastTrackedUrl=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){Re.debug("Already initialized, skipping");return}this.markInitialized(),Re.success("Pageview tracker initialized")}trackPageview(){let n=k.get();if(!this.initialized||!n){Re.warn("Cannot track pageview: not initialized or missing config");return}if(!Z()){Re.debug("Analytics consent withheld, skipping pageview");return}let o=window.location.href;if(this.lastTrackedUrl===o){Re.debug("Skipping duplicate pageview for same URL");return}this.lastTrackedUrl=o;let{isNewSession:r,sessionId:i}=q.touch(),s=new URL(o).pathname;Re.debug(`Tracking pageview: ${s}`,{isNewSession:r,hasReferrer:!!document.referrer});let l=Ve(),a=Ge(),d=h(A(h({publicKey:n.publicKey,anonymousId:J.getAnonymousId(),sessionId:i,pageUrl:o,referrer:document.referrer,utmParams:Be()},l&&{gclid:l}),{userAgent:navigator.userAgent,ts:Date.now(),isNewSession:r}),a!==void 0&&{responseStatus:a});or(d),Re.sent("pageview",{path:s,isNewSession:r})}resetLastTrackedUrl(){this.lastTrackedUrl=null}reset(){super.reset(),this.lastTrackedUrl=null}onRouteChange(){this.resetLastTrackedUrl(),this.trackPageview()}},yn=jo.getInstance();var Xo={color:"rgba(0, 0, 0, 0.15)",blur:"blur(8px)"};var Jd=e=>{var i;let t=(i=e.match(/^#([\da-f]{6})$/i))==null?void 0:i[1];if(!t)return!1;let n=Number.parseInt(t.slice(0,2),16),o=Number.parseInt(t.slice(2,4),16),r=Number.parseInt(t.slice(4,6),16);return(n*299+o*587+r*114)/1e3<128},qd=e=>e.loadingModalTextColor||(Jd(e.backgroundColor)?"#fafafa":le[M.fg]),Qd=e=>{var t;switch(e.loadingModalBackground){case"page":return{overlay:(t=e.backgroundColor)!=null?t:le[M.overlay],overlayBlur:"none"};case"none":return{overlay:"transparent",overlayBlur:"none"};case"blurred":return{overlay:Xo.color,overlayBlur:Xo.blur};case void 0:return{overlay:le[M.overlay],overlayBlur:le[M.overlayBlur]}}},da=(e,t)=>{var r;if(!e)return{theme:h({},le),logoUrl:t};let{overlay:n,overlayBlur:o}=Qd(e);return{theme:A(h({},le),{[M.bg]:(r=e.backgroundColor)!=null?r:le[M.bg],[M.fg]:qd(e),[M.overlay]:n,[M.overlayBlur]:o}),logoUrl:e.loadingModalUseBrandLogo===!1?null:t}};var pa="data-default-preconnect",em=e=>{try{return new URL(e).origin}catch(t){return null}},ma=(e,t)=>!!document.head.querySelector(`link[${pa}="1"][rel="${t}"][href="${e}"]`),fa=(e,t)=>{let n=document.createElement("link");n.rel=t,n.href=e,n.setAttribute(pa,"1"),t==="preconnect"&&(n.crossOrigin="anonymous"),document.head.appendChild(n)},ga=e=>{if(typeof document=="undefined")return;let t=new Set;for(let n of e){if(!n)continue;let o=em(n);!o||t.has(o)||(t.add(o),ma(o,"dns-prefetch")||fa(o,"dns-prefetch"),ma(o,"preconnect")||fa(o,"preconnect"))}};(function(e){if(e.__dft_loaded){S.debug("Already loaded on this page, skipping duplicate script execution");return}e.__dft_loaded=!0;let t,n=!1,o=!1,r=null;function i(m){try{let p=new URL(m);return p.hostname.toLowerCase().startsWith("api.")?`${p.protocol}//book.${p.hostname.slice(4)}`:null}catch(p){return null}}function s(){if(!ge()){S.debug("Capture disabled, skipping form listener setup");return}n||(hn.init(),qs.init(),At.init(),oa.init(),$o.init(),n=!0),$o.attachToFrames()}function l(m){return b(this,null,function*(){var re,U;if(o){S.debug("Already initialized, skipping");return}o=!0;let y=m||"https://api.default.com",E=(re=e.__defaultPixel__)==null?void 0:re.key;if(!E){S.warn("No public key found. Please ensure the script is properly installed with a key.");return}t={publicKey:E,endpoint:y},k.initialize(t),fr(y,E),jr(()=>Q.getConsent().analytics),Q.init(),di(()=>({anonymousId:J.getAnonymousId(),sessionId:q.getSessionId()})),f(),g(),ga([y,"https://book.default.com",i(y)]);let L=e.__defaultPixel__,D=(U=L==null?void 0:L.schedulerOrigins)!=null?U:Vs(y);Y.setAllowedOrigins(D),(L==null?void 0:L.autoDisplayScheduler)!==void 0&&Ns(L.autoDisplayScheduler),u(),v(),sa(()=>{if(u(),!!ge()){if(!r){a();return}r.then(()=>{s(),yn.onRouteChange(),c(),Ke.onRouteChange(),$t.init()})}}),ge()&&(yield a())})}function a(){return r||(r=d()),r}function d(){return b(this,null,function*(){yield J.init(),q.init(),yn.init(),yn.trackPageview(),$t.init(),ar().then(({schedulerStyle:m,logoUrl:p,schedulerFormIds:y})=>{Zs(y);let E=da(m,p);Cs(E);let L=an();L&&(rn(L,E.theme),sn(L,E.logoUrl))}).catch(m=>{S.warn("Failed to apply scheduler theme, modal will use default theme",m)}),c(),ua(),s(),Ke.init()})}function c(){let m=Bi();lr(window.location.pathname).then(p=>{eo(p,m)}).catch(()=>{eo(null,m)})}function u(){Qo(ge())}function g(){let m=Q.getConsent().marketing;Q.onChange(p=>{let y=!m&&p.marketing;m=p.marketing,!(!y||!r||!ge())&&r.then(()=>{Q.getConsent().marketing&&$t.init()})})}function f(){var y;let m=e.__defaultPixel__;if(!m)return;let p=(y=m.q)!=null?y:[];for(let[E,L]of p)E==="setConsent"&&Q.setConsent(L);m.q=[],m.setConsent=E=>Q.setConsent(E)}function v(){var p;let m=Ps();m&&(be((p=qe())!=null?p:void 0),dn(m.schedulerUrl,m.handoffConfig)&&et())}ra.setup(l)})(window);return La(tm);})();
