@solomei-ai/intent 1.6.1 → 1.7.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 +1 -1
- package/dist/intent.umd.min.js +2 -2
- package/package.json +4 -4
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(){const t=["CookiesEnabled: ","rttMs","PWA: ","charging","length","beta","platform","abs","deviceorientation","undefined","controller","UA brands: ","encodedBodySize","resolvedOptions","height","6328888fVPnfw","TTFB ~","orientation","entryType"," (UTC","intent:geo","maxTouchPoints"," (β ",", maxTouchPoints ","function","getTimezoneOffset","doNotTrack","level"," Mbps","join","downlinkMbps","number","yes","devicePixelRatio","36CIXYzj","push","Tilt: ","referrer","availHeight","(pointer: fine)","8292sJDXUI","type","timeZone","DateTimeFormat","connection","userAgent","requestStart","(display-mode: standalone)",", display-mode standalone: ","downlink","getItem","isSecureContext","Languages: ","Device geolocation: enabled","filter","isFinite","725988arEBEC","version","matches","getBattery","Platform: ","10uOFNtL","gamma"," | ","getEntriesByType","brand","colorDepth","max","languages","Referrer: ","67994DAsprs","x (avail ","resource","browser API","User agent: ","hardwareConcurrency","saveData","rtt","Online: ","°, γ ","248360kJoqFC","addEventListener","responseStart","navigation","DeviceOrientationEvent","mobile","enabled","round","onLine","removeEventListener","SW-controlled","Viewport: "," ms","serviceWorker","Timezone: ","cookieEnabled","flat","fine","Screen: ","28501lzzDqK","352878tgjfIB","7YkmGnA","Battery: ","130239avZPTf","upright","n/a","29bGyOve","Device geolocation: disabled"," cores","find","padStart","transferSize","isArray","slice","startsWith","userAgentData","; DNT: "];return(n=function(){return t})()}function o(t,e){const a=n();return(o=function(t,e){return a[t-=433]})(t,e)}async function a(){const t=o,e=[];let n=t(448);if(a=navigator,o(536)in a&&void 0!==a.connection){const n=navigator.connection;n?.effectiveType&&e[t(527)](n.effectiveType),"number"==typeof n?.[t(541)]&&e[t(527)]("~"+n.downlink+t(520)),typeof n?.[t(452)]===t(523)&&e.push(n.rtt+t(467)),n?.[t(451)]&&e.push(t(451))}else{const a=function(t=20){const e=o,n=performance[e(439)](e(458))[e(484)](t=>t[e(510)]===e(458)),a=n?Math[e(442)](0,n[e(457)]-n[e(538)]):void 0,i=performance[e(439)]("resource").filter(t=>t[e(510)]===e(447));let r=0,c=0;for(const n of i[e(488)](0,Math.max(0,t))){const t=n[e(504)]>0?n[e(504)]:n.transferSize>0?n[e(486)]:0,o=n.duration;t>0&&o>0&&Number[e(547)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(523)?s/1e3:void 0,rttMs:a}}();typeof a[t(522)]===t(523)&&e.push("~"+a[t(522)].toFixed(1)+" Mbps"),typeof a[t(493)]===t(523)&&e.push(t(508)+Math[t(462)](a[t(493)])+t(467)),n="inferred"}var a;const i=performance.getEntriesByType(t(458))[t(484)](e=>e[t(510)]===t(458));if(i){const n=Math[t(442)](0,i[t(457)]-i[t(538)]);!e.some(e=>e[t(489)]("TTFB"))&&e.push(t(508)+Math[t(462)](n)+t(467))}return e[t(496)]?"Network: "+e[t(521)](", ")+" ("+n+")":void 0}function i(){const t=o;if(!function(t){const e=o;return"userAgentData"in t&&typeof t[e(490)]!==e(501)}(navigator))return;const e=navigator[t(490)],n=Array[t(487)](e.brands)?e.brands.map(e=>e[t(440)]+" "+e[t(549)]).join(", "):void 0,a=e[t(498)]?e[t(498)]+(e[t(460)]?" (mobile)":""):void 0;return[n&&t(503)+n,a&&t(435)+a][t(546)](Boolean)[t(521)](t(438))||void 0}async function r(t=400){const e=o;if(e(459)in window&&window[e(543)])return new Promise(n=>{const a=e;let i=!1;const r=t=>{const e=o,a="number"==typeof t[e(497)]?t[e(497)]:void 0,c=typeof t[e(437)]===e(523)?t[e(437)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window.removeEventListener(e(500),r);const s=function(t,e){const n=o,a=Math[n(499)](t),i=Math[n(499)](e);return a<15&&i<15?n(471):a>=60?n(479):"reclined"}(a,c);n(e(528)+s+e(514)+Math[e(462)](a)+e(454)+Math[e(462)](c)+"°)")};window.setTimeout(()=>{const t=o;i||(i=!0,window[t(464)](t(500),r),n(void 0))},t),window[a(456)](a(500),r,{passive:!0})})}async function c(){const t=o;if(function(t){const e=o;return e(434)in t&&"function"==typeof t[e(434)]}(navigator))try{const e=await navigator[t(434)](),n=Math[t(462)](100*e[t(519)]),o=[(Number[t(547)](n)?n:0)+"%",e[t(495)]?t(495):"not charging"];return t(477)+o[t(521)](", ")}catch{return}}async function s(){const t=o,e=(new(Intl[t(535)]))[t(505)]()[t(534)],n=function(t){const e=o,n=t<=0?"+":"-",a=Math[e(499)](t);return""+n+String(Math.floor(a/60))[e(485)](2,"0")+":"+String(a%60)[e(485)](2,"0")}((new Date)[t(517)]()),s=[];s.push("Language: "+navigator.language),navigator[t(443)]?.[t(496)]&&s.push(t(544)+navigator[t(443)][t(521)](", ")),s[t(527)](t(449)+navigator[t(537)]);const u=i();u&&s[t(527)](u),s[t(527)](t(469)+e+t(511)+n+")"),s[t(527)]("Local time: "+(new Date).toString());const l=window[t(525)]||1;s[t(527)](t(473)+screen.width+"x"+screen[t(506)]+" @"+l+t(446)+screen.availWidth+"x"+screen[t(530)]+", "+screen[t(441)]+"-bit)");const d=screen[t(509)]&&t(533)in screen[t(509)]?screen[t(509)][t(533)]:void 0;s[t(527)](t(466)+window.innerWidth+"x"+window.innerHeight+(d?", orientation "+d:"")),s[t(527)]("CPU: "+navigator[t(450)]+t(483));const f=await a();f&&s[t(527)](f),s.push(function(){const t=o,e=typeof matchMedia===t(516)&&matchMedia("(pointer: coarse)")[t(433)],n=typeof matchMedia===t(516)&&matchMedia(t(531)).matches,a=e?"coarse":n?t(472):"unknown",i="number"==typeof navigator[t(513)]?navigator.maxTouchPoints:0;return"Pointer/Touch: "+a+t(515)+i}());const m=await c();m&&s.push(m),s[t(527)](t(492)+(navigator[t(470)]?t(524):"no")+t(491)+(navigator[t(518)]??t(480))),s[t(527)](t(453)+(navigator[t(463)]?t(524):"no")),document[t(529)]&&s[t(527)](t(444)+document[t(529)]),s[t(527)](function(){const t=o,e=typeof matchMedia===t(516)&&matchMedia(t(539))[t(433)],n=Boolean(navigator[t(468)]?.[t(502)]);return t(494)+(n?t(465):"no SW")+t(540)+(e?t(524):"no")}());const p=await r();p&&s[t(527)](p);const h="undefined"!=typeof localStorage&&localStorage[t(542)](t(512))===t(461);return s[t(527)](t(h?545:482)),s[t(521)](" | ")}!function(){const t=o,e=n();for(;;)try{if(551207===parseInt(t(481))/1*(parseInt(t(445))/2)+parseInt(t(478))/3+-parseInt(t(548))/4*(-parseInt(t(436))/5)+parseInt(t(475))/6+-parseInt(t(476))/7*(-parseInt(t(507))/8)+parseInt(t(526))/9*(parseInt(t(455))/10)+parseInt(t(474))/11*(-parseInt(t(532))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=m;!function(){const t=m,e=O();for(;;)try{if(825391===-parseInt(t(356))/1+parseInt(t(382))/2*(-parseInt(t(403))/3)+-parseInt(t(349))/4+-parseInt(t(485))/5+-parseInt(t(499))/6*(-parseInt(t(432))/7)+-parseInt(t(449))/8*(-parseInt(t(360))/9)+parseInt(t(496))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",f=0;function m(t,e){const n=O();return(m=function(t,e){return n[t-=303]})(t,e)}const p=u(341),h=u(406);let g=!1,w=!1,y=!1,v=!1,b=!1,I=!1;const M=u(464),S=u(339),x=u(462),T=u(482),E=u(351),A="__intent__sdk__initialized__",L=[u(486),u(518),"a",u(303),u(488),'[role="button"]',u(391),"[onclick]"][u(333)](","),k=u(512),D=new Set(["name","given-name",u(445),u(416),"nickname",u(313),u(306),u(469),u(451),u(474),u(368),u(494),u(419),"address-line3",u(497),"address-level2",u(381),u(447),"country","country-name","postal-code","cc-name",u(329),u(378),u(424),u(331),"cc-exp","cc-exp-month",u(326),u(481),u(386),"bday","bday-day",u(415),u(374),u(340),u(511)]);function N(t){return"<"+H(t)+">"}function H(t){const e=u,n=(t.getAttribute?.("data-intent-redact-label")??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(456)]()[e(453)]()[e(431)](/\s+/)[e(441)](Boolean):[];return t instanceof HTMLInputElement&&t[e(423)]===e(448)?e(463):o[e(361)](t=>t[e(490)](e(505)))?e(409):o.some(t=>[e(371),e(312),"family-name",e(445),e(506),e(329),e(424)].includes(t))?e(444):o[e(468)](e(306))?e(434):o.includes(e(469))?e(338):o[e(361)](t=>t[e(490)](e(353)))?e(350):o.includes(e(340))?e(389):o[e(361)](t=>[e(368),e(494),e(419),e(483),e(497),"address-level2","address-level3",e(447),e(519),e(388),"country-name"][e(468)](t))?e(446):o[e(468)]("organization")||o[e(468)]("organization-title")?e(402):t.getAttribute?.(k)?.[e(456)]()===e(357)?e(380):e(323)}function P(t){const e=u;return t.hasAttribute(e(516))||t[e(373)](k)?.[e(456)]()===e(471)}function O(){const t=["random","timestamp","geoEnabled","Organization","30eeNueU","length","scrollX","intent:geo","omit","top","Credit card","location","string","query","title","max","bday-month","family-name","slice","addEventListener","address-line2","min","error","href","type","cc-family-name","coords","pointerdown","x-intent-sid","closest","function","Enter","split","7tslFlS","fillStyle","Email","restore","fillRect","context","protocol","target","FileReader error","filter",'="mask"], [',"from","Name","additional-name","Address","address-level4","password","8zhFSxv","visibilitychange","organization","onerror","trim","forEach","hostname","toLowerCase","blur","createElement","pageview","entries","altitudeAccuracy","intent:data-base-url","Password","intent:data-client-id","isFinite","lat","<no visible label>","includes","tel","onload","ignore","visibilityState","/events","organization-title","page-blur","role","right","attributes","granted","clearTimeout","cc-csc","https://intent.callimacus.ai","address-line3","secure","435290tOyPch","button","/p.gif",'input[type="button"]',"label","startsWith","has","scrollY","code","address-line1","getCurrentPosition","31251720tORnpK","address-level1","innerWidth","5170434yZhrgK","Lax","focus","keydown","getItem","intent_sid","cc-","cc-name","speed","tagName","geolocation","getContext","webauthn","data-intent-redact","left","remove","html","data-html2canvas-ignore","randomUUID","a[href]","postal-code","fillText","floor","body",'input[type="submit"]',"x-sl-access-token","image/jpeg","email","stringify","click","searchbox","accuracy","round","given-name","username","height","autocomplete","altitude","key","removeEventListener","undefined","strokeStyle","INPUT","host","Sensitive","value","now","cc-exp-year","push","defineProperty","cc-given-name","aria-label","cc-number","getBoundingClientRect","join","UNKNOWN","outerHTML","drawImage","application/json","Phone","intent:data-ip","sex","intent:consent","result","POSITION_UNAVAILABLE","lon","https:","setTimeout","font","PERMISSION_DENIED","6236344ZGNgeG","Birthday","intent:data-sid-max-age","no-store","bday","width","pixel body fallback failed","934166IqqcvH","mask","strokeRect","device","9226440LfEVgk","some","isSecureContext","TEXTAREA","innerHeight","load","localhost","intent","street-address","disabled","permissions","name","scroll","getAttribute","bday-year","longitude","deviceGeoSent","indexOf","cc-additional-name","POST","Redacted","address-level3","321274DUDygh","hidden","referrer","readAsDataURL","cc-type","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","country","Sex","setAttribute",'[role="link"]',"input-submit","img","hasFocus","page-focus","cloneNode",'=""]',"number"];return(O=function(){return t})()}function U(t){const e=u,n=t[e(373)](k);return""===n||"mask"===n?.[e(456)]()}function B(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(423)]===e(448))return!0;if("search"===t[e(423)])return!1;const n=t[e(373)](e(476));if(n&&n[e(456)]()===e(309))return!1;if((t[e(315)]||"")[e(456)]()[e(453)]()[e(431)](/\s+/)[e(441)](Boolean)[e(361)](t=>D[e(491)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(315)]||"")[e(456)]().trim()[e(431)](/\s+/)[e(441)](Boolean)[e(361)](t=>D[e(491)](t)))return!0}return!1}function C(t){return!P(t)&&(!!U(t)||!!B(t))}function F(){const t=u,e=[],n=t=>{const e=m,n=t[e(332)]();if(n[e(354)]<=0||n[e(314)]<=0)return;const o=Math[e(414)](0,n[e(513)]),a=Math[e(414)](0,n[e(408)]),i=Math[e(414)](0,Math.min(n[e(477)],window[e(498)])-o),r=Math[e(414)](0,Math[e(420)](n.bottom,window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document.querySelectorAll("["+k+t(442)+k+t(397))[t(454)](o=>{const a=t,i=n(o);if(!i)return;const r=H(o)||"Redacted";e[a(327)]({...i,label:r})});return document.querySelectorAll("input, textarea")[t(454)](o=>{const a=t;if(P(i=o)||!U(i)&&!B(i))return;var i;const r=n(o);if(!r)return;const c=H(o);e[a(327)]({...r,label:c})}),e}const R=()=>"granted"===localStorage.getItem(p);function z(t){return e.get(t)}function j(t,n){const o=u,a=localStorage[o(503)](E),i=null===a?void 0:Number(a),r=Number.isFinite(n)?Number(n):typeof i===o(398)&&Number[o(465)](i)?i:86400,c=window[o(410)][o(438)]===o(345);e.set(o(504),t,{expires:r/86400,path:"/",sameSite:o(500),...c&&{secure:!0}})}function W(){e[u(514)]("intent_sid",{path:"/"})}function _(){const t=u,e=z(t(504));if(!R())return e&&W(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(319)&&typeof crypto[t(517)]===t(429)?crypto[t(517)]():Date.now()+"-"+Math[t(399)]();d=n,j(d)}function q(){return _(),R()&&Boolean(d)&&(()=>{const t=u,e=localStorage[t(503)](M);return"string"==typeof e&&e[t(453)]().length>0})()}function V(){return!q()||y}async function G(e){const n=u,o=function(t){const e=u,n=t[e(396)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(478)])[e(454)](({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(324)]=C(t)?N(t):t[e(324)],t[e(369)]&&n.setAttribute(e(369),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(443)](t[e(478)])[e(454)](({name:t,value:o})=>{n[e(390)](t,o)}),n[e(324)]=C(t)?N(t):t[e(324)],t.disabled&&n[e(390)](e(369),""),n[e(335)]):t[e(335)]}(e),a=e[n(332)](),i={useCORS:!0,...{x:window[n(405)],y:window.scrollY,width:window.innerWidth,height:window[n(364)],scale:1,logging:!1},ignoreElements:t=>t instanceof Element&&P(t)},r=await t(document[n(522)],i),c=r[n(354)],s=r[n(314)],l=Math[n(414)](c,s),d=.8*Math[n(414)](window[n(498)],window[n(364)]),f=Math[n(420)](1,d/l),m=12/(a[n(314)]||1),p=Math[n(420)](1,Math[n(414)](f,m)),h=Math[n(311)](c*p),g=Math[n(311)](s*p),w=document[n(458)]("canvas");w[n(354)]=h,w[n(314)]=g;const y=w[n(510)]("2d");y[n(336)](r,0,0,c,s,0,0,h,g);const v=F();if(v.length){y.save(),y.globalAlpha=1;for(const t of v){const e=Math[n(311)](t.x*p),o=Math.round(t.y*p),a=Math[n(311)](t.w*p),i=Math.round(t.h*p);y.fillStyle="#e5e7eb",y[n(436)](e,o,a,i),y[n(320)]="#9ca3af",y.lineWidth=Math[n(414)](1,Math[n(521)](.02*Math[n(420)](a,i))),y[n(358)](e,o,a,i);const r=Math.max(10,Math.min(22,Math[n(521)](.35*i)));y[n(347)]=r+n(387),y[n(433)]="#374151",y.textAlign="center",y.textBaseline="middle";const c="<"+(t.label?.[n(453)]()[n(404)]?t[n(489)]:n(323))+">";y[n(520)](c,e+a/2,o+i/2,a-6)}y[n(435)]()}const b=w.toDataURL(n(305),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(354)],h:a[n(314)]},img:b}}function J(){const t=u,e=localStorage[t(503)](M),n={"Content-Type":"application/json"};return e&&(n[t(304)]=e),d&&(n[t(427)]=d),n}async function X(t,e){const n=u,o=(localStorage[n(503)](x)??T)+n(473),a=localStorage[n(503)](M)??void 0,i=JSON[n(307)]({...t,clientId:a});try{if((await fetch(o,{method:"POST",headers:J(),body:i,keepalive:e,credentials:n(407)})).ok)return}catch{}try{await async function(t,e=!1){const n=u,o=(localStorage[n(503)](x)??T)+n(487);if(!(await fetch(o,{method:n(379),headers:J(),body:JSON.stringify(t),keepalive:e,credentials:n(407),cache:n(352)})).ok)throw new Error(n(355))}(t,e)}catch{}}async function Y(t,e,n,o){const a=u;if(!q())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(324)]=C(n)?N(n):n[a(324)]);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===a(372)||t===a(475)||"page-focus"===t),d=Date.now(),m=d-f>=5e3;let p=o;const h=t===a(308)||t===a(392)||t===a(459);l&&!p&&(h||m)&&(p=await G(n),f=d),p&&(r=p[a(515)],c=p.bbox,s=p[a(393)]);const g=t===a(475)||"page-focus"===t||"pageview"===t,w={ts:Date[a(325)](),event:t,props:i,html:g?"":r,bbox:c,img:s},y=document[a(472)]===a(383)||t===a(475);await X(w,y)}function K(){return"enabled"===localStorage.getItem(h)}async function Z(t={}){const e=u;if(!q())return;const n=typeof t[e(466)]===e(398)&&typeof t[e(344)]===e(398);if(n&&w)return;if(!n&&g)return;const o=localStorage[e(503)](S),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(460)](t))a[n]=o;await Y(e(437),a,document[e(522)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?w=!0:g=!0}async function Q(){const t=u,e={canSend:q(),geoEnabled:K(),deviceGeoSent:w};if(!e.canSend||!e[t(401)]||e[t(376)])return;const n={secure:window[t(362)],proto:location[t(438)],host:location[t(455)]};if(n[t(484)]||(t(322),t(366)),!(t(509)in navigator))return;if(b)return;b=!0,y=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(325)]();try{await(navigator[t(370)]?.[t(412)]({name:t(509)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=m;a||(a=!0,Date[i(325)](),Number.isFinite(t)&&Number.isFinite(n)&&await Z({lat:t,lon:n,source:i(359)}),b=!1,y=!1,I=!0,e())};navigator[n(509)][n(495)](t=>{const e=m,n=t[e(425)];i(n.latitude,n[e(375)],(n[e(310)],typeof n[e(316)]===e(398)&&n[e(316)],typeof n[e(461)]===e(398)&&n[e(461)],"number"==typeof n.heading&&n.heading,"number"==typeof n.speed&&n[e(507)],t[e(400)],document[e(472)],document[e(394)]()))},t=>{const e=m,n=t?.[e(493)];1===n?e(348):2===n?e(343):3===n||e(334),document[e(472)],document[e(394)](),window[e(362)],location[e(455)],i(void 0,void 0)},o)})}function $(){const t=u;if(v||!K()||w)return;v=!0;const e=()=>{window[m(318)]("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),Q()};window[t(418)](t(426),e,!0),window[t(418)](t(502),e,!0)}_();let tt=!document[u(383)]&&document.hasFocus(),et=document[u(394)]();const nt=()=>{const t=u;if(V())return;const e=!document[t(383)]&&document[t(394)]();e&&(et=!0),et||e?e!==tt&&(tt=e,Y(t(e?395:475),{},document[t(522)])):tt=e};function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[A]&&(Object[t(328)](e,A,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(418)](t(365),()=>{const e=t;q()&&(Z(),(window[e(362)]||location[e(455)]===e(366))&&(K()&&$(),window[e(418)](e(501),()=>{!w&&K()&&!b&&I&&Q()}),document[e(418)](e(450),()=>{!document[e(383)]&&!w&&K()&&!b&&I&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(317)]===p&&(function(){const t=u;return localStorage[t(503)](p)===t(479)}()?(g=!1,Z(),K()&&$()):(g=!1,w=!1)),e[n(317)]===h&&(K()?$():w=!1)}),window[t(418)]("load",()=>{const e=t;q()&&Y(e(459),{url:window[e(410)][e(422)],title:document[e(413)],ref:document[e(384)]},document.body)}),addEventListener(t(426),function(t,e){let n=0;return(...o)=>{const a=Date[m(325)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(V())return;const o=e.target instanceof Element?e[n(439)][n(428)](L):null;o instanceof HTMLElement&&(l=G(o))},50),{capture:!0,passive:!0}),addEventListener(t(308),async e=>{const n=t;if(V())return;const o=e[n(439)]instanceof Element?e[n(439)][n(428)](L):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=u;return t[e(373)](e(330))??t.title??t.textContent?.[e(453)]()??e(467)}(o),i=l?await l:void 0;l=void 0,await Y("click",{tag:o[n(508)],label:a},o,i)},!0),addEventListener(t(502),e=>{const n=t;if(!V()&&e[n(317)]===n(430)){const t=e.target;if(t instanceof HTMLElement&&(t[n(508)]===n(321)||t[n(508)]===n(363))){const e=t instanceof HTMLInputElement?t[n(371)]:void 0,o=t.id||void 0;Y(n(392),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(501),t(457)].forEach(e=>{window[t(418)](e,nt)}),document[t(418)](t(450),nt),window[t(418)](t(372),function(t,e){let n;return(...o)=>{const a=m;void 0!==n&&window[a(480)](n),n=window[a(346)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;V()||Y(e(372),{scrollX:window[e(405)],scrollY:window[e(492)]},document[e(522)])},250),{passive:!0}),window[t(367)]??={send(e,n){const o=t;q()&&Y(e,n,document[o(522)])}})}function at(t,e){const n=ct();return(at=function(t,e){return n[t-=369]})(t,e)}function it(t,e){const n=at;try{if(void 0===e)return;localStorage[n(397)](t,e?t===n(374)?n(395):n(380):n(378))}catch{}}function rt(t={}){const e=at;if(localStorage[e(397)](e(388),t[e(371)]??""),localStorage[e(397)](e(399),t.ip??""),localStorage[e(397)](e(398),t[e(370)]??e(377)),typeof t[e(382)]===e(385)&&localStorage[e(397)](e(372),String(t.sidMaxAgeSeconds)),it(e(374),t[e(384)]),it(e(376),t[e(387)]),t[e(384)]){if(!z(e(383))){j(typeof crypto!==e(375)&&"function"==typeof crypto.randomUUID?crypto.randomUUID():Date.now()+"-"+Math[e(392)](),t[e(382)])}}ot()}function ct(){const t=["sidMaxAgeSeconds","intent_sid","consent","number","274338WwuMlj","geo","intent:data-client-id","10sKtUPd","112AnIZtR","72osIQFB","random","3rNxHTV","1760381CkidjE","granted","6pVnJRE","setItem","intent:data-base-url","intent:data-ip","2616588iFdabH","302843IwxPwX","891960jiIltJ","baseUrl","clientId","intent:data-sid-max-age","4952330rYhuCM","intent:consent","undefined","intent:geo","https://intent.callimacus.ai","disabled","77604OrSxVM","enabled","11RzpRHh"];return(ct=function(){return t})()}function st(){return z(at(383))}function ut(){_()}function lt(){W()}function dt(t){const e=at;Number.isFinite(t)&&localStorage[e(397)](e(372),String(t));const n=z(e(383));n&&j(n,t)}!function(){const t=at,e=ct();for(;;)try{if(432823===parseInt(t(401))/1+parseInt(t(369))/2*(-parseInt(t(393))/3)+parseInt(t(379))/4*(parseInt(t(389))/5)+parseInt(t(396))/6*(parseInt(t(394))/7)+-parseInt(t(390))/8*(parseInt(t(386))/9)+parseInt(t(373))/10*(-parseInt(t(381))/11)+parseInt(t(391))/12*(parseInt(t(400))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ut as ensureIntentSessionId,st as getIntentSessionId,rt as initIntent,it as setFlag,dt as setIntentSessionMaxAge};
|