@solomei-ai/intent 1.4.3 → 1.4.4
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 +1 -1
- package/dist/intent.umd.min.js +1 -1
- package/package.json +3 -3
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(t,o){const a=n();return(e=function(t,e){return a[t-=331]})(t,o)}function n(){const t=["type","referrer","beta","responseStart","floor","2649252fZeprz","yes","userAgent","Device geolocation: disabled","enabled"," | ","map","userAgentData","devicePixelRatio","(pointer: coarse)"," (UTC","getItem","Device geolocation: enabled","isFinite","deviceorientation","saveData","-bit)","connection","join","controller","max","brands","version","Battery: ","find","read","fetch","innerWidth","Local time: ","doNotTrack","cors","resolvedOptions","timeZone","intent:geo","push","Languages: ","Pointer/Touch: ","Referrer: ","12PLerqP","getBattery","Network: ","abs","function"," cores","toFixed","ReadableStream","rtt","5549440VKpDcO","signal","19416492PxmQxO","n/a","availWidth","onLine","gamma","DateTimeFormat","all","from","20CofNmA","957852DfDJIf"," (active test)","toString","effectiveType","Screen: ","PWA: "," ms","padStart","languages","brand","unknown","slice","; DNT: ","platform","627480DBBTak","downlink","removeEventListener","UA brands: ","hardwareConcurrency","431553ZRvhAF","no-store","width","undefined","Language: ","/speedtest.bin","DeviceOrientationEvent","entryType","filter","244956ghIShU","charging","requestStart","Online: ","flat","length","Platform: ",", maxTouchPoints ","reclined","round","height","matches","hint: ","°, γ ","(pointer: fine)","orientation","Tilt: ","navigation","number","random","(display-mode: standalone)","includes","innerHeight","now","x (avail ","isSecureContext","TTFB ~"];return(n=function(){return t})()}async function o(){const t=e,n=[];if(function(t){const n=e;return"connection"in t&&typeof t[n(349)]!==n(412)}(navigator)){const e=navigator[t(349)];e?.effectiveType&&n[t(366)](e[t(393)]),typeof e?.[t(405)]===t(436)&&n[t(366)](e[t(405)]+" Mbps"),typeof e?.[t(378)]===t(436)&&n[t(366)](e[t(378)]+t(396)),e?.[t(347)]&&n[t(366)](t(347))}const o=await async function(t,n=3e3,o=8,a=150){const i=e;if(!(i(358)in window)||!(i(377)in window))return;const r=performance[i(441)]();let c,s=0;await Promise[i(387)](Array[i(388)]({length:o},async()=>{const e=i;for(;performance[e(441)]()-r<n+a;){const o=new AbortController,i=(t[e(439)]("?")?"&":"?")+"cb="+Math[e(437)]()[e(392)](36)[e(401)](2);try{const l=await fetch(t+i,{cache:e(410),signal:o[e(380)],mode:e(362)}),d=l.body?.getReader();if(!d)break;for(;;){const t=performance[e(441)]();if(t-r>=n+a){o.abort();break}const{done:i,value:l}=await d[e(357)]();if(i)break;c??=t,t-(c??t)>=a&&(s+=l.byteLength)}}catch{}}}));const l=(c??r)+a,d=Math.max(1,performance[i(441)]()-l),u=8*s/(d/1e3)/1e6;return Number[i(345)](u)&&u>0?u:void 0}(t(414),3e3,8,150),a=performance.getEntriesByType(t(435))[t(356)](e=>"navigation"===e[t(416)]);let i;if(a){const e=Math[t(352)](0,a[t(448)]-a[t(420)]);i=t(444)+Math.round(e)+t(396)}const r=[];if("number"==typeof o&&r[t(366)]("~"+o[t(376)](1)+" Mbps"),i&&r[t(366)](i),n[t(423)]&&r[t(366)](t(430)+n.join(", ")),r[t(423)])return t(372)+r[t(350)](", ")+t(391)}function a(){const t=e;if(!function(t){const n=e;return n(339)in t&&typeof t.userAgentData!==n(412)}(navigator))return;const n=navigator[t(339)],o=Array.isArray(n[t(353)])?n[t(353)][t(338)](e=>e[t(399)]+" "+e[t(354)]).join(", "):void 0,a=n[t(403)]?n[t(403)]+(n.mobile?" (mobile)":""):void 0;return[o&&t(407)+o,a&&t(424)+a][t(417)](Boolean).join(" | ")||void 0}async function i(t=400){const n=e;if(n(415)in window&&window[n(443)])return new Promise(o=>{const a=n;let i=!1;const r=t=>{const n=e,a=typeof t.beta===n(436)?t[n(447)]:void 0,c=typeof t[n(385)]===n(436)?t[n(385)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[n(406)](n(346),r);const s=function(t,n){const o=e,a=Math[o(373)](t),i=Math.abs(n);return a<15&&i<15?o(422):a>=60?"upright":o(426)}(a,c);o(n(434)+s+" (β "+Math[n(427)](a)+n(431)+Math.round(c)+"°)")};window.setTimeout(()=>{const t=e;i||(i=!0,window.removeEventListener(t(346),r),o(void 0))},t),window.addEventListener(a(346),r,{passive:!0})})}async function r(){const t=e;if(function(t){const n=e;return n(371)in t&&typeof t[n(371)]===n(374)}(navigator))try{const e=await navigator[t(371)](),n=Math[t(427)](100*e.level),o=[(Number.isFinite(n)?n:0)+"%",e[t(419)]?t(419):"not charging"];return t(355)+o[t(350)](", ")}catch{return}}async function c(){const t=e,n=(new(Intl[t(386)]))[t(363)]()[t(364)],c=function(t){const n=e,o=t<=0?"+":"-",a=Math[n(373)](t);return""+o+String(Math[n(331)](a/60))[n(397)](2,"0")+":"+String(a%60)[n(397)](2,"0")}((new Date).getTimezoneOffset()),s=[];s[t(366)](t(413)+navigator.language),navigator[t(398)]?.length&&s[t(366)](t(367)+navigator[t(398)][t(350)](", ")),s[t(366)]("User agent: "+navigator[t(334)]);const l=a();l&&s[t(366)](l),s.push("Timezone: "+n+t(342)+c+")"),s[t(366)](t(360)+(new Date)[t(392)]());const d=window[t(340)]||1;s[t(366)](t(394)+screen[t(411)]+"x"+screen[t(428)]+" @"+d+t(442)+screen[t(383)]+"x"+screen.availHeight+", "+screen.colorDepth+t(348));const u=screen[t(433)]&&t(445)in screen[t(433)]?screen[t(433)].type:void 0;s[t(366)]("Viewport: "+window[t(359)]+"x"+window[t(440)]+(u?", orientation "+u:"")),s[t(366)]("CPU: "+navigator[t(408)]+t(375));const f=await o();f&&s[t(366)](f),s[t(366)](function(){const t=e,n=typeof matchMedia===t(374)&&matchMedia(t(341)).matches,o="function"==typeof matchMedia&&matchMedia(t(432))[t(429)],a=n?"coarse":o?"fine":t(400),i="number"==typeof navigator.maxTouchPoints?navigator.maxTouchPoints:0;return t(368)+a+t(425)+i}());const m=await r();m&&s[t(366)](m),s[t(366)]("CookiesEnabled: "+(navigator.cookieEnabled?"yes":"no")+t(402)+(navigator[t(361)]??t(382))),s.push(t(421)+(navigator[t(384)]?t(333):"no")),document[t(446)]&&s[t(366)](t(369)+document.referrer),s[t(366)](function(){const t=e,n="function"==typeof matchMedia&&matchMedia(t(438))[t(429)],o=Boolean(navigator.serviceWorker?.[t(351)]);return t(395)+(o?"SW-controlled":"no SW")+", display-mode standalone: "+(n?"yes":"no")}());const p=await i();p&&s.push(p);const h=typeof localStorage!==t(412)&&localStorage[t(343)](t(365))===t(336);return s[t(366)](t(h?344:335)),s[t(350)](t(337))}!function(){const t=e,o=n();for(;;)try{if(389943===parseInt(t(409))/1+-parseInt(t(418))/2*(-parseInt(t(370))/3)+-parseInt(t(389))/4*(-parseInt(t(404))/5)+parseInt(t(332))/6+-parseInt(t(390))/7+parseInt(t(379))/8+-parseInt(t(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}();const s=z;!function(){const t=z,e=P();for(;;)try{if(159003===parseInt(t(134))/1+-parseInt(t(319))/2*(parseInt(t(123))/3)+-parseInt(t(269))/4*(parseInt(t(204))/5)+parseInt(t(344))/6+-parseInt(t(178))/7*(-parseInt(t(237))/8)+-parseInt(t(337))/9+-parseInt(t(210))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",u=0;const f=s(193),m=s(188);let p=!1,h=!1,g=!1,w=!1,y=!1,v=!1;const b=s(316),I=s(238),M="intent:data-base-url",S="https://intent.callimacus.ai",x=s(149),T=s(160),E=[s(211),s(332),"a",s(309),s(147),s(167),'[role="link"]',"[onclick]"][s(338)](","),L="data-intent-redact",k=s(180),A=new Set(["name",s(148),"additional-name","family-name",s(217),"username",s(324),s(286),s(233),s(121),s(181),"address-line1",s(253),s(203),"address-level1",s(137),s(126),"address-level4",s(182),s(283),s(321),s(243),s(258),s(142),s(115),s(219),s(304),s(179),s(336),s(322),"cc-type",s(340),s(120),s(159),s(112),"sex",s(273)]);function D(t){return"<"+N(t)+">"}function P(){const t=["postal-code","cc-csc","host","email","setAttribute","aria-label","intent","strokeStyle","outerHTML","randomUUID","Max-Age=","a[href]","visibilityState","data-html2canvas-ignore","altitude","cc-exp-year","118350vIFjzM","join","Redacted","bday","address-line1","type","Enter","1799058kPeTlE","getItem","lineWidth","intent_sid","removeEventListener","Phone","toISOString","createElement","UNKNOWN","innerHeight","getCurrentPosition","bday-year","location","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","cc-family-name","height","disabled","TEXTAREA","Unexpected FileReader result type","bday-day","organization-title","textContent","269691sYkFfP","sex","bottom","address-level3","application/json","TIMEOUT","length","floor","setTimeout","<no visible label>","forEach","163892FZirKP","startsWith","globalAlpha","address-level2","role","permissions","timestamp","hostname","cc-additional-name","autocomplete","no-store","family-name","width",'input[type="button"]',"given-name","intent:data-sid-max-age","#374151","canvas","getAttribute","POSITION_UNAVAILABLE","geoEnabled","save","canSend","scroll","pointerdown","bday-month","__intent__sdk__initialized__","search","now","number","Path=/","scrollX","value",'[role="button"]',"addEventListener","fillStyle","SameSite=Strict","; Secure","protocol","readAsDataURL","min","input-submit","x-sl-access-token","trim","21TsYLaY","cc-exp-month","data-intent-redact-label","street-address","country","secure","click","hidden","longitude","context","intent:geo","latitude","href","max","heading","intent:consent","Address","cc-","hasFocus","closest","fillRect","top","random","Name","page-blur","address-line3","5MQiYVn","Secure","toLowerCase","#e5e7eb",'="mask"], [',"attributes","1507940yoppil","button","has","push","storage","getBoundingClientRect","localhost","nickname","html","cc-number","x-intent-sid","indexOf","querySelectorAll","Organization","center","clearTimeout","lat","/p.gif","slice","body","additional-name",'=""]',"enabled","organization","function","pageview","page-focus","137728LHISfJ","intent:data-ip","error","referrer","title","bbox","cc-name","Birthday","searchbox","isFinite","omit","code","cloneNode","Sex","target","image/jpeg","address-line2","Email","address-level1","geolocation","Credit card","cc-given-name","tagName","INPUT","label","getContext","onLine","filter","keydown","granted","Password","scrollY","410156AZqIyR","name","POST","result","webauthn","coords","stringify","innerWidth","focus","lon","string","message","round","cookie","country-name","middle","blur","tel","mask","Sensitive","entries","https:","some","speed","PERMISSION_DENIED","altitudeAccuracy","input, textarea","visibilitychange","isSecureContext","strokeRect","query","password","intent_sid=","key","load","cc-exp","hasAttribute","left","undefined","split",'input[type="submit"]',"img","right","includes","textAlign","/events","#9ca3af","intent:data-client-id","fillText","from","2DHCTUX","accuracy"];return(P=function(){return t})()}function N(t){const e=s,n=(t.getAttribute?.(k)??"")[e(177)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(143)]||"")[e(206)]().trim().split(/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&t.type===e(300)?e(267):o[e(291)](t=>t.startsWith(e(195)))?e(257):o[e(291)](t=>[e(270),e(148),e(145),e(230),e(243),e(258),e(115)][e(312)](t))?e(201):o[e(312)](e(324))?e(254):o[e(312)]("tel")?e(349):o.some(t=>t[e(135)](e(340)))?e(244):o[e(312)](e(124))?e(250):o[e(291)](t=>[e(181),e(341),e(253),e(203),e(255),e(137),e(126),"address-level4",e(321),e(182),e(283)].includes(t))?e(194):o[e(312)](e(233))||o[e(312)](e(121))?e(223):"mask"===t[e(152)]?.(L)?.[e(206)]()?e(339):"Sensitive"}function H(t){const e=s;return t[e(305)](e(334))||"ignore"===t[e(152)](L)?.[e(206)]()}function C(t){const e=s,n=t[e(152)](L);return""===n||n?.[e(206)]()===e(287)}function U(t){const e=s;if(t instanceof HTMLInputElement){if("password"===t[e(342)])return!0;if(t[e(342)]===e(161))return!1;const n=t[e(152)](e(138));if(n&&n.toLowerCase()===e(245))return!1;if((t.autocomplete||"")[e(206)]().trim().split(/\s+/)[e(264)](Boolean)[e(291)](t=>A[e(212)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"")[e(206)]().trim().split(/\s+/)[e(264)](Boolean).some(t=>A[e(212)](t)))return!0}return!1}function O(t){return!!C(t)||!!U(t)}function R(){const t=s,e=[],n=t=>{const e=z,n=t.getBoundingClientRect();if(n[e(146)]<=0||n[e(116)]<=0)return;const o=Math[e(191)](0,n[e(306)]),a=Math[e(191)](0,n[e(199)]),i=Math.max(0,Math.min(n[e(311)],window[e(276)])-o),r=Math[e(191)](0,Math[e(174)](n[e(125)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(222)]("["+L+t(208)+L+t(231))[t(133)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||a(339);e[a(213)]({...i,label:r})});return document[t(222)](t(295))[t(133)](o=>{const a=t;if(!C(i=o)&&!U(i))return;var i;if(H(o))return;const r=n(o);if(!r)return;const c=N(o);e[a(213)]({...r,label:c})}),e}const B=()=>localStorage[s(345)](f)===s(266);function F(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(282)][e(308)]("; ");for(const t of o)if(t[e(135)](n))return decodeURIComponent(t[e(228)](n.length))}function W(t,e){const n=s,o=localStorage.getItem(x),a=null==o?void 0:Number(o),i=Number.isFinite(e)?Number(e):typeof a===n(163)&&Number.isFinite(a)?a:86400,r=window[n(113)].protocol===n(290),c=[n(301)+encodeURIComponent(t),n(331)+i,n(164),n(170)];r&&c[n(213)](n(205)),document.cookie=c[n(338)]("; ")}function _(){const t=s,e=window[t(113)][t(172)]===t(290);document[t(282)]="intent_sid=; Max-Age=0; Path=/; SameSite=Lax"+(e?t(171):"")}function j(){const t=s,e=F(t(347));if(!B())return e&&_(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(307)&&typeof crypto[t(330)]===t(234)?crypto[t(330)]():Date[t(162)]()+"-"+Math[t(200)]();d=n,W(d)}function z(t,e){const n=P();return(z=function(t,e){return n[t-=108]})(t,e)}function Z(){return j(),B()&&Boolean(d)&&(()=>{const t=s,e=localStorage[t(345)](b);return"string"==typeof e&&e[t(177)]().length>0})()}function q(){return!Z()||g}async function X(e){const n=s,o=function(t){const e=s,n=t[e(249)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(318)](t[e(209)])[e(133)](({name:t,value:o})=>{n[e(325)](t,o)}),n[e(166)]=O(t)?D(t):t[e(166)],t[e(117)]&&n[e(325)](e(117),""),n[e(329)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(318)](t[e(209)])[e(133)](({name:t,value:o})=>{n[e(325)](t,o)}),n.value=O(t)?D(t):t[e(166)],t[e(117)]&&n[e(325)](e(117),""),n[e(329)]):t[e(329)]}(e),a=e[n(215)](),i={useCORS:!0,...{x:window.scrollX,y:window[n(268)],width:window.innerWidth,height:window.innerHeight,scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document.body,i),c=r[n(146)],l=r.height,d=Math[n(191)](c,l),u=.8*Math.max(window.innerWidth,window[n(110)]),f=Math[n(174)](1,u/d),m=12/(a[n(116)]||1),p=Math[n(174)](1,Math[n(191)](f,m)),h=Math[n(281)](c*p),g=Math[n(281)](l*p),w=document[n(108)](n(151));w[n(146)]=h,w.height=g;const y=w[n(262)]("2d");y.drawImage(r,0,0,c,l,0,0,h,g);const v=R();if(v[n(129)]){y[n(155)](),y[n(136)]=1;for(const t of v){const e=Math[n(281)](t.x*p),o=Math[n(281)](t.y*p),a=Math[n(281)](t.w*p),i=Math[n(281)](t.h*p);y[n(169)]=n(207),y[n(198)](e,o,a,i),y[n(328)]=n(315),y[n(346)]=Math[n(191)](1,Math[n(130)](.02*Math.min(a,i))),y[n(298)](e,o,a,i);const r=Math[n(191)](10,Math[n(174)](22,Math[n(130)](.35*i)));y.font=r+n(114),y[n(169)]=n(150),y[n(313)]=n(224),y.textBaseline=n(284);const c="<"+(t[n(261)]?.[n(177)]().length?t[n(261)]:n(288))+">";y[n(317)](c,e+a/2,o+i/2,a-6)}y.restore()}const b=w.toDataURL(n(252),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(146)],h:a[n(116)]},img:b}}function Y(){const t=s,e=localStorage[t(345)](b),n={"Content-Type":t(127)};return e&&(n[t(176)]=e),d&&(n[t(220)]=d),n}async function J(t,e){const n=s,o=(localStorage[n(345)](M)??S)+n(314),a=localStorage.getItem(b)??void 0,i=JSON.stringify({...t,clientId:a});try{if((await fetch(o,{method:n(271),headers:Y(),body:i,keepalive:e,credentials:n(247)})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(345)](M)??S)+n(227);if(!(await fetch(o,{method:"POST",headers:Y(),body:JSON[n(275)](t),keepalive:e,credentials:n(247),cache:n(144)})).ok)throw new Error("pixel body fallback failed")}(t,e)}catch{}}async function K(t,e,n,o){const a=s;if(!Z())return;const i={...e,localTime:(new Date)[a(350)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(166)]=O(n)?D(n):n[a(166)]);let r="",c={x:0,y:0,w:0,h:0},l="";const d=!("scroll"===t||"page-blur"===t||"page-focus"===t),f=Date[a(162)](),m=f-u>=5e3;let p=o;const h="click"===t||t===a(175)||t===a(235);d&&!p&&(h||m)&&(p=await X(n),u=f),p&&(r=p[a(218)],c=p[a(242)],l=p[a(310)]);const g="page-blur"===t||t===a(236)||t===a(235),w={ts:Date.now(),event:t,props:i,html:g?"":r,bbox:c,img:l},y="hidden"===document[a(333)]||t===a(202);await J(w,y)}function G(){const t=s;return localStorage.getItem(m)===t(232)}async function V(t={}){const e=s;if(!Z())return;const n="number"==typeof t[e(226)]&&typeof t[e(278)]===e(163);if(n&&h)return;if(!n&&p)return;const o=localStorage[e(345)](I),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(289)](t))a[n]=o;await K(e(187),a,document[e(229)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function Q(){const t=s,e={canSend:Z(),geoEnabled:G(),deviceGeoSent:h};if(!e[t(156)]||!e[t(154)]||e.deviceGeoSent)return;const n={secure:window[t(297)],proto:location[t(172)],host:location[t(141)]};if(n[t(183)]||t(323),!("geolocation"in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator[t(139)]?.[t(299)]({name:t(256)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=z;a||(a=!0,Date[i(162)](),Number[i(246)](t)&&Number[i(246)](n)&&await V({lat:t,lon:n,source:"device"}),y=!1,g=!1,v=!0,e())};navigator.geolocation[n(111)](t=>{const e=z,n=t[e(274)];i(n[e(189)],n[e(186)],(n[e(320)],typeof n[e(335)]===e(163)&&n[e(335)],typeof n[e(294)]===e(163)&&n.altitudeAccuracy,typeof n[e(192)]===e(163)&&n[e(192)],"number"==typeof n[e(292)]&&n[e(292)],t[e(140)],document[e(333)],document[e(196)]()))},t=>{const e=z,n=t?.[e(248)];e(1===n?293:2===n?153:3===n?128:109),t?.[e(280)],navigator[e(263)],document[e(333)],document[e(196)](),location[e(172)],location[e(141)],i(void 0,void 0)},o)})}function $(){const t=s;if(w||!G()||h)return;w=!0;const e=()=>{const t=z;window[t(348)](t(158),e,!0),window[t(348)](t(265),e,!0),Q()};window.addEventListener(t(158),e,!0),window[t(168)](t(265),e,!0)}j();let tt=!document[s(185)]&&document.hasFocus(),et=document[s(196)]();const nt=()=>{const t=s;if(q())return;const e=!document[t(185)]&&document[t(196)]();e&&(et=!0),et||e?e!==tt&&(tt=e,K(t(e?236:202),{},document[t(229)])):tt=e};function ot(){const t=s;(function(){const t=globalThis;return!t[T]&&(Object.defineProperty(t,T,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(168)]("load",()=>{const e=t;Z()&&(V(),(window.isSecureContext||location.hostname===e(216))&&(G()&&$(),window[e(168)](e(277),()=>{!h&&G()&&!y&&v&&Q()}),document[e(168)]("visibilitychange",()=>{!document[e(185)]&&!h&&G()&&!y&&v&&Q()})))}),window.addEventListener(t(214),e=>{e[t(302)]===f&&("granted"===localStorage[s(345)](f)?(p=!1,V(),G()&&$()):(p=!1,h=!1)),e.key===m&&(G()?$():h=!1)}),window[t(168)](t(303),()=>{const e=t;Z()&&K(e(235),{url:window.location[e(190)],title:document[e(241)],ref:document[e(240)]},document[e(229)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const a=Date[z(162)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(q())return;const o=e[n(251)]instanceof Element?e[n(251)][n(197)](E):null;o instanceof HTMLElement&&(l=X(o))},50),{capture:!0,passive:!0}),addEventListener("click",async e=>{const n=t;if(q())return;const o=e[n(251)]instanceof Element?e[n(251)][n(197)](E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(152)](e(326))??t[e(241)]??t[e(122)]?.[e(177)]()??e(132)}(o),i=l?await l:void 0;l=void 0,await K(n(184),{tag:o.tagName,label:a},o,i)},!0),addEventListener(t(265),e=>{const n=t;if(!q()&&e.key===n(343)){const t=e[n(251)];if(t instanceof HTMLElement&&(t[n(259)]===n(260)||t[n(259)]===n(118))){const e=t instanceof HTMLInputElement?t[n(270)]:void 0,o=t.id||void 0;K(n(175),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(277),t(285)][t(133)](e=>{window[t(168)](e,nt)}),document[t(168)](t(296),nt),window.addEventListener(t(157),function(t,e){let n;return(...o)=>{const a=z;void 0!==n&&window[a(225)](n),n=window[a(131)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;q()||K("scroll",{scrollX:window[e(165)],scrollY:window[e(268)]},document[e(229)])},250),{passive:!0}),window[t(327)]??={send(e,n){const o=t;Z()&&K(e,n,document[o(229)])}})}function at(){const t=["303084WxhCLe","4266078khZLCS","intent:data-ip","geo","50290yasTDp","disabled","consent","sidMaxAgeSeconds","intent:geo","random","setItem","13PhIUdn","intent_sid","undefined","randomUUID","999635XjBhHJ","intent:consent","granted","now","512442ortZKz","intent:data-sid-max-age","clientId","1464000ZGqQmF","1998750hGBeiK","isFinite","8zpvItT"];return(at=function(){return t})()}function it(t,e){const n=rt;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(474)?n(475):"enabled":n(463))}catch{}}function rt(t,e){const n=at();return(rt=function(t,e){return n[t-=454]})(t,e)}function ct(t={}){const e=rt;if(localStorage[e(468)]("intent:data-client-id",t[e(479)]??""),localStorage[e(468)](e(460),t.ip??""),localStorage.setItem("intent:data-base-url",t.baseUrl??"https://intent.callimacus.ai"),"number"==typeof t[e(465)]&&localStorage[e(468)]("intent:data-sid-max-age",String(t[e(465)])),it("intent:consent",t[e(464)]),it(e(466),t[e(461)]),t[e(464)]){if(!F(e(470))){W(typeof crypto!==e(471)&&"function"==typeof crypto[e(472)]?crypto.randomUUID():Date[e(476)]()+"-"+Math[e(467)](),t[e(465)])}}ot()}function st(){return F(rt(470))}function lt(){j()}function dt(){_()}function ut(t){const e=rt;Number[e(456)](t)&&localStorage[e(468)](e(478),String(t));const n=F(e(470));n&&W(n,t)}!function(){const t=rt,e=at();for(;;)try{if(423545===parseInt(t(469))/1*(-parseInt(t(462))/2)+-parseInt(t(477))/3+-parseInt(t(454))/4+parseInt(t(455))/5+parseInt(t(459))/6+parseInt(t(473))/7+-parseInt(t(457))/8*(-parseInt(t(458))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,lt as ensureIntentSessionId,st as getIntentSessionId,ct as initIntent,it as setFlag,ut as setIntentSessionMaxAge};
|
|
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};
|