@solomei-ai/intent 1.8.0 → 1.8.1
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 +2 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © 2025 Solomei AI SRL. Proprietary and confidential.
|
|
3
3
|
*/
|
|
4
|
-
import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){const a=o();return(n=function(t,e){return a[t-=107]})(t,e)}function o(){const t=["timeZone","serviceWorker","slice","Viewport: ","responseStart","Device geolocation: enabled","°, γ ","getBattery","function",", orientation ","TTFB","4242DjeHKi","rttMs","undefined","floor","15798060eOKlGv","Tilt: ","availWidth"," (β "," ms"," Mbps","isFinite","hardwareConcurrency","filter","no SW","Online: "," (mobile)","7510626yCMNch","encodedBodySize","maxTouchPoints","-bit)","availHeight","effectiveType","beta","getTimezoneOffset","innerHeight","(pointer: coarse)","round","resource","browser API","CPU: ","startsWith","referrer","upright","DateTimeFormat","897224HWzZrD","getEntriesByType","64329WmaDIf","7550410VRvQdK","; DNT: ","transferSize","Screen: ","requestStart","Pointer/Touch: ","charging","setTimeout","unknown","yes","Device geolocation: disabled","orientation","devicePixelRatio","version","Language: ","CookiesEnabled: ","downlink","join","(display-mode: standalone)","PWA: ","fine","toFixed","rtt","Local time: ","Network: ","padStart"," cores",", maxTouchPoints ","find","SW-controlled","innerWidth","number","gamma","controller","languages","User agent: ","abs","Battery: ","saveData","colorDepth","max","length","brand","1380GeZnjP"," | ","6612ONXWlS","downlinkMbps","enabled","coarse","removeEventListener","connection","flat","n/a","668IALAMC","duration","language","type","navigation","deviceorientation","push","DeviceOrientationEvent","mobile","onLine","entryType","width","matches","TTFB ~","UA brands: ","userAgentData","not charging","platform","brands"];return(o=function(){return t})()}async function a(){const t=n,e=[];let o=t(187);if(function(t){const e=n;return e(126)in t&&typeof t.connection!==e(161)}(navigator)){const n=navigator[t(126)];n?.effectiveType&&e[t(135)](n[t(180)]),typeof n?.[t(212)]===t(107)&&e[t(135)]("~"+n.downlink+t(168)),typeof n?.[t(218)]===t(107)&&e[t(135)](n.rtt+t(167)),n?.saveData&&e.push(t(114))}else{const a=function(t=20){const e=n,o=performance[e(194)](e(133))[e(224)](t=>t[e(139)]===e(133)),a=o?Math.max(0,o[e(152)]-o[e(200)]):void 0,i=performance[e(194)](e(186))[e(171)](t=>t[e(139)]===e(186));let r=0,c=0;for(const n of i[e(150)](0,Math[e(116)](0,t))){const t=n[e(176)]>0?n[e(176)]:n.transferSize>0?n[e(198)]:0,o=n[e(130)];t>0&&o>0&&Number[e(169)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:"number"==typeof s?s/1e3:void 0,rttMs:a}}();typeof a.downlinkMbps===t(107)&&e.push("~"+a[t(122)][t(217)](1)+t(168)),"number"==typeof a.rttMs&&e[t(135)](t(142)+Math[t(185)](a[t(160)])+" ms"),o="inferred"}const a=performance[t(194)](t(133))[t(224)](e=>"navigation"===e[t(139)]);if(a){const n=Math.max(0,a.responseStart-a[t(200)]);!e.some(e=>e[t(189)](t(158)))&&e[t(135)](t(142)+Math[t(185)](n)+" ms")}return e[t(117)]?t(220)+e[t(213)](", ")+" ("+o+")":void 0}function i(){const t=n;if(!function(t){const e=n;return e(144)in t&&typeof t[e(144)]!==e(161)}(navigator))return;const e=navigator[t(144)],o=Array.isArray(e.brands)?e[t(147)].map(e=>e[t(118)]+" "+e[t(209)])[t(213)](", "):void 0,a=e[t(146)]?""+e[t(146)]+(e[t(137)]?t(174):""):void 0;return[o&&t(143)+o,a&&"Platform: "+a][t(171)](Boolean).join(" | ")||void 0}async function r(t=400){const e=n;if(e(136)in window&&window.isSecureContext)return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a="number"==typeof t[e(181)]?t.beta:void 0,c="number"==typeof t[e(108)]?t[e(108)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(125)](e(134),r);const s=function(t,e){const o=n,a=Math[o(112)](t),i=Math[o(112)](e);return a<15&&i<15?o(127):a>=60?o(191):"reclined"}(a,c);o(e(164)+s+e(166)+Math[e(185)](a)+e(154)+Math.round(c)+"°)")};window[a(203)](()=>{i||(i=!0,window[a(125)]("deviceorientation",r),o(void 0))},t),window.addEventListener(a(134),r,{passive:!0})})}async function c(){const t=n;if(function(t){const e=n;return e(155)in t&&typeof t.getBattery===e(156)}(navigator))try{const e=await navigator.getBattery(),n=Math[t(185)](100*e.level),o=[(Number[t(169)](n)?n:0)+"%",e[t(202)]?t(202):t(145)];return t(113)+o[t(213)](", ")}catch{return}}async function s(){const t=n,e=(new(Intl[t(192)])).resolvedOptions()[t(148)],o=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(112)](t);return""+o+String(Math[e(162)](a/60))[e(221)](2,"0")+":"+String(a%60)[e(221)](2,"0")}((new Date)[t(182)]()),s=[];s.push(t(210)+navigator[t(131)]),navigator[t(110)]?.[t(117)]&&s[t(135)]("Languages: "+navigator[t(110)][t(213)](", ")),s[t(135)](t(111)+navigator.userAgent);const l=i();l&&s[t(135)](l),s[t(135)]("Timezone: "+e+" (UTC"+o+")"),s[t(135)](t(219)+(new Date).toString());const u=window[t(208)]||1;s[t(135)](t(199)+screen[t(140)]+"x"+screen.height+" @"+u+"x (avail "+screen[t(165)]+"x"+screen[t(179)]+", "+screen[t(115)]+t(178));const d=screen[t(207)]&&t(132)in screen[t(207)]?screen[t(207)][t(132)]:void 0;s[t(135)](t(151)+window[t(226)]+"x"+window[t(183)]+(d?t(157)+d:"")),s[t(135)](t(188)+navigator[t(170)]+t(222));const f=await a();f&&s[t(135)](f),s.push(function(){const t=n,e=typeof matchMedia===t(156)&&matchMedia(t(184)).matches,o=typeof matchMedia===t(156)&&matchMedia("(pointer: fine)")[t(141)],a=t(e?124:o?216:204),i="number"==typeof navigator[t(177)]?navigator[t(177)]:0;return t(201)+a+t(223)+i}());const m=await c();m&&s[t(135)](m),s.push(t(211)+(navigator.cookieEnabled?t(205):"no")+t(197)+(navigator.doNotTrack??t(128))),s[t(135)](t(173)+(navigator[t(138)]?t(205):"no")),document.referrer&&s[t(135)]("Referrer: "+document[t(190)]),s[t(135)](function(){const t=n,e=typeof matchMedia===t(156)&&matchMedia(t(214))[t(141)],o=Boolean(navigator[t(149)]?.[t(109)]);return t(215)+t(o?225:172)+", display-mode standalone: "+(e?t(205):"no")}());const p=await r();p&&s.push(p);const h=typeof localStorage!==t(161)&&localStorage.getItem("intent:geo")===t(123);return s[t(135)](t(h?153:206)),s[t(213)](t(120))}!function(){const t=n,e=o();for(;;)try{if(755195===parseInt(t(129))/1*(-parseInt(t(159))/2)+parseInt(t(195))/3+-parseInt(t(121))/4*(-parseInt(t(119))/5)+-parseInt(t(175))/6+parseInt(t(196))/7+parseInt(t(193))/8+parseInt(t(163))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const l=tt;!function(){const t=tt,e=_();for(;;)try{if(456065===-parseInt(t(611))/1+parseInt(t(659))/2*(-parseInt(t(594))/3)+-parseInt(t(581))/4+parseInt(t(585))/5*(-parseInt(t(457))/6)+parseInt(t(580))/7+parseInt(t(505))/8*(parseInt(t(600))/9)+parseInt(t(526))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let u,d="",f=0;const m="intent:consent",p=l(528);let h=!1,g=!1,w=!1,y=!1,v=!1,b=!1;const M=l(559),x=l(511),S=l(516),I=l(454),T=l(514),E=l(663),A=["button","a[href]","a",l(481),l(491),l(452),l(532),l(640)][l(471)](","),L=l(461),k=l(539),D=new Set(["name",l(474),"additional-name",l(593),l(572),l(570),l(484),l(538),"organization","organization-title",l(470),l(610),l(486),l(619),l(478),"address-level2",l(512),"address-level4",l(582),"country-name",l(614),l(466),l(633),"cc-additional-name","cc-family-name",l(571),l(499),l(565),l(636),l(602),l(643),l(493),"bday-day",l(650),l(550),l(458),l(553)]);function H(t){return"<"+N(t)+">"}function N(t){const e=l,n=(t[e(651)]?.(k)??"")[e(577)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(653)]().trim()[e(634)](/\s+/)[e(544)](Boolean):[];return t instanceof HTMLInputElement&&"password"===t.type?"Password":o[e(475)](t=>t[e(535)]("cc-"))?e(616):o.some(t=>["name","given-name",e(593),e(590),"cc-name",e(633),"cc-family-name"].includes(t))?e(524):o[e(597)](e(484))?e(627):o.includes("tel")?e(561):o[e(475)](t=>t[e(535)](e(493)))?e(462):o[e(597)](e(458))?"Sex":o[e(475)](t=>[e(470),e(610),"address-line2",e(619),e(478),e(573),"address-level3",e(648),e(614),e(582),e(601)][e(597)](t))?"Address":o[e(597)](e(567))||o[e(597)](e(632))?e(569):"mask"===t.getAttribute?.(L)?.[e(653)]()?e(456):e(598)}function P(t){const e=l;return t.hasAttribute(e(520))||t.getAttribute(L)?.[e(653)]()===e(589)}function O(t){const e=l,n=t[e(651)](L);return""===n||n?.[e(653)]()===e(460)}function C(t){const e=l;if(t instanceof HTMLInputElement){if("password"===t.type)return!0;if(t[e(635)]===e(645))return!1;const n=t[e(651)](e(498));if(n&&n[e(653)]()===e(549))return!1;if((t.autocomplete||"")[e(653)]().trim().split(/\s+/)[e(544)](Boolean)[e(475)](t=>D[e(487)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"").toLowerCase()[e(577)]()[e(634)](/\s+/)[e(544)](Boolean)[e(475)](t=>D[e(487)](t)))return!0}return!1}function R(t){return!P(t)&&(!!O(t)||!!C(t))}function U(){const t=l,e=[],n=t=>{const e=tt,n=t[e(534)]();if(n[e(655)]<=0||n[e(631)]<=0)return;const o=Math[e(506)](0,n[e(667)]),a=Math[e(506)](0,n[e(464)]),i=Math[e(506)](0,Math.min(n[e(630)],window[e(494)])-o),r=Math.max(0,Math.min(n[e(522)],window[e(606)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(453)]("["+L+t(628)+L+t(662))[t(576)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||"Redacted";e[a(473)]({...i,label:r})});return document.querySelectorAll(t(604)).forEach(o=>{const a=t;if(P(i=o)||!O(i)&&!C(i))return;var i;const r=n(o);if(!r)return;const c=N(o);e[a(473)]({...r,label:c})}),e}const B=()=>localStorage[l(547)](m)===l(575);function W(t){return e[l(668)](t)}function F(t,n){const o=l,a=localStorage[o(547)](T),i=null===a?void 0:Number(a),r=Number[o(661)](n)?Number(n):typeof i===o(510)&&Number.isFinite(i)?i:86400,c="https:"===window[o(450)][o(562)];e[o(542)](o(492),t,{expires:r/86400,path:"/",sameSite:"Lax",...c&&{secure:!0}})}function j(){const t=l;e[t(641)](t(492),{path:"/"})}function z(){const t=l,e=W(t(492));if(!B())return e&&j(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(656)&&"function"==typeof crypto[t(612)]?crypto[t(612)]():Date[t(497)]()+"-"+Math[t(489)]();d=n,F(d)}function _(){const t=["ignore","additional-name","min","visibilitychange","family-name","69RZwNMC","toDataURL","string","includes","Sensitive","#e5e7eb","959175aekTFo","country-name","cc-csc","load","input, textarea","secure","innerHeight","hidden","pixel body fallback failed","error","address-line1","89183EKMrmZ","randomUUID","getContext","postal-code","readAsDataURL","Credit card","round","code","address-line3","omit","stringify","localhost","INPUT","geoEnabled","hasFocus","speed","Email",'="mask"], [',"outerHTML","right","height","organization-title","cc-given-name","split","type","cc-exp-year","getCurrentPosition","scrollY","lon","[onclick]","remove","label","cc-type","middle","search","floor","application/json","address-level4","from","bday-month","getAttribute","page-blur","toLowerCase","strokeStyle","width","undefined","altitude","fillStyle","2292lFFcMD","bbox","isFinite",'=""]',"__intent__sdk__initialized__","body","clearTimeout","toISOString","left","get","tagName","isSecureContext","setAttribute","title","device","location","POSITION_UNAVAILABLE",'[role="button"]',"querySelectorAll","https://intent.callimacus.ai","hostname","Redacted","18KQPblO","sex","img","mask","data-intent-redact","Birthday","longitude","top","drawImage","cc-name","length","no-store","save","street-address","join","referrer","push","given-name","some","font","input-submit","address-level1","textContent","accuracy",'input[type="submit"]',"scroll","Enter","email","#9ca3af","address-line2","has","Unexpected FileReader result type","random","x-sl-access-token",'input[type="button"]',"intent_sid","bday","innerWidth","name","onLine","now","role","cc-exp","strokeRect","globalAlpha","context","canvas","deviceGeoSent","40wEqhQc","max","pageview","timestamp","html","number","intent:data-ip","address-level3","click","intent:data-sid-max-age","keydown","intent:data-base-url","x-intent-sid","disabled","indexOf","data-html2canvas-ignore","fillText","bottom","restore","Name","/events","4863530OHGyDr","defineProperty","intent:geo","<no visible label>","closest","removeEventListener",'[role="link"]',"center","getBoundingClientRect","startsWith","textAlign","onload","tel","data-intent-redact-label","attributes","lat","set","host","filter","coords","geolocation","getItem","/p.gif","searchbox","bday-year","focus","blur","webauthn","scrollX","key","latitude","#374151","onerror","intent:data-client-id","value","Phone","protocol","slice","target","cc-exp-month","result","organization","href","Organization","username","cc-number","nickname","address-level2","altitudeAccuracy","granted","forEach","trim","visibilityState","UNKNOWN","651770URROAT","1740qrloAq","country","page-focus","addEventListener","900495PxxCDr","entries","POST","pointerdown"];return(_=function(){return t})()}function G(){return z(),B()&&Boolean(d)&&(()=>{const t=l,e=localStorage[t(547)](M);return"string"==typeof e&&e[t(577)]()[t(467)]>0})()}function K(){return!G()||w}async function q(e){const n=l,o=function(t){const e=l,n=t.cloneNode(!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(649)](t.attributes)[e(576)](({name:t,value:o})=>{n[e(671)](t,o)}),n[e(560)]=R(t)?H(t):t[e(560)],t[e(518)]&&n.setAttribute(e(518),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(540)])[e(576)](({name:t,value:o})=>{n[e(671)](t,o)}),n.value=R(t)?H(t):t[e(560)],t.disabled&&n[e(671)]("disabled",""),n[e(629)]):t[e(629)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(554)],y:window[n(638)],width:window[n(494)],height:window.innerHeight,scale:1,logging:!1},ignoreElements:t=>t instanceof Element&&P(t)},r=await t(document[n(664)],i),c=r[n(655)],s=r[n(631)],u=Math[n(506)](c,s),d=.8*Math[n(506)](window.innerWidth,window.innerHeight),f=Math[n(591)](1,d/u),m=12/(a.height||1),p=Math[n(591)](1,Math.max(f,m)),h=Math[n(617)](c*p),g=Math.round(s*p),w=document.createElement(n(503));w.width=h,w[n(631)]=g;const y=w[n(613)]("2d");y[n(465)](r,0,0,c,s,0,0,h,g);const v=U();if(v[n(467)]){y[n(469)](),y[n(501)]=1;for(const t of v){const e=Math[n(617)](t.x*p),o=Math.round(t.y*p),a=Math[n(617)](t.w*p),i=Math.round(t.h*p);y.fillStyle=n(599),y.fillRect(e,o,a,i),y[n(654)]=n(485),y.lineWidth=Math.max(1,Math[n(646)](.02*Math[n(591)](a,i))),y[n(500)](e,o,a,i);const r=Math[n(506)](10,Math[n(591)](22,Math[n(646)](.35*i)));y[n(476)]=r+"px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",y[n(658)]=n(557),y[n(536)]=n(533),y.textBaseline=n(644);const c="<"+(t.label?.[n(577)]()[n(467)]?t[n(642)]:n(598))+">";y[n(521)](c,e+a/2,o+i/2,a-6)}y[n(523)]()}const b=w[n(595)]("image/jpeg",.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(655)],h:a.height},img:b}}function X(){const t=l,e=localStorage[t(547)](M),n={"Content-Type":t(647)};return e&&(n[t(490)]=e),d&&(n[t(517)]=d),n}async function V(t){const e=l,n=(localStorage[e(547)](S)??I)+e(525),o=localStorage[e(547)](M)??void 0,a=JSON[e(621)]({...t,clientId:o});try{if((await fetch(n,{method:e(587),headers:X(),body:a,keepalive:!0,credentials:e(620)})).ok)return}catch{}try{await async function(t){const e=l,n=(localStorage.getItem(S)??I)+e(548);if(!(await fetch(n,{method:"POST",headers:X(),body:JSON[e(621)](t),keepalive:!0,credentials:"omit",cache:e(468)})).ok)throw new Error(e(608))}(t)}catch{}}async function Z(t,e,n,o){const a=l;if(!G())return;const i={...e,localTime:(new Date)[a(666)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(560)]=R(n)?H(n):n[a(560)]);let r="",c={x:0,y:0,w:0,h:0},s="";const u=!(t===a(482)||t===a(652)||t===a(583)),d=Date[a(497)](),m=d-f>=5e3;let p=o;const h="click"===t||t===a(477)||t===a(507);u&&!p&&(h||m)&&(p=await q(n),f=d),p&&(r=p[a(509)],c=p[a(660)],s=p[a(459)]);const g=t===a(652)||t===a(583)||t===a(507),w={ts:Date[a(497)](),event:t,props:i,html:g?"":r,bbox:c,img:s};await V(w)}function Y(){return"enabled"===localStorage[l(547)](p)}async function J(t={}){const e=l;if(!G())return;const n=typeof t[e(541)]===e(510)&&"number"==typeof t[e(639)];if(n&&g)return;if(!n&&h)return;const o=localStorage.getItem(x),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(586)](t))a[n]=o;await Z(e(502),a,document[e(664)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?g=!0:h=!0}async function Q(){const t=l,e={canSend:G(),geoEnabled:Y(),deviceGeoSent:g};if(!e.canSend||!e[t(624)]||e[t(504)])return;const n={secure:window[t(670)],proto:location[t(562)],host:location.hostname};if(n[t(605)]||(t(543),t(622)),!(t(546)in navigator))return;if(v)return;v=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator.permissions?.query({name:"geolocation"}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=tt;a||(a=!0,Date[i(497)](),Number[i(661)](t)&&Number[i(661)](n)&&await J({lat:t,lon:n,source:i(449)}),v=!1,w=!1,b=!0,e())};navigator[n(546)][n(637)](t=>{const e=tt,n=t[e(545)];i(n[e(556)],n[e(463)],(n[e(480)],typeof n[e(657)]===e(510)&&n[e(657)],typeof n[e(574)]===e(510)&&n[e(574)],"number"==typeof n.heading&&n.heading,typeof n[e(626)]===e(510)&&n[e(626)],t[e(508)],document[e(578)],document.hasFocus()))},t=>{const e=tt,n=t?.[e(618)];1===n||(2===n?e(451):3===n||e(579)),navigator[e(496)],document[e(578)],document[e(625)](),location[e(562)],i(void 0,void 0)},o)})}function $(){const t=l;if(y||!Y()||g)return;y=!0;const e=()=>{const t=tt;window[t(531)]("pointerdown",e,!0),window[t(531)](t(515),e,!0),Q()};window[t(584)](t(588),e,!0),window[t(584)]("keydown",e,!0)}function tt(t,e){const n=_();return(tt=function(t,e){return n[t-=449]})(t,e)}z();let et=!document[l(607)]&&document[l(625)](),nt=document[l(625)]();const ot=()=>{const t=l;if(K())return;const e=!document.hidden&&document[t(625)]();e&&(nt=!0),nt||e?e!==et&&(et=e,Z(t(e?583:652),{},document[t(664)])):et=e};function at(){const t=l;(function(){const t=l,e=globalThis;return!e[E]&&(Object[t(527)](e,E,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(584)](t(603),()=>{const e=t;G()&&(J(),(window[e(670)]||location[e(455)]===e(622))&&(Y()&&$(),window[e(584)](e(551),()=>{!g&&Y()&&!v&&b&&Q()}),document[e(584)](e(592),()=>{!document[e(607)]&&!g&&Y()&&!v&&b&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(555)]===m&&(function(){const t=l;return localStorage[t(547)](m)===t(575)}()?(h=!1,J(),Y()&&$()):(h=!1,g=!1)),e[n(555)]===p&&(Y()?$():g=!1)}),window.addEventListener(t(603),()=>{const e=t;G()&&Z(e(507),{url:window[e(450)][e(568)],title:document[e(672)],ref:document[e(472)]},document[e(664)])}),addEventListener(t(588),function(t,e){let n=0;return(...o)=>{const a=Date[tt(497)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(K())return;const o=e[n(564)]instanceof Element?e[n(564)][n(530)](A):null;o instanceof HTMLElement&&(u=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(513),async e=>{const n=t;if(K())return;if(!(e[n(564)]instanceof Element))return;const o=e[n(564)][n(530)](A);if(!(o instanceof HTMLElement))return;const a=function(t){const e=l;return t[e(651)]("aria-label")??t[e(672)]??t[e(479)]?.[e(577)]()??e(529)}(o);(async()=>{const t=n,e=u?await u:void 0;u=void 0,Z(t(513),{tag:o.tagName,label:a},o,e)})()},!0),addEventListener(t(515),e=>{const n=t;if(!K()&&e[n(555)]===n(483)){const t=e[n(564)];if(t instanceof HTMLElement&&(t[n(669)]===n(623)||"TEXTAREA"===t[n(669)])){const e=t instanceof HTMLInputElement?t[n(495)]:void 0,o=t.id||void 0;Z("input-submit",{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(551),t(552)].forEach(e=>{window[t(584)](e,ot)}),document.addEventListener(t(592),ot),window[t(584)](t(482),function(t,e){let n;return(...o)=>{void 0!==n&&window[tt(665)](n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;K()||Z(e(482),{scrollX:window[e(554)],scrollY:window.scrollY},document[e(664)])},250),{passive:!0}),window.intent??={send(e,n){const o=t;G()&&Z(e,n,document[o(664)])}})}function it(){const t=["function","196170VPptIS","33PGxMdh","baseUrl","3221570EjbgMO","intent:data-sid-max-age","isFinite","number","intent:data-client-id","intent:data-base-url","undefined","randomUUID","https://intent.callimacus.ai","1155001HNtyFV","now","intent:consent","43640HiCSnu","setItem","granted","enabled","6JxCyYg","56PMRjGE","clientId","sidMaxAgeSeconds","intent:geo","consent","intent:data-ip","intent_sid","1220148fmvaAX","235ULmRXj","geo","3678269woXKGG","20jegwWK","14517576lkmuce"];return(it=function(){return t})()}function rt(t,e){const n=ut;try{if(void 0===e)return;localStorage[n(183)](t,e?t===n(181)?n(184):n(185):"disabled")}catch{}}function ct(t={}){const e=ut;if(localStorage[e(183)](e(174),t[e(188)]??""),localStorage[e(183)](e(192),t.ip??""),localStorage[e(183)](e(175),t[e(169)]??e(178)),typeof t[e(189)]===e(173)&&localStorage[e(183)](e(171),String(t[e(189)])),rt("intent:consent",t[e(191)]),rt(e(190),t[e(196)]),t[e(191)]){if(!W(e(193))){F(typeof crypto!==e(176)&&typeof crypto.randomUUID===e(166)?crypto[e(177)]():Date[e(180)]()+"-"+Math.random(),t[e(189)])}}at()}function st(){return W("intent_sid")}function lt(){z()}function ut(t,e){const n=it();return(ut=function(t,e){return n[t-=163]})(t,e)}function dt(){j()}function ft(t){const e=ut;Number[e(172)](t)&&localStorage.setItem(e(171),String(t));const n=W(e(193));n&&F(n,t)}!function(){const t=ut,e=it();for(;;)try{if(673571===parseInt(t(179))/1+parseInt(t(167))/2*(parseInt(t(168))/3)+parseInt(t(182))/4*(-parseInt(t(195))/5)+-parseInt(t(186))/6*(-parseInt(t(163))/7)+parseInt(t(187))/8*(-parseInt(t(194))/9)+parseInt(t(164))/10*(parseInt(t(170))/11)+-parseInt(t(165))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,lt as ensureIntentSessionId,st as getIntentSessionId,ct as initIntent,rt as setFlag,ft as setIntentSessionMaxAge};
|
|
4
|
+
import t from"html2canvas-pro";import n from"js-cookie";function e(t,n){const i=o();return(e=function(t,n){return i[t-=104]})(t,n)}function o(){const t=["gamma","isArray","°, γ ","TTFB ~","push","resource","(display-mode: standalone)","toString","not charging","886158iXRfvV","unknown","find","CPU: ","rttMs","intent:geo"," cores","startsWith","userAgentData","max","charging","length","Timezone: ",", display-mode standalone: ","type","User agent: "," (UTC","encodedBodySize","devicePixelRatio","matches","flat","availWidth","mobile","hardwareConcurrency","getItem","deviceorientation","browser API","saveData","Local time: ","brands","483924ESXDYb","Screen: ","requestStart","getEntriesByType","2935836GSTqDq","downlinkMbps","innerWidth","transferSize","number","onLine","beta","colorDepth","Network: ","availHeight","connection","toFixed","Referrer: ","maxTouchPoints","filter","entryType","CookiesEnabled: ","Language: ","undefined"," ms",", maxTouchPoints ","upright","236560HmFKbn","level","downlink","(pointer: coarse)","2820IbvQiZ","7YFPDNp","-bit)","some","getTimezoneOffset","version","1405UEIDYw","reclined","resolvedOptions","referrer","isSecureContext","Device geolocation: disabled","Platform: ","enabled","innerHeight","platform","UA brands: ","no SW","map","orientation"," (mobile)","x (avail ","timeZone"," | ","SW-controlled","languages","isFinite","removeEventListener","duration","n/a","addEventListener","effectiveType","fine","padStart","function","userAgent","serviceWorker","abs","yes","PWA: ","Languages: ","971592jzMNHu","join","round"," Mbps","getBattery","TTFB","40355aJtDQX","navigation"];return(o=function(){return t})()}async function i(){const t=e,n=[];let o=t(200);if(function(t){const n=e;return n(218)in t&&typeof t.connection!==n(108)}(navigator)){const e=navigator[t(218)];e?.[t(147)]&&n[t(169)](e[t(147)]),typeof e?.downlink===t(212)&&n.push("~"+e[t(114)]+" Mbps"),typeof e?.rtt===t(212)&&n.push(e.rtt+" ms"),e?.[t(201)]&&n[t(169)](t(201))}else{const i=function(t=20){const n=e,o=performance[n(207)]("navigation")[n(176)](t=>t[n(105)]===n(164)),i=o?Math[n(183)](0,o.responseStart-o[n(206)]):void 0,a=performance[n(207)]("resource")[n(104)](t=>t[n(105)]===n(170));let r=0,c=0;for(const e of a.slice(0,Math.max(0,t))){const t=e[n(191)]>0?e[n(191)]:e[n(211)]>0?e[n(211)]:0,o=e[n(144)];t>0&&o>0&&Number.isFinite(o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===n(212)?s/1e3:void 0,rttMs:i}}();typeof i[t(209)]===t(212)&&n[t(169)]("~"+i.downlinkMbps[t(219)](1)+t(160)),typeof i[t(178)]===t(212)&&n[t(169)](t(168)+Math[t(159)](i.rttMs)+t(109)),o="inferred"}const i=performance[t(207)](t(164))[t(176)](n=>"navigation"===n[t(105)]);if(i){const e=Math[t(183)](0,i.responseStart-i[t(206)]);!n[t(119)](n=>n[t(181)](t(162)))&&n[t(169)]("TTFB ~"+Math[t(159)](e)+t(109))}return n.length?t(216)+n.join(", ")+" ("+o+")":void 0}function a(){const t=e;if(n=navigator,!(e(182)in n)||void 0===n.userAgentData)return;var n;const o=navigator[t(182)],i=Array[t(166)](o[t(203)])?o[t(203)][t(134)](n=>n.brand+" "+n[t(121)])[t(158)](", "):void 0,a=o[t(131)]?""+o[t(131)]+(o[t(196)]?t(136):""):void 0;return[i&&t(132)+i,a&&t(128)+a][t(104)](Boolean)[t(158)](t(139))||void 0}async function r(t=400){const n=e;if("DeviceOrientationEvent"in window&&window[n(126)])return new Promise(o=>{const i=n;let a=!1;const r=t=>{const n=e,i=typeof t[n(214)]===n(212)?t[n(214)]:void 0,c=typeof t[n(165)]===n(212)?t[n(165)]:void 0;if(void 0===i||void 0===c)return;if(a)return;a=!0,window[n(143)](n(199),r);const s=function(t,n){const o=e,i=Math[o(153)](t),a=Math.abs(n);return o(i<15&&a<15?194:i>=60?111:123)}(i,c);o("Tilt: "+s+" (β "+Math.round(i)+n(167)+Math[n(159)](c)+"°)")};window.setTimeout(()=>{const t=e;a||(a=!0,window[t(143)](t(199),r),o(void 0))},t),window[i(146)]("deviceorientation",r,{passive:!0})})}async function c(){const t=e;if(function(t){const n=e;return n(161)in t&&typeof t.getBattery===n(150)}(navigator))try{const n=await navigator[t(161)](),e=Math[t(159)](100*n[t(113)]);return"Battery: "+[(Number[t(142)](e)?e:0)+"%",n.charging?t(184):t(173)][t(158)](", ")}catch{}}async function s(){const t=e,n=(new Intl.DateTimeFormat)[t(124)]()[t(138)],o=function(t){const n=e,o=t<=0?"+":"-",i=Math[n(153)](t);return""+o+String(Math.floor(i/60)).padStart(2,"0")+":"+String(i%60)[n(149)](2,"0")}((new Date)[t(120)]()),s=[];s[t(169)](t(107)+navigator.language),navigator[t(141)]?.[t(185)]&&s[t(169)](t(156)+navigator.languages[t(158)](", ")),s.push(t(189)+navigator[t(151)]);const l=a();l&&s[t(169)](l),s[t(169)](t(186)+n+t(190)+o+")"),s[t(169)](t(202)+(new Date)[t(172)]());const u=window[t(192)]||1;s[t(169)](t(205)+screen.width+"x"+screen.height+" @"+u+t(137)+screen[t(195)]+"x"+screen[t(217)]+", "+screen[t(215)]+t(118));const d=screen[t(135)]&&t(188)in screen.orientation?screen.orientation[t(188)]:void 0;s[t(169)]("Viewport: "+window[t(210)]+"x"+window[t(130)]+(d?", orientation "+d:"")),s[t(169)](t(177)+navigator[t(197)]+t(180));const f=await i();f&&s[t(169)](f),s[t(169)](function(){const t=e,n=typeof matchMedia===t(150)&&matchMedia(t(115)).matches,o=typeof matchMedia===t(150)&&matchMedia("(pointer: fine)")[t(193)],i=n?"coarse":t(o?148:175),a=navigator[t(221)];return"Pointer/Touch: "+i+t(110)+a}());const m=await c();m&&s[t(169)](m),s[t(169)](t(106)+(navigator.cookieEnabled?t(154):"no")+"; DNT: "+(navigator.doNotTrack??t(145))),s.push("Online: "+(navigator[t(213)]?t(154):"no")),document[t(125)]&&s.push(t(220)+document[t(125)]),s[t(169)](function(){const t=e,n="function"==typeof matchMedia&&matchMedia(t(171))[t(193)],o=Boolean(navigator[t(152)]?.controller);return t(155)+t(o?140:133)+t(187)+(n?t(154):"no")}());const p=await r();p&&s[t(169)](p);const g=localStorage[t(198)](t(179))===t(129);return s[t(169)](g?"Device geolocation: enabled":t(127)),s[t(158)](t(139))}!function(){const t=e,n=o();for(;;)try{if(104528===-parseInt(t(163))/1+-parseInt(t(112))/2+parseInt(t(204))/3+parseInt(t(116))/4*(-parseInt(t(122))/5)+-parseInt(t(174))/6+parseInt(t(117))/7*(parseInt(t(157))/8)+parseInt(t(208))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const l=P;!function(){const t=P,n=K();for(;;)try{if(264830===-parseInt(t(395))/1+-parseInt(t(511))/2+-parseInt(t(543))/3*(-parseInt(t(378))/4)+-parseInt(t(454))/5+-parseInt(t(552))/6*(-parseInt(t(545))/7)+parseInt(t(371))/8*(-parseInt(t(537))/9)+parseInt(t(502))/10*(parseInt(t(506))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();let u,d="",f=0;let m;const p=l(391),g="intent:geo";let w=!1,h=!1,y=!1,v=!1,b=!1,I=!1;const T="intent:data-client-id",S=l(547),x=l(527),M=l(410),E=l(474),A="__intent__sdk__initialized__",L=[l(483),"a[href]","a",'input[type="submit"]','input[type="button"]',l(389),l(538),l(488)].join(","),k="data-intent-redact",D=l(377),H=new Set([l(374),l(400),l(532),l(458),l(448),l(449),"email",l(509),l(396),l(492),l(479),l(445),"address-line2",l(413),"address-level1",l(536),l(460),l(439),l(480),l(476),l(421),l(544),l(504),l(427),"cc-family-name","cc-number","cc-exp",l(518),l(495),l(463),l(517),"bday","bday-day",l(407),"bday-year",l(402),l(467)]);function N(t){return"<"+function(t){const n=l,e=(t[n(526)]?.(D)??"")[n(382)]();if(e)return e;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[n(372)]||"")[n(461)]()[n(382)]()[n(516)](/\s+/)[n(471)](Boolean):[];return t instanceof HTMLInputElement&&"password"===t.type?"Password":o[n(388)](t=>t[n(540)]("cc-"))?n(491):o[n(388)](t=>[n(374),n(400),n(458),"additional-name","cc-name",n(504),n(529)][n(451)](t))?n(490):o[n(451)](n(539))?n(432):o[n(451)](n(509))?"Phone":o[n(388)](t=>t[n(540)](n(366)))?n(455):o[n(451)](n(402))?"Sex":o[n(388)](t=>["street-address",n(445),"address-line2",n(413),n(419),n(536),"address-level3",n(439),n(421),n(480),n(476)][n(451)](t))?"Address":o[n(451)](n(396))||o[n(451)]("organization-title")?n(367):t[n(526)]?.(k)?.[n(461)]()===n(507)?"Redacted":n(370)}(t)+">"}function B(t){const n=l;return t[n(500)](n(428))||t.getAttribute(k)?.[n(461)]()===n(470)}function P(t,n){const e=K();return(P=function(t,n){return e[t-=366]})(t,n)}function F(t){return!B(t)&&(!!function(t){const n=l,e=t.getAttribute(k);return""===e||e?.[n(461)]()===n(507)}(t)||!!function(t){const n=l;if(t instanceof HTMLInputElement){if(t[n(420)]===n(426))return!0;if(t.type===n(528))return!1;const e=t[n(526)](n(494));if(e&&e[n(461)]()===n(531))return!1;if((t[n(372)]||"")[n(461)]().trim()[n(516)](/\s+/)[n(471)](Boolean)[n(388)](t=>H[n(519)](t)))return!0}if(t instanceof HTMLTextAreaElement&&(t.autocomplete||"")[n(461)]()[n(382)]()[n(516)](/\s+/)[n(471)](Boolean)[n(388)](t=>H[n(519)](t)))return!0;return!1}(t))}const O=()=>localStorage[l(553)](p)===l(503);function C(t){return n[l(447)](t)}function z(t,e){const o=l,i=localStorage.getItem(E),a=null===i?void 0:Number(i),r=Number.isFinite(e)?Number(e):typeof a===o(489)&&Number.isFinite(a)?a:86400,c=window[o(442)][o(435)]===o(384);n[o(525)](o(422),t,{expires:r/86400,path:"/",sameSite:o(475),...c&&{secure:!0}})}function U(){const t=l;n.remove(t(422),{path:"/"})}function R(){const t=l,n=C(t(422));if(!O())return n&&U(),void(d="");n?d=n:(d=crypto[t(510)](),z(d))}function W(){return R(),O()&&Boolean(d)&&function(){const t=l;return Boolean(localStorage[t(553)](T)?.[t(382)]()[t(416)])}()}function _(){return!W()||y}async function j(n){return m&&await m,m=(async()=>{const e=P;try{const o=performance[e(381)](),i=performance[e(381)](),a=function(t){const n=l,e=t.cloneNode(!1);return e instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[n(497)](t.attributes)[n(425)](({name:t,value:o})=>{e[n(515)](t,o)}),e.value=F(t)?N(t):t[n(379)],t[n(398)]&&e[n(515)](n(398),""),e[n(546)]):e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[n(497)](t[n(405)])[n(425)](({name:t,value:o})=>{e[n(515)](t,o)}),e[n(379)]=F(t)?N(t):t[n(379)],t[n(398)]&&e.setAttribute(n(398),""),e[n(546)]):t[n(546)]}(n),r=performance[e(381)]()-i;console[e(385)](e(542)+r.toFixed(2)+"ms");const c=n[e(473)](),s=performance[e(381)](),u={left:window[e(535)],top:window[e(550)],right:window[e(535)]+window[e(369)],bottom:window[e(550)]+window[e(415)]},d=await t(document[e(481)],{useCORS:!0,x:window[e(535)],y:window.scrollY,width:window.innerWidth,height:window[e(415)],scale:.6,logging:!1,onclone(t,n){const o=e,i=t.querySelectorAll(o(392));for(let t=0;t<i[o(416)];t++){const n=i[t];if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement){if(n.hasAttribute(o(428))||n[o(526)](k)?.[o(461)]()===o(470))continue;let t=!1;const e=n[o(526)](k);if((""===e||e?.[o(461)]()===o(507))&&(t=!0),n[o(420)]===o(426)&&(t=!0),!t){const e=(n[o(526)](o(372))||"")[o(461)]()[o(382)]()[o(516)](/\s+/).filter(Boolean);if("search"===n[o(420)]||n[o(526)](o(494))?.[o(461)]()===o(531))continue;e.some(t=>H[o(519)](t))&&(t=!0)}t&&(n.value=N(n))}}},ignoreElements(t){const n=e;if(!(t instanceof Element))return!1;if(B(t))return!0;const o=t.getBoundingClientRect(),i={left:o[n(394)]+window.scrollX,top:o.top+window[n(550)],right:o[n(554)]+window[n(535)],bottom:o[n(368)]+window.scrollY},a=100;if(i[n(554)]<u[n(394)]-a||i[n(394)]>u[n(554)]+a||i[n(368)]<u.top-a||i[n(505)]>u.bottom+a){const e=window.getComputedStyle(t)[n(521)];if(e===n(386)||e===n(523)){const t=500;return i.right<u[n(394)]-t||i[n(394)]>u[n(554)]+t||i[n(368)]<u[n(505)]-t||i[n(505)]>u[n(368)]+t}return!0}return!1}}),f=performance[e(381)]()-s;console.log(e(485)+f.toFixed(2)+"ms");const m=performance[e(381)](),p=d[e(393)](e(412),.8),g=performance.now()-m;console[e(385)](e(452)+g[e(464)](2)+"ms");const w=performance[e(381)]()-o;return console[e(385)]("[Timing] capture-total: "+w[e(464)](2)+"ms"),{html:a,bbox:{x:c.x,y:c.y,w:c[e(501)],h:c[e(493)]},img:p}}finally{m=void 0}})(),m}function X(){const t=l,n=localStorage.getItem(T),e={"Content-Type":"application/json"};return n&&(e[t(433)]=n),d&&(e[t(446)]=d),e}async function V(t){const n=l,e=(localStorage[n(553)](x)??M)+"/events",o=localStorage[n(553)](T)??void 0,i=JSON.stringify({...t,clientId:o});try{if((await fetch(e,{method:"POST",headers:X(),body:i,keepalive:!0,credentials:n(487)})).ok)return}catch{}try{await async function(t){const n=l,e=(localStorage[n(553)](x)??M)+n(514);if(!(await fetch(e,{method:n(508),headers:X(),body:JSON[n(482)](t),keepalive:!0,credentials:n(487),cache:n(530)})).ok)throw new Error(n(444))}(t)}catch{}}async function Y(t,n,e,o){const i=l;if(!W())return;const a={...n,localTime:(new Date)[i(549)]()};(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(a.value=F(e)?N(e):e.value);let r="",c={x:0,y:0,w:0,h:0},s="";const u=!(t===i(404)||t===i(401)||t===i(436)),d=Date.now(),m=d-f>=0;let p=o;const g=t===i(462)||t===i(423)||t===i(417);u&&(g&&!p||!p&&m)&&(p=await j(e),f=d),p&&(r=p.html,c=p.bbox,s=p.img);const w=t===i(401)||t===i(436)||t===i(417),h={ts:Date[i(381)](),event:t,props:a,html:w?"":r,bbox:c,img:s};await V(h)}function q(){const t=l;return localStorage[t(553)](g)===t(409)}async function Z(t={}){const n=l;if(!W())return;const e=typeof t.lat===n(489)&&typeof t[n(524)]===n(489);if(e&&h)return;if(!e&&w)return;const o=localStorage[n(553)](S),i={context:await s()};o&&(i.ip=o);for(const[e,o]of Object[n(450)](t))i[e]=o;await Y(n(457),i,document[n(481)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),e?h=!0:w=!0}async function G(){const t=l,n={canSend:W(),geoEnabled:q(),deviceGeoSent:h};if(!n.canSend||!n.geoEnabled||n[t(390)])return;if(window[t(465)],!(t(430)in navigator))return;if(b)return;b=!0,y=!0;const e={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(381)]();try{await(navigator[t(498)]?.query({name:t(430)}))}catch(t){}await new Promise(n=>{let o=!1;const i=async(t,e,i)=>{const a=P;o||(o=!0,Date[a(381)](),Number[a(411)](t)&&Number.isFinite(e)&&await Z({lat:t,lon:e,source:a(438)}),b=!1,y=!1,I=!0,n())};navigator[t(430)].getCurrentPosition(t=>{const n=P,e=t[n(512)];i(e[n(376)],e[n(408)],(e[n(453)],typeof e[n(380)]===n(489)&&e.altitude,typeof e[n(397)]===n(489)&&e[n(397)],"number"==typeof e[n(375)]&&e[n(375)],typeof e.speed===n(489)&&e[n(387)],t[n(418)],document.hasFocus()))},t=>{const n=P,e=t?.[n(533)];1===e?n(441):2===e&&n(534),navigator[n(486)],document[n(429)],document[n(414)](),window[n(465)],location[n(435)],location[n(468)],i(void 0,void 0)},e)})}function K(){const t=["Email","x-sl-access-token","TEXTAREA","protocol","page-focus","defineProperty","device","address-level4","referrer","PERMISSION_DENIED","location","pointerdown","pixel body fallback failed","address-line1","x-intent-sid","get","nickname","username","entries","includes","[Timing] jpeg-encoding: ","accuracy","228460vzHXQA","Birthday","INPUT","context","family-name","closest","address-level3","toLowerCase","click","cc-csc","toFixed","isSecureContext","<no visible label>","webauthn","hostname","target","ignore","filter","push","getBoundingClientRect","intent:data-sid-max-age","Lax","country-name","min","max","street-address","country","body","stringify","button","tagName","[Timing] html2canvas-pro: ","onLine","omit","[onclick]","number","Name","Credit card","organization-title","height","role","cc-exp-year","addEventListener","from","permissions","querySelectorAll","hasAttribute","width","3963530DfPQOZ","granted","cc-given-name","top","11KiMkVH","mask","POST","tel","randomUUID","103760lfqPdV","coords","intent","/p.gif","setAttribute","split","cc-type","cc-exp-month","has","blur","position","keydown","absolute","lon","set","getAttribute","intent:data-base-url","search","cc-family-name","no-store","searchbox","additional-name","code","POSITION_UNAVAILABLE","scrollX","address-level2","5319eKIZhK",'[role="link"]',"email","startsWith","hidden","[Timing] serialize: ","118794jobtug","cc-name","679455XEEOaK","outerHTML","intent:data-ip","removeEventListener","toISOString","scrollY","load","24MxbKNR","getItem","right","bday","Organization","bottom","innerWidth","Sensitive","4568bBzdVb","autocomplete","storage","name","heading","latitude","data-intent-redact-label","8ZyzFus","value","altitude","now","trim","title","https:","log","fixed","speed","some",'[role="button"]',"deviceGeoSent","intent:consent","input, textarea","toDataURL","left","163946UwYMtI","organization","altitudeAccuracy","disabled",'="mask"], [',"given-name","page-blur","sex","clearTimeout","scroll","attributes","href","bday-month","longitude","enabled","https://intent.callimacus.ai","isFinite","image/jpeg","address-line3","hasFocus","innerHeight","length","pageview","timestamp","address-level1","type","postal-code","intent_sid","input-submit",'=""]',"forEach","password","cc-additional-name","data-html2canvas-ignore","visibilityState","geolocation","localhost"];return(K=function(){return t})()}function Q(){const t=l;if(v||!q()||h)return;v=!0;const n=()=>{const t=P;window.removeEventListener("pointerdown",n,!0),window[t(548)](t(522),n,!0),G()};window[t(496)](t(443),n,!0),window[t(496)](t(522),n,!0)}R();let J=!document[l(541)]&&document[l(414)](),$=document[l(414)]();function tt(){const t=l;if(_())return;const n=!document[t(541)]&&document[t(414)]();n&&($=!0),$||n?n!==J&&(J=n,Y(t(n?436:401),{},document[t(481)])):J=n}function nt(){const t=l;(function(){const t=l,n=globalThis;return!n[A]&&(Object[t(437)](n,A,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(496)](t(551),()=>{const n=t;W()&&(Z(),(window.isSecureContext||location[n(468)]===n(431))&&(q()&&Q(),window[n(496)]("focus",()=>{!h&&q()&&!b&&I&&G()}),document[n(496)]("visibilitychange",()=>{!document[n(541)]&&!h&&q()&&!b&&I&&G()})))}),window[t(496)](t(373),t=>{t.key===p&&(function(){const t=l;return localStorage[t(553)](p)===t(503)}()?(w=!1,Z(),q()&&Q()):(w=!1,h=!1)),t.key===g&&(q()?Q():h=!1)}),window[t(496)]("load",()=>{const n=t;W()&&Y(n(417),{url:window[n(442)][n(406)],title:document[n(383)],ref:document[n(440)]},document[n(481)])}),addEventListener("pointerdown",function(t,n){let e=0;return(...o)=>{const i=Date[P(381)]();i-e>=n&&(e=i,t(...o))}}(n=>{const e=t;if(_())return;const o=n[e(469)]instanceof Element?n[e(469)][e(459)](L):null;o instanceof HTMLElement&&(u=j(o))},50),{capture:!0,passive:!0}),addEventListener(t(462),async n=>{const e=t;if(_())return;if(!(n.target instanceof Element))return;const o=n[e(469)][e(459)](L);if(!(o instanceof HTMLElement))return;const i=function(t){const n=l;return t[n(526)]("aria-label")??t[n(383)]??t.textContent?.[n(382)]()??n(466)}(o);(async()=>{const t=e,n=u?await u:void 0;u=void 0,Y(t(462),{tag:o[t(484)],label:i},o,n)})()},!0),addEventListener(t(522),n=>{const e=t;if(!_()&&"Enter"===n.key){const t=n[e(469)];if(t instanceof HTMLElement&&(t[e(484)]===e(456)||t[e(484)]===e(434))){const n=t instanceof HTMLInputElement?t[e(374)]:void 0,o=t.id||void 0;Y(e(423),{tag:t[e(484)],name:n??o},t)}}},{capture:!0}),["focus",t(520)][t(425)](n=>{window[t(496)](n,tt)}),document[t(496)]("visibilitychange",tt),window[t(496)](t(404),function(t,n){let e;return(...o)=>{void 0!==e&&window[P(403)](e),e=window.setTimeout(()=>{e=void 0,t(...o)},n)}}(()=>{const n=t;_()||Y("scroll",{scrollX:window[n(535)],scrollY:window[n(550)]},document[n(481)])},250),{passive:!0}),window[t(513)]??={send(n,e){const o=t;W()&&Y(n,e,document[o(481)])}})}function et(t,n){const e=ot;try{if(void 0===n)return;localStorage[e(435)](t,n?t===e(419)?"granted":e(443):e(416))}catch{}}function ot(t,n){const e=lt();return(ot=function(t,n){return e[t-=414]})(t,n)}function it(t={}){const n=ot;if(localStorage[n(435)](n(431),t[n(418)]??""),localStorage[n(435)](n(439),t.ip??""),localStorage[n(435)](n(434),t.baseUrl??n(433)),"number"==typeof t.sidMaxAgeSeconds&&localStorage[n(435)]("intent:data-sid-max-age",String(t[n(442)])),et(n(419),t[n(432)]),et("intent:geo",t.geo),t.consent){if(!C(n(422))){z(typeof crypto!==n(423)&&typeof crypto[n(420)]===n(417)?crypto[n(420)]():Date[n(429)]()+"-"+Math[n(414)](),t[n(442)])}}nt()}function at(){return C(ot(422))}function rt(){R()}function ct(){U()}function st(t){const n=ot;Number[n(437)](t)&&localStorage.setItem(n(436),String(t));const e=C("intent_sid");e&&z(e,t)}function lt(){const t=["725915tWeECM","disabled","function","clientId","intent:consent","randomUUID","53867aVVuhf","intent_sid","undefined","1624122HBDTRV","594oyGWGP","1295903ypjAtN","386608gxfXnw","858846hTGZRX","now","480BtvyCC","intent:data-client-id","consent","https://intent.callimacus.ai","intent:data-base-url","setItem","intent:data-sid-max-age","isFinite","1680IrcbIO","intent:data-ip","80gHNZAQ","10gOyWwY","sidMaxAgeSeconds","enabled","random"];return(lt=function(){return t})()}!function(){const t=ot,n=lt();for(;;)try{if(912581===-parseInt(t(415))/1+parseInt(t(425))/2*(-parseInt(t(438))/3)+parseInt(t(427))/4*(parseInt(t(441))/5)+-parseInt(t(428))/6+parseInt(t(426))/7+-parseInt(t(440))/8*(-parseInt(t(424))/9)+parseInt(t(430))/10*(-parseInt(t(421))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();export{ct as clearIntentSessionId,rt as ensureIntentSessionId,at as getIntentSessionId,it as initIntent,et as setFlag,st as setIntentSessionMaxAge};
|