@solomei-ai/intent 1.8.1 → 1.9.3
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/README.md +49 -2
- package/dist/esm/index.js +1 -1
- package/dist/intent.umd.min.js +2 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -43,7 +43,8 @@ initIntent({
|
|
|
43
43
|
geo: false, // Optional: Enable/disable geolocation (default: false)
|
|
44
44
|
baseUrl: 'https://...', // Optional: Custom API endpoint (default: 'https://intent.callimacus.ai')
|
|
45
45
|
ip: '192.0.2.1', // Optional: Client IP address
|
|
46
|
-
sidMaxAgeSeconds:
|
|
46
|
+
sidMaxAgeSeconds: 2592000, // Optional: Session cookie max-age in seconds (default: 30 days = 2592000 seconds)
|
|
47
|
+
debug: false, // Optional: Enable debug logging for timing information (default: false)
|
|
47
48
|
});
|
|
48
49
|
```
|
|
49
50
|
|
|
@@ -103,11 +104,56 @@ setFlag('intent:consent', false); // disabled
|
|
|
103
104
|
// Enable or disable device geolocation capture
|
|
104
105
|
setFlag('intent:geo', true); // enabled
|
|
105
106
|
setFlag('intent:geo', false); // disabled
|
|
107
|
+
|
|
108
|
+
// Enable or disable debug logging
|
|
109
|
+
setFlag('intent:debug', true); // enabled
|
|
110
|
+
setFlag('intent:debug', false); // disabled
|
|
106
111
|
```
|
|
107
112
|
- When consent is granted, the tracker maintains a first-party cookie `intent_sid`.
|
|
108
113
|
- If consent is revoked, the tracker clears `intent_sid` and stops sending events.
|
|
109
114
|
---
|
|
110
115
|
|
|
116
|
+
## Debug Logging
|
|
117
|
+
|
|
118
|
+
By default, the SDK does not output any console logs to avoid spamming the browser console. However, you can enable debug logging to see timing information for performance analysis:
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
import {initIntent} from '@solomei-ai/intent';
|
|
122
|
+
|
|
123
|
+
// Enable debug logging during initialization
|
|
124
|
+
initIntent({
|
|
125
|
+
clientId: 'cal-pk-...',
|
|
126
|
+
debug: true, // Enable debug logs
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Or toggle debug logging at runtime:
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
import {setFlag} from '@solomei-ai/intent';
|
|
134
|
+
|
|
135
|
+
// Enable debug logging
|
|
136
|
+
setFlag('intent:debug', true);
|
|
137
|
+
|
|
138
|
+
// Disable debug logging
|
|
139
|
+
setFlag('intent:debug', false);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
When debug logging is enabled, the SDK will output timing information to the console, including:
|
|
143
|
+
- **HTML serialization time**: Time taken to serialize the DOM into HTML
|
|
144
|
+
- **Screenshot capture time**: Time taken by html2canvas-pro to render the page
|
|
145
|
+
- **JPEG encoding time**: Time taken to encode the canvas to JPEG format
|
|
146
|
+
- **Total capture time**: Total time for the entire capture process
|
|
147
|
+
|
|
148
|
+
This is useful for:
|
|
149
|
+
- **Performance tuning**: Identify bottlenecks in the capture process
|
|
150
|
+
- **Development debugging**: Understand SDK behavior during development
|
|
151
|
+
- **Production troubleshooting**: Temporarily enable logs to diagnose issues
|
|
152
|
+
|
|
153
|
+
**Note:** Debug logging is disabled by default to prevent console spam in production. Only enable it when needed for debugging or performance analysis.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
111
157
|
## Using `intent_sid`
|
|
112
158
|
|
|
113
159
|
Use these utilities to read or manage the session cookie from your app:
|
|
@@ -168,6 +214,7 @@ When consent is granted, the Intent SDK automatically collects the following dat
|
|
|
168
214
|
- Optional IP address (`ip`)
|
|
169
215
|
- Consent status (`intent:consent`)
|
|
170
216
|
- Geolocation preference (`intent:geo`)
|
|
217
|
+
- Debug logging preference (`intent:debug`)
|
|
171
218
|
- Session max-age setting
|
|
172
219
|
|
|
173
220
|
### Built-in Redaction
|
|
@@ -206,7 +253,7 @@ Redacted fields are replaced with placeholder text like `<Password>`, `<Email>`,
|
|
|
206
253
|
|
|
207
254
|
**Local Storage:**
|
|
208
255
|
- The SDK stores configuration and preferences in browser `localStorage`
|
|
209
|
-
- Keys used: `intent:consent`, `intent:geo`, `intent:data-client-id`, `intent:data-base-url`, `intent:data-ip`, `intent:data-sid-max-age`
|
|
256
|
+
- Keys used: `intent:consent`, `intent:geo`, `intent:debug`, `intent:data-client-id`, `intent:data-base-url`, `intent:data-ip`, `intent:data-sid-max-age`
|
|
210
257
|
- localStorage data persists until explicitly cleared by the user or your application
|
|
211
258
|
|
|
212
259
|
**Cookies:**
|
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 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};
|
|
4
|
+
import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){t-=249;return s()[t]}async function o(){const t=n,e=[];let o=t(260);if(function(t){const e=n;return e(357)in t&&typeof t.connection!==e(333)}(navigator)){const n=navigator[t(357)];n?.effectiveType&&e[t(276)](n[t(330)]),typeof n?.downlink===t(343)&&e[t(276)]("~"+n.downlink+t(300)),typeof n?.[t(325)]===t(343)&&e[t(276)](n[t(325)]+t(307)),n?.[t(319)]&&e[t(276)](t(319))}else{const i=function(t=20){const e=n,o=performance[e(365)](e(270))[e(256)](t=>t[e(340)]===e(270)),i=o?Math.max(0,o[e(322)]-o.requestStart):void 0,a=performance[e(365)](e(358))[e(347)](t=>t[e(340)]===e(358));let r=0,c=0;for(const n of a[e(295)](0,Math[e(262)](0,t))){const t=n[e(352)]>0?n.encodedBodySize:n[e(293)]>0?n[e(293)]:0,o=n[e(309)];t>0&&o>0&&Number[e(249)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(343)?s/1e3:void 0,rttMs:i}}();typeof i[t(321)]===t(343)&&e[t(276)]("~"+i.downlinkMbps[t(279)](1)+t(300)),typeof i.rttMs===t(343)&&e[t(276)]("TTFB ~"+Math[t(349)](i[t(269)])+t(307)),o=t(354)}const i=performance[t(365)](t(270))[t(256)](e=>"navigation"===e[t(340)]);if(i){const n=Math[t(262)](0,i.responseStart-i[t(356)]);!e[t(320)](e=>e[t(337)](t(344)))&&e[t(276)](t(334)+Math[t(349)](n)+t(307))}return e[t(265)]?t(292)+e[t(271)](", ")+" ("+o+")":void 0}function i(){const t=n;if(!function(t){const e=n;return e(355)in t&&typeof t[e(355)]!==e(333)}(navigator))return;const e=navigator[t(355)],o=Array[t(332)](e[t(255)])?e[t(255)].map(e=>e[t(336)]+" "+e[t(342)])[t(271)](", "):void 0,i=e[t(277)]?""+e[t(277)]+(e[t(282)]?t(363):""):void 0;return[o&&t(335)+o,i&&t(278)+i][t(347)](Boolean)[t(271)](t(308))||void 0}async function a(t=400){const e=n;if(e(304)in window&&window.isSecureContext)return new Promise(o=>{const i=e;let a=!1;const r=t=>{const e=n,i=typeof t.beta===e(343)?t[e(362)]:void 0,c=typeof t.gamma===e(343)?t[e(317)]:void 0;if(void 0===i||void 0===c)return;if(a)return;a=!0,window.removeEventListener(e(366),r);const s=function(t,e){const o=n,i=Math.abs(t),a=Math[o(311)](e);return i<15&&a<15?o(296):i>=60?"upright":o(274)}(i,c);o("Tilt: "+s+" (β "+Math.round(i)+e(350)+Math[e(349)](c)+"°)")};window[i(284)](()=>{const t=i;a||(a=!0,window[t(331)](t(366),r),o(void 0))},t),window[i(360)](i(366),r,{passive:!0})})}async function r(){const t=n;var e;if("getBattery"in(e=navigator)&&"function"==typeof e[n(327)])try{const e=await navigator[t(327)](),n=Math[t(349)](100*e.level),o=[(Number[t(249)](n)?n:0)+"%",e[t(254)]?"charging":t(346)];return t(290)+o[t(271)](", ")}catch{}}async function c(){const t=n,e=(new(Intl[t(316)]))[t(338)]()[t(302)],c=function(t){const e=n,o=t<=0?"+":"-",i=Math.abs(t);return""+o+String(Math[e(306)](i/60)).padStart(2,"0")+":"+String(i%60)[e(266)](2,"0")}((new Date).getTimezoneOffset()),s=[];s.push(t(289)+navigator[t(348)]),navigator[t(275)]?.[t(265)]&&s[t(276)](t(263)+navigator[t(275)].join(", ")),s[t(276)]("User agent: "+navigator[t(272)]);const d=i();d&&s[t(276)](d),s[t(276)](t(351)+e+t(315)+c+")"),s.push("Local time: "+(new Date)[t(261)]());const l=window[t(326)]||1;s[t(276)]("Screen: "+screen.width+"x"+screen[t(353)]+" @"+l+t(303)+screen.availWidth+"x"+screen[t(314)]+", "+screen[t(341)]+t(310));const u=screen[t(339)]&&t(286)in screen[t(339)]?screen[t(339)].type:void 0;s[t(276)](t(287)+window[t(329)]+"x"+window[t(281)]+(u?t(364)+u:"")),s[t(276)](t(318)+navigator[t(250)]+t(294));const f=await o();f&&s[t(276)](f),s[t(276)](function(){const t=n,e=typeof matchMedia===t(305)&&matchMedia("(pointer: coarse)")[t(298)],o=typeof matchMedia===t(305)&&matchMedia(t(359))[t(298)],i=t(e?291:o?324:323),a=navigator.maxTouchPoints;return t(268)+i+", maxTouchPoints "+a}());const m=await r();m&&s[t(276)](m),s[t(276)]("CookiesEnabled: "+(navigator[t(301)]?t(259):"no")+t(264)+(navigator.doNotTrack??"n/a")),s[t(276)]("Online: "+(navigator[t(283)]?"yes":"no")),document[t(257)]&&s.push(t(299)+document[t(257)]),s.push(function(){const t=n,e=typeof matchMedia===t(305)&&matchMedia("(display-mode: standalone)")[t(298)],o=Boolean(navigator[t(328)]?.controller);return t(297)+(o?"SW-controlled":t(273))+", display-mode standalone: "+(e?t(259):"no")}());const p=await a();p&&s[t(276)](p);const g=localStorage[t(251)](t(288))===t(313);return s[t(276)](g?"Device geolocation: enabled":t(280)),s[t(271)](t(308))}function s(){const t=["TTFB","3033225rOpEUX","not charging","filter","language","round","°, γ ","Timezone: ","encodedBodySize","height","inferred","userAgentData","requestStart","connection","resource","(pointer: fine)","addEventListener","12769552dUfEfa","beta"," (mobile)",", orientation ","getEntriesByType","deviceorientation","isFinite","hardwareConcurrency","getItem","18639PVkzfJ","759821hnOSOR","charging","brands","find","referrer","722894oLPwxC","yes","browser API","toString","max","Languages: ","; DNT: ","length","padStart","1506106gkeFYX","Pointer/Touch: ","rttMs","navigation","join","userAgent","no SW","reclined","languages","push","platform","Platform: ","toFixed","Device geolocation: disabled","innerHeight","mobile","onLine","setTimeout","80USNkSj","type","Viewport: ","intent:geo","Language: ","Battery: ","coarse","Network: ","transferSize"," cores","slice","flat","PWA: ","matches","Referrer: "," Mbps","cookieEnabled","timeZone","x (avail ","DeviceOrientationEvent","function","floor"," ms"," | ","duration","-bit)","abs","5696922gPaKkK","enabled","availHeight"," (UTC","DateTimeFormat","gamma","CPU: ","saveData","some","downlinkMbps","responseStart","unknown","fine","rtt","devicePixelRatio","getBattery","serviceWorker","innerWidth","effectiveType","removeEventListener","isArray","undefined","TTFB ~","UA brands: ","brand","startsWith","resolvedOptions","orientation","entryType","colorDepth","version","number"];return(s=function(){return t})()}!function(){const t=n,e=s();for(;;)try{if(478350===-parseInt(t(253))/1+-parseInt(t(258))/2+parseInt(t(252))/3*(-parseInt(t(285))/4)+-parseInt(t(345))/5+parseInt(t(312))/6+-parseInt(t(267))/7+parseInt(t(361))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const d=Z;!function(){const t=Z,e=G();for(;;)try{if(128767===parseInt(t(481))/1+-parseInt(t(636))/2+-parseInt(t(590))/3+-parseInt(t(531))/4+-parseInt(t(647))/5+parseInt(t(559))/6+parseInt(t(631))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,u="",f=0;let m;const p="intent:consent",g="intent:geo",w=d(480);let h=!1,y=!1,v=!1,b=!1,S=!1,T=!1;const x=d(492),E=d(668),I=d(608),M=d(493),L=d(600),k=d(582),A=[d(598),d(521),"a",'input[type="submit"]',d(652),d(611),d(535),"[onclick]"][d(541)](","),N=d(508),D=d(536),H=new Set([d(614),d(563),d(602),d(501),d(482),d(483),d(594),"tel",d(655),d(625),d(653),d(534),d(539),"address-line3",d(499),"address-level2",d(565),d(567),d(605),d(497),d(588),d(542),d(660),d(522),d(523),d(537),d(658),d(616),"cc-exp-year","cc-csc",d(525),d(606),d(478),d(651),d(532),d(490),d(615)]);function B(...t){const e=d;try{typeof localStorage!==e(656)&&localStorage.getItem(w)===e(505)&&console[e(627)](...t)}catch{}}function O(t){return"<"+function(t){const e=d,n=(t[e(477)]?.(D)??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"").toLowerCase()[e(514)]().split(/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&"password"===t[e(560)]?e(609):o.some(t=>t[e(640)](e(512)))?e(607):o[e(545)](t=>["name",e(563),e(501),e(602),e(542),e(660),e(523)][e(597)](t))?e(491):o.includes(e(594))?e(556):o[e(597)]("tel")?"Phone":o.some(t=>t[e(640)](e(606)))?e(496):o.includes(e(490))?e(489):o.some(t=>[e(653),e(534),e(539),"address-line3","address-level1",e(511),e(565),e(567),e(588),e(605),e(497)][e(597)](t))?e(573):o[e(597)](e(655))||o.includes(e(625))?e(543):t.getAttribute?.(N)?.[e(589)]()===e(546)?e(581):e(517)}(t)+">"}function P(t){const e=d;return t.hasAttribute(e(555))||t.getAttribute(N)?.[e(589)]()===e(576)}function C(t){return!P(t)&&(!!function(t){const e=d,n=t[e(477)](N);return""===n||n?.[e(589)]()===e(546)}(t)||!!function(t){const e=d;if(t instanceof HTMLInputElement){if(t.type===e(485))return!0;if(t[e(560)]===e(504))return!1;const n=t[e(477)]("role");if(n&&n[e(589)]()===e(635))return!1;if((t[e(626)]||"")[e(589)]()[e(514)]().split(/\s+/)[e(552)](Boolean)[e(545)](t=>H[e(621)](t)))return!0}if(t instanceof HTMLTextAreaElement&&(t[e(626)]||"")[e(589)]().trim().split(/\s+/)[e(552)](Boolean)[e(545)](t=>H[e(621)](t)))return!0;return!1}(t))}const U=()=>localStorage[d(515)](p)===d(618);function F(t){return e[d(476)](t)}function j(t,n){const o=d,i=localStorage.getItem(L),a=null===i?void 0:Number(i),r=Number.isFinite(n)?Number(n):"number"==typeof a&&Number[o(642)](a)?a:2592e3,c=window[o(666)][o(502)]===o(612);e[o(603)](o(659),t,{expires:r/86400,path:"/",sameSite:"Lax",...c&&{secure:!0}})}function z(){const t=d;e[t(637)](t(659),{path:"/"})}function R(){const t=d,e=F(t(659));if(!U())return e&&z(),void(u="");e?u=e:(u=crypto[t(644)](),j(u))}function _(){return R(),U()&&Boolean(u)&&function(){const t=d;return Boolean(localStorage[t(515)](x)?.[t(514)]()[t(620)])}()}function W(){return!_()||v}async function J(e){return m&&await m,m=(async()=>{const n=Z;try{const o=performance[n(584)](),i=performance[n(584)](),a=function(t){const e=d,n=t[e(553)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t.attributes)[e(549)](({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(487)]=C(t)?O(t):t.value,t[e(610)]&&n[e(569)](e(610),""),n[e(524)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(638)](t.attributes)[e(549)](({name:t,value:o})=>{n[e(569)](t,o)}),n.value=C(t)?O(t):t.value,t[e(610)]&&n.setAttribute(e(610),""),n[e(524)]):t[e(524)]}(e),r=performance[n(584)]();B("[Timing] serialize: "+(r-i).toFixed(2)+"ms");const c=e[n(533)](),s=performance.now(),l={left:window[n(503)],top:window[n(564)],right:window.scrollX+window[n(506)],bottom:window[n(564)]+window.innerHeight},u=await t(document[n(528)],{useCORS:!0,x:window[n(503)],y:window.scrollY,width:window[n(506)],height:window.innerHeight,scale:.6,logging:!1,onclone(t,e){const o=n,i=t.querySelectorAll("input, textarea");for(const t of i)if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("data-html2canvas-ignore")||t[o(477)](N)?.[o(589)]()===o(576))continue;let e=!1;const n=t[o(477)](N);if((""===n||n?.[o(589)]()===o(546))&&(e=!0),t[o(560)]===o(485)&&(e=!0),!e){const n=(t[o(477)](o(626))||"")[o(589)]().trim()[o(479)](/\s+/).filter(Boolean);if("search"===t[o(560)]||t.getAttribute("role")?.[o(589)]()===o(635))continue;n[o(545)](t=>H[o(621)](t))&&(e=!0)}e&&(t[o(487)]=O(t))}},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(P(t))return!0;const o=t[e(533)](),i={left:o.left+window[e(503)],top:o.top+window[e(564)],right:o[e(529)]+window[e(503)],bottom:o[e(587)]+window[e(564)]},a=100;if(i[e(529)]<l[e(574)]-a||i[e(574)]>l[e(529)]+a||i[e(587)]<l[e(577)]-a||i[e(577)]>l[e(587)]+a){const n=window.getComputedStyle(t),{position:o}=n;if(o===e(495)||o===e(527)){const t=500;return i.right<l[e(574)]-t||i[e(574)]>l.right+t||i[e(587)]<l.top-t||i[e(577)]>l.bottom+t}return!0}return!1}}),f=performance[n(584)]()-s;B(n(558)+f[n(519)](2)+"ms");const m=performance.now(),p=u[n(596)](n(622),.8),g=performance.now()-m;B(n(498)+g.toFixed(2)+"ms");const w=performance.now();return B("[Timing] capture-total: "+(w-o).toFixed(2)+"ms"),{html:a,bbox:{x:c.x,y:c.y,w:c[n(518)],h:c[n(520)]},img:p}}finally{m=void 0}})(),m}function q(){const t=d,e=localStorage[t(515)](x),n={"Content-Type":t(639)};return e&&(n[t(530)]=e),u&&(n["x-intent-sid"]=u),n}async function Y(t){const e=d,n=(localStorage[e(515)](I)??M)+e(591),o=localStorage[e(515)](x)??void 0,i=JSON[e(570)]({...t,clientId:o});try{if((await fetch(n,{method:"POST",headers:q(),body:i,keepalive:!0,credentials:e(526)})).ok)return}catch{}try{await async function(t){const e=d,n=(localStorage[e(515)](I)??M)+e(507);if(!(await fetch(n,{method:e(667),headers:q(),body:JSON[e(570)](t),keepalive:!0,credentials:e(526),cache:e(516)})).ok)throw new Error(e(650))}(t)}catch{}}async function X(t,e,n,o){const i=d;if(!_())return;const a={...e,localTime:(new Date)[i(630)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(a[i(487)]=C(n)?O(n):n.value);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===i(664)||t===i(657)||t===i(624)),u=Date[i(584)](),m=u-f>=0;let p=o;const g="click"===t||t===i(599)||t===i(509);l&&(g&&!p||!p&&m)&&(p=await J(n),f=u),p&&(r=p.html,c=p.bbox,s=p[i(645)]);const w=t===i(657)||t===i(624)||t===i(509),h={ts:Date.now(),event:t,props:a,html:w?"":r,bbox:c,img:s};await Y(h)}function Z(t,e){t-=475;return G()[t]}function G(){const t=["cc-exp-month","message","granted","lat","length","has","image/jpeg","focus","page-focus","organization-title","autocomplete","log","removeEventListener","hostname","toISOString","1069439oaNJMl","permissions","deviceGeoSent","min","searchbox","45370jsOqPh","remove","from","application/json","startsWith","title","isFinite","addEventListener","randomUUID","img","onLine","479955fUCJkz","altitude","hidden","pixel body fallback failed","bday-month",'input[type="button"]',"street-address","getCurrentPosition","organization","undefined","page-blur","cc-exp","intent_sid","cc-given-name","speed","code","referrer","scroll","entries","location","POST","intent:data-ip","pointerdown","heading","get","getAttribute","bday-day","split","intent:debug","207844nVfrBZ","nickname","username","INPUT","password","device","value","isSecureContext","Sex","sex","Name","intent:data-client-id","https://intent.callimacus.ai","push","fixed","Birthday","country-name","[Timing] jpeg-encoding: ","address-level1","closest","family-name","protocol","scrollX","search","enabled","innerWidth","/p.gif","data-intent-redact","pageview","hasFocus","address-level2","cc-","load","trim","getItem","no-store","Sensitive","width","toFixed","height","a[href]","cc-additional-name","cc-family-name","outerHTML","cc-type","omit","absolute","body","right","x-sl-access-token","687120qDRMsU","bday-year","getBoundingClientRect","address-line1",'[role="link"]',"data-intent-redact-label","cc-number","coords","address-line2","innerHeight","join","cc-name","Organization","keydown","some","mask","href","geolocation","forEach","tagName","blur","filter","cloneNode","UNKNOWN","data-html2canvas-ignore","Email","longitude","[Timing] html2canvas-pro: ","702636lxIjjD","type","intent","textContent","given-name","scrollY","address-level3","context","address-level4","querySelectorAll","setAttribute","stringify","lon","canSend","Address","left","PERMISSION_DENIED","ignore","top","max","visibilityState",'="mask"], [',"Redacted","__intent__sdk__initialized__","number","now","query","click","bottom","postal-code","toLowerCase","175512OiCRLe","/events","key","altitudeAccuracy","email","target","toDataURL","includes","button","input-submit","intent:data-sid-max-age","input, textarea","additional-name","set",'=""]',"country","bday","Credit card","intent:data-base-url","Password","disabled",'[role="button"]',"https:","latitude","name","webauthn"];return(G=function(){return t})()}function K(){const t=d;return localStorage[t(515)](g)===t(505)}async function V(t={}){const e=d;if(!_())return;const n=typeof t[e(619)]===e(583)&&"number"==typeof t[e(571)];if(n&&y)return;if(!n&&h)return;const o=localStorage[e(515)](E),i={context:await c()};o&&(i.ip=o);for(const[n,o]of Object[e(665)](t))i[n]=o;await X(e(566),i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?y=!0:h=!0}async function Q(){const t=d,e={canSend:_(),geoEnabled:K(),deviceGeoSent:y};if(!e[t(572)]||!e.geoEnabled||e[t(633)])return;if(!(t(548)in navigator))return;if(S)return;S=!0,v=!0;const n={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(584)]();try{await(navigator[t(632)]?.[t(585)]({name:t(548)}))}catch(t){}await new Promise(e=>{const o=t;let i=!1;const a=async(t,n,o)=>{const a=Z;i||(i=!0,Date[a(584)](),Number[a(642)](t)&&Number[a(642)](n)&&await V({lat:t,lon:n,source:a(486)}),S=!1,v=!1,T=!0,e())};navigator[o(548)][o(654)](t=>{const e=Z,n=t[e(538)];a(n[e(613)],n[e(557)],(n.accuracy,typeof n[e(648)]===e(583)&&n[e(648)],typeof n[e(593)]===e(583)&&n.altitudeAccuracy,typeof n[e(475)]===e(583)&&n[e(475)],typeof n[e(661)]===e(583)&&n.speed,t.timestamp,document[e(579)],document[e(510)]()))},t=>{const e=Z,n=t?.[e(662)];1===n?e(575):2===n||(3===n||e(554)),t?.[e(617)],navigator[e(646)],document[e(579)],document.hasFocus(),window[e(488)],location[e(502)],location[e(629)],a(void 0,void 0)},n)})}function $(){const t=d;if(b||!K()||y)return;b=!0;const e=()=>{const t=Z;window[t(628)](t(669),e,!0),window[t(628)](t(544),e,!0),Q()};window[t(643)](t(669),e,!0),window[t(643)](t(544),e,!0)}R();let tt=!document[d(649)]&&document[d(510)](),et=document[d(510)]();function nt(){const t=d;if(W())return;const e=!document.hidden&&document[t(510)]();e&&(et=!0),et||e?e!==tt&&(tt=e,X(e?"page-focus":t(657),{},document[t(528)])):tt=e}function ot(){const t=d;(function(){const t=globalThis;return!t[k]&&(Object.defineProperty(t,k,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(643)](t(513),()=>{const e=t;_()&&(V(),(window[e(488)]||"localhost"===location[e(629)])&&(K()&&$(),window.addEventListener(e(623),()=>{!y&&K()&&!S&&T&&Q()}),document[e(643)]("visibilitychange",()=>{!document.hidden&&!y&&K()&&!S&&T&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(592)]===p&&("granted"===localStorage[d(515)](p)?(h=!1,V(),K()&&$()):(h=!1,y=!1)),e[n(592)]===g&&(K()?$():y=!1)}),window[t(643)](t(513),()=>{const e=t;_()&&X(e(509),{url:window.location[e(547)],title:document[e(641)],ref:document[e(663)]},document[e(528)])}),addEventListener(t(669),function(t,e){let n=0;return(...o)=>{const i=Date[Z(584)]();i-n>=e&&(n=i,t(...o))}}(e=>{const n=t;if(W())return;const o=e[n(595)]instanceof Element?e[n(595)][n(500)](A):null;o instanceof HTMLElement&&(l=J(o))},50),{capture:!0,passive:!0}),addEventListener("click",async e=>{const n=t;if(W())return;if(!(e[n(595)]instanceof Element))return;const o=e[n(595)].closest(A);if(!(o instanceof HTMLElement))return;const i=function(t){const e=d;return t[e(477)]("aria-label")??t[e(641)]??t[e(562)]?.[e(514)]()??"<no visible label>"}(o);(async()=>{const t=n,e=l?await l:void 0;l=void 0,X(t(586),{tag:o[t(550)],label:i},o,e)})()},!0),addEventListener("keydown",e=>{const n=t;if(!W()&&"Enter"===e[n(592)]){const t=e[n(595)];if(t instanceof HTMLElement&&(t[n(550)]===n(484)||"TEXTAREA"===t[n(550)])){const e=t instanceof HTMLInputElement?t[n(614)]:void 0,o=t.id||void 0;X(n(599),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(623),t(551)].forEach(e=>{window[t(643)](e,nt)}),document[t(643)]("visibilitychange",nt),window[t(643)](t(664),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;W()||X("scroll",{scrollX:window[e(503)],scrollY:window[e(564)]},document.body)},250),{passive:!0}),window[t(561)]??={send(t,e){_()&&X(t,e,document.body)}})}function it(t,e){const n=at;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(306)?"granted":n(304):"disabled")}catch{}}function at(t,e){t-=300;return dt()[t]}function rt(t={}){const e=at;if(localStorage[e(318)](e(307),t.clientId??""),localStorage.setItem("intent:data-ip",t.ip??""),localStorage[e(318)]("intent:data-base-url",t.baseUrl??e(316)),"number"==typeof t.sidMaxAgeSeconds&&localStorage[e(318)]("intent:data-sid-max-age",String(t[e(310)])),it("intent:consent",t[e(325)]),it(e(323),t[e(300)]),it("intent:debug",t[e(319)]),t.consent){if(!F(e(302))){j(typeof crypto!==e(315)&&typeof crypto[e(321)]===e(311)?crypto[e(321)]():Date[e(305)]()+"-"+Math[e(324)](),t.sidMaxAgeSeconds)}}ot()}function ct(){return F(at(302))}function st(){R()}function dt(){const t=["geo","3382YmHEJZ","intent_sid","66svYNRT","enabled","now","intent:consent","intent:data-client-id","775461tOrDLJ","2087764rtyAay","sidMaxAgeSeconds","function","493780EkdJGO","1757790FDaZZq","59YoeCky","undefined","https://intent.callimacus.ai","3527720sgeJLU","setItem","debug","isFinite","randomUUID","5656869oBNEHB","intent:geo","random","consent"];return(dt=function(){return t})()}function lt(){z()}function ut(t){const e=at;Number[e(320)](t)&&localStorage[e(318)]("intent:data-sid-max-age",String(t));const n=F(e(302));n&&j(n,t)}!function(){const t=at,e=dt();for(;;)try{if(421215===-parseInt(t(314))/1*(-parseInt(t(301))/2)+-parseInt(t(308))/3+parseInt(t(309))/4+parseInt(t(313))/5+-parseInt(t(303))/6*(-parseInt(t(312))/7)+-parseInt(t(317))/8+-parseInt(t(322))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,st as ensureIntentSessionId,ct as getIntentSessionId,rt as initIntent,it as setFlag,ut as setIntentSessionMaxAge};
|