@solomei-ai/intent 1.8.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,6 +44,7 @@ initIntent({
44
44
  baseUrl: 'https://...', // Optional: Custom API endpoint (default: 'https://intent.callimacus.ai')
45
45
  ip: '192.0.2.1', // Optional: Client IP address
46
46
  sidMaxAgeSeconds: 86400, // Optional: Session cookie max-age in seconds (default: 30 days)
47
+ debug: false, // Optional: Enable debug logging for timing information (default: false)
47
48
  });
48
49
  ```
49
50
 
@@ -103,11 +104,56 @@ setFlag('intent:consent', false); // disabled
103
104
  // Enable or disable device geolocation capture
104
105
  setFlag('intent:geo', true); // enabled
105
106
  setFlag('intent:geo', false); // disabled
107
+
108
+ // Enable or disable debug logging
109
+ setFlag('intent:debug', true); // enabled
110
+ setFlag('intent:debug', false); // disabled
106
111
  ```
107
112
  - When consent is granted, the tracker maintains a first-party cookie `intent_sid`.
108
113
  - If consent is revoked, the tracker clears `intent_sid` and stops sending events.
109
114
  ---
110
115
 
116
+ ## Debug Logging
117
+
118
+ By default, the SDK does not output any console logs to avoid spamming the browser console. However, you can enable debug logging to see timing information for performance analysis:
119
+
120
+ ```ts
121
+ import {initIntent} from '@solomei-ai/intent';
122
+
123
+ // Enable debug logging during initialization
124
+ initIntent({
125
+ clientId: 'cal-pk-...',
126
+ debug: true, // Enable debug logs
127
+ });
128
+ ```
129
+
130
+ Or toggle debug logging at runtime:
131
+
132
+ ```ts
133
+ import {setFlag} from '@solomei-ai/intent';
134
+
135
+ // Enable debug logging
136
+ setFlag('intent:debug', true);
137
+
138
+ // Disable debug logging
139
+ setFlag('intent:debug', false);
140
+ ```
141
+
142
+ When debug logging is enabled, the SDK will output timing information to the console, including:
143
+ - **HTML serialization time**: Time taken to serialize the DOM into HTML
144
+ - **Screenshot capture time**: Time taken by html2canvas-pro to render the page
145
+ - **JPEG encoding time**: Time taken to encode the canvas to JPEG format
146
+ - **Total capture time**: Total time for the entire capture process
147
+
148
+ This is useful for:
149
+ - **Performance tuning**: Identify bottlenecks in the capture process
150
+ - **Development debugging**: Understand SDK behavior during development
151
+ - **Production troubleshooting**: Temporarily enable logs to diagnose issues
152
+
153
+ **Note:** Debug logging is disabled by default to prevent console spam in production. Only enable it when needed for debugging or performance analysis.
154
+
155
+ ---
156
+
111
157
  ## Using `intent_sid`
112
158
 
113
159
  Use these utilities to read or manage the session cookie from your app:
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * © 2025 Solomei AI SRL. Proprietary and confidential.
3
3
  */
4
- import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){const a=o();return(n=function(t,e){return a[t-=107]})(t,e)}function o(){const t=["timeZone","serviceWorker","slice","Viewport: ","responseStart","Device geolocation: enabled","°, γ ","getBattery","function",", orientation ","TTFB","4242DjeHKi","rttMs","undefined","floor","15798060eOKlGv","Tilt: ","availWidth"," (β "," ms"," Mbps","isFinite","hardwareConcurrency","filter","no SW","Online: "," (mobile)","7510626yCMNch","encodedBodySize","maxTouchPoints","-bit)","availHeight","effectiveType","beta","getTimezoneOffset","innerHeight","(pointer: coarse)","round","resource","browser API","CPU: ","startsWith","referrer","upright","DateTimeFormat","897224HWzZrD","getEntriesByType","64329WmaDIf","7550410VRvQdK","; DNT: ","transferSize","Screen: ","requestStart","Pointer/Touch: ","charging","setTimeout","unknown","yes","Device geolocation: disabled","orientation","devicePixelRatio","version","Language: ","CookiesEnabled: ","downlink","join","(display-mode: standalone)","PWA: ","fine","toFixed","rtt","Local time: ","Network: ","padStart"," cores",", maxTouchPoints ","find","SW-controlled","innerWidth","number","gamma","controller","languages","User agent: ","abs","Battery: ","saveData","colorDepth","max","length","brand","1380GeZnjP"," | ","6612ONXWlS","downlinkMbps","enabled","coarse","removeEventListener","connection","flat","n/a","668IALAMC","duration","language","type","navigation","deviceorientation","push","DeviceOrientationEvent","mobile","onLine","entryType","width","matches","TTFB ~","UA brands: ","userAgentData","not charging","platform","brands"];return(o=function(){return t})()}async function a(){const t=n,e=[];let o=t(187);if(function(t){const e=n;return e(126)in t&&typeof t.connection!==e(161)}(navigator)){const n=navigator[t(126)];n?.effectiveType&&e[t(135)](n[t(180)]),typeof n?.[t(212)]===t(107)&&e[t(135)]("~"+n.downlink+t(168)),typeof n?.[t(218)]===t(107)&&e[t(135)](n.rtt+t(167)),n?.saveData&&e.push(t(114))}else{const a=function(t=20){const e=n,o=performance[e(194)](e(133))[e(224)](t=>t[e(139)]===e(133)),a=o?Math.max(0,o[e(152)]-o[e(200)]):void 0,i=performance[e(194)](e(186))[e(171)](t=>t[e(139)]===e(186));let r=0,c=0;for(const n of i[e(150)](0,Math[e(116)](0,t))){const t=n[e(176)]>0?n[e(176)]:n.transferSize>0?n[e(198)]:0,o=n[e(130)];t>0&&o>0&&Number[e(169)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:"number"==typeof s?s/1e3:void 0,rttMs:a}}();typeof a.downlinkMbps===t(107)&&e.push("~"+a[t(122)][t(217)](1)+t(168)),"number"==typeof a.rttMs&&e[t(135)](t(142)+Math[t(185)](a[t(160)])+" ms"),o="inferred"}const a=performance[t(194)](t(133))[t(224)](e=>"navigation"===e[t(139)]);if(a){const n=Math.max(0,a.responseStart-a[t(200)]);!e.some(e=>e[t(189)](t(158)))&&e[t(135)](t(142)+Math[t(185)](n)+" ms")}return e[t(117)]?t(220)+e[t(213)](", ")+" ("+o+")":void 0}function i(){const t=n;if(!function(t){const e=n;return e(144)in t&&typeof t[e(144)]!==e(161)}(navigator))return;const e=navigator[t(144)],o=Array.isArray(e.brands)?e[t(147)].map(e=>e[t(118)]+" "+e[t(209)])[t(213)](", "):void 0,a=e[t(146)]?""+e[t(146)]+(e[t(137)]?t(174):""):void 0;return[o&&t(143)+o,a&&"Platform: "+a][t(171)](Boolean).join(" | ")||void 0}async function r(t=400){const e=n;if(e(136)in window&&window.isSecureContext)return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a="number"==typeof t[e(181)]?t.beta:void 0,c="number"==typeof t[e(108)]?t[e(108)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(125)](e(134),r);const s=function(t,e){const o=n,a=Math[o(112)](t),i=Math[o(112)](e);return a<15&&i<15?o(127):a>=60?o(191):"reclined"}(a,c);o(e(164)+s+e(166)+Math[e(185)](a)+e(154)+Math.round(c)+"°)")};window[a(203)](()=>{i||(i=!0,window[a(125)]("deviceorientation",r),o(void 0))},t),window.addEventListener(a(134),r,{passive:!0})})}async function c(){const t=n;if(function(t){const e=n;return e(155)in t&&typeof t.getBattery===e(156)}(navigator))try{const e=await navigator.getBattery(),n=Math[t(185)](100*e.level),o=[(Number[t(169)](n)?n:0)+"%",e[t(202)]?t(202):t(145)];return t(113)+o[t(213)](", ")}catch{return}}async function s(){const t=n,e=(new(Intl[t(192)])).resolvedOptions()[t(148)],o=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(112)](t);return""+o+String(Math[e(162)](a/60))[e(221)](2,"0")+":"+String(a%60)[e(221)](2,"0")}((new Date)[t(182)]()),s=[];s.push(t(210)+navigator[t(131)]),navigator[t(110)]?.[t(117)]&&s[t(135)]("Languages: "+navigator[t(110)][t(213)](", ")),s[t(135)](t(111)+navigator.userAgent);const l=i();l&&s[t(135)](l),s[t(135)]("Timezone: "+e+" (UTC"+o+")"),s[t(135)](t(219)+(new Date).toString());const u=window[t(208)]||1;s[t(135)](t(199)+screen[t(140)]+"x"+screen.height+" @"+u+"x (avail "+screen[t(165)]+"x"+screen[t(179)]+", "+screen[t(115)]+t(178));const d=screen[t(207)]&&t(132)in screen[t(207)]?screen[t(207)][t(132)]:void 0;s[t(135)](t(151)+window[t(226)]+"x"+window[t(183)]+(d?t(157)+d:"")),s[t(135)](t(188)+navigator[t(170)]+t(222));const f=await a();f&&s[t(135)](f),s.push(function(){const t=n,e=typeof matchMedia===t(156)&&matchMedia(t(184)).matches,o=typeof matchMedia===t(156)&&matchMedia("(pointer: fine)")[t(141)],a=t(e?124:o?216:204),i="number"==typeof navigator[t(177)]?navigator[t(177)]:0;return t(201)+a+t(223)+i}());const m=await c();m&&s[t(135)](m),s.push(t(211)+(navigator.cookieEnabled?t(205):"no")+t(197)+(navigator.doNotTrack??t(128))),s[t(135)](t(173)+(navigator[t(138)]?t(205):"no")),document.referrer&&s[t(135)]("Referrer: "+document[t(190)]),s[t(135)](function(){const t=n,e=typeof matchMedia===t(156)&&matchMedia(t(214))[t(141)],o=Boolean(navigator[t(149)]?.[t(109)]);return t(215)+t(o?225:172)+", display-mode standalone: "+(e?t(205):"no")}());const p=await r();p&&s.push(p);const h=typeof localStorage!==t(161)&&localStorage.getItem("intent:geo")===t(123);return s[t(135)](t(h?153:206)),s[t(213)](t(120))}!function(){const t=n,e=o();for(;;)try{if(755195===parseInt(t(129))/1*(-parseInt(t(159))/2)+parseInt(t(195))/3+-parseInt(t(121))/4*(-parseInt(t(119))/5)+-parseInt(t(175))/6+parseInt(t(196))/7+parseInt(t(193))/8+parseInt(t(163))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const l=tt;!function(){const t=tt,e=_();for(;;)try{if(456065===-parseInt(t(611))/1+parseInt(t(659))/2*(-parseInt(t(594))/3)+-parseInt(t(581))/4+parseInt(t(585))/5*(-parseInt(t(457))/6)+parseInt(t(580))/7+parseInt(t(505))/8*(parseInt(t(600))/9)+parseInt(t(526))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let u,d="",f=0;const m="intent:consent",p=l(528);let h=!1,g=!1,w=!1,y=!1,v=!1,b=!1;const M=l(559),x=l(511),S=l(516),I=l(454),T=l(514),E=l(663),A=["button","a[href]","a",l(481),l(491),l(452),l(532),l(640)][l(471)](","),L=l(461),k=l(539),D=new Set(["name",l(474),"additional-name",l(593),l(572),l(570),l(484),l(538),"organization","organization-title",l(470),l(610),l(486),l(619),l(478),"address-level2",l(512),"address-level4",l(582),"country-name",l(614),l(466),l(633),"cc-additional-name","cc-family-name",l(571),l(499),l(565),l(636),l(602),l(643),l(493),"bday-day",l(650),l(550),l(458),l(553)]);function H(t){return"<"+N(t)+">"}function N(t){const e=l,n=(t[e(651)]?.(k)??"")[e(577)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(653)]().trim()[e(634)](/\s+/)[e(544)](Boolean):[];return t instanceof HTMLInputElement&&"password"===t.type?"Password":o[e(475)](t=>t[e(535)]("cc-"))?e(616):o.some(t=>["name","given-name",e(593),e(590),"cc-name",e(633),"cc-family-name"].includes(t))?e(524):o[e(597)](e(484))?e(627):o.includes("tel")?e(561):o[e(475)](t=>t[e(535)](e(493)))?e(462):o[e(597)](e(458))?"Sex":o[e(475)](t=>[e(470),e(610),"address-line2",e(619),e(478),e(573),"address-level3",e(648),e(614),e(582),e(601)][e(597)](t))?"Address":o[e(597)](e(567))||o[e(597)](e(632))?e(569):"mask"===t.getAttribute?.(L)?.[e(653)]()?e(456):e(598)}function P(t){const e=l;return t.hasAttribute(e(520))||t.getAttribute(L)?.[e(653)]()===e(589)}function O(t){const e=l,n=t[e(651)](L);return""===n||n?.[e(653)]()===e(460)}function C(t){const e=l;if(t instanceof HTMLInputElement){if("password"===t.type)return!0;if(t[e(635)]===e(645))return!1;const n=t[e(651)](e(498));if(n&&n[e(653)]()===e(549))return!1;if((t.autocomplete||"")[e(653)]().trim().split(/\s+/)[e(544)](Boolean)[e(475)](t=>D[e(487)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"").toLowerCase()[e(577)]()[e(634)](/\s+/)[e(544)](Boolean)[e(475)](t=>D[e(487)](t)))return!0}return!1}function R(t){return!P(t)&&(!!O(t)||!!C(t))}function U(){const t=l,e=[],n=t=>{const e=tt,n=t[e(534)]();if(n[e(655)]<=0||n[e(631)]<=0)return;const o=Math[e(506)](0,n[e(667)]),a=Math[e(506)](0,n[e(464)]),i=Math[e(506)](0,Math.min(n[e(630)],window[e(494)])-o),r=Math.max(0,Math.min(n[e(522)],window[e(606)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(453)]("["+L+t(628)+L+t(662))[t(576)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||"Redacted";e[a(473)]({...i,label:r})});return document.querySelectorAll(t(604)).forEach(o=>{const a=t;if(P(i=o)||!O(i)&&!C(i))return;var i;const r=n(o);if(!r)return;const c=N(o);e[a(473)]({...r,label:c})}),e}const B=()=>localStorage[l(547)](m)===l(575);function W(t){return e[l(668)](t)}function F(t,n){const o=l,a=localStorage[o(547)](T),i=null===a?void 0:Number(a),r=Number[o(661)](n)?Number(n):typeof i===o(510)&&Number.isFinite(i)?i:86400,c="https:"===window[o(450)][o(562)];e[o(542)](o(492),t,{expires:r/86400,path:"/",sameSite:"Lax",...c&&{secure:!0}})}function j(){const t=l;e[t(641)](t(492),{path:"/"})}function z(){const t=l,e=W(t(492));if(!B())return e&&j(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(656)&&"function"==typeof crypto[t(612)]?crypto[t(612)]():Date[t(497)]()+"-"+Math[t(489)]();d=n,F(d)}function _(){const t=["ignore","additional-name","min","visibilitychange","family-name","69RZwNMC","toDataURL","string","includes","Sensitive","#e5e7eb","959175aekTFo","country-name","cc-csc","load","input, textarea","secure","innerHeight","hidden","pixel body fallback failed","error","address-line1","89183EKMrmZ","randomUUID","getContext","postal-code","readAsDataURL","Credit card","round","code","address-line3","omit","stringify","localhost","INPUT","geoEnabled","hasFocus","speed","Email",'="mask"], [',"outerHTML","right","height","organization-title","cc-given-name","split","type","cc-exp-year","getCurrentPosition","scrollY","lon","[onclick]","remove","label","cc-type","middle","search","floor","application/json","address-level4","from","bday-month","getAttribute","page-blur","toLowerCase","strokeStyle","width","undefined","altitude","fillStyle","2292lFFcMD","bbox","isFinite",'=""]',"__intent__sdk__initialized__","body","clearTimeout","toISOString","left","get","tagName","isSecureContext","setAttribute","title","device","location","POSITION_UNAVAILABLE",'[role="button"]',"querySelectorAll","https://intent.callimacus.ai","hostname","Redacted","18KQPblO","sex","img","mask","data-intent-redact","Birthday","longitude","top","drawImage","cc-name","length","no-store","save","street-address","join","referrer","push","given-name","some","font","input-submit","address-level1","textContent","accuracy",'input[type="submit"]',"scroll","Enter","email","#9ca3af","address-line2","has","Unexpected FileReader result type","random","x-sl-access-token",'input[type="button"]',"intent_sid","bday","innerWidth","name","onLine","now","role","cc-exp","strokeRect","globalAlpha","context","canvas","deviceGeoSent","40wEqhQc","max","pageview","timestamp","html","number","intent:data-ip","address-level3","click","intent:data-sid-max-age","keydown","intent:data-base-url","x-intent-sid","disabled","indexOf","data-html2canvas-ignore","fillText","bottom","restore","Name","/events","4863530OHGyDr","defineProperty","intent:geo","<no visible label>","closest","removeEventListener",'[role="link"]',"center","getBoundingClientRect","startsWith","textAlign","onload","tel","data-intent-redact-label","attributes","lat","set","host","filter","coords","geolocation","getItem","/p.gif","searchbox","bday-year","focus","blur","webauthn","scrollX","key","latitude","#374151","onerror","intent:data-client-id","value","Phone","protocol","slice","target","cc-exp-month","result","organization","href","Organization","username","cc-number","nickname","address-level2","altitudeAccuracy","granted","forEach","trim","visibilityState","UNKNOWN","651770URROAT","1740qrloAq","country","page-focus","addEventListener","900495PxxCDr","entries","POST","pointerdown"];return(_=function(){return t})()}function G(){return z(),B()&&Boolean(d)&&(()=>{const t=l,e=localStorage[t(547)](M);return"string"==typeof e&&e[t(577)]()[t(467)]>0})()}function K(){return!G()||w}async function q(e){const n=l,o=function(t){const e=l,n=t.cloneNode(!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(649)](t.attributes)[e(576)](({name:t,value:o})=>{n[e(671)](t,o)}),n[e(560)]=R(t)?H(t):t[e(560)],t[e(518)]&&n.setAttribute(e(518),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(540)])[e(576)](({name:t,value:o})=>{n[e(671)](t,o)}),n.value=R(t)?H(t):t[e(560)],t.disabled&&n[e(671)]("disabled",""),n[e(629)]):t[e(629)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(554)],y:window[n(638)],width:window[n(494)],height:window.innerHeight,scale:1,logging:!1},ignoreElements:t=>t instanceof Element&&P(t)},r=await t(document[n(664)],i),c=r[n(655)],s=r[n(631)],u=Math[n(506)](c,s),d=.8*Math[n(506)](window.innerWidth,window.innerHeight),f=Math[n(591)](1,d/u),m=12/(a.height||1),p=Math[n(591)](1,Math.max(f,m)),h=Math[n(617)](c*p),g=Math.round(s*p),w=document.createElement(n(503));w.width=h,w[n(631)]=g;const y=w[n(613)]("2d");y[n(465)](r,0,0,c,s,0,0,h,g);const v=U();if(v[n(467)]){y[n(469)](),y[n(501)]=1;for(const t of v){const e=Math[n(617)](t.x*p),o=Math.round(t.y*p),a=Math[n(617)](t.w*p),i=Math.round(t.h*p);y.fillStyle=n(599),y.fillRect(e,o,a,i),y[n(654)]=n(485),y.lineWidth=Math.max(1,Math[n(646)](.02*Math[n(591)](a,i))),y[n(500)](e,o,a,i);const r=Math[n(506)](10,Math[n(591)](22,Math[n(646)](.35*i)));y[n(476)]=r+"px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",y[n(658)]=n(557),y[n(536)]=n(533),y.textBaseline=n(644);const c="<"+(t.label?.[n(577)]()[n(467)]?t[n(642)]:n(598))+">";y[n(521)](c,e+a/2,o+i/2,a-6)}y[n(523)]()}const b=w[n(595)]("image/jpeg",.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(655)],h:a.height},img:b}}function X(){const t=l,e=localStorage[t(547)](M),n={"Content-Type":t(647)};return e&&(n[t(490)]=e),d&&(n[t(517)]=d),n}async function V(t){const e=l,n=(localStorage[e(547)](S)??I)+e(525),o=localStorage[e(547)](M)??void 0,a=JSON[e(621)]({...t,clientId:o});try{if((await fetch(n,{method:e(587),headers:X(),body:a,keepalive:!0,credentials:e(620)})).ok)return}catch{}try{await async function(t){const e=l,n=(localStorage.getItem(S)??I)+e(548);if(!(await fetch(n,{method:"POST",headers:X(),body:JSON[e(621)](t),keepalive:!0,credentials:"omit",cache:e(468)})).ok)throw new Error(e(608))}(t)}catch{}}async function Z(t,e,n,o){const a=l;if(!G())return;const i={...e,localTime:(new Date)[a(666)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(560)]=R(n)?H(n):n[a(560)]);let r="",c={x:0,y:0,w:0,h:0},s="";const u=!(t===a(482)||t===a(652)||t===a(583)),d=Date[a(497)](),m=d-f>=5e3;let p=o;const h="click"===t||t===a(477)||t===a(507);u&&!p&&(h||m)&&(p=await q(n),f=d),p&&(r=p[a(509)],c=p[a(660)],s=p[a(459)]);const g=t===a(652)||t===a(583)||t===a(507),w={ts:Date[a(497)](),event:t,props:i,html:g?"":r,bbox:c,img:s};await V(w)}function Y(){return"enabled"===localStorage[l(547)](p)}async function J(t={}){const e=l;if(!G())return;const n=typeof t[e(541)]===e(510)&&"number"==typeof t[e(639)];if(n&&g)return;if(!n&&h)return;const o=localStorage.getItem(x),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(586)](t))a[n]=o;await Z(e(502),a,document[e(664)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?g=!0:h=!0}async function Q(){const t=l,e={canSend:G(),geoEnabled:Y(),deviceGeoSent:g};if(!e.canSend||!e[t(624)]||e[t(504)])return;const n={secure:window[t(670)],proto:location[t(562)],host:location.hostname};if(n[t(605)]||(t(543),t(622)),!(t(546)in navigator))return;if(v)return;v=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator.permissions?.query({name:"geolocation"}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=tt;a||(a=!0,Date[i(497)](),Number[i(661)](t)&&Number[i(661)](n)&&await J({lat:t,lon:n,source:i(449)}),v=!1,w=!1,b=!0,e())};navigator[n(546)][n(637)](t=>{const e=tt,n=t[e(545)];i(n[e(556)],n[e(463)],(n[e(480)],typeof n[e(657)]===e(510)&&n[e(657)],typeof n[e(574)]===e(510)&&n[e(574)],"number"==typeof n.heading&&n.heading,typeof n[e(626)]===e(510)&&n[e(626)],t[e(508)],document[e(578)],document.hasFocus()))},t=>{const e=tt,n=t?.[e(618)];1===n||(2===n?e(451):3===n||e(579)),navigator[e(496)],document[e(578)],document[e(625)](),location[e(562)],i(void 0,void 0)},o)})}function $(){const t=l;if(y||!Y()||g)return;y=!0;const e=()=>{const t=tt;window[t(531)]("pointerdown",e,!0),window[t(531)](t(515),e,!0),Q()};window[t(584)](t(588),e,!0),window[t(584)]("keydown",e,!0)}function tt(t,e){const n=_();return(tt=function(t,e){return n[t-=449]})(t,e)}z();let et=!document[l(607)]&&document[l(625)](),nt=document[l(625)]();const ot=()=>{const t=l;if(K())return;const e=!document.hidden&&document[t(625)]();e&&(nt=!0),nt||e?e!==et&&(et=e,Z(t(e?583:652),{},document[t(664)])):et=e};function at(){const t=l;(function(){const t=l,e=globalThis;return!e[E]&&(Object[t(527)](e,E,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(584)](t(603),()=>{const e=t;G()&&(J(),(window[e(670)]||location[e(455)]===e(622))&&(Y()&&$(),window[e(584)](e(551),()=>{!g&&Y()&&!v&&b&&Q()}),document[e(584)](e(592),()=>{!document[e(607)]&&!g&&Y()&&!v&&b&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(555)]===m&&(function(){const t=l;return localStorage[t(547)](m)===t(575)}()?(h=!1,J(),Y()&&$()):(h=!1,g=!1)),e[n(555)]===p&&(Y()?$():g=!1)}),window.addEventListener(t(603),()=>{const e=t;G()&&Z(e(507),{url:window[e(450)][e(568)],title:document[e(672)],ref:document[e(472)]},document[e(664)])}),addEventListener(t(588),function(t,e){let n=0;return(...o)=>{const a=Date[tt(497)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(K())return;const o=e[n(564)]instanceof Element?e[n(564)][n(530)](A):null;o instanceof HTMLElement&&(u=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(513),async e=>{const n=t;if(K())return;if(!(e[n(564)]instanceof Element))return;const o=e[n(564)][n(530)](A);if(!(o instanceof HTMLElement))return;const a=function(t){const e=l;return t[e(651)]("aria-label")??t[e(672)]??t[e(479)]?.[e(577)]()??e(529)}(o);(async()=>{const t=n,e=u?await u:void 0;u=void 0,Z(t(513),{tag:o.tagName,label:a},o,e)})()},!0),addEventListener(t(515),e=>{const n=t;if(!K()&&e[n(555)]===n(483)){const t=e[n(564)];if(t instanceof HTMLElement&&(t[n(669)]===n(623)||"TEXTAREA"===t[n(669)])){const e=t instanceof HTMLInputElement?t[n(495)]:void 0,o=t.id||void 0;Z("input-submit",{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(551),t(552)].forEach(e=>{window[t(584)](e,ot)}),document.addEventListener(t(592),ot),window[t(584)](t(482),function(t,e){let n;return(...o)=>{void 0!==n&&window[tt(665)](n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;K()||Z(e(482),{scrollX:window[e(554)],scrollY:window.scrollY},document[e(664)])},250),{passive:!0}),window.intent??={send(e,n){const o=t;G()&&Z(e,n,document[o(664)])}})}function it(){const t=["function","196170VPptIS","33PGxMdh","baseUrl","3221570EjbgMO","intent:data-sid-max-age","isFinite","number","intent:data-client-id","intent:data-base-url","undefined","randomUUID","https://intent.callimacus.ai","1155001HNtyFV","now","intent:consent","43640HiCSnu","setItem","granted","enabled","6JxCyYg","56PMRjGE","clientId","sidMaxAgeSeconds","intent:geo","consent","intent:data-ip","intent_sid","1220148fmvaAX","235ULmRXj","geo","3678269woXKGG","20jegwWK","14517576lkmuce"];return(it=function(){return t})()}function rt(t,e){const n=ut;try{if(void 0===e)return;localStorage[n(183)](t,e?t===n(181)?n(184):n(185):"disabled")}catch{}}function ct(t={}){const e=ut;if(localStorage[e(183)](e(174),t[e(188)]??""),localStorage[e(183)](e(192),t.ip??""),localStorage[e(183)](e(175),t[e(169)]??e(178)),typeof t[e(189)]===e(173)&&localStorage[e(183)](e(171),String(t[e(189)])),rt("intent:consent",t[e(191)]),rt(e(190),t[e(196)]),t[e(191)]){if(!W(e(193))){F(typeof crypto!==e(176)&&typeof crypto.randomUUID===e(166)?crypto[e(177)]():Date[e(180)]()+"-"+Math.random(),t[e(189)])}}at()}function st(){return W("intent_sid")}function lt(){z()}function ut(t,e){const n=it();return(ut=function(t,e){return n[t-=163]})(t,e)}function dt(){j()}function ft(t){const e=ut;Number[e(172)](t)&&localStorage.setItem(e(171),String(t));const n=W(e(193));n&&F(n,t)}!function(){const t=ut,e=it();for(;;)try{if(673571===parseInt(t(179))/1+parseInt(t(167))/2*(parseInt(t(168))/3)+parseInt(t(182))/4*(-parseInt(t(195))/5)+-parseInt(t(186))/6*(-parseInt(t(163))/7)+parseInt(t(187))/8*(-parseInt(t(194))/9)+parseInt(t(164))/10*(parseInt(t(170))/11)+-parseInt(t(165))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,lt as ensureIntentSessionId,st as getIntentSessionId,ct as initIntent,rt as setFlag,ft as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";import e from"js-cookie";function n(){const t=["number","height","PWA: ","entryType","maxTouchPoints","round","padStart","fine","saveData","isSecureContext","reclined","(pointer: fine)","deviceorientation","encodedBodySize","Viewport: ","browser API","Local time: ","version"," Mbps","undefined","isFinite","toFixed","flat","(pointer: coarse)","downlink","colorDepth","downlinkMbps","x (avail ","yes","DeviceOrientationEvent","push","type","369596BEMXlt","(display-mode: standalone)","Pointer/Touch: ","join","Platform: ","Device geolocation: disabled","UA brands: ","setTimeout","getBattery","; DNT: ","getEntriesByType","Tilt: ","effectiveType","hardwareConcurrency","duration","CPU: ","intent:geo","TTFB","max","14210HYpWBT","charging","level","resolvedOptions","width","getItem","removeEventListener","filter","-bit)","5303493GwoFGk","floor","gamma"," (β ","toString","5320NNbLrh","Referrer: ","devicePixelRatio","mobile","find","brand","beta","SW-controlled","coarse","referrer","°, γ ","platform","7TOwiOp","DateTimeFormat","CookiesEnabled: ","responseStart","function","userAgentData","TTFB ~","serviceWorker","orientation"," cores"," (mobile)","Screen: ","length","connection","doNotTrack","upright","rtt","rttMs","isArray",", display-mode standalone: ","3582696pMLoIV","matches","1140630wEpJUM"," | ","911008RXiMcX","Languages: ","onLine","3397359Fpyrxn","availWidth"," (UTC","not charging","enabled"," ms","addEventListener","timeZone","transferSize","requestStart","abs","controller","navigation"];return(n=function(){return t})()}async function o(){const t=a,e=[];let n=t(208);if("connection"in(o=navigator)&&void 0!==o[a(283)]){const n=navigator.connection;n?.[t(237)]&&e.push(n.effectiveType),typeof n?.[t(217)]===t(193)&&e[t(223)]("~"+n[t(217)]+t(211)),typeof n?.rtt===t(193)&&e.push(n[t(286)]+t(185)),n?.[t(201)]&&e[t(223)](t(201))}else{const o=function(t=20){const e=a,n=performance[e(235)]("navigation")[e(262)](t=>"navigation"===t.entryType),o=n?Math.max(0,n.responseStart-n[e(189)]):void 0,i=performance[e(235)]("resource")[e(251)](t=>"resource"===t[e(196)]);let r=0,c=0;for(const n of i.slice(0,Math.max(0,t))){const t=n[e(206)]>0?n[e(206)]:n.transferSize>0?n[e(188)]:0,o=n[e(239)];t>0&&o>0&&Number.isFinite(o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:"number"==typeof s?s/1e3:void 0,rttMs:o}}();typeof o[t(219)]===t(193)&&e[t(223)]("~"+o[t(219)][t(214)](1)+t(211)),"number"==typeof o[t(287)]&&e[t(223)](t(276)+Math[t(198)](o[t(287)])+t(185)),n="inferred"}var o;const i=performance.getEntriesByType(t(192)).find(e=>e[t(196)]===t(192));if(i){const n=Math[t(243)](0,i[t(273)]-i[t(189)]);!e.some(e=>e.startsWith(t(242)))&&e.push(t(276)+Math[t(198)](n)+t(185))}return e[t(282)]?"Network: "+e[t(228)](", ")+" ("+n+")":void 0}function i(){const t=a;if(!function(t){const e=a;return"userAgentData"in t&&typeof t[e(275)]!==e(212)}(navigator))return;const e=navigator.userAgentData,n=Array[t(288)](e.brands)?e.brands.map(e=>e[t(263)]+" "+e[t(210)]).join(", "):void 0,o=e.platform?""+e[t(269)]+(e[t(261)]?t(280):""):void 0;return[n&&t(231)+n,o&&t(229)+o][t(251)](Boolean)[t(228)](t(293))||void 0}function a(t,e){t-=185;return n()[t]}async function r(t=400){const e=a;if(e(222)in window&&window[e(202)])return new Promise(n=>{const o=e;let i=!1;const r=t=>{const e=a,o=typeof t.beta===e(193)?t[e(264)]:void 0,c=typeof t[e(255)]===e(193)?t[e(255)]:void 0;if(void 0===o||void 0===c)return;if(i)return;i=!0,window[e(250)](e(205),r);const s=function(t,e){const n=a,o=Math[n(190)](t),i=Math.abs(e);return n(o<15&&i<15?215:o>=60?285:203)}(o,c);n(e(236)+s+e(256)+Math[e(198)](o)+e(268)+Math[e(198)](c)+"°)")};window[o(232)](()=>{i||(i=!0,window[o(250)]("deviceorientation",r),n(void 0))},t),window[o(186)](o(205),r,{passive:!0})})}async function c(){const t=a;if(function(t){const e=a;return e(233)in t&&typeof t[e(233)]===e(274)}(navigator))try{const e=await navigator[t(233)](),n=Math[t(198)](100*e[t(246)]);return"Battery: "+[(Number[t(213)](n)?n:0)+"%",e[t(245)]?"charging":t(300)][t(228)](", ")}catch{}}async function s(){const t=a,e=(new(Intl[t(271)]))[t(247)]()[t(187)],n=function(t){const e=a,n=t<=0?"+":"-",o=Math[e(190)](t);return""+n+String(Math[e(254)](o/60))[e(199)](2,"0")+":"+String(o%60).padStart(2,"0")}((new Date).getTimezoneOffset()),s=[];s[t(223)]("Language: "+navigator.language),navigator.languages?.length&&s[t(223)](t(295)+navigator.languages[t(228)](", ")),s[t(223)]("User agent: "+navigator.userAgent);const u=i();u&&s.push(u),s[t(223)]("Timezone: "+e+t(299)+n+")"),s[t(223)](t(209)+(new Date)[t(257)]());const l=window[t(260)]||1;s[t(223)](t(281)+screen[t(248)]+"x"+screen[t(194)]+" @"+l+t(220)+screen[t(298)]+"x"+screen.availHeight+", "+screen[t(218)]+t(252));const d=screen.orientation&&t(224)in screen[t(278)]?screen[t(278)][t(224)]:void 0;s[t(223)](t(207)+window.innerWidth+"x"+window.innerHeight+(d?", orientation "+d:"")),s[t(223)](t(240)+navigator[t(238)]+t(279));const f=await o();f&&s.push(f),s.push(function(){const t=a,e=typeof matchMedia===t(274)&&matchMedia(t(216))[t(291)],n="function"==typeof matchMedia&&matchMedia(t(204))[t(291)],o=e?t(266):n?t(200):"unknown",i=navigator[t(197)];return t(227)+o+", maxTouchPoints "+i}());const m=await c();m&&s.push(m),s[t(223)](t(272)+(navigator.cookieEnabled?t(221):"no")+t(234)+(navigator[t(284)]??"n/a")),s.push("Online: "+(navigator[t(296)]?t(221):"no")),document[t(267)]&&s[t(223)](t(259)+document[t(267)]),s[t(223)](function(){const t=a,e=typeof matchMedia===t(274)&&matchMedia(t(226)).matches,n=Boolean(navigator[t(277)]?.[t(191)]);return t(195)+(n?t(265):"no SW")+t(289)+(e?t(221):"no")}());const p=await r();p&&s.push(p);const g=localStorage[t(249)](t(241))===t(301);return s.push(g?"Device geolocation: enabled":t(230)),s[t(228)](t(293))}!function(){const t=a,e=n();for(;;)try{if(725100===parseInt(t(270))/1*(-parseInt(t(225))/2)+parseInt(t(297))/3+-parseInt(t(294))/4+-parseInt(t(292))/5+-parseInt(t(290))/6+parseInt(t(244))/7*(parseInt(t(258))/8)+parseInt(t(253))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=m;!function(){const t=m,e=J();for(;;)try{if(544477===parseInt(t(440))/1+parseInt(t(604))/2*(parseInt(t(594))/3)+-parseInt(t(485))/4+parseInt(t(513))/5*(parseInt(t(496))/6)+-parseInt(t(617))/7*(-parseInt(t(519))/8)+-parseInt(t(551))/9+-parseInt(t(562))/10*(parseInt(t(578))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",f=0;function m(t,e){t-=424;return J()[t]}let p;const g=u(514),w=u(430),h=u(431);let y=!1,v=!1,b=!1,T=!1,S=!1,I=!1;const x=u(507),E=u(464),M=u(597),A=u(564),L=u(482),k="__intent__sdk__initialized__",N=[u(547),u(521),"a",u(591),'input[type="button"]',u(428),u(512),u(560)][u(425)](","),H=u(516),D=u(493),B=new Set([u(458),u(457),u(467),u(555),u(490),"username","email",u(477),u(506),u(584),u(573),u(433),u(534),u(561),u(626),u(559),"address-level3",u(426),u(480),u(613),u(497),u(439),u(556),u(443),u(470),u(582),u(631),u(632),u(524),"cc-csc",u(612),u(500),u(544),u(474),u(579),u(607),u(449)]);function P(...t){const e=u;try{typeof localStorage!==e(536)&&localStorage[e(435)](h)===e(505)&&console[e(459)](...t)}catch{}}function O(t){return"<"+function(t){const e=u,n=(t.getAttribute?.(D)??"")[e(605)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(471)]||"")[e(549)]()[e(605)]().split(/\s+/)[e(589)](Boolean):[];return t instanceof HTMLInputElement&&t[e(503)]===e(466)?e(484):o[e(528)](t=>t.startsWith(e(424)))?e(520):o.some(t=>["name","given-name","family-name",e(467),e(439),e(556),e(470)].includes(t))?e(478):o[e(481)]("email")?e(634):o[e(481)](e(477))?e(498):o.some(t=>t[e(615)](e(500)))?e(558):o[e(481)](e(607))?e(452):o[e(528)](t=>[e(573),e(433),e(534),e(561),e(626),e(559),e(554),e(426),"postal-code",e(480),e(613)][e(481)](t))?"Address":o.includes("organization")||o.includes("organization-title")?e(593):t[e(450)]?.(H)?.[e(549)]()===e(451)?"Redacted":e(580)}(t)+">"}function C(t){const e=u;return t.hasAttribute(e(509))||t[e(450)](H)?.[e(549)]()===e(629)}function z(t){return!C(t)&&(!!function(t){const e=u,n=t.getAttribute(H);return""===n||n?.[e(549)]()===e(451)}(t)||!!function(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(503)]===e(466))return!0;if(t[e(503)]===e(501))return!1;const n=t.getAttribute(e(611));if(n&&"searchbox"===n[e(549)]())return!1;if((t[e(471)]||"")[e(549)]().trim()[e(476)](/\s+/).filter(Boolean)[e(528)](t=>B[e(596)](t)))return!0}if(t instanceof HTMLTextAreaElement&&(t[e(471)]||"").toLowerCase().trim()[e(476)](/\s+/)[e(589)](Boolean).some(t=>B[e(596)](t)))return!0;return!1}(t))}const F=()=>localStorage[u(435)](g)===u(483);function U(t){return e[u(475)](t)}function G(t,n){const o=u,i=localStorage.getItem(L),a=null===i?void 0:Number(i),r=Number[o(619)](n)?Number(n):"number"==typeof a&&Number[o(619)](a)?a:86400,c=window[o(599)].protocol===o(550);e[o(494)](o(465),t,{expires:r/86400,path:"/",sameSite:o(525),...c&&{secure:!0}})}function W(){const t=u;e.remove(t(465),{path:"/"})}function _(){const t=u,e=U(t(465));if(!F())return e&&W(),void(d="");e?d=e:(d=crypto[t(531)](),G(d))}function R(){return _(),F()&&Boolean(d)&&function(){const t=u;return Boolean(localStorage[t(435)](x)?.[t(605)]()[t(535)])}()}function j(){return!R()||b}async function q(e){return p&&await p,p=(async()=>{const n=m;try{const o=performance.now(),i=performance[n(585)](),a=function(t){const e=u,n=t[e(627)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(572)](t[e(460)]).forEach(({name:t,value:o})=>{n[e(574)](t,o)}),n[e(456)]=z(t)?O(t):t[e(456)],t.disabled&&n.setAttribute(e(566),""),n[e(577)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(572)](t.attributes).forEach(({name:t,value:o})=>{n[e(574)](t,o)}),n[e(456)]=z(t)?O(t):t.value,t[e(566)]&&n.setAttribute(e(566),""),n.outerHTML):t[e(577)]}(e),r=performance[n(585)]();P("[Timing] serialize: "+(r-i)[n(606)](2)+"ms");const c=e[n(429)](),s=performance.now(),l={left:window[n(620)],top:window[n(542)],right:window[n(620)]+window[n(533)],bottom:window[n(542)]+window[n(592)]},d=await t(document[n(576)],{useCORS:!0,x:window[n(620)],y:window.scrollY,width:window[n(533)],height:window[n(592)],scale:.6,logging:!1,onclone(t,e){const o=n,i=t.querySelectorAll(o(434));for(const t of i)if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t[o(445)](o(509))||t.getAttribute(H)?.[o(549)]()===o(629))continue;let e=!1;const n=t[o(450)](H);if((""===n||"mask"===n?.[o(549)]())&&(e=!0),t.type===o(466)&&(e=!0),!e){const n=(t.getAttribute(o(471))||"")[o(549)]().trim()[o(476)](/\s+/)[o(589)](Boolean);if(t[o(503)]===o(501)||t[o(450)](o(611))?.[o(549)]()===o(587))continue;n[o(528)](t=>B[o(596)](t))&&(e=!0)}e&&(t[o(456)]=O(t))}},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(C(t))return!0;const o=t[e(429)](),i={left:o[e(575)]+window.scrollX,top:o[e(427)]+window[e(542)],right:o[e(541)]+window.scrollX,bottom:o[e(623)]+window[e(542)]},a=100;if(i.right<l[e(575)]-a||i[e(575)]>l[e(541)]+a||i[e(623)]<l.top-a||i[e(427)]>l[e(623)]+a){const n=window[e(447)](t),{position:o}=n;if(o===e(538)||"absolute"===o){const t=500;return i.right<l[e(575)]-t||i[e(575)]>l[e(541)]+t||i.bottom<l[e(427)]-t||i[e(427)]>l[e(623)]+t}return!0}return!1}}),f=performance[n(585)]()-s;P(n(495)+f[n(606)](2)+"ms");const m=performance[n(585)](),p=d[n(432)](n(570),.8),g=performance.now()-m;P(n(438)+g[n(606)](2)+"ms");const w=performance.now()-o;return P(n(618)+w[n(606)](2)+"ms"),{html:a,bbox:{x:c.x,y:c.y,w:c[n(487)],h:c[n(437)]},img:p}}finally{p=void 0}})(),p}function X(){const t=u,e=localStorage[t(435)](x),n={"Content-Type":t(610)};return e&&(n["x-sl-access-token"]=e),d&&(n[t(510)]=d),n}async function Q(t){const e=u,n=(localStorage[e(435)](M)??A)+e(444),o=localStorage.getItem(x)??void 0,i=JSON[e(448)]({...t,clientId:o});try{if((await fetch(n,{method:e(546),headers:X(),body:i,keepalive:!0,credentials:e(502)})).ok)return}catch{}try{await async function(t){const e=u,n=(localStorage[e(435)](M)??A)+e(614);if(!(await fetch(n,{method:"POST",headers:X(),body:JSON[e(448)](t),keepalive:!0,credentials:e(502),cache:e(530)})).ok)throw new Error("pixel body fallback failed")}(t)}catch{}}function J(){const t=["innerWidth","address-line2","length","undefined","Enter","fixed","longitude","permissions","right","scrollY","visibilityState","bday-day","click","POST","button","href","toLowerCase","https:","5897502QvkxyQ","pointerdown","keydown","address-level3","family-name","cc-given-name","lon","Birthday","address-level2","[onclick]","address-line3","20rMOHHA","geolocation","https://intent.callimacus.ai","aria-label","disabled","code","max","timestamp","image/jpeg","hidden","from","street-address","setAttribute","left","body","outerHTML","7865506VyJQkp","bday-year","Sensitive","altitudeAccuracy","cc-number","localhost","organization-title","now","intent","searchbox","focus","filter","latitude",'input[type="submit"]',"innerHeight","Organization","57olfGzG","message","has","intent:data-base-url","onLine","location","push","toISOString","page-focus","query","70350bRmKeS","trim","toFixed","sex","textContent","pageview","application/json","role","cc-type","country-name","/p.gif","startsWith","lat","7KmBmGo","[Timing] capture-total: ","isFinite","scrollX","canSend","target","bottom","hasFocus","querySelectorAll","address-level1","cloneNode","scroll","ignore",'=""]',"cc-exp","cc-exp-month","geoEnabled","Email","cc-","join","address-level4","top",'[role="button"]',"getBoundingClientRect","intent:geo","intent:debug","toDataURL","address-line1","input, textarea","getItem","html","height","[Timing] jpeg-encoding: ","cc-name","1034647MPTfCO","page-blur","clearTimeout","cc-additional-name","/events","hasAttribute","visibilitychange","getComputedStyle","stringify","webauthn","getAttribute","mask","Sex","key","img","POSITION_UNAVAILABLE","value","given-name","name","log","attributes","storage","input-submit","referrer","intent:data-ip","intent_sid","password","additional-name","protocol","forEach","cc-family-name","autocomplete","TEXTAREA","UNKNOWN","bday-month","get","split","tel","Name","load","country","includes","intent:data-sid-max-age","granted","Password","3023904mvniya","isSecureContext","width","hostname","removeEventListener","nickname","setTimeout","closest","data-intent-redact-label","set","[Timing] html2canvas-pro: ","11694MxaECJ","postal-code","Phone","title","bday","search","omit","type","altitude","enabled","organization","intent:data-client-id","number","data-html2canvas-ignore","x-intent-sid","accuracy",'[role="link"]',"2675QqIhks","intent:consent","<no visible label>","data-intent-redact","entries","addEventListener","5121088quEPCl","Credit card","a[href]","heading","Redacted","cc-exp-year","Lax","speed","defineProperty","some","min","no-store","randomUUID","tagName"];return(J=function(){return t})()}async function K(t,e,n,o){const i=u;if(!R())return;const a={...e,localTime:(new Date)[i(601)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(a[i(456)]=z(n)?O(n):n[i(456)]);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===i(628)||t===i(441)||t===i(602)),d=Date[i(585)](),m=d-f>=0;let p=o;const g=t===i(545)||t===i(462)||t===i(609);l&&(g&&!p||!p&&m)&&(p=await q(n),f=d),p&&(r=p[i(436)],c=p.bbox,s=p[i(454)]);const w=t===i(441)||"page-focus"===t||t===i(609),h={ts:Date[i(585)](),event:t,props:a,html:w?"":r,bbox:c,img:s};await Q(h)}function V(){const t=u;return localStorage[t(435)](w)===t(505)}async function Y(t={}){const e=u;if(!R())return;const n=typeof t[e(616)]===e(508)&&"number"==typeof t[e(557)];if(n&&v)return;if(!n&&y)return;const o=localStorage[e(435)](E),i={context:await s()};o&&(i.ip=o);for(const[n,o]of Object[e(517)](t))i[n]=o;await K("context",i,document[e(576)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?v=!0:y=!0}async function Z(){const t=u,e={canSend:R(),geoEnabled:V(),deviceGeoSent:v};if(!e[t(621)]||!e[t(633)]||e.deviceGeoSent)return;if(location[t(468)],location[t(488)],!(t(563)in navigator))return;if(S)return;S=!0,b=!0;const n={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator[t(540)]?.[t(603)]({name:"geolocation"}))}catch(t){}await new Promise(e=>{let o=!1;const i=async(t,n,i)=>{o||(o=!0,Date[m(585)](),Number.isFinite(t)&&Number.isFinite(n)&&await Y({lat:t,lon:n,source:"device"}),S=!1,b=!1,I=!0,e())};navigator[t(563)].getCurrentPosition(t=>{const e=m,n=t.coords;i(n[e(590)],n[e(539)],(n[e(511)],typeof n[e(504)]===e(508)&&n[e(504)],typeof n[e(581)]===e(508)&&n[e(581)],typeof n[e(522)]===e(508)&&n[e(522)],typeof n[e(526)]===e(508)&&n[e(526)],t[e(569)],document[e(624)]()))},t=>{const e=m,n=t?.[e(567)];1===n||(2===n?e(455):3===n||e(473)),t?.[e(595)],navigator[e(598)],document[e(543)],document[e(624)](),window[e(486)],location[e(468)],location[e(488)],i(void 0,void 0)},n)})}function $(){const t=u;if(T||!V()||v)return;T=!0;const e=()=>{const t=m;window[t(489)]("pointerdown",e,!0),window[t(489)](t(553),e,!0),Z()};window.addEventListener(t(552),e,!0),window[t(518)](t(553),e,!0)}_();let tt=!document[u(571)]&&document[u(624)](),et=document[u(624)]();function nt(){const t=u;if(j())return;const e=!document[t(571)]&&document[t(624)]();e&&(et=!0),et||e?e!==tt&&(tt=e,K(t(e?602:441),{},document[t(576)])):tt=e}function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[k]&&(Object[t(527)](e,k,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener(t(479),()=>{const e=t;R()&&(Y(),(window[e(486)]||location.hostname===e(583))&&(V()&&$(),window[e(518)](e(588),()=>{!v&&V()&&!S&&I&&Z()}),document[e(518)](e(446),()=>{!document[e(571)]&&!v&&V()&&!S&&I&&Z()})))}),window[t(518)](t(461),e=>{const n=t;e[n(453)]===g&&(function(){const t=u;return localStorage.getItem(g)===t(483)}()?(y=!1,Y(),V()&&$()):(y=!1,v=!1)),e[n(453)]===w&&(V()?$():v=!1)}),window[t(518)](t(479),()=>{const e=t;R()&&K(e(609),{url:window[e(599)][e(548)],title:document[e(499)],ref:document[e(463)]},document[e(576)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const i=Date[m(585)]();i-n>=e&&(n=i,t(...o))}}(e=>{const n=t;if(j())return;const o=e[n(622)]instanceof Element?e[n(622)][n(492)](N):null;o instanceof HTMLElement&&(l=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(545),async e=>{const n=t;if(j())return;if(!(e.target instanceof Element))return;const o=e[n(622)].closest(N);if(!(o instanceof HTMLElement))return;const i=function(t){const e=u;return t[e(450)](e(565))??t[e(499)]??t[e(608)]?.[e(605)]()??e(515)}(o);(async()=>{const t=n,e=l?await l:void 0;l=void 0,K("click",{tag:o[t(532)],label:i},o,e)})()},!0),addEventListener("keydown",e=>{const n=t;if(!j()&&e[n(453)]===n(537)){const t=e.target;if(t instanceof HTMLElement&&("INPUT"===t[n(532)]||t[n(532)]===n(472))){const e=t instanceof HTMLInputElement?t[n(458)]:void 0,o=t.id||void 0;K("input-submit",{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(588),"blur"].forEach(e=>{window[t(518)](e,nt)}),document[t(518)](t(446),nt),window[t(518)](t(628),function(t,e){let n;return(...o)=>{const i=m;void 0!==n&&window[i(442)](n),n=window[i(491)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;j()||K(e(628),{scrollX:window[e(620)],scrollY:window[e(542)]},document[e(576)])},250),{passive:!0}),window[t(586)]??={send(e,n){const o=t;R()&&K(e,n,document[o(576)])}})}function it(t,e){const n=st;try{if(void 0===e)return;localStorage[n(244)](t,e?n("intent:consent"===t?235:236):"disabled")}catch{}}function at(t={}){const e=st;if(localStorage.setItem(e(257),t[e(250)]??""),localStorage[e(244)](e(255),t.ip??""),localStorage[e(244)]("intent:data-base-url",t[e(231)]??e(254)),typeof t[e(247)]===e(233)&&localStorage[e(244)](e(239),String(t[e(247)])),it("intent:consent",t[e(246)]),it(e(256),t[e(243)]),it(e(249),t[e(232)]),t[e(246)]){if(!U("intent_sid")){G(typeof crypto!==e(252)&&"function"==typeof crypto[e(234)]?crypto[e(234)]():Date.now()+"-"+Math.random(),t[e(247)])}}ot()}function rt(){const t=["debug","number","randomUUID","granted","enabled","2575833kapIzp","25781373RdENQG","intent:data-sid-max-age","930ZvzGVt","933775cZTlkh","intent_sid","geo","setItem","8270GYGgqu","consent","sidMaxAgeSeconds","1651792DQKqye","intent:debug","clientId","3029048IKTGfN","undefined","223302mpDASl","https://intent.callimacus.ai","intent:data-ip","intent:geo","intent:data-client-id","35xvvvyP","baseUrl"];return(rt=function(){return t})()}function ct(){return U(st(242))}function st(t,e){t-=231;return rt()[t]}function ut(){_()}function lt(){W()}function dt(t){const e=st;Number.isFinite(t)&&localStorage[e(244)]("intent:data-sid-max-age",String(t));const n=U(e(242));n&&G(n,t)}!function(){const t=st,e=rt();for(;;)try{if(782108===parseInt(t(241))/1+-parseInt(t(253))/2+-parseInt(t(237))/3+-parseInt(t(251))/4+parseInt(t(245))/5*(-parseInt(t(240))/6)+-parseInt(t(258))/7*(parseInt(t(248))/8)+parseInt(t(238))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ut as ensureIntentSessionId,ct as getIntentSessionId,at as initIntent,it as setFlag,dt as setIntentSessionMaxAge};