@solomei-ai/intent 1.6.0 → 1.6.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/README.md CHANGED
@@ -175,17 +175,24 @@ When consent is granted, the Intent SDK automatically collects the following dat
175
175
  The SDK **automatically redacts** the following sensitive information:
176
176
 
177
177
  - **Password fields** (`<input type="password">`)
178
- - **Form fields with sensitive autocomplete attributes**:
179
- - Names (`name`, `given-name`, `family-name`, `cc-name`)
178
+ - **Form fields with sensitive autocomplete attributes** (both `<input>` and `<textarea>` elements):
179
+ - Names (`name`, `given-name`, `additional-name`, `family-name`, `nickname`, `username`)
180
180
  - Email addresses (`email`)
181
181
  - Phone numbers (`tel`)
182
- - Addresses (`street-address`, `address-line1`, `postal-code`, `country`)
183
- - Credit card details (`cc-number`, `cc-exp`, `cc-csc`)
182
+ - Addresses:
183
+ - Street addresses (`street-address`, `address-line1`, `address-line2`, `address-line3`)
184
+ - Administrative levels (`address-level1`, `address-level2`, `address-level3`, `address-level4`)
185
+ - Postal and country (`postal-code`, `country`, `country-name`)
186
+ - Credit card details:
187
+ - Card numbers and security (`cc-number`, `cc-exp`, `cc-exp-month`, `cc-exp-year`, `cc-csc`, `cc-type`)
188
+ - Cardholder names (`cc-name`, `cc-given-name`, `cc-additional-name`, `cc-family-name`)
184
189
  - Birthday information (`bday`, `bday-day`, `bday-month`, `bday-year`)
185
190
  - Organization details (`organization`, `organization-title`)
186
- - Other sensitive fields (`sex`, `username`, `webauthn`)
191
+ - Other sensitive fields (`sex`, `webauthn`)
187
192
 
188
- Redacted fields are replaced with placeholder text like `<Password>`, `<Email>`, `<Credit card>`, etc., in both the HTML content and screenshots.
193
+ **Exception:** Search fields (`<input type="search">` or elements with `role="searchbox"`) are NOT redacted, even if they have sensitive autocomplete attributes, to preserve search functionality in captured events.
194
+
195
+ Redacted fields are replaced with placeholder text like `<Password>`, `<Email>`, `<Credit card>`, `<Name>`, `<Phone>`, `<Address>`, etc., in both the HTML content and screenshots.
189
196
 
190
197
  ### Data Transmission & Storage
191
198
 
@@ -224,9 +231,12 @@ Use the `data-intent-redact` attribute to mark elements for redaction:
224
231
 
225
232
  #### Option 1: Redact with default label
226
233
  ```html
227
- <!-- Element will be masked with a gray placeholder labeled "<Redacted>" -->
234
+ <!-- Element will be masked with a gray placeholder labeled "<Sensitive>" -->
228
235
  <div data-intent-redact>Sensitive content here</div>
229
236
  <input type="text" data-intent-redact />
237
+
238
+ <!-- Or explicitly use "mask" value for "<Redacted>" label -->
239
+ <div data-intent-redact="mask">Sensitive content</div>
230
240
  ```
231
241
 
232
242
  #### Option 2: Redact with custom label
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 o=i();return(n=function(t,e){return o[t-=488]})(t,e)}async function o(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(494)in t&&typeof t[e(494)]!==e(509)}(navigator)){const n=navigator[t(494)];n?.[t(585)]&&e.push(n[t(585)]),typeof n?.[t(584)]===t(540)&&e[t(525)]("~"+n[t(584)]+t(493)),"number"==typeof n?.[t(554)]&&e.push(n[t(554)]+" ms"),n?.[t(559)]&&e.push(t(559))}else{const a=function(t=20){const e=n,o=performance.getEntriesByType("navigation")[e(541)](t=>"navigation"===t[e(574)]),a=o?Math.max(0,o[e(519)]-o.requestStart):void 0,i=performance[e(605)]("resource").filter(t=>t[e(574)]===e(580));let r=0,c=0;for(const n of i.slice(0,Math[e(547)](0,t))){const t=n[e(561)]>0?n[e(561)]:n.transferSize>0?n[e(539)]:0,o=n.duration;t>0&&o>0&&Number[e(568)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(540)?s/1e3:void 0,rttMs:a}}();typeof a.downlinkMbps===t(540)&&e[t(525)]("~"+a[t(579)].toFixed(1)+" Mbps"),typeof a[t(576)]===t(540)&&e[t(525)]("TTFB ~"+Math.round(a[t(576)])+t(555)),o=t(581)}const a=performance[t(605)]("navigation")[t(541)](e=>e[t(574)]===t(595));if(a){const n=Math[t(547)](0,a[t(519)]-a[t(513)]);!e.some(e=>e[t(501)](t(548)))&&e[t(525)](t(512)+Math.round(n)+t(555))}return e[t(546)]?t(551)+e[t(517)](", ")+" ("+o+")":void 0}function a(){const t=n;if(!function(t){const e=n;return e(489)in t&&typeof t[e(489)]!==e(509)}(navigator))return;const e=navigator[t(489)],o=Array[t(593)](e[t(558)])?e[t(558)][t(497)](e=>e[t(491)]+" "+e.version)[t(517)](", "):void 0,a=e[t(529)]?e[t(529)]+(e.mobile?" (mobile)":""):void 0;return[o&&t(591)+o,a&&t(518)+a][t(502)](Boolean)[t(517)](t(521))||void 0}function i(){const t=["no SW","getBattery","DeviceOrientationEvent","undefined","hardwareConcurrency","x (avail ","TTFB ~","requestStart","getItem","function","Device geolocation: enabled","join","Platform: ","responseStart","User agent: "," | ","charging","fine","orientation","push","height","9kaMoka",", maxTouchPoints ","platform","Languages: ","language","°, γ ","intent:geo","type","not charging","403896LnBovO","7uDMyKM",", display-mode standalone: ","transferSize","number","find","Local time: ","reclined"," (UTC","upright","length","max","TTFB","enabled","innerHeight","Network: ","cookieEnabled","n/a","rtt"," ms","padStart","Referrer: ","brands","saveData","-bit)","encodedBodySize","CookiesEnabled: ","colorDepth","matches","gamma"," cores","width","isFinite","Tilt: ","abs","referrer","unknown","204SzipPG","entryType","serviceWorker","rttMs","deviceorientation","Language: ","downlinkMbps","resource","inferred","1032594kVZvwA","availWidth","downlink","effectiveType","setTimeout","(pointer: fine)","flat","DateTimeFormat","(display-mode: standalone)","UA brands: ","addEventListener","isArray","yes","navigation","onLine","583362rdsYJl","Pointer/Touch: ","userAgent","5785560tgLLzx","languages","1478270xJvZLc","maxTouchPoints","controller","getEntriesByType","doNotTrack","(pointer: coarse)","165145GTQTRu","userAgentData","Screen: ","brand","647374dbquIe"," Mbps","connection","round","beta","map","getTimezoneOffset","timeZone","SW-controlled","startsWith","filter","Viewport: ","removeEventListener","PWA: "];return(i=function(){return t})()}async function r(t=400){const e=n;if(e(508)in window&&window.isSecureContext)return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a=typeof t[e(496)]===e(540)?t.beta:void 0,c=typeof t[e(565)]===e(540)?t[e(565)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(504)](e(577),r);const s=function(t,e){const o=n,a=Math.abs(t),i=Math.abs(e);return o(a<15&&i<15?588:a>=60?545:543)}(a,c);o(e(569)+s+" (β "+Math[e(495)](a)+e(532)+Math[e(495)](c)+"°)")};window[a(586)](()=>{const t=a;i||(i=!0,window[t(504)](t(577),r),o(void 0))},t),window[a(592)](a(577),r,{passive:!0})})}async function c(){const t=n;var e;if("getBattery"in(e=navigator)&&"function"==typeof e[n(507)])try{const e=await navigator[t(507)](),n=Math.round(100*e.level);return"Battery: "+[(Number[t(568)](n)?n:0)+"%",e[t(522)]?"charging":t(535)][t(517)](", ")}catch{return}}async function s(){const t=n,e=(new(Intl[t(589)])).resolvedOptions()[t(499)],i=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(570)](t);return""+o+String(Math.floor(a/60))[e(556)](2,"0")+":"+String(a%60)[e(556)](2,"0")}((new Date)[t(498)]()),s=[];s[t(525)](t(578)+navigator[t(531)]),navigator[t(601)]?.length&&s.push(t(530)+navigator.languages[t(517)](", ")),s[t(525)](t(520)+navigator[t(599)]);const u=a();u&&s[t(525)](u),s[t(525)]("Timezone: "+e+t(544)+i+")"),s[t(525)](t(542)+(new Date).toString());const d=window.devicePixelRatio||1;s[t(525)](t(490)+screen[t(567)]+"x"+screen[t(526)]+" @"+d+t(511)+screen[t(583)]+"x"+screen.availHeight+", "+screen[t(563)]+t(560));const l=screen.orientation&&t(534)in screen[t(524)]?screen[t(524)][t(534)]:void 0;s.push(t(503)+window.innerWidth+"x"+window[t(550)]+(l?", orientation "+l:"")),s[t(525)]("CPU: "+navigator[t(510)]+t(566));const f=await o();f&&s[t(525)](f),s.push(function(){const t=n,e="function"==typeof matchMedia&&matchMedia(t(607))[t(564)],o="function"==typeof matchMedia&&matchMedia(t(587))[t(564)],a=e?"coarse":t(o?523:572),i=typeof navigator[t(603)]===t(540)?navigator[t(603)]:0;return t(598)+a+t(528)+i}());const m=await c();m&&s[t(525)](m),s[t(525)](t(562)+(navigator[t(552)]?t(594):"no")+"; DNT: "+(navigator[t(606)]??t(553))),s.push("Online: "+(navigator[t(596)]?t(594):"no")),document[t(571)]&&s.push(t(557)+document[t(571)]),s[t(525)](function(){const t=n,e=typeof matchMedia===t(515)&&matchMedia(t(590))[t(564)],o=Boolean(navigator[t(575)]?.[t(604)]);return t(505)+t(o?500:506)+t(538)+(e?t(594):"no")}());const p=await r();p&&s.push(p);const h=typeof localStorage!==t(509)&&localStorage[t(514)](t(533))===t(549);return s[t(525)](h?t(516):"Device geolocation: disabled"),s[t(517)](t(521))}!function(){const t=n,e=i();for(;;)try{if(874250===-parseInt(t(537))/1*(-parseInt(t(536))/2)+parseInt(t(597))/3+parseInt(t(573))/4*(-parseInt(t(488))/5)+parseInt(t(582))/6+-parseInt(t(492))/7+parseInt(t(600))/8+parseInt(t(527))/9*(parseInt(t(602))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=_;function d(){const t=["bday-day","role","textContent","readAsDataURL","webauthn","innerWidth","round","startsWith","email","defineProperty","cc-exp-month","setAttribute","116675GqLzjJ","removeEventListener","image/jpeg","length","intent:data-sid-max-age","organization","scrollX","POSITION_UNAVAILABLE","blur","30kSDquH","latitude","given-name","onerror","altitudeAccuracy","width","getCurrentPosition","click","address-level4","slice",'[role="link"]',"remove","from","querySelectorAll","country","right","Password",'input[type="submit"]',"getItem","hasFocus","localhost","longitude","password","html","tagName","font","Credit card","autocomplete","45688SpRPvm","intent_sid","closest","speed","family-name","forEach","floor","Sensitive","now","globalAlpha","canvas","split","includes","TIMEOUT","toLowerCase","POST","street-address","#9ca3af","innerHeight","bbox","Redacted","visibilityState","center","tel","hostname","protocol","#e5e7eb","save","intent:consent","onLine","strokeStyle","name","timestamp","value","isFinite","button","function","heading","scrollY","title","drawImage","coords","load","img","#374151","cc-number","Sex","data-intent-redact","restore","onload","address-line1","address-line3","body","pageview","x-intent-sid","pixel body fallback failed","randomUUID","page-focus","outerHTML","hidden","postal-code","host","min","Email","Lax","key","max","sex","trim","textAlign","filter","90320FNlADh","geolocation","bday-year","referrer","bday","__intent__sdk__initialized__","cc-given-name","133ZbdEXn","enabled","middle","Phone","granted","x-sl-access-token","entries","cc-type","204212OGVIwJ","country-name","cloneNode","additional-name",'[role="button"]',"address-level1","deviceGeoSent","left","canSend","110157WWiGqu","set","getContext","a[href]","number","hasAttribute","height",'=""]',"Enter","[onclick]","join","aria-label","error","push","Organization","address-level3","pointerdown","input-submit","undefined","intent:geo","addEventListener","lon","FileReader error","page-blur","target","123657jjZGMV","fillStyle","30aAxipk","bottom","Unexpected FileReader result type","/events","https:","ignore","https://intent.callimacus.ai","secure","get","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","address-line2","application/json","disabled","cc-name","isSecureContext","clearTimeout","address-level2","120789YaZNaa","Address","label","attributes","intent:data-ip","permissions","scroll","createElement","getAttribute","some","toISOString","searchbox","top","location","altitude","omit","message","fillRect","input, textarea","cc-family-name","mask","visibilitychange","has","organization-title","storage","toDataURL","nickname","type","<no visible label>"];return(d=function(){return t})()}!function(){const t=_,e=d();for(;;)try{if(111474===parseInt(t(443))/1+parseInt(t(419))/2+-parseInt(t(468))/3+-parseInt(t(434))/4+-parseInt(t(311))/5*(-parseInt(t(320))/6)+-parseInt(t(426))/7*(parseInt(t(348))/8)+-parseInt(t(487))/9*(-parseInt(t(470))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,f="",m=0;const p=u(376),h=u(462);let g=!1,w=!1,y=!1,v=!1,b=!1,M=!1;const x="intent:data-client-id",S=u(491),I="intent:data-base-url",T=u(476),E=u(315),L=u(424),A=[u(383),u(446),"a",u(337),'input[type="button"]',u(438),u(330),u(452)][u(453)](","),k=u(395),D=new Set(["name",u(322),u(437),u(352),u(296),"username","email",u(371),u(316),u(293),u(364),u(398),u(480),"address-line3","address-level1",u(486),"address-level3",u(328),"country",u(435),u(408),"cc-name",u(425),"cc-additional-name",u(289),u(393),"cc-exp",u(309),"cc-exp-year","cc-csc",u(433),u(423),u(299),"bday-month",u(421),u(415),u(303)]);function H(t){return"<"+N(t)+">"}function N(t){const e=u,n=(t.getAttribute?.("data-intent-redact-label")??"")[e(416)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(347)]||"")[e(362)]()[e(416)]().split(/\s+/)[e(418)](Boolean):[];return t instanceof HTMLInputElement&&t[e(297)]===e(342)?e(336):o[e(496)](t=>t[e(306)]("cc-"))?e(346):o[e(496)](t=>["name","given-name",e(352),e(437),e(483),e(425),e(289)][e(360)](t))?"Name":o[e(360)](e(307))?e(411):o.includes("tel")?e(429):o[e(496)](t=>t[e(306)](e(423)))?"Birthday":o[e(360)]("sex")?e(394):o[e(496)](t=>[e(364),"address-line1",e(480),e(399),e(439),e(486),e(458),e(328),e(408),e(334),"country-name"][e(360)](t))?e(488):o.includes(e(316))||o.includes("organization-title")?e(457):t[e(495)]?.(k)?.[e(362)]()===e(290)?e(368):e(355)}function B(t){const e=u;return t[e(448)]("data-html2canvas-ignore")||t[e(495)](k)?.[e(362)]()===e(475)}function P(t){const e=u,n=t[e(495)](k);return""===n||"mask"===n?.[e(362)]()}function U(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(297)]===e(342))return!0;if("search"===t[e(297)])return!1;const n=t[e(495)](e(300));if(n&&n[e(362)]()===e(498))return!1;if((t.autocomplete||"").toLowerCase()[e(416)]()[e(359)](/\s+/)[e(418)](Boolean)[e(496)](t=>D[e(292)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"")[e(362)]()[e(416)]()[e(359)](/\s+/)[e(418)](Boolean)[e(496)](t=>D[e(292)](t)))return!0}return!1}function C(t){return!B(t)&&(!!P(t)||!!U(t))}function O(){const t=u,e=[],n=t=>{const e=_,n=t.getBoundingClientRect();if(n.width<=0||n[e(449)]<=0)return;const o=Math[e(414)](0,n[e(441)]),a=Math[e(414)](0,n[e(499)]),i=Math[e(414)](0,Math[e(410)](n[e(335)],window[e(304)])-o),r=Math[e(414)](0,Math[e(410)](n[e(471)],window[e(366)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(333)]("["+k+'="mask"], ['+k+t(450))[t(353)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||a(368);e[a(456)]({...i,label:r})});return document[t(333)](t(288)).forEach(t=>{if(B(o=t)||!P(o)&&!U(o))return;var o;const a=n(t);if(!a)return;const i=N(t);e.push({...a,label:i})}),e}const R=()=>localStorage[u(338)](p)===u(430);function F(t){return e[u(478)](t)}function z(t,n){const o=u,a=localStorage.getItem(E),i=null===a?void 0:Number(a),r=Number[o(382)](n)?Number(n):typeof i===o(447)&&Number[o(382)](i)?i:86400,c=window[o(500)][o(373)]===o(474);e[o(444)](o(349),t,{expires:r/86400,path:"/",sameSite:o(412),...c&&{secure:!0}})}function W(){const t=u;e[t(331)](t(349),{path:"/"})}function _(t,e){const n=d();return(_=function(t,e){return n[t-=287]})(t,e)}function j(){const t=u,e=F("intent_sid");if(!R())return e&&W(),void(f="");if(e)return void(f=e);const n=typeof crypto!==t(461)&&typeof crypto[t(404)]===t(384)?crypto[t(404)]():Date[t(356)]()+"-"+Math.random();f=n,z(f)}function G(){return j(),R()&&Boolean(f)&&(()=>{const t=u,e=localStorage[t(338)](x);return"string"==typeof e&&e[t(416)]()[t(314)]>0})()}function q(){return!G()||y}async function Z(e){const n=u,o=function(t){const e=u,n=t[e(436)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(490)])[e(353)](({name:t,value:o})=>{n[e(310)](t,o)}),n[e(381)]=C(t)?H(t):t[e(381)],t[e(482)]&&n[e(310)](e(482),""),n[e(406)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(332)](t[e(490)])[e(353)](({name:t,value:o})=>{n[e(310)](t,o)}),n[e(381)]=C(t)?H(t):t[e(381)],t.disabled&&n[e(310)](e(482),""),n[e(406)]):t[e(406)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(317)],y:window[n(386)],width:window[n(304)],height:window[n(366)],scale:1},ignoreElements:t=>t instanceof Element&&B(t)},r=await t(document.body,i),c=r[n(325)],s=r[n(449)],d=Math[n(414)](c,s),l=.8*Math.max(window[n(304)],window.innerHeight),f=Math[n(410)](1,l/d),m=12/(a[n(449)]||1),p=Math[n(410)](1,Math[n(414)](f,m)),h=Math[n(305)](c*p),g=Math[n(305)](s*p),w=document[n(494)](n(358));w[n(325)]=h,w[n(449)]=g;const y=w[n(445)]("2d");y[n(388)](r,0,0,c,s,0,0,h,g);const v=O();if(v[n(314)]){y[n(375)](),y[n(357)]=1;for(const t of v){const e=Math[n(305)](t.x*p),o=Math[n(305)](t.y*p),a=Math.round(t.w*p),i=Math.round(t.h*p);y[n(469)]=n(374),y[n(287)](e,o,a,i),y[n(378)]=n(365),y.lineWidth=Math.max(1,Math[n(354)](.02*Math[n(410)](a,i))),y.strokeRect(e,o,a,i);const r=Math[n(414)](10,Math.min(22,Math[n(354)](.35*i)));y[n(345)]=r+n(479),y[n(469)]=n(392),y[n(417)]=n(370),y.textBaseline=n(428);const c="<"+(t[n(489)]?.[n(416)]()[n(314)]?t[n(489)]:n(355))+">";y.fillText(c,e+a/2,o+i/2,a-6)}y[n(396)]()}const b=w[n(295)](n(313),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(325)],h:a[n(449)]},img:b}}function J(){const t=u,e=localStorage[t(338)](x),n={"Content-Type":t(481)};return e&&(n[t(431)]=e),f&&(n[t(402)]=f),n}async function V(t,e){const n=u,o=(localStorage[n(338)](I)??T)+n(473),a=localStorage[n(338)](x)??void 0,i=JSON.stringify({...t,clientId:a});try{if((await fetch(o,{method:n(363),headers:J(),body:i,keepalive:e,credentials:n(502)})).ok)return}catch{}try{await async function(t,e=!1){const n=u,o=(localStorage[n(338)](I)??T)+"/p.gif";if(!(await fetch(o,{method:n(363),headers:J(),body:JSON.stringify(t),keepalive:e,credentials:n(502),cache:"no-store"})).ok)throw new Error(n(403))}(t,e)}catch{}}async function X(t,e,n,o){const a=u;if(!G())return;const i={...e,localTime:(new Date)[a(497)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(381)]=C(n)?H(n):n[a(381)]);let r="",c={x:0,y:0,w:0,h:0},s="";const d=!("scroll"===t||"page-blur"===t||t===a(405)),l=Date[a(356)](),f=l-m>=5e3;let p=o;const h=t===a(327)||t===a(460)||t===a(401);d&&!p&&(h||f)&&(p=await Z(n),m=l),p&&(r=p[a(343)],c=p[a(367)],s=p[a(391)]);const g=t===a(466)||t===a(405)||t===a(401),w={ts:Date[a(356)](),event:t,props:i,html:g?"":r,bbox:c,img:s},y=document[a(369)]===a(407)||t===a(466);await V(w,y)}function Y(){const t=u;return localStorage[t(338)](h)===t(427)}async function K(t={}){const e=u;if(!G())return;const n=typeof t.lat===e(447)&&typeof t[e(464)]===e(447);if(n&&w)return;if(!n&&g)return;const o=localStorage[e(338)](S),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(432)](t))a[n]=o;await X("context",a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?w=!0:g=!0}async function Q(){const t=u,e={canSend:G(),geoEnabled:Y(),deviceGeoSent:w};if(!e[t(442)]||!e.geoEnabled||e[t(440)])return;const n={secure:window[t(484)],proto:location[t(373)],host:location[t(372)]};if(n[t(477)]||t(409),!(t(420)in navigator))return;if(b)return;b=!0,y=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator[t(492)]?.query({name:t(420)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=_;a||(a=!0,Number[i(382)](t)&&Number[i(382)](n)&&await K({lat:t,lon:n,source:"device"}),b=!1,y=!1,M=!0,e())};navigator[n(420)][n(326)](t=>{const e=_,n=t[e(389)];i(n[e(321)],n[e(341)],(n.accuracy,typeof n[e(501)]===e(447)&&n[e(501)],typeof n.altitudeAccuracy===e(447)&&n[e(324)],typeof n[e(385)]===e(447)&&n[e(385)],typeof n[e(351)]===e(447)&&n.speed,t[e(380)],document[e(369)],document.hasFocus()))},t=>{const e=_,n=t?.code;1===n||(2===n?e(318):3!==n||e(361)),t?.[e(503)],navigator[e(377)],document[e(369)],document[e(339)](),location[e(373)],location[e(372)],i(void 0,void 0)},o)})}function $(){const t=u;if(v||!Y()||w)return;v=!0;const e=()=>{const t=_;window[t(312)](t(459),e,!0),window.removeEventListener("keydown",e,!0),Q()};window[t(463)]("pointerdown",e,!0),window.addEventListener("keydown",e,!0)}j();let tt=!document[u(407)]&&document[u(339)](),et=document[u(339)]();const nt=()=>{const t=u;if(q())return;const e=!document[t(407)]&&document[t(339)]();e&&(et=!0),et||e?e!==tt&&(tt=e,X(t(e?405:466),{},document[t(400)])):tt=e};function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[L]&&(Object[t(308)](e,L,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(463)](t(390),()=>{const e=t;G()&&(K(),(window.isSecureContext||location[e(372)]===e(340))&&(Y()&&$(),window[e(463)]("focus",()=>{!w&&Y()&&!b&&M&&Q()}),document[e(463)](e(291),()=>{!document.hidden&&!w&&Y()&&!b&&M&&Q()})))}),window.addEventListener(t(294),e=>{const n=t;e[n(413)]===p&&("granted"===localStorage[u(338)](p)?(g=!1,K(),Y()&&$()):(g=!1,w=!1)),e[n(413)]===h&&(Y()?$():w=!1)}),window.addEventListener(t(390),()=>{const e=t;G()&&X(e(401),{url:window.location.href,title:document[e(387)],ref:document[e(422)]},document[e(400)])}),addEventListener(t(459),function(t,e){let n=0;return(...o)=>{const a=Date[_(356)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(q())return;const o=e.target instanceof Element?e[n(467)][n(350)](A):null;o instanceof HTMLElement&&(l=Z(o))},50),{capture:!0,passive:!0}),addEventListener(t(327),async e=>{const n=t;if(q())return;const o=e[n(467)]instanceof Element?e[n(467)][n(350)](A):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=u;return t[e(495)](e(454))??t.title??t[e(301)]?.trim()??e(298)}(o),i=l?await l:void 0;l=void 0,await X("click",{tag:o[n(344)],label:a},o,i)},!0),addEventListener("keydown",e=>{const n=t;if(!q()&&e[n(413)]===n(451)){const t=e.target;if(t instanceof HTMLElement&&("INPUT"===t[n(344)]||"TEXTAREA"===t[n(344)])){const e=t instanceof HTMLInputElement?t[n(379)]:void 0,o=t.id||void 0;X(n(460),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),["focus",t(319)][t(353)](e=>{window[t(463)](e,nt)}),document[t(463)](t(291),nt),window[t(463)](t(493),function(t,e){let n;return(...o)=>{void 0!==n&&window[_(485)](n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;q()||X("scroll",{scrollX:window[e(317)],scrollY:window.scrollY},document[e(400)])},250),{passive:!0}),window.intent??={send(t,e){G()&&X(t,e,document.body)}})}function at(t,e){const n=st;try{if(void 0===e)return;localStorage[n(351)](t,n(e?"intent:consent"===t?359:360:343))}catch{}}function it(t={}){const e=st;if(localStorage[e(351)]("intent:data-client-id",t[e(366)]??""),localStorage[e(351)](e(345),t.ip??""),localStorage[e(351)](e(357),t[e(372)]??e(368)),typeof t[e(355)]===e(371)&&localStorage[e(351)]("intent:data-sid-max-age",String(t[e(355)])),at(e(353),t.consent),at(e(354),t[e(346)]),t[e(370)]){if(!F("intent_sid")){z(typeof crypto!==e(361)&&typeof crypto[e(358)]===e(352)?crypto.randomUUID():Date.now()+"-"+Math.random(),t[e(355)])}}ot()}function rt(){return F(st(367))}function ct(){j()}function st(t,e){const n=lt();return(st=function(t,e){return n[t-=343]})(t,e)}function ut(){W()}function dt(t){const e=st;Number[e(347)](t)&&localStorage[e(351)]("intent:data-sid-max-age",String(t));const n=F(e(367));n&&z(n,t)}function lt(){const t=["275890MIPsIG","disabled","1370322SdSUAp","intent:data-ip","geo","isFinite","14EYXDFe","16AjbVhO","72SdbPLy","setItem","function","intent:consent","intent:geo","sidMaxAgeSeconds","536525vvEvkj","intent:data-base-url","randomUUID","granted","enabled","undefined","15ecBtCW","108136GUopuC","737954sAidAT","218896ARvTFw","clientId","intent_sid","https://intent.callimacus.ai","54453LXuLaZ","consent","number","baseUrl"];return(lt=function(){return t})()}!function(){const t=st,e=lt();for(;;)try{if(299645===parseInt(t(363))/1+parseInt(t(348))/2*(-parseInt(t(369))/3)+parseInt(t(365))/4*(parseInt(t(362))/5)+-parseInt(t(344))/6+parseInt(t(364))/7*(parseInt(t(349))/8)+parseInt(t(350))/9*(parseInt(t(373))/10)+-parseInt(t(356))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{ut as clearIntentSessionId,ct as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,dt as setIntentSessionMaxAge};
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};