@solomei-ai/intent 1.4.4 → 1.5.0

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/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";function e(){const t=["level","1644822kEKmSh","intent:geo","enabled","fine","timeZone","reclined","platform","15591771KRmhkA","userAgentData","getEntriesByType","join","removeEventListener","no SW","abs","setTimeout","padStart","5687658Jsmjcl","responseStart","flat","rtt","hardwareConcurrency","coarse","°, γ "," (mobile)","Pointer/Touch: ","Language: ","Online: ",", maxTouchPoints ","deviceorientation","effectiveType","serviceWorker","colorDepth","find","CookiesEnabled: ","undefined",", display-mode standalone: ","DeviceOrientationEvent","PWA: ","isArray","Platform: ","n/a","transferSize","brands","max","TTFB ~","encodedBodySize","Device geolocation: enabled"," ms","10060yXadrK","matches","yes","navigation","toString","function","UA brands: ","upright","Battery: ","Screen: ","Referrer: ","(display-mode: standalone)","toFixed","isSecureContext","Local time: ","Tilt: ","orientation","push","version","duration","Device geolocation: disabled","addEventListener","4103464uMQsVm","(pointer: coarse)","beta","inferred","-bit)","some","unknown","(pointer: fine)","Timezone: ","connection","devicePixelRatio","Languages: ","length","mobile","languages","x (avail ","type","14uZXNAD","User agent: ","floor","innerWidth","referrer","resource","filter","map","entryType","slice","requestStart","maxTouchPoints","getTimezoneOffset","downlink","doNotTrack","round","3176IVQwZd","909290SBRNWe","number","isFinite","downlinkMbps","528tyEHdC","charging"," | ","saveData","775004voXOmn","getBattery","resolvedOptions","language","rttMs","innerHeight","1PEZrUu","TTFB","availWidth"];return(e=function(){return t})()}function n(t,o){const a=e();return(n=function(t,e){return a[t-=151]})(t,o)}async function o(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(268)in t&&typeof t.connection!==e(223)}(navigator)){const n=navigator[t(268)];n?.[t(218)]&&e[t(254)](n[t(218)]),typeof n?.[t(167)]===t(172)&&e[t(254)]("~"+n[t(167)]+" Mbps"),"number"==typeof n?.[t(208)]&&e[t(254)](n[t(208)]+t(236)),n?.[t(178)]&&e[t(254)]("saveData")}else{const a=function(t=20){const e=n,o=performance[e(198)](e(240))[e(221)](t=>t[e(162)]===e(240)),a=o?Math[e(232)](0,o[e(206)]-o[e(164)]):void 0,i=performance[e(198)](e(159))[e(160)](t=>t.entryType===e(159));let r=0,c=0;for(const n of i[e(163)](0,Math[e(232)](0,t))){const t=n[e(234)]>0?n[e(234)]:n[e(230)]>0?n[e(230)]:0,o=n[e(256)];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:a}}();typeof a[t(174)]===t(172)&&e[t(254)]("~"+a[t(174)][t(249)](1)+" Mbps"),typeof a[t(183)]===t(172)&&e[t(254)]("TTFB ~"+Math[t(169)](a[t(183)])+" ms"),o=t(262)}const a=performance[t(198)](t(240)).find(e=>e[t(162)]===t(240));if(a){const n=Math[t(232)](0,a[t(206)]-a[t(164)]);!e[t(264)](e=>e.startsWith(t(186)))&&e[t(254)](t(233)+Math[t(169)](n)+t(236))}return e[t(271)]?"Network: "+e[t(199)](", ")+" ("+o+")":void 0}function a(){const t=n;if(!function(t){const e=n;return"userAgentData"in t&&typeof t[e(197)]!==e(223)}(navigator))return;const e=navigator[t(197)],o=Array[t(227)](e[t(231)])?e[t(231)][t(161)](e=>e.brand+" "+e[t(255)])[t(199)](", "):void 0,a=e[t(195)]?""+e.platform+(e[t(272)]?t(212):""):void 0;return[o&&t(243)+o,a&&t(228)+a][t(160)](Boolean)[t(199)](" | ")||void 0}async function i(t=400){const e=n;if(e(225)in window&&window[e(250)])return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a=typeof t[e(261)]===e(172)?t.beta:void 0,c=typeof t.gamma===e(172)?t.gamma:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(200)]("deviceorientation",r);const s=function(t,e){const o=n,a=Math.abs(t),i=Math[o(202)](e);return o(a<15&&i<15?207:a>=60?244:194)}(a,c);o(e(252)+s+" (β "+Math[e(169)](a)+e(211)+Math[e(169)](c)+"°)")};window[a(203)](()=>{const t=a;i||(i=!0,window[t(200)](t(217),r),o(void 0))},t),window[a(258)](a(217),r,{passive:!0})})}async function r(){const t=n;if(function(t){const e=n;return e(180)in t&&"function"==typeof t[e(180)]}(navigator))try{const e=await navigator.getBattery(),n=Math[t(169)](100*e[t(188)]),o=[(Number[t(173)](n)?n:0)+"%",e[t(176)]?t(176):"not charging"];return t(245)+o[t(199)](", ")}catch{return}}async function c(){const t=n,e=(new Intl.DateTimeFormat)[t(181)]()[t(193)],c=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(202)](t);return""+o+String(Math[e(156)](a/60)).padStart(2,"0")+":"+String(a%60)[e(204)](2,"0")}((new Date)[t(166)]()),s=[];s[t(254)](t(214)+navigator[t(182)]),navigator.languages?.[t(271)]&&s[t(254)](t(270)+navigator[t(151)][t(199)](", ")),s.push(t(155)+navigator.userAgent);const d=a();d&&s[t(254)](d),s[t(254)](t(267)+e+" (UTC"+c+")"),s[t(254)](t(251)+(new Date)[t(241)]());const u=window[t(269)]||1;s[t(254)](t(246)+screen.width+"x"+screen.height+" @"+u+t(152)+screen[t(187)]+"x"+screen.availHeight+", "+screen[t(220)]+t(263));const l=screen[t(253)]&&"type"in screen[t(253)]?screen[t(253)][t(153)]:void 0;s[t(254)]("Viewport: "+window[t(157)]+"x"+window[t(184)]+(l?", orientation "+l:"")),s.push("CPU: "+navigator[t(209)]+" cores");const f=await o();f&&s.push(f),s[t(254)](function(){const t=n,e=typeof matchMedia===t(242)&&matchMedia(t(260))[t(238)],o=typeof matchMedia===t(242)&&matchMedia(t(266))[t(238)],a=t(e?210:o?192:265),i="number"==typeof navigator[t(165)]?navigator[t(165)]:0;return t(213)+a+t(216)+i}());const m=await r();m&&s[t(254)](m),s[t(254)](t(222)+(navigator.cookieEnabled?t(239):"no")+"; DNT: "+(navigator[t(168)]??t(229))),s[t(254)](t(215)+(navigator.onLine?t(239):"no")),document[t(158)]&&s[t(254)](t(247)+document.referrer),s.push(function(){const t=n,e=typeof matchMedia===t(242)&&matchMedia(t(248)).matches,o=Boolean(navigator[t(219)]?.controller);return t(226)+(o?"SW-controlled":t(201))+t(224)+(e?"yes":"no")}());const p=await i();p&&s.push(p);const h=typeof localStorage!==t(223)&&localStorage.getItem(t(190))===t(191);return s[t(254)](t(h?235:257)),s[t(199)](t(177))}!function(){const t=n,o=e();for(;;)try{if(951796===parseInt(t(185))/1*(parseInt(t(179))/2)+-parseInt(t(189))/3+parseInt(t(170))/4*(-parseInt(t(237))/5)+-parseInt(t(205))/6+parseInt(t(154))/7*(parseInt(t(259))/8)+-parseInt(t(196))/9+-parseInt(t(171))/10*(-parseInt(t(175))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();const s=et;!function(){const t=et,e=J();for(;;)try{if(239444===parseInt(t(443))/1+-parseInt(t(278))/2*(parseInt(t(436))/3)+-parseInt(t(438))/4*(parseInt(t(497))/5)+-parseInt(t(430))/6*(-parseInt(t(282))/7)+-parseInt(t(291))/8*(parseInt(t(488))/9)+parseInt(t(283))/10+-parseInt(t(340))/11*(-parseInt(t(475))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,u="",l=0;const f="intent:consent",m="intent:geo";let p=!1,h=!1,g=!1,w=!1,y=!1,v=!1;const b="intent:data-client-id",M=s(442),I=s(415),x=s(298),S=s(444),T=s(478),E=[s(349),s(268),"a",s(273),s(294),'[role="button"]','[role="link"]',s(296)].join(","),A=s(476),L=s(357),k=new Set([s(463),s(308),"additional-name",s(482),s(323),s(412),s(470),"tel",s(285),s(292),s(434),s(402),s(450),s(293),s(483),"address-level2",s(461),s(336),"country",s(466),s(369),s(395),s(416),s(364),s(451),s(290),s(457),s(454),s(448),s(359),s(447),s(424),"bday-day",s(307),s(284),"sex","webauthn"]);function N(t){return"<"+D(t)+">"}function D(t){const e=s,n=(t[e(486)]?.(L)??"")[e(493)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(391)]()[e(493)]()[e(337)](/\s+/)[e(387)](Boolean):[];return t instanceof HTMLInputElement&&t[e(351)]===e(343)?e(354):o[e(403)](t=>t[e(462)](e(487)))?e(467):o.some(t=>["name",e(308),e(482),e(397),e(395),e(416),e(451)][e(267)](t))?"Name":o.includes(e(470))?e(471):o[e(267)]("tel")?e(413):o.some(t=>t.startsWith(e(424)))?"Birthday":o[e(267)](e(352))?e(425):o[e(403)](t=>[e(434),e(402),"address-line2",e(293),e(483),e(265),e(461),"address-level4","postal-code","country",e(466)].includes(t))?e(271):o[e(267)](e(285))||o[e(267)](e(292))?e(446):t[e(486)]?.(A)?.[e(391)]()===e(431)?e(366):e(344)}function H(t){const e=s;return t[e(315)](e(422))||t[e(486)](A)?.[e(391)]()===e(441)}function U(t){const e=s,n=t[e(486)](A);return""===n||n?.[e(391)]()===e(431)}function C(t){const e=s;if(t instanceof HTMLInputElement){if(t[e(351)]===e(343))return!0;if(t[e(351)]===e(309))return!1;const n=t.getAttribute(e(263));if(n&&n[e(391)]()===e(314))return!1;if((t[e(456)]||"")[e(391)]()[e(493)]()[e(337)](/\s+/)[e(387)](Boolean)[e(403)](t=>k[e(288)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(456)]||"")[e(391)]().trim().split(/\s+/)[e(387)](Boolean)[e(403)](t=>k[e(288)](t)))return!0}return!1}function P(t){return!!U(t)||!!C(t)}function R(){const t=s,e=[],n=t=>{const e=et,n=t[e(279)]();if(n[e(406)]<=0||n[e(468)]<=0)return;const o=Math[e(286)](0,n[e(347)]),a=Math[e(286)](0,n[e(420)]),i=Math[e(286)](0,Math[e(472)](n[e(398)],window.innerWidth)-o),r=Math.max(0,Math[e(472)](n[e(310)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(426)]("["+A+t(481)+A+t(427))[t(355)](o=>{const a=t,i=n(o);if(!i)return;const r=D(o)||a(366);e[a(356)]({...i,label:r})});return document[t(426)]("input, textarea")[t(355)](t=>{if(!U(o=t)&&!C(o))return;var o;if(H(t))return;const a=n(t);if(!a)return;const i=D(t);e.push({...a,label:i})}),e}const B=()=>localStorage.getItem(f)===s(464);function O(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(365)][e(337)]("; ");for(const t of o)if(t.startsWith(n))return decodeURIComponent(t.slice(n.length))}function W(t,e){const n=s,o=localStorage.getItem(S),a=null==o?void 0:Number(o),i=Number[n(322)](e)?Number(e):typeof a===n(407)&&Number[n(322)](a)?a:86400,r="https:"===window[n(469)].protocol,c=[n(386)+encodeURIComponent(t),n(327)+i,n(419),n(381)];r&&c[n(356)]("Secure"),document.cookie=c[n(334)]("; ")}function F(){const t=s,e="https:"===window[t(469)][t(326)];document[t(365)]=t(458)+(e?t(346):"")}function _(){const t=s,e=O(t(394));if(!B())return e&&F(),void(u="");if(e)return void(u=e);const n=typeof crypto!==t(303)&&typeof crypto[t(477)]===t(275)?crypto[t(477)]():Date[t(325)]()+"-"+Math[t(485)]();u=n,W(u)}function z(){return _(),B()&&Boolean(u)&&(()=>{const t=s,e=localStorage.getItem(b);return"string"==typeof e&&e[t(493)]()[t(374)]>0})()}function j(){return!z()||g}async function Q(e){const n=s,o=function(t){const e=s,n=t[e(371)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(306)](t[e(350)]).forEach(({name:t,value:o})=>{n[e(388)](t,o)}),n[e(272)]=P(t)?N(t):t[e(272)],t[e(372)]&&n[e(388)](e(372),""),n[e(345)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(306)](t[e(350)]).forEach(({name:t,value:o})=>{n[e(388)](t,o)}),n.value=P(t)?N(t):t[e(272)],t.disabled&&n[e(388)]("disabled",""),n[e(345)]):t.outerHTML}(e),a=e[n(279)](),i={useCORS:!0,...{x:window[n(270)],y:window[n(400)],width:window.innerWidth,height:window[n(432)],scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document[n(367)],i),c=r[n(406)],d=r[n(468)],u=Math.max(c,d),l=.8*Math[n(286)](window[n(360)],window[n(432)]),f=Math.min(1,l/u),m=12/(a[n(468)]||1),p=Math[n(472)](1,Math.max(f,m)),h=Math.round(c*p),g=Math.round(d*p),w=document[n(324)](n(396));w.width=h,w.height=g;const y=w[n(440)]("2d");y.drawImage(r,0,0,c,d,0,0,h,g);const v=R();if(v.length){y[n(332)](),y.globalAlpha=1;for(const t of v){const e=Math[n(411)](t.x*p),o=Math[n(411)](t.y*p),a=Math[n(411)](t.w*p),i=Math.round(t.h*p);y[n(274)]="#e5e7eb",y[n(460)](e,o,a,i),y[n(399)]=n(317),y[n(316)]=Math[n(286)](1,Math[n(330)](.02*Math[n(472)](a,i))),y[n(368)](e,o,a,i);const r=Math[n(286)](10,Math[n(472)](22,Math[n(330)](.35*i)));y[n(341)]=r+n(301),y[n(274)]=n(295),y[n(370)]=n(384),y[n(484)]=n(421);const c="<"+(t[n(380)]?.[n(493)]()[n(374)]?t[n(380)]:"Sensitive")+">";y[n(423)](c,e+a/2,o+i/2,a-6)}y[n(378)]()}const b=w[n(409)](n(393),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a.width,h:a[n(468)]},img:b}}function q(){const t=s,e=localStorage[t(318)](b),n={"Content-Type":"application/json"};return e&&(n[t(280)]=e),u&&(n[t(305)]=u),n}async function X(t,e){const n=s,o=(localStorage[n(318)](I)??x)+"/events",a=localStorage[n(318)](b)??void 0,i=JSON[n(333)]({...t,clientId:a});try{if((await fetch(o,{method:n(287),headers:q(),body:i,keepalive:e,credentials:"omit"})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(318)](I)??x)+"/p.gif";if(!(await fetch(o,{method:n(287),headers:q(),body:JSON.stringify(t),keepalive:e,credentials:"omit",cache:"no-store"})).ok)throw new Error(n(266))}(t,e)}catch{}}async function V(t,e,n,o){const a=s;if(!z())return;const i={...e,localTime:(new Date)[a(392)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=P(n)?N(n):n[a(272)]);let r="",c={x:0,y:0,w:0,h:0},d="";const u=!(t===a(329)||t===a(437)||t===a(453)),f=Date.now(),m=f-l>=5e3;let p=o;const h="click"===t||t===a(389)||t===a(311);u&&!p&&(h||m)&&(p=await Q(n),l=f),p&&(r=p[a(492)],c=p[a(459)],d=p.img);const g=t===a(437)||t===a(453)||t===a(311),w={ts:Date[a(325)](),event:t,props:i,html:g?"":r,bbox:c,img:d},y="hidden"===document[a(358)]||t===a(437);await X(w,y)}function J(){const t=["; Secure","left","INPUT","button","attributes","type","sex","intent","Password","forEach","push","data-intent-redact-label","visibilityState","cc-csc","innerWidth","closest","slice","heading","cc-additional-name","cookie","Redacted","body","strokeRect","postal-code","textAlign","cloneNode","disabled","isSecureContext","length","onload","context","secure","restore","latitude","label","SameSite=Lax","addEventListener","blur","center","keydown","intent_sid=","filter","setAttribute","input-submit","key","toLowerCase","toISOString","image/jpeg","intent_sid","cc-name","canvas","additional-name","right","strokeStyle","scrollY","<no visible label>","address-line1","some","pointerdown","string","width","number","application/json","toDataURL","aria-label","round","username","Phone","geolocation","intent:data-base-url","cc-given-name","target","hostname","Path=/","top","middle","data-html2canvas-ignore","fillText","bday","Sex","querySelectorAll",'=""]',"POSITION_UNAVAILABLE","altitude","6ubTOOt","mask","innerHeight","focus","street-address","click","6CsLJom","page-blur","2196MRhQon","UNKNOWN","getContext","ignore","intent:data-ip","218279NdZqWV","intent:data-sid-max-age","getCurrentPosition","Organization","cc-type","cc-exp-year","visibilitychange","address-line2","cc-family-name","referrer","page-focus","cc-exp-month","defineProperty","autocomplete","cc-exp","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","bbox","fillRect","address-level3","startsWith","name","granted","lon","country-name","Credit card","height","location","email","Email","min","timestamp","tagName","1740EwtLGh","data-intent-redact","randomUUID","__intent__sdk__initialized__","clearTimeout","textContent",'="mask"], [',"family-name","address-level1","textBaseline","random","getAttribute","cc-","39753tYbXnh","load","permissions","hidden","html","trim","title","speed","removeEventListener","15dLdfAI","onerror","TIMEOUT","role","error","address-level2","pixel body fallback failed","includes","a[href]","onLine","scrollX","Address","value",'input[type="submit"]',"fillStyle","function","Unexpected FileReader result type","message","455122miqaoq","getBoundingClientRect","x-sl-access-token","altitudeAccuracy","2642507yUzTTH","2266080RCFqIU","bday-year","organization","max","POST","has","FileReader error","cc-number","280LCPeph","organization-title","address-line3",'input[type="button"]',"#374151","[onclick]","lat","https://intent.callimacus.ai","Enter","coords","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","hasFocus","undefined","geoEnabled","x-intent-sid","from","bday-month","given-name","search","bottom","pageview","entries","deviceGeoSent","searchbox","hasAttribute","lineWidth","#9ca3af","getItem","host","href","readAsDataURL","isFinite","nickname","createElement","now","protocol","Max-Age=","longitude","scroll","floor","device","save","stringify","join","localhost","address-level4","split","canSend","setTimeout","2156aGulqv","font","storage","password","Sensitive","outerHTML"];return(J=function(){return t})()}function K(){return"enabled"===localStorage.getItem(m)}async function Z(t={}){const e=s;if(!z())return;const n=typeof t[e(297)]===e(407)&&"number"==typeof t[e(465)];if(n&&h)return;if(!n&&p)return;const o=localStorage[e(318)](M),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(312)](t))a[n]=o;await V(e(376),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function G(){const t=s,e={canSend:z(),geoEnabled:K(),deviceGeoSent:h};if(!e[t(338)]||!e[t(304)]||e[t(313)])return;const n={secure:window[t(373)],proto:location[t(326)],host:location.hostname};if(n[t(377)]||(t(319),t(335)),!(t(414)in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(325)]();try{await(navigator[t(490)]?.query({name:t(414)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=et;a||(a=!0,Date[i(325)](),Number[i(322)](t)&&Number.isFinite(n)&&await Z({lat:t,lon:n,source:i(331)}),y=!1,g=!1,v=!0,e())};navigator[n(414)][n(445)](t=>{const e=et,n=t[e(300)];i(n[e(379)],n[e(328)],(n.accuracy,typeof n[e(429)]===e(407)&&n.altitude,typeof n[e(281)]===e(407)&&n.altitudeAccuracy,typeof n[e(363)]===e(407)&&n[e(363)],typeof n[e(495)]===e(407)&&n.speed,t[e(473)],document[e(302)]()))},t=>{const e=et,n=t?.code;1===n||e(2===n?428:3===n?499:439),t?.[e(277)],navigator[e(269)],document.hasFocus(),window[e(373)],location[e(326)],location[e(418)],i(void 0,void 0)},o)})}function Y(){const t=s;if(w||!K()||h)return;w=!0;const e=()=>{const t=et;window[t(496)]("pointerdown",e,!0),window.removeEventListener(t(385),e,!0),G()};window[t(382)]("pointerdown",e,!0),window[t(382)]("keydown",e,!0)}_();let $=!document[s(491)]&&document.hasFocus(),tt=document[s(302)]();function et(t,e){const n=J();return(et=function(t,e){return n[t-=263]})(t,e)}const nt=()=>{const t=s;if(j())return;const e=!document[t(491)]&&document[t(302)]();e&&(tt=!0),tt||e?e!==$&&($=e,V(t(e?453:437),{},document[t(367)])):$=e};function ot(){const t=s;(function(){const t=s,e=globalThis;return!e[T]&&(Object[t(455)](e,T,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(382)](t(489),()=>{const e=t;z()&&(Z(),(window[e(373)]||"localhost"===location[e(418)])&&(K()&&Y(),window[e(382)]("focus",()=>{!h&&K()&&!y&&v&&G()}),document[e(382)](e(449),()=>{!document.hidden&&!h&&K()&&!y&&v&&G()})))}),window[t(382)](t(342),e=>{e[t(390)]===f&&(function(){const t=s;return localStorage.getItem(f)===t(464)}()?(p=!1,Z(),K()&&Y()):(p=!1,h=!1)),e.key===m&&(K()?Y():h=!1)}),window[t(382)](t(489),()=>{const e=t;z()&&V(e(311),{url:window[e(469)][e(320)],title:document[e(494)],ref:document[e(452)]},document[e(367)])}),addEventListener(t(404),function(t,e){let n=0;return(...o)=>{const a=Date.now();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(j())return;const o=e[n(417)]instanceof Element?e[n(417)][n(361)](E):null;o instanceof HTMLElement&&(d=Q(o))},50),{capture:!0,passive:!0}),addEventListener(t(435),async e=>{const n=t;if(j())return;const o=e.target instanceof Element?e.target[n(361)](E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(486)](e(410))??t[e(494)]??t[e(480)]?.[e(493)]()??e(401)}(o),i=d?await d:void 0;d=void 0,await V("click",{tag:o[n(474)],label:a},o,i)},!0),addEventListener(t(385),e=>{const n=t;if(!j()&&e.key===n(299)){const t=e[n(417)];if(t instanceof HTMLElement&&(t.tagName===n(348)||"TEXTAREA"===t[n(474)])){const e=t instanceof HTMLInputElement?t[n(463)]:void 0,o=t.id||void 0;V(n(389),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(433),t(383)].forEach(e=>{window[t(382)](e,nt)}),document[t(382)](t(449),nt),window[t(382)]("scroll",function(t,e){let n;return(...o)=>{const a=et;void 0!==n&&window[a(479)](n),n=window[a(339)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;j()||V(e(329),{scrollX:window[e(270)],scrollY:window[e(400)]},document[e(367)])},250),{passive:!0}),window[t(353)]??={send(e,n){const o=t;z()&&V(e,n,document[o(367)])}})}function at(t,e){const n=ut;try{if(void 0===e)return;localStorage[n(441)](t,e?t===n(430)?"granted":n(427):n(437))}catch{}}function it(t={}){const e=ut;if(localStorage[e(441)](e(431),t[e(443)]??""),localStorage[e(441)]("intent:data-ip",t.ip??""),localStorage[e(441)](e(439),t.baseUrl??e(417)),typeof t[e(436)]===e(418)&&localStorage[e(441)](e(414),String(t[e(436)])),at("intent:consent",t[e(433)]),at("intent:geo",t[e(423)]),t[e(433)]){if(!O(e(424))){W(typeof crypto!==e(435)&&typeof crypto[e(419)]===e(420)?crypto[e(419)]():Date[e(438)]()+"-"+Math[e(442)](),t.sidMaxAgeSeconds)}}ot()}function rt(){return O("intent_sid")}function ct(){const t=["geo","intent_sid","5674610lNxYzA","496053Wgngyn","enabled","508710rNmzSh","2598965IjVgxQ","intent:consent","intent:data-client-id","176UmQiQw","consent","419772xkgQsQ","undefined","sidMaxAgeSeconds","disabled","now","intent:data-base-url","22UrcNCx","setItem","random","clientId","intent:data-sid-max-age","4aThyik","1119804NSohbu","https://intent.callimacus.ai","number","randomUUID","function","1101170JEiIgp","7TsQKCM"];return(ct=function(){return t})()}function st(){_()}function dt(){F()}function ut(t,e){const n=ct();return(ut=function(t,e){return n[t-=414]})(t,e)}function lt(t){const e=ut;Number.isFinite(t)&&localStorage[e(441)]("intent:data-sid-max-age",String(t));const n=O(e(424));n&&W(n,t)}!function(){const t=ut,e=ct();for(;;)try{if(711370===parseInt(t(421))/1+parseInt(t(428))/2+parseInt(t(434))/3*(parseInt(t(415))/4)+-parseInt(t(429))/5+-parseInt(t(416))/6*(parseInt(t(422))/7)+-parseInt(t(432))/8*(parseInt(t(426))/9)+parseInt(t(425))/10*(parseInt(t(440))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,st as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,lt as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";import e from"js-cookie";async function n(){const t=c,e=[];let n=t(424);if(function(t){const e=c;return e(484)in t&&typeof t[e(484)]!==e(400)}(navigator)){const n=navigator.connection;n?.effectiveType&&e[t(489)](n[t(483)]),"number"==typeof n?.[t(469)]&&e[t(489)]("~"+n[t(469)]+t(444)),"number"==typeof n?.[t(445)]&&e.push(n[t(445)]+t(478)),n?.saveData&&e[t(489)](t(455))}else{const o=function(t=20){const e=c,n=performance[e(404)](e(408)).find(t=>t.entryType===e(408)),o=n?Math.max(0,n[e(502)]-n[e(411)]):void 0,a=performance[e(404)](e(435)).filter(t=>"resource"===t[e(498)]);let i=0,r=0;for(const n of a.slice(0,Math[e(492)](0,t))){const t=n[e(496)]>0?n.encodedBodySize:n[e(467)]>0?n[e(467)]:0,o=n[e(431)];t>0&&o>0&&Number[e(393)](o)&&(i+=t,r+=o)}const s=r>0?8*i/r:void 0;return{downlinkMbps:typeof s===e(405)?s/1e3:void 0,rttMs:o}}();typeof o.downlinkMbps===t(405)&&e[t(489)]("~"+o[t(403)][t(426)](1)+" Mbps"),typeof o[t(501)]===t(405)&&e[t(489)]("TTFB ~"+Math[t(459)](o[t(501)])+t(478)),n=t(410)}const o=performance[t(404)](t(408))[t(423)](e=>e[t(498)]===t(408));if(o){const n=Math.max(0,o[t(502)]-o[t(411)]);!e[t(427)](e=>e[t(413)]("TTFB"))&&e.push("TTFB ~"+Math[t(459)](n)+" ms")}return e[t(409)]?t(420)+e.join(", ")+" ("+n+")":void 0}function o(){const t=c;if(!function(t){const e=c;return e(442)in t&&void 0!==t[e(442)]}(navigator))return;const e=navigator[t(442)],n=Array.isArray(e[t(503)])?e[t(503)][t(419)](e=>e.brand+" "+e[t(494)])[t(432)](", "):void 0,o=e[t(440)]?e[t(440)]+(e[t(452)]?" (mobile)":""):void 0;return[n&&t(473)+n,o&&t(396)+o].filter(Boolean)[t(432)](t(430))||void 0}async function a(t=400){const e=c;if("DeviceOrientationEvent"in window&&window[e(436)])return new Promise(n=>{const o=e;let a=!1;const i=t=>{const e=c,o=typeof t[e(437)]===e(405)?t[e(437)]:void 0,r=typeof t[e(485)]===e(405)?t[e(485)]:void 0;if(void 0===o||void 0===r)return;if(a)return;a=!0,window[e(417)](e(433),i);const s=function(t,e){const n=c,o=Math[n(456)](t),a=Math.abs(e);return o<15&&a<15?n(470):o>=60?"upright":"reclined"}(o,r);n(e(495)+s+e(446)+Math.round(o)+"°, γ "+Math[e(459)](r)+"°)")};window[o(399)](()=>{const t=o;a||(a=!0,window[t(417)](t(433),i),n(void 0))},t),window[o(474)]("deviceorientation",i,{passive:!0})})}async function i(){const t=c;var e;if(e=navigator,c(428)in e&&"function"==typeof e.getBattery)try{const e=await navigator.getBattery(),n=Math[t(459)](100*e.level);return"Battery: "+[(Number[t(393)](n)?n:0)+"%",e[t(486)]?t(486):"not charging"].join(", ")}catch{return}}async function r(){const t=c,e=(new Intl.DateTimeFormat).resolvedOptions()[t(482)],r=function(t){const e=c,n=t<=0?"+":"-",o=Math.abs(t);return""+n+String(Math.floor(o/60))[e(481)](2,"0")+":"+String(o%60).padStart(2,"0")}((new Date)[t(477)]()),s=[];s[t(489)](t(480)+navigator.language),navigator[t(458)]?.[t(409)]&&s[t(489)](t(418)+navigator[t(458)][t(432)](", ")),s[t(489)](t(394)+navigator[t(497)]);const d=o();d&&s[t(489)](d),s[t(489)]("Timezone: "+e+" (UTC"+r+")"),s[t(489)](t(471)+(new Date)[t(449)]());const u=window[t(460)]||1;s[t(489)](t(407)+screen[t(476)]+"x"+screen.height+" @"+u+t(392)+screen[t(479)]+"x"+screen[t(439)]+", "+screen[t(457)]+t(450));const l=screen[t(443)]&&"type"in screen[t(443)]?screen[t(443)][t(390)]:void 0;s[t(489)]("Viewport: "+window[t(490)]+"x"+window.innerHeight+(l?t(466)+l:"")),s[t(489)](t(395)+navigator[t(448)]+t(425));const f=await n();f&&s.push(f),s.push(function(){const t=c,e=typeof matchMedia===t(402)&&matchMedia("(pointer: coarse)")[t(464)],n=typeof matchMedia===t(402)&&matchMedia(t(441))[t(464)],o=e?t(453):n?t(468):"unknown",a=typeof navigator[t(475)]===t(405)?navigator[t(475)]:0;return t(461)+o+", maxTouchPoints "+a}());const m=await i();m&&s[t(489)](m),s[t(489)]("CookiesEnabled: "+(navigator[t(416)]?t(472):"no")+t(491)+(navigator[t(487)]??t(398))),s[t(489)](t(462)+(navigator[t(406)]?"yes":"no")),document[t(434)]&&s[t(489)](t(465)+document[t(434)]),s[t(489)](function(){const t=c,e=typeof matchMedia===t(402)&&matchMedia(t(500)).matches,n=Boolean(navigator[t(493)]?.[t(422)]);return t(463)+(n?"SW-controlled":t(391))+t(447)+(e?t(472):"no")}());const p=await a();p&&s[t(489)](p);const g="undefined"!=typeof localStorage&&"enabled"===localStorage[t(412)]("intent:geo");return s.push(t(g?499:454)),s[t(432)](t(430))}function c(t,e){const n=s();return(c=function(t,e){return n[t-=390]})(t,e)}function s(){const t=["encodedBodySize","userAgent","entryType","Device geolocation: enabled","(display-mode: standalone)","rttMs","responseStart","brands","type","no SW","x (avail ","isFinite","User agent: ","CPU: ","Platform: ","6352YEaTdC","n/a","setTimeout","undefined","84yAoUJC","function","downlinkMbps","getEntriesByType","number","onLine","Screen: ","navigation","length","inferred","requestStart","getItem","startsWith","444485UoKFJb","36864ljdesI","cookieEnabled","removeEventListener","Languages: ","map","Network: ","546372Nhhysx","controller","find","browser API"," cores","toFixed","some","getBattery","907551VudPlS"," | ","duration","join","deviceorientation","referrer","resource","isSecureContext","beta","3654OaBRcp","availHeight","platform","(pointer: fine)","userAgentData","orientation"," Mbps","rtt"," (β ",", display-mode standalone: ","hardwareConcurrency","toString","-bit)","6189344UfMlTM","mobile","coarse","Device geolocation: disabled","saveData","abs","colorDepth","languages","round","devicePixelRatio","Pointer/Touch: ","Online: ","PWA: ","matches","Referrer: ",", orientation ","transferSize","fine","downlink","flat","Local time: ","yes","UA brands: ","addEventListener","maxTouchPoints","width","getTimezoneOffset"," ms","availWidth","Language: ","padStart","timeZone","effectiveType","connection","gamma","charging","doNotTrack","3540972KZVmEu","push","innerWidth","; DNT: ","max","serviceWorker","version","Tilt: "];return(s=function(){return t})()}!function(){const t=c,e=s();for(;;)try{if(873814===parseInt(t(429))/1+-parseInt(t(421))/2+parseInt(t(438))/3+-parseInt(t(488))/4+parseInt(t(414))/5*(-parseInt(t(401))/6)+-parseInt(t(451))/7+-parseInt(t(397))/8*(-parseInt(t(415))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const d=$;function u(){const t=["entries","/p.gif","some","Redacted","bbox","string","Phone","altitude","10827LkmJrg","globalAlpha","PERMISSION_DENIED","clearTimeout","middle","TIMEOUT","heading","address-level2","intent","deviceGeoSent","#9ca3af","cc-exp-year","setTimeout","body","search","trim","intent:consent","hostname","3056eEyjYA","email","code","longitude","cc-given-name","has","https:","left","speed","organization-title","intent:data-sid-max-age","input, textarea","intent:geo","address-level1","get","address-level3","bday","click","name","querySelectorAll","timestamp","address-level4","readAsDataURL","removeEventListener","pointerdown","cc-exp","addEventListener","country-name","strokeStyle","width","data-intent-redact","ignore","label","no-store","street-address","Sensitive","address-line2","toISOString","host",'="mask"], [',"getAttribute","granted","page-focus","textBaseline","aria-label","keydown","target","getCurrentPosition","[onclick]","fillRect","disabled","image/jpeg","Lax","drawImage","now","TEXTAREA","load","given-name","1097248MbTgez","context","scroll","set","innerWidth","UNKNOWN","https://intent.callimacus.ai","autocomplete","omit","getBoundingClientRect","outerHTML","stringify","Organization","round","right","random","intent:data-base-url","data-html2canvas-ignore","hasFocus","bottom","restore","address-line1","closest","cc-type","filter","altitudeAccuracy","key","bday-month","cc-csc",'[role="button"]',"username","setAttribute","515484qSmPbO","Password","hidden","postal-code","cc-exp-month","slice","forEach","protocol","value","data-intent-redact-label","title","address-line3","isFinite","fillStyle","Address","visibilityState","isSecureContext",'input[type="button"]',"cc-name","floor","Enter","413Blglxh",'[role="link"]',"scrollY","split","pageview","max","height","sex","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","searchbox","Birthday","push","POSITION_UNAVAILABLE","lon","toDataURL","strokeRect","remove","cc-family-name","scrollX","application/json","x-sl-access-token","message","country","x-intent-sid","34206FsjQwZ","tagName","cc-number","number","7408NTaSPQ","66KsqUVa","intent_sid","font","attributes","family-name","button","a[href]","type","mask","geolocation","webauthn","query","POST","from","startsWith","toLowerCase","accuracy","bday-year","textContent","page-blur","getContext","<no visible label>","min","innerHeight","href","indexOf","password","secure","textAlign","onLine","focus","device","FileReader error","input-submit","pixel body fallback failed","html","tel","bday-day","visibilitychange","localhost","226851cjhvuq","#e5e7eb","permissions","randomUUID","getItem","length","includes","1865zJCVNX","594070kCNWSt","Name","latitude"];return(u=function(){return t})()}!function(){const t=$,e=u();for(;;)try{if(360090===-parseInt(t(435))/1+parseInt(t(403))/2+parseInt(t(525))/3+parseInt(t(484))/4*(parseInt(t(532))/5)+-parseInt(t(480))/6*(parseInt(t(456))/7)+-parseInt(t(345))/8*(parseInt(t(327))/9)+parseInt(t(533))/10*(parseInt(t(485))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,f="",m=0;const p=d(343),g=d(357);let h=!1,y=!1,w=!1,v=!1,b=!1,M=!1;const x="intent:data-client-id",S=d(419),I=d(409),T=d(355),E="__intent__sdk__initialized__",A=[d(490),d(491),"a",'input[type="submit"]',d(452),d(432),d(457),d(393)].join(","),L=d(375),k=d(444),N=new Set([d(363),"given-name","additional-name","family-name","nickname",d(433),d(346),d(521),"organization",d(354),d(379),d(424),d(381),"address-line3",d(358),d(334),d(360),d(366),d(478),"country-name",d(438),d(453),"cc-given-name","cc-additional-name",d(473),d(482),d(370),d(439),d(338),d(431),d(426),d(361),d(522),d(430),d(502),d(463),d(495)]);function D(t){return"<"+B(t)+">"}function B(t){const e=d,n=(t[e(385)]?.(k)??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(410)]||"")[e(500)]()[e(342)]()[e(459)](/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&t.type===e(511)?e(436):o[e(538)](t=>t[e(499)]("cc-"))?"Credit card":o[e(538)](t=>[e(363),e(402),e(489),"additional-name",e(453),e(349),e(473)][e(531)](t))?e(534):o[e(531)](e(346))?"Email":o[e(531)](e(521))?e(325):o.some(t=>t.startsWith(e(361)))?e(466):o.includes("sex")?"Sex":o[e(538)](t=>[e(379),e(424),e(381),e(446),e(358),e(334),"address-level3",e(366),e(438),e(478),e(372)].includes(t))?e(449):o[e(531)]("organization")||o[e(531)]("organization-title")?e(415):t[e(385)]?.(L)?.[e(500)]()===e(493)?e(539):e(380)}function H(t){const e=d;return t.hasAttribute(e(420))||t.getAttribute(L)?.[e(500)]()===e(376)}function U(t){const e=d,n=t.getAttribute(L);return""===n||n?.[e(500)]()===e(493)}function P(t){const e=d;if(t instanceof HTMLInputElement){if(t[e(492)]===e(511))return!0;if(t[e(492)]===e(341))return!1;const n=t.getAttribute("role");if(n&&n[e(500)]()===e(465))return!1;if((t.autocomplete||"")[e(500)]().trim()[e(459)](/\s+/)[e(427)](Boolean)[e(538)](t=>N[e(350)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"")[e(500)]().trim()[e(459)](/\s+/)[e(427)](Boolean)[e(538)](t=>N.has(t)))return!0}return!1}function O(t){return!!U(t)||!!P(t)}function C(){const t=d,e=[],n=t=>{const e=$,n=t[e(412)]();if(n[e(374)]<=0||n[e(462)]<=0)return;const o=Math.max(0,n[e(352)]),a=Math[e(461)](0,n.top),i=Math[e(461)](0,Math[e(507)](n[e(417)],window[e(407)])-o),r=Math[e(461)](0,Math[e(507)](n[e(422)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(364)]("["+L+t(384)+L+'=""]')[t(441)](o=>{const a=t,i=n(o);if(!i)return;const r=B(o)||"Redacted";e[a(467)]({...i,label:r})});return document[t(364)](t(356))[t(441)](o=>{const a=t;if(!U(i=o)&&!P(i))return;var i;if(H(o))return;const r=n(o);if(!r)return;const c=B(o);e[a(467)]({...r,label:c})}),e}const j=()=>localStorage[d(529)](p)===d(386);function R(t){return e[d(359)](t)}function W(t,n){const o=d,a=localStorage[o(529)](T),i=null===a?void 0:Number(a),r=Number[o(447)](n)?Number(n):"number"==typeof i&&Number[o(447)](i)?i:86400,c=window.location[o(442)]===o(351);e[o(406)](o(486),t,{expires:r/86400,path:"/",sameSite:o(397),...c&&{secure:!0}})}function z(){const t=d;e[t(472)](t(486),{path:"/"})}function F(){const t=d,e=R("intent_sid");if(!j())return e&&z(),void(f="");if(e)return void(f=e);const n="undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto[t(528)]():Date[t(399)]()+"-"+Math[t(418)]();f=n,W(f)}function _(){return F(),j()&&Boolean(f)&&(()=>{const t=d,e=localStorage[t(529)](x);return typeof e===t(324)&&e[t(342)]()[t(530)]>0})()}function J(){return!_()||w}async function q(e){const n=d,o=function(t){const e=d,n=t.cloneNode(!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(498)](t[e(488)])[e(441)](({name:t,value:o})=>{n[e(434)](t,o)}),n[e(443)]=O(t)?D(t):t[e(443)],t.disabled&&n[e(434)](e(395),""),n[e(413)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t.attributes)[e(441)](({name:t,value:o})=>{n[e(434)](t,o)}),n[e(443)]=O(t)?D(t):t[e(443)],t.disabled&&n.setAttribute(e(395),""),n[e(413)]):t[e(413)]}(e),a=e[n(412)](),i={useCORS:!0,...{x:window[n(474)],y:window[n(458)],width:window[n(407)],height:window[n(508)],scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document[n(340)],i),c=r[n(374)],s=r.height,u=Math[n(461)](c,s),l=.8*Math[n(461)](window[n(407)],window[n(508)]),f=Math[n(507)](1,l/u),m=12/(a[n(462)]||1),p=Math[n(507)](1,Math[n(461)](f,m)),g=Math[n(416)](c*p),h=Math[n(416)](s*p),y=document.createElement("canvas");y[n(374)]=g,y[n(462)]=h;const w=y[n(505)]("2d");w[n(398)](r,0,0,c,s,0,0,g,h);const v=C();if(v[n(530)]){w.save(),w[n(328)]=1;for(const t of v){const e=Math[n(416)](t.x*p),o=Math.round(t.y*p),a=Math.round(t.w*p),i=Math[n(416)](t.h*p);w[n(448)]=n(526),w[n(394)](e,o,a,i),w[n(373)]=n(337),w.lineWidth=Math[n(461)](1,Math[n(454)](.02*Math[n(507)](a,i))),w[n(471)](e,o,a,i);const r=Math.max(10,Math[n(507)](22,Math[n(454)](.35*i)));w[n(487)]=r+n(464),w[n(448)]="#374151",w[n(513)]="center",w[n(388)]=n(331);const c="<"+(t[n(377)]?.[n(342)]()[n(530)]?t[n(377)]:n(380))+">";w.fillText(c,e+a/2,o+i/2,a-6)}w[n(423)]()}const b=y[n(470)](n(396),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(374)],h:a[n(462)]},img:b}}function Q(){const t=d,e=localStorage.getItem(x),n={"Content-Type":t(475)};return e&&(n[t(476)]=e),f&&(n[t(479)]=f),n}async function V(t,e){const n=d,o=(localStorage[n(529)](S)??I)+"/events",a=localStorage[n(529)](x)??void 0,i=JSON.stringify({...t,clientId:a});try{if((await fetch(o,{method:n(497),headers:Q(),body:i,keepalive:e,credentials:n(411)})).ok)return}catch{}try{await async function(t,e=!1){const n=d,o=(localStorage[n(529)](S)??I)+n(537);if(!(await fetch(o,{method:n(497),headers:Q(),body:JSON[n(414)](t),keepalive:e,credentials:n(411),cache:n(378)})).ok)throw new Error(n(519))}(t,e)}catch{}}async function Y(t,e,n,o){const a=d;if(!_())return;const i={...e,localTime:(new Date)[a(382)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(443)]=O(n)?D(n):n.value);let r="",c={x:0,y:0,w:0,h:0},s="";const u=!(t===a(405)||t===a(504)||t===a(387)),l=Date[a(399)](),f=l-m>=5e3;let p=o;const g=t===a(362)||t===a(518)||t===a(460);u&&!p&&(g||f)&&(p=await q(n),m=l),p&&(r=p[a(520)],c=p[a(323)],s=p.img);const h=t===a(504)||t===a(387)||t===a(460),y={ts:Date[a(399)](),event:t,props:i,html:h?"":r,bbox:c,img:s},w=document[a(450)]===a(437)||t===a(504);await V(y,w)}function K(){return"enabled"===localStorage[d(529)](g)}async function X(t={}){const e=d;if(!_())return;const n=typeof t.lat===e(483)&&typeof t[e(469)]===e(483);if(n&&y)return;if(!n&&h)return;const o=localStorage[e(529)]("intent:data-ip"),a={context:await r()};o&&(a.ip=o);for(const[n,o]of Object[e(536)](t))a[n]=o;await Y(e(404),a,document[e(340)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?y=!0:h=!0}async function G(){const t=d,e={canSend:_(),geoEnabled:K(),deviceGeoSent:y};if(!e.canSend||!e.geoEnabled||e[t(336)])return;const n={secure:window[t(451)],proto:location[t(442)],host:location[t(344)]};if(n[t(512)]||t(383),!("geolocation"in navigator))return;if(b)return;b=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(399)]();try{await(navigator[t(527)]?.[t(496)]({name:"geolocation"}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=$;a||(a=!0,Date[i(399)](),Number.isFinite(t)&&Number[i(447)](n)&&await X({lat:t,lon:n,source:i(516)}),b=!1,w=!1,M=!0,e())};navigator[n(494)][n(392)](t=>{const e=$,n=t.coords;i(n[e(535)],n[e(348)],(n[e(501)],typeof n[e(326)]===e(483)&&n[e(326)],"number"==typeof n.altitudeAccuracy&&n[e(428)],"number"==typeof n[e(333)]&&n[e(333)],typeof n[e(353)]===e(483)&&n[e(353)],t[e(365)],document[e(450)],document[e(421)]()))},t=>{const e=$,n=t?.[e(347)];e(1===n?329:2===n?468:3===n?332:408),t?.[e(477)],navigator[e(514)],document[e(450)],document[e(421)](),window[e(451)],location[e(442)],location[e(344)],i(void 0,void 0)},o)})}function Z(){const t=d;if(v||!K()||y)return;v=!0;const e=()=>{const t=$;window.removeEventListener(t(369),e,!0),window[t(368)](t(390),e,!0),G()};window[t(371)](t(369),e,!0),window[t(371)]("keydown",e,!0)}function $(t,e){const n=u();return($=function(t,e){return n[t-=323]})(t,e)}F();let tt=!document[d(437)]&&document[d(421)](),et=document[d(421)]();const nt=()=>{const t=d;if(J())return;const e=!document[t(437)]&&document[t(421)]();e&&(et=!0),et||e?e!==tt&&(tt=e,Y(t(e?387:504),{},document[t(340)])):tt=e};function ot(){const t=d;(function(){const t=globalThis;return!t[E]&&(Object.defineProperty(t,E,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(371)]("load",()=>{const e=t;_()&&(X(),(window.isSecureContext||location[e(344)]===e(524))&&(K()&&Z(),window.addEventListener(e(515),()=>{!y&&K()&&!b&&M&&G()}),document.addEventListener("visibilitychange",()=>{!document[e(437)]&&!y&&K()&&!b&&M&&G()})))}),window.addEventListener("storage",e=>{e[t(429)]===p&&(function(){const t=d;return localStorage.getItem(p)===t(386)}()?(h=!1,X(),K()&&Z()):(h=!1,y=!1)),e.key===g&&(K()?Z():y=!1)}),window.addEventListener(t(401),()=>{const e=t;_()&&Y(e(460),{url:window.location[e(509)],title:document[e(445)],ref:document.referrer},document[e(340)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const a=Date.now();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(J())return;const o=e.target instanceof Element?e[n(391)][n(425)](A):null;o instanceof HTMLElement&&(l=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(362),async e=>{const n=t;if(J())return;const o=e[n(391)]instanceof Element?e.target[n(425)](A):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=d;return t[e(385)](e(389))??t[e(445)]??t[e(503)]?.[e(342)]()??e(506)}(o),i=l?await l:void 0;l=void 0,await Y(n(362),{tag:o[n(481)],label:a},o,i)},!0),addEventListener("keydown",e=>{const n=t;if(!J()&&e[n(429)]===n(455)){const t=e[n(391)];if(t instanceof HTMLElement&&("INPUT"===t.tagName||t[n(481)]===n(400))){const e=t instanceof HTMLInputElement?t.name:void 0,o=t.id||void 0;Y("input-submit",{tag:t[n(481)],name:e??o},t)}}},{capture:!0}),[t(515),"blur"].forEach(e=>{window[t(371)](e,nt)}),document[t(371)](t(523),nt),window.addEventListener("scroll",function(t,e){let n;return(...o)=>{const a=$;void 0!==n&&window[a(330)](n),n=window[a(339)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;J()||Y(e(405),{scrollX:window[e(474)],scrollY:window[e(458)]},document[e(340)])},250),{passive:!0}),window[t(335)]??={send(e,n){const o=t;_()&&Y(e,n,document[o(340)])}})}function at(t,e){const n=ct();return(at=function(t,e){return n[t-=346]})(t,e)}function it(t,e){const n=at;try{if(void 0===e)return;localStorage[n(372)](t,e?t===n(369)?n(354):"enabled":n(360))}catch{}}function rt(t={}){const e=at;if(localStorage[e(372)](e(363),t[e(373)]??""),localStorage.setItem(e(359),t.ip??""),localStorage[e(372)](e(352),t[e(371)]??"https://intent.callimacus.ai"),typeof t[e(356)]===e(361)&&localStorage.setItem("intent:data-sid-max-age",String(t[e(356)])),it(e(369),t[e(364)]),it("intent:geo",t[e(346)]),t[e(364)]){if(!R(e(365))){W("undefined"!=typeof crypto&&"function"==typeof crypto[e(366)]?crypto[e(366)]():Date[e(355)]()+"-"+Math[e(353)](),t.sidMaxAgeSeconds)}}ot()}function ct(){const t=["9384065HljogQ","intent:data-sid-max-age","9JToeoj","4850180IyjJWR","isFinite","intent:data-base-url","random","granted","now","sidMaxAgeSeconds","1789204ejSMUD","91406xylkSr","intent:data-ip","disabled","number","9161028DxYWaB","intent:data-client-id","consent","intent_sid","randomUUID","6075468vAQQlQ","243290bAMubf","intent:consent","1128rgximG","baseUrl","setItem","clientId","geo"];return(ct=function(){return t})()}function st(){return R(at(365))}function dt(){F()}function ut(){z()}function lt(t){const e=at;Number[e(351)](t)&&localStorage[e(372)](e(348),String(t));const n=R(e(365));n&&W(n,t)}!function(){const t=at,e=ct();for(;;)try{if(971915===parseInt(t(357))/1+-parseInt(t(368))/2*(-parseInt(t(349))/3)+-parseInt(t(350))/4+parseInt(t(347))/5+parseInt(t(367))/6+-parseInt(t(358))/7*(parseInt(t(370))/8)+-parseInt(t(362))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{ut as clearIntentSessionId,dt as ensureIntentSessionId,st as getIntentSessionId,rt as initIntent,it as setFlag,lt as setIntentSessionMaxAge};