@solomei-ai/intent 1.6.1 → 1.8.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";import e from"js-cookie";async function n(){const t=c,e=[];let n="browser API";if(function(t){const e=c;return e(500)in t&&typeof t[e(500)]!==e(409)}(navigator)){const n=navigator[t(500)];n?.effectiveType&&e.push(n.effectiveType),typeof n?.downlink===t(456)&&e[t(504)]("~"+n.downlink+t(412)),typeof n?.[t(421)]===t(456)&&e[t(504)](n.rtt+t(474)),n?.[t(397)]&&e.push("saveData")}else{const o=function(t=20){const e=c,n=performance[e(462)]("navigation").find(t=>t.entryType===e(506)),o=n?Math[e(422)](0,n[e(429)]-n[e(483)]):void 0,a=performance[e(462)](e(455))[e(396)](t=>t.entryType===e(455));let i=0,r=0;for(const n of a.slice(0,Math[e(422)](0,t))){const t=n[e(444)]>0?n[e(444)]:n.transferSize>0?n[e(503)]:0,o=n[e(505)];t>0&&o>0&&Number.isFinite(o)&&(i+=t,r+=o)}const s=r>0?8*i/r:void 0;return{downlinkMbps:typeof s===e(456)?s/1e3:void 0,rttMs:o}}();typeof o[t(459)]===t(456)&&e[t(504)]("~"+o[t(459)][t(497)](1)+" Mbps"),typeof o[t(399)]===t(456)&&e[t(504)]("TTFB ~"+Math.round(o[t(399)])+t(474)),n=t(479)}const o=performance.getEntriesByType(t(506)).find(e=>e.entryType===t(506));if(o){const n=Math[t(422)](0,o.responseStart-o[t(483)]);!e[t(389)](e=>e.startsWith(t(486)))&&e[t(504)]("TTFB ~"+Math[t(428)](n)+" ms")}return e[t(451)]?t(446)+e[t(487)](", ")+" ("+n+")":void 0}function o(){const t=c;if(!function(t){const e=c;return e(404)in t&&void 0!==t[e(404)]}(navigator))return;const e=navigator[t(404)],n=Array[t(437)](e[t(460)])?e[t(460)][t(489)](e=>e[t(415)]+" "+e[t(427)])[t(487)](", "):void 0,o=e[t(417)]?""+e.platform+(e[t(448)]?t(492):""):void 0;return[n&&t(423)+n,o&&t(478)+o].filter(Boolean)[t(487)](t(439))||void 0}async function a(t=400){if("DeviceOrientationEvent"in window&&window.isSecureContext)return new Promise(e=>{const n=c;let o=!1;const a=t=>{const n=c,i=typeof t.beta===n(456)?t[n(391)]:void 0,r=typeof t[n(392)]===n(456)?t[n(392)]:void 0;if(void 0===i||void 0===r)return;if(o)return;o=!0,window[n(452)](n(442),a);const s=function(t,e){const n=c,o=Math[n(493)](t),a=Math[n(493)](e);return o<15&&a<15?n(465):o>=60?"upright":n(418)}(i,r);e(n(405)+s+n(491)+Math[n(428)](i)+n(440)+Math.round(r)+"°)")};window[n(424)](()=>{const t=n;o||(o=!0,window[t(452)](t(442),a),e(void 0))},t),window[n(390)](n(442),a,{passive:!0})})}async function i(){const t=c;var e;if("getBattery"in(e=navigator)&&"function"==typeof e[c(447)])try{const e=await navigator[t(447)](),n=Math[t(428)](100*e[t(477)]),o=[(Number.isFinite(n)?n:0)+"%",e[t(473)]?t(473):"not charging"];return t(433)+o.join(", ")}catch{return}}async function r(){const t=c,e=(new Intl.DateTimeFormat)[t(488)]()[t(432)],r=function(t){const e=c,n=t<=0?"+":"-",o=Math[e(493)](t);return""+n+String(Math[e(441)](o/60)).padStart(2,"0")+":"+String(o%60)[e(445)](2,"0")}((new Date)[t(468)]()),s=[];s[t(504)](t(480)+navigator.language),navigator[t(496)]?.[t(451)]&&s[t(504)](t(420)+navigator[t(496)][t(487)](", ")),s[t(504)](t(411)+navigator[t(475)]);const u=o();u&&s[t(504)](u),s[t(504)](t(471)+e+t(402)+r+")"),s.push("Local time: "+(new Date)[t(490)]());const l=window[t(435)]||1;s[t(504)](t(406)+screen.width+"x"+screen[t(403)]+" @"+l+t(434)+screen[t(408)]+"x"+screen.availHeight+", "+screen.colorDepth+t(481));const d=screen[t(476)]&&t(499)in screen[t(476)]?screen[t(476)][t(499)]:void 0;s[t(504)]("Viewport: "+window[t(458)]+"x"+window.innerHeight+(d?t(394)+d:"")),s[t(504)](t(425)+navigator.hardwareConcurrency+t(436));const f=await n();f&&s[t(504)](f),s[t(504)](function(){const t=c,e="function"==typeof matchMedia&&matchMedia(t(400))[t(430)],n=typeof matchMedia===t(431)&&matchMedia(t(469)).matches,o=t(e?472:n?502:501),a=typeof navigator[t(495)]===t(456)?navigator[t(495)]:0;return t(407)+o+t(398)+a}());const m=await i();m&&s[t(504)](m),s[t(504)](t(393)+(navigator[t(457)]?t(438):"no")+"; DNT: "+(navigator[t(449)]??t(466))),s.push(t(416)+(navigator[t(426)]?t(438):"no")),document[t(388)]&&s.push(t(395)+document[t(388)]),s[t(504)](function(){const t=c,e=typeof matchMedia===t(431)&&matchMedia(t(467)).matches,n=Boolean(navigator[t(413)]?.[t(498)]);return t(419)+(n?"SW-controlled":t(450))+", display-mode standalone: "+(e?t(438):"no")}());const p=await a();p&&s.push(p);const h="undefined"!=typeof localStorage&&localStorage[t(464)](t(453))===t(482);return s[t(504)](h?t(454):"Device geolocation: disabled"),s[t(487)](t(439))}function c(t,e){const n=s();return(c=function(t,e){return n[t-=388]})(t,e)}function s(){const t=["setTimeout","CPU: ","onLine","version","round","responseStart","matches","function","timeZone","Battery: ","x (avail ","devicePixelRatio"," cores","isArray","yes"," | ","°, γ ","floor","deviceorientation","3201016BKXuga","encodedBodySize","padStart","Network: ","getBattery","mobile","doNotTrack","no SW","length","removeEventListener","intent:geo","Device geolocation: enabled","resource","number","cookieEnabled","innerWidth","downlinkMbps","brands","234NKjCRy","getEntriesByType","1148252XhdeXJ","getItem","flat","n/a","(display-mode: standalone)","getTimezoneOffset","(pointer: fine)","1910ZQMxIT","Timezone: ","coarse","charging"," ms","userAgent","orientation","level","Platform: ","inferred","Language: ","-bit)","enabled","requestStart","44397MszboN","2330UuclOM","TTFB","join","resolvedOptions","map","toString"," (β "," (mobile)","abs","2UlaEQX","maxTouchPoints","languages","toFixed","controller","type","connection","unknown","fine","transferSize","push","duration","navigation","referrer","some","addEventListener","beta","gamma","CookiesEnabled: ",", orientation ","Referrer: ","filter","saveData",", maxTouchPoints ","rttMs","(pointer: coarse)","623288twJcXP"," (UTC","height","userAgentData","Tilt: ","Screen: ","Pointer/Touch: ","availWidth","undefined","4023309GsNQDg","User agent: "," Mbps","serviceWorker","514009TGTQAU","brand","Online: ","platform","reclined","PWA: ","Languages: ","rtt","max","UA brands: "];return(s=function(){return t})()}!function(){const t=c,e=s();for(;;)try{if(753096===parseInt(t(414))/1*(-parseInt(t(494))/2)+parseInt(t(410))/3+parseInt(t(443))/4+parseInt(t(485))/5*(-parseInt(t(461))/6)+parseInt(t(463))/7+-parseInt(t(401))/8+parseInt(t(484))/9*(-parseInt(t(470))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=O;!function(){const t=O,e=Q();for(;;)try{if(236321===-parseInt(t(212))/1+-parseInt(t(299))/2+-parseInt(t(255))/3*(-parseInt(t(223))/4)+parseInt(t(209))/5+parseInt(t(124))/6+parseInt(t(250))/7*(parseInt(t(228))/8)+-parseInt(t(253))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",f=0;const m=u(121),p=u(158);let h=!1,g=!1,w=!1,y=!1,v=!1,b=!1;const M=u(213),I=u(317),x=u(280),S=u(287),T=u(114),E=u(125),L=[u(143),u(196),"a",'input[type="submit"]',u(189),u(240),'[role="link"]',u(149)][u(254)](","),k=u(291),A=u(271),D=new Set(["name",u(247),u(298),u(156),u(204),"username","email",u(152),u(234),u(318),u(220),u(267),u(163),u(290),u(140),u(279),"address-level3","address-level4",u(144),u(205),u(176),u(203),u(218),u(221),u(197),u(122),u(167),"cc-exp-month",u(257),"cc-csc",u(146),u(134),"bday-day",u(276),"bday-year",u(238),"webauthn"]);function H(t){return"<"+N(t)+">"}function N(t){const e=u,n=(t[e(138)]?.(A)??"")[e(288)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(300)]||"").toLowerCase()[e(288)]().split(/\s+/)[e(270)](Boolean):[];return t instanceof HTMLInputElement&&t.type===e(150)?"Password":o[e(224)](t=>t[e(173)](e(268)))?e(263):o[e(224)](t=>["name",e(247),e(156),e(298),e(203),e(218),e(197)][e(116)](t))?e(135):o.includes("email")?e(232):o[e(116)](e(152))?e(180):o.some(t=>t[e(173)](e(134)))?e(282):o[e(116)](e(238))?"Sex":o[e(224)](t=>[e(220),e(267),"address-line2",e(290),e(140),e(279),"address-level3",e(230),e(176),e(144),e(205)][e(116)](t))?e(269):o[e(116)](e(234))||o[e(116)]("organization-title")?e(168):t[e(138)]?.(k)?.[e(120)]()===e(275)?e(296):e(172)}function U(t){const e=u;return t[e(326)]("data-html2canvas-ignore")||t[e(138)](k)?.toLowerCase()===e(309)}function B(t){const e=u,n=t[e(138)](k);return""===n||n?.[e(120)]()===e(275)}function P(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(266)]===e(150))return!0;if("search"===t[e(266)])return!1;const n=t[e(138)](e(227));if(n&&n[e(120)]()===e(273))return!1;if((t.autocomplete||"")[e(120)]().trim()[e(305)](/\s+/)[e(270)](Boolean).some(t=>D[e(328)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(300)]||"").toLowerCase().trim()[e(305)](/\s+/)[e(270)](Boolean)[e(224)](t=>D.has(t)))return!0}return!1}function C(t){return!U(t)&&(!!B(t)||!!P(t))}function O(t,e){const n=Q();return(O=function(t,e){return n[t-=113]})(t,e)}function R(){const t=u,e=[],n=t=>{const e=O,n=t.getBoundingClientRect();if(n[e(182)]<=0||n.height<=0)return;const o=Math[e(226)](0,n.left),a=Math[e(226)](0,n[e(202)]),i=Math[e(226)](0,Math.min(n.right,window[e(308)])-o),r=Math.max(0,Math.min(n[e(207)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(307)]("["+k+t(131)+k+t(313))[t(181)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||a(296);e[a(162)]({...i,label:r})});return document[t(307)]("input, textarea")[t(181)](o=>{const a=t;if(U(i=o)||!B(i)&&!P(i))return;var i;const r=n(o);if(!r)return;const c=N(o);e[a(162)]({...r,label:c})}),e}const F=()=>localStorage[u(315)](m)===u(157);function W(t){return e[u(258)](t)}function z(t,n){const o=u,a=localStorage[o(315)](T),i=null===a?void 0:Number(a),r=Number[o(322)](n)?Number(n):"number"==typeof i&&Number[o(322)](i)?i:86400,c=window.location.protocol===o(259);e[o(184)](o(153),t,{expires:r/86400,path:"/",sameSite:"Lax",...c&&{secure:!0}})}function _(){e[u(327)]("intent_sid",{path:"/"})}function j(){const t=u,e=W(t(153));if(!F())return e&&_(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(214)&&typeof crypto[t(236)]===t(293)?crypto.randomUUID():Date[t(297)]()+"-"+Math[t(246)]();d=n,z(d)}function J(){return j(),F()&&Boolean(d)&&(()=>{const t=u,e=localStorage[t(315)](M);return typeof e===t(249)&&e[t(288)]()[t(199)]>0})()}function X(){return!J()||w}function Q(){const t=["accuracy","blur","button","country","entries","cc-type","min","img","[onclick]","password","height","tel","intent_sid","value","POSITION_UNAVAILABLE","family-name","granted","intent:geo","getContext","referrer","fillRect","push","address-line2","heading","getCurrentPosition","INPUT","cc-exp","Organization","page-blur","center","page-focus","Sensitive","startsWith","query","onLine","postal-code","from","floor","protocol","Phone","forEach","width","textContent","set","localhost","result","geolocation","strokeStyle",'input[type="button"]',"/events","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","omit","deviceGeoSent","onerror","scrollX","a[href]","cc-family-name","altitudeAccuracy","length","location","no-store","top","cc-name","nickname","country-name","addEventListener","bottom","defineProperty","2333395oYOJkp","body","pageview","338887FiUHwx","intent:data-client-id","undefined","TEXTAREA","innerHeight","isSecureContext","cc-given-name","coords","street-address","cc-additional-name","title","142524CuNKzx","some","html","max","role","10312JkZtRI","focus","address-level4","hostname","Email","timestamp","organization","PERMISSION_DENIED","randomUUID","bbox","sex","target",'[role="button"]',"attributes","hasFocus","key","hidden","geoEnabled","random","given-name","pixel body fallback failed","string","2289PWApsx","Unexpected FileReader result type","error","8768106FyQfgP","join","27riSMUU","stringify","cc-exp-year","get","https:","aria-label","speed","image/jpeg","Credit card","secure","visibilitychange","type","address-line1","cc-","Address","filter","data-intent-redact-label","x-sl-access-token","searchbox","longitude","mask","bday-month","<no visible label>","save","address-level2","intent:data-base-url","onload","Birthday","label","toDataURL","number","indexOf","https://intent.callimacus.ai","trim","setAttribute","address-line3","data-intent-redact","outerHTML","function","fillText","x-intent-sid","Redacted","now","additional-name","48700egyNqp","autocomplete","textBaseline","drawImage","textAlign","font","split","keydown","querySelectorAll","innerWidth","ignore","click","latitude","application/json",'=""]',"input-submit","getItem","lineWidth","intent:data-ip","organization-title","disabled","globalAlpha","#374151","isFinite","visibilityState","POST","readAsDataURL","hasAttribute","remove","has","getBoundingClientRect","context","intent:data-sid-max-age","scroll","includes","FileReader error","#e5e7eb","pointerdown","toLowerCase","intent:consent","cc-number","#9ca3af","2189586gvxLvg","__intent__sdk__initialized__","restore","round","closest","middle","message",'="mask"], [',"fillStyle","tagName","bday","Name","device","load","getAttribute","Enter","address-level1"];return(Q=function(){return t})()}async function Y(e){const n=u,o=function(t){const e=u,n=t.cloneNode(!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(177)](t.attributes)[e(181)](({name:t,value:o})=>{n[e(289)](t,o)}),n.value=C(t)?H(t):t[e(154)],t[e(319)]&&n.setAttribute(e(319),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(177)](t[e(241)])[e(181)](({name:t,value:o})=>{n[e(289)](t,o)}),n[e(154)]=C(t)?H(t):t[e(154)],t[e(319)]&&n.setAttribute("disabled",""),n[e(292)]):t.outerHTML}(e),a=e[n(329)](),i={useCORS:!0,...{x:window[n(195)],y:window.scrollY,width:window.innerWidth,height:window[n(216)],scale:1},ignoreElements:t=>t instanceof Element&&U(t)},r=await t(document[n(210)],i),c=r[n(182)],s=r[n(151)],l=Math[n(226)](c,s),d=.8*Math[n(226)](window.innerWidth,window.innerHeight),f=Math[n(147)](1,d/l),m=12/(a[n(151)]||1),p=Math.min(1,Math[n(226)](f,m)),h=Math.round(c*p),g=Math[n(127)](s*p),w=document.createElement("canvas");w[n(182)]=h,w[n(151)]=g;const y=w[n(159)]("2d");y[n(302)](r,0,0,c,s,0,0,h,g);const v=R();if(v[n(199)]){y[n(278)](),y[n(320)]=1;for(const t of v){const e=Math[n(127)](t.x*p),o=Math[n(127)](t.y*p),a=Math[n(127)](t.w*p),i=Math[n(127)](t.h*p);y[n(132)]=n(118),y[n(161)](e,o,a,i),y[n(188)]=n(123),y[n(316)]=Math[n(226)](1,Math[n(178)](.02*Math[n(147)](a,i))),y.strokeRect(e,o,a,i);const r=Math[n(226)](10,Math[n(147)](22,Math[n(178)](.35*i)));y[n(304)]=r+n(191),y[n(132)]=n(321),y[n(303)]=n(170),y[n(301)]=n(129);const c="<"+(t[n(283)]?.[n(288)]().length?t[n(283)]:"Sensitive")+">";y[n(294)](c,e+a/2,o+i/2,a-6)}y[n(126)]()}const b=w[n(284)](n(262),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(182)],h:a[n(151)]},img:b}}function Z(){const t=u,e=localStorage.getItem(M),n={"Content-Type":t(312)};return e&&(n[t(272)]=e),d&&(n[t(295)]=d),n}async function q(t,e){const n=u,o=(localStorage[n(315)](x)??S)+n(190),a=localStorage[n(315)](M)??void 0,i=JSON[n(256)]({...t,clientId:a});try{if((await fetch(o,{method:n(324),headers:Z(),body:i,keepalive:e,credentials:n(192)})).ok)return}catch{}try{await async function(t,e=!1){const n=u,o=(localStorage[n(315)](x)??S)+"/p.gif";if(!(await fetch(o,{method:n(324),headers:Z(),body:JSON[n(256)](t),keepalive:e,credentials:"omit",cache:n(201)})).ok)throw new Error(n(248))}(t,e)}catch{}}async function G(t,e,n,o){const a=u;if(!J())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(154)]=C(n)?H(n):n.value);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===a(115)||t===a(169)||t===a(171)),d=Date[a(297)](),m=d-f>=5e3;let p=o;const h=t===a(310)||"input-submit"===t||"pageview"===t;l&&!p&&(h||m)&&(p=await Y(n),f=d),p&&(r=p[a(225)],c=p[a(237)],s=p[a(148)]);const g=t===a(169)||"page-focus"===t||t===a(211),w={ts:Date[a(297)](),event:t,props:i,html:g?"":r,bbox:c,img:s},y=document[a(323)]===a(244)||t===a(169);await q(w,y)}function K(){return"enabled"===localStorage[u(315)](p)}async function V(t={}){const e=u;if(!J())return;const n=typeof t.lat===e(285)&&typeof t.lon===e(285);if(n&&g)return;if(!n&&h)return;const o=localStorage[e(315)](I),a={context:await r()};o&&(a.ip=o);for(const[n,o]of Object[e(145)](t))a[n]=o;await G(e(113),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?g=!0:h=!0}async function $(){const t=u,e={canSend:J(),geoEnabled:K(),deviceGeoSent:g};if(!e.canSend||!e[t(245)]||e[t(193)])return;const n={secure:window[t(217)],proto:location.protocol,host:location.hostname};if(n[t(264)]||t(185),!(t(187)in navigator))return;if(v)return;v=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(297)]();try{await(navigator.permissions?.[t(174)]({name:t(187)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=O;a||(a=!0,Date[i(297)](),Number[i(322)](t)&&Number[i(322)](n)&&await V({lat:t,lon:n,source:i(136)}),v=!1,w=!1,b=!0,e())};navigator[n(187)][n(165)](t=>{const e=O,n=t[e(219)];i(n[e(311)],n[e(274)],(n[e(141)],"number"==typeof n.altitude&&n.altitude,typeof n[e(198)]===e(285)&&n[e(198)],"number"==typeof n.heading&&n[e(164)],typeof n.speed===e(285)&&n[e(261)],t[e(233)],document[e(242)]()))},t=>{const e=O,n=t?.code;1===n?e(235):2===n&&e(155),t?.[e(130)],navigator[e(175)],document[e(323)],document[e(242)](),window[e(217)],location[e(179)],i(void 0,void 0)},o)})}function tt(){const t=u;if(y||!K()||g)return;y=!0;const e=()=>{const t=O;window.removeEventListener(t(119),e,!0),window.removeEventListener(t(306),e,!0),$()};window[t(206)](t(119),e,!0),window[t(206)]("keydown",e,!0)}j();let et=!document[u(244)]&&document[u(242)](),nt=document[u(242)]();const ot=()=>{const t=u;if(X())return;const e=!document[t(244)]&&document[t(242)]();e&&(nt=!0),nt||e?e!==et&&(et=e,G(e?t(171):"page-blur",{},document[t(210)])):et=e};function at(){const t=u;(function(){const t=u,e=globalThis;return!e[E]&&(Object[t(208)](e,E,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(206)]("load",()=>{const e=t;J()&&(V(),(window[e(217)]||location[e(231)]===e(185))&&(K()&&tt(),window[e(206)](e(229),()=>{!g&&K()&&!v&&b&&$()}),document.addEventListener(e(265),()=>{!document[e(244)]&&!g&&K()&&!v&&b&&$()})))}),window[t(206)]("storage",e=>{const n=t;e[n(243)]===m&&(function(){const t=u;return localStorage.getItem(m)===t(157)}()?(h=!1,V(),K()&&tt()):(h=!1,g=!1)),e[n(243)]===p&&(K()?tt():g=!1)}),window.addEventListener(t(137),()=>{const e=t;J()&&G(e(211),{url:window[e(200)].href,title:document[e(222)],ref:document[e(160)]},document.body)}),addEventListener(t(119),function(t,e){let n=0;return(...o)=>{const a=Date[O(297)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(X())return;const o=e[n(239)]instanceof Element?e[n(239)].closest(L):null;o instanceof HTMLElement&&(l=Y(o))},50),{capture:!0,passive:!0}),addEventListener(t(310),async e=>{const n=t;if(X())return;const o=e.target instanceof Element?e.target[n(128)](L):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=u;return t.getAttribute(e(260))??t[e(222)]??t[e(183)]?.trim()??e(277)}(o),i=l?await l:void 0;l=void 0,await G(n(310),{tag:o[n(133)],label:a},o,i)},!0),addEventListener(t(306),e=>{const n=t;if(!X()&&e[n(243)]===n(139)){const t=e[n(239)];if(t instanceof HTMLElement&&(t.tagName===n(166)||t[n(133)]===n(215))){const e=t instanceof HTMLInputElement?t.name:void 0,o=t.id||void 0;G(n(314),{tag:t[n(133)],name:e??o},t)}}},{capture:!0}),[t(229),t(142)][t(181)](e=>{window[t(206)](e,ot)}),document.addEventListener(t(265),ot),window[t(206)](t(115),function(t,e){let n;return(...o)=>{void 0!==n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;X()||G(e(115),{scrollX:window[e(195)],scrollY:window.scrollY},document[e(210)])},250),{passive:!0}),window.intent??={send(e,n){const o=t;J()&&G(e,n,document[o(210)])}})}function it(t,e){const n=dt();return(it=function(t,e){return n[t-=273]})(t,e)}function rt(t,e){const n=it;try{if(void 0===e)return;localStorage[n(277)](t,e?t===n(289)?n(296):n(285):"disabled")}catch{}}function ct(t={}){const e=it;if(localStorage[e(277)](e(294),t[e(286)]??""),localStorage[e(277)]("intent:data-ip",t.ip??""),localStorage[e(277)](e(283),t[e(278)]??"https://intent.callimacus.ai"),typeof t[e(298)]===e(304)&&localStorage[e(277)](e(305),String(t[e(298)])),rt(e(289),t[e(302)]),rt(e(297),t.geo),t.consent){if(!W("intent_sid")){z(typeof crypto!==e(287)&&typeof crypto[e(279)]===e(276)?crypto[e(279)]():Date[e(295)]()+"-"+Math[e(273)](),t[e(298)])}}at()}function st(){return W(it(293))}function ut(){j()}function lt(){_()}function dt(){const t=["undefined","35nikSYE","intent:consent","395EnBlhi","isFinite","30pVlvUb","intent_sid","intent:data-client-id","now","granted","intent:geo","sidMaxAgeSeconds","2063370yoRQuE","37868DZIdai","3938742DxPNQo","consent","9lxvjct","number","intent:data-sid-max-age","random","28145273HYxFUz","4483288FOkWqD","function","setItem","baseUrl","randomUUID","11UoKkZi","128475Bsvoih","12ZzRWkH","intent:data-base-url","2171202GHJJiI","enabled","clientId"];return(dt=function(){return t})()}function ft(t){const e=it;Number[e(291)](t)&&localStorage[e(277)](e(305),String(t));const n=W(e(293));n&&z(n,t)}!function(){const t=it,e=dt();for(;;)try{if(988752===parseInt(t(281))/1*(parseInt(t(292))/2)+-parseInt(t(301))/3+-parseInt(t(300))/4*(parseInt(t(290))/5)+parseInt(t(284))/6*(-parseInt(t(288))/7)+parseInt(t(275))/8*(parseInt(t(303))/9)+parseInt(t(299))/10*(parseInt(t(280))/11)+parseInt(t(282))/12*(parseInt(t(274))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ut 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(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};