@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{3dAvatarProvider-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
- package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
- package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
- package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
- package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
- package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
- package/dist/ae-signature.d.ts +2 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
- package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
- package/dist/authentication.d.ts +2 -19
- package/dist/authentication.esm.js +3 -34
- package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
- package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
- package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
- package/dist/camera.d.ts +1 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
- package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
- package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
- package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
- package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/cpf-ocr.d.ts +1 -5
- package/dist/cpf-ocr.esm.js +2 -8
- package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
- package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
- package/dist/cross-document-data-match.d.ts +1 -5
- package/dist/cross-document-data-match.esm.js +2 -8
- package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
- package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
- package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
- package/dist/deepsightService-CR-CYdka.d.ts +218 -0
- package/dist/device.d.ts +0 -1
- package/dist/device.esm.js +5 -10
- package/dist/document-capture.d.ts +1 -6
- package/dist/document-capture.esm.js +3 -16
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
- package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
- package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
- package/dist/dynamic-forms.d.ts +1 -4
- package/dist/dynamic-forms.esm.js +3 -10
- package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
- package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
- package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
- package/dist/ekyb.d.ts +4 -11
- package/dist/ekyb.esm.js +3 -20
- package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
- package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
- package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
- package/dist/ekyc.d.ts +2 -7
- package/dist/ekyc.esm.js +3 -11
- package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
- package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
- package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
- package/dist/electronic-signature.d.ts +2 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
- package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
- package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
- package/dist/events.d.ts +1 -9
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +30 -42
- package/dist/extensibility.esm.js +29 -87
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +1 -5
- package/dist/face-match.esm.js +3 -8
- package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
- package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
- package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
- package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
- package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
- package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
- package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +13 -19
- package/dist/flow.esm.js +109 -34
- package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
- package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
- package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
- package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
- package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
- package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
- package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +1 -5
- package/dist/id-ocr.esm.js +3 -9
- package/dist/id-verification.d.ts +1 -4
- package/dist/id-verification.esm.js +3 -8
- package/dist/id.d.ts +105 -18
- package/dist/id.esm.js +40 -50
- package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
- package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
- package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
- package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
- package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
- package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
- package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
- package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
- package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
- package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
- package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
- package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
- package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +1 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
- package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
- package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
- package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
- package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -72
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
- package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
- package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
- package/dist/qe-signature.d.ts +2 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
- package/dist/redirect-to-mobile.d.ts +1 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
- package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
- package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
- package/dist/selfie.d.ts +7 -20
- package/dist/selfie.esm.js +40 -46
- package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
- package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
- package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
- package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
- package/dist/session-CQ2x2aLl.esm.js +1 -0
- package/dist/session.d.ts +2 -9
- package/dist/session.esm.js +153 -15
- package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
- package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
- package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
- package/dist/signature.d.ts +2 -6
- package/dist/signature.esm.js +6 -9
- package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
- package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
- package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +10 -15
- package/dist/video-selfie.esm.js +114 -106
- package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +3 -15
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -3
- package/dist/watchlist.esm.js +11 -10
- package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
- package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
- package/dist/workflow.d.ts +124 -146
- package/dist/workflow.esm.js +75 -80
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +2 -2
- package/dist/Actor-CdjYVucI.d.ts +0 -2
- package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
- package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
- package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
- package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
- package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
- package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
- package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
- package/dist/canvas-COIxuirO.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/deepsightLoader-BppeThau.esm.js +0 -67
- package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
- package/dist/http-C3Pq6njG.esm.js +0 -0
- package/dist/index-BD6ZVw2f.d.ts +0 -93
- package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
- package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
- package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
- package/dist/session--C2lbjK5.esm.js +0 -152
- package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
- package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
- /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
- /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
|
@@ -0,0 +1,1801 @@
|
|
|
1
|
+
import { r as getToken, s as setToken, t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
+
import { h as getAnalyticsBatcher, m as addEvent } from "./events-Dy8PyVO5.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-Bu6bL_CX.esm.js";
|
|
5
|
+
import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
6
|
+
import { r as isIOS } from "./platform-wmV7oTAJ.esm.js";
|
|
7
|
+
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
8
|
+
import { i as linkSessionWithTRI, r as isTRIStarted } from "./tri-N-xlKhZK.esm.js";
|
|
9
|
+
//#region ../infra/src/providers/browser/BrowserEnvironmentProvider.ts
|
|
10
|
+
var BrowserEnvironmentProvider = class {
|
|
11
|
+
getScreenDimensions() {
|
|
12
|
+
if (typeof screen === "undefined") return {
|
|
13
|
+
width: 0,
|
|
14
|
+
height: 0
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
width: screen.width,
|
|
18
|
+
height: screen.height
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
generateCanvasFingerprint() {
|
|
22
|
+
try {
|
|
23
|
+
if (typeof document === "undefined") return "";
|
|
24
|
+
const canvas = document.createElement("canvas");
|
|
25
|
+
const ctx = canvas.getContext("2d");
|
|
26
|
+
if (!ctx) return "";
|
|
27
|
+
ctx.textBaseline = "top";
|
|
28
|
+
ctx.font = "14px Arial";
|
|
29
|
+
ctx.fillText("fingerprint", 2, 2);
|
|
30
|
+
return canvas.toDataURL().slice(-50);
|
|
31
|
+
} catch {
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
getWebGLRenderer() {
|
|
36
|
+
try {
|
|
37
|
+
if (typeof document === "undefined") return "";
|
|
38
|
+
const canvas = document.createElement("canvas");
|
|
39
|
+
const gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
|
|
40
|
+
if (!gl) return "";
|
|
41
|
+
const debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
|
|
42
|
+
if (!debugInfo) return "";
|
|
43
|
+
return gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) || "";
|
|
44
|
+
} catch {
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
getWindowProperty(prop) {
|
|
49
|
+
if (typeof window === "undefined") return;
|
|
50
|
+
return window[prop];
|
|
51
|
+
}
|
|
52
|
+
getNavigatorProperty(prop) {
|
|
53
|
+
if (typeof navigator === "undefined") return;
|
|
54
|
+
return navigator[prop];
|
|
55
|
+
}
|
|
56
|
+
getNavigatorPrefixes() {
|
|
57
|
+
if (typeof navigator === "undefined") return {
|
|
58
|
+
webkit: false,
|
|
59
|
+
moz: false,
|
|
60
|
+
o: false,
|
|
61
|
+
ms: false
|
|
62
|
+
};
|
|
63
|
+
const nav = navigator;
|
|
64
|
+
return {
|
|
65
|
+
webkit: nav.webkitGetUserMedia !== void 0,
|
|
66
|
+
moz: nav.mozGetUserMedia !== void 0,
|
|
67
|
+
o: nav.oGetUserMedia !== void 0,
|
|
68
|
+
ms: nav.msGetUserMedia !== void 0
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
getMaxTouchPoints() {
|
|
72
|
+
if (typeof navigator === "undefined") return 0;
|
|
73
|
+
return navigator.maxTouchPoints;
|
|
74
|
+
}
|
|
75
|
+
hasOnTouchStart() {
|
|
76
|
+
if (typeof window !== "undefined" && "ontouchstart" in window) return true;
|
|
77
|
+
if (typeof document !== "undefined") return "ontouchstart" in document.documentElement;
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
getNavigatorProductSub() {
|
|
81
|
+
if (typeof navigator === "undefined") return;
|
|
82
|
+
return navigator.productSub;
|
|
83
|
+
}
|
|
84
|
+
getEvalToStringLength() {
|
|
85
|
+
return eval.toString().length;
|
|
86
|
+
}
|
|
87
|
+
tryFirefoxToSource() {
|
|
88
|
+
try {
|
|
89
|
+
throw "a";
|
|
90
|
+
} catch (err) {
|
|
91
|
+
try {
|
|
92
|
+
err.toSource();
|
|
93
|
+
return true;
|
|
94
|
+
} catch {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async fetchJson(url, timeoutMs = 3e3) {
|
|
100
|
+
try {
|
|
101
|
+
if (typeof fetch === "undefined") return null;
|
|
102
|
+
const controller = new AbortController();
|
|
103
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
104
|
+
const response = await fetch(url, { signal: controller.signal });
|
|
105
|
+
clearTimeout(timeoutId);
|
|
106
|
+
return await response.json();
|
|
107
|
+
} catch {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async enumerateVideoDeviceLabels() {
|
|
112
|
+
try {
|
|
113
|
+
if (typeof navigator === "undefined" || !navigator.mediaDevices?.enumerateDevices) return [];
|
|
114
|
+
return (await navigator.mediaDevices.enumerateDevices()).filter((device) => device.kind === "videoinput").map((device) => device.label);
|
|
115
|
+
} catch {
|
|
116
|
+
return [];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
getTimestamp() {
|
|
120
|
+
return Date.now();
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region ../infra/src/providers/browser/BrowserInfoProvider.ts
|
|
125
|
+
var BrowserInfoProvider = class {
|
|
126
|
+
checkWebRtcSupport() {
|
|
127
|
+
if (typeof window === "undefined") return false;
|
|
128
|
+
const hasRTCPeerConnection = "RTCPeerConnection" in window || "webkitRTCPeerConnection" in window || "mozRTCPeerConnection" in window;
|
|
129
|
+
const hasGetUserMedia = typeof navigator !== "undefined" && navigator.mediaDevices?.getUserMedia !== void 0;
|
|
130
|
+
return hasRTCPeerConnection && hasGetUserMedia;
|
|
131
|
+
}
|
|
132
|
+
getBrowserInfo() {
|
|
133
|
+
const userAgent = typeof navigator !== "undefined" ? navigator.userAgent : "";
|
|
134
|
+
const result = new UAParser(userAgent).getResult();
|
|
135
|
+
return {
|
|
136
|
+
userAgent,
|
|
137
|
+
isWebRtcSupported: this.checkWebRtcSupport(),
|
|
138
|
+
browser: {
|
|
139
|
+
name: result.browser.name,
|
|
140
|
+
version: result.browser.version
|
|
141
|
+
},
|
|
142
|
+
os: {
|
|
143
|
+
name: result.os.name,
|
|
144
|
+
version: result.os.version
|
|
145
|
+
},
|
|
146
|
+
device: {
|
|
147
|
+
model: result.device.model,
|
|
148
|
+
type: result.device.type,
|
|
149
|
+
vendor: result.device.vendor
|
|
150
|
+
},
|
|
151
|
+
engine: {
|
|
152
|
+
name: result.engine.name,
|
|
153
|
+
version: result.engine.version
|
|
154
|
+
},
|
|
155
|
+
cpu: { architecture: result.cpu.architecture }
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region ../infra/src/device/getDeviceData.ts
|
|
161
|
+
const HIGH_ENTROPY_HINTS = /* @__PURE__ */ new Set([
|
|
162
|
+
"model",
|
|
163
|
+
"platformVersion",
|
|
164
|
+
"fullVersionList",
|
|
165
|
+
"brands",
|
|
166
|
+
"platform"
|
|
167
|
+
]);
|
|
168
|
+
function getFallbackDeviceInfo() {
|
|
169
|
+
const parsed = getParsedUserAgent();
|
|
170
|
+
return {
|
|
171
|
+
device: { model: parsed.device.model },
|
|
172
|
+
os: {
|
|
173
|
+
name: parsed.os.name,
|
|
174
|
+
version: parsed.os.version
|
|
175
|
+
},
|
|
176
|
+
browser: {
|
|
177
|
+
name: parsed.browser.name,
|
|
178
|
+
version: parsed.browser.version
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function sanitizeString(value) {
|
|
183
|
+
return value?.trim() || void 0;
|
|
184
|
+
}
|
|
185
|
+
function extractPrimaryBrandInfo(fullVersionList, brands) {
|
|
186
|
+
const primaryBrand = fullVersionList?.[0] || brands?.[0];
|
|
187
|
+
return {
|
|
188
|
+
name: sanitizeString(primaryBrand?.brand),
|
|
189
|
+
version: sanitizeString(primaryBrand?.version)
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
async function getHighEntropyDeviceInfo(userAgentData) {
|
|
193
|
+
const highEntropyValues = await userAgentData.getHighEntropyValues(Array.from(HIGH_ENTROPY_HINTS));
|
|
194
|
+
const { name: browserName, version: browserVersion } = extractPrimaryBrandInfo(highEntropyValues.fullVersionList, userAgentData.brands);
|
|
195
|
+
return {
|
|
196
|
+
device: { model: sanitizeString(highEntropyValues.model) },
|
|
197
|
+
os: {
|
|
198
|
+
name: sanitizeString(highEntropyValues.platform),
|
|
199
|
+
version: sanitizeString(highEntropyValues.platformVersion)
|
|
200
|
+
},
|
|
201
|
+
browser: {
|
|
202
|
+
name: browserName,
|
|
203
|
+
version: browserVersion
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
const checkForUnbrandedBrowser = (browser) => {
|
|
208
|
+
const userAgent = typeof navigator !== "undefined" ? navigator.userAgent : "";
|
|
209
|
+
const fallback = getFallbackDeviceInfo();
|
|
210
|
+
if (!userAgent) return browser;
|
|
211
|
+
try {
|
|
212
|
+
return {
|
|
213
|
+
...browser,
|
|
214
|
+
name: fallback.browser.name,
|
|
215
|
+
version: fallback.browser.version
|
|
216
|
+
};
|
|
217
|
+
} catch {
|
|
218
|
+
return {
|
|
219
|
+
...browser,
|
|
220
|
+
name: "Unknown",
|
|
221
|
+
version: "Unknown"
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
function mergeDeviceInfo(fallback, enhanced) {
|
|
226
|
+
return {
|
|
227
|
+
device: { model: enhanced.device?.model || fallback.device.model },
|
|
228
|
+
os: {
|
|
229
|
+
name: enhanced.os?.name || fallback.os.name,
|
|
230
|
+
version: enhanced.os?.version || fallback.os.version
|
|
231
|
+
},
|
|
232
|
+
browser: checkForUnbrandedBrowser({
|
|
233
|
+
name: enhanced.browser?.name || fallback.browser.name,
|
|
234
|
+
version: enhanced.browser?.version || fallback.browser.version
|
|
235
|
+
})
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
function isUserAgentClientHintsSupported(navigator) {
|
|
239
|
+
return Boolean(navigator.userAgentData?.getHighEntropyValues && typeof navigator.userAgentData.getHighEntropyValues === "function");
|
|
240
|
+
}
|
|
241
|
+
async function getDeviceFingerprintInfo() {
|
|
242
|
+
if (typeof navigator === "undefined") return {
|
|
243
|
+
device: {},
|
|
244
|
+
os: {},
|
|
245
|
+
browser: {}
|
|
246
|
+
};
|
|
247
|
+
const customNavigator = navigator;
|
|
248
|
+
const fallbackInfo = getFallbackDeviceInfo();
|
|
249
|
+
if (!isUserAgentClientHintsSupported(customNavigator)) return fallbackInfo;
|
|
250
|
+
try {
|
|
251
|
+
return mergeDeviceInfo(fallbackInfo, await getHighEntropyDeviceInfo(customNavigator.userAgentData));
|
|
252
|
+
} catch {
|
|
253
|
+
return fallbackInfo;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region ../../node_modules/.pnpm/@thumbmarkjs+thumbmarkjs@1.6.4/node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
|
|
258
|
+
const e = 2592e5;
|
|
259
|
+
const t = "thumbmark";
|
|
260
|
+
const n = "https://api.thumbmarkjs.com";
|
|
261
|
+
const o = {
|
|
262
|
+
exclude: [],
|
|
263
|
+
include: [],
|
|
264
|
+
stabilize: ["private", "iframe"],
|
|
265
|
+
logging: !0,
|
|
266
|
+
timeout: 5e3,
|
|
267
|
+
cache_api_call: !0,
|
|
268
|
+
cache_lifetime_in_ms: 0,
|
|
269
|
+
performance: !1,
|
|
270
|
+
experimental: !1,
|
|
271
|
+
property_name_factory: (e) => `${t}_${e}`
|
|
272
|
+
};
|
|
273
|
+
({ ...o });
|
|
274
|
+
const a = {
|
|
275
|
+
private: [
|
|
276
|
+
{
|
|
277
|
+
exclude: ["canvas"],
|
|
278
|
+
browsers: [
|
|
279
|
+
"firefox",
|
|
280
|
+
"safari>=17",
|
|
281
|
+
"brave"
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
exclude: ["audio"],
|
|
286
|
+
browsers: ["samsungbrowser", "safari"]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
exclude: ["fonts"],
|
|
290
|
+
browsers: ["firefox"]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
exclude: [
|
|
294
|
+
"audio.sampleHash",
|
|
295
|
+
"hardware.deviceMemory",
|
|
296
|
+
"header.acceptLanguage.q",
|
|
297
|
+
"system.hardwareConcurrency",
|
|
298
|
+
"plugins"
|
|
299
|
+
],
|
|
300
|
+
browsers: ["brave"]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
exclude: ["tls.extensions"],
|
|
304
|
+
browsers: [
|
|
305
|
+
"firefox",
|
|
306
|
+
"chrome",
|
|
307
|
+
"safari"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
exclude: ["header.acceptLanguage"],
|
|
312
|
+
browsers: ["edge", "chrome"]
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
iframe: [{
|
|
316
|
+
exclude: ["system.applePayVersion", "system.cookieEnabled"],
|
|
317
|
+
browsers: ["safari"]
|
|
318
|
+
}, { exclude: ["permissions"] }],
|
|
319
|
+
vpn: [{ exclude: ["ip"] }]
|
|
320
|
+
};
|
|
321
|
+
const s = "undefined" != typeof window ? window.OfflineAudioContext || window.webkitOfflineAudioContext : null;
|
|
322
|
+
function c(e) {
|
|
323
|
+
let t = 0;
|
|
324
|
+
for (let n = 0; n < e.length; ++n) t += Math.abs(e[n]);
|
|
325
|
+
return t;
|
|
326
|
+
}
|
|
327
|
+
function l(e, t, n) {
|
|
328
|
+
let o = [];
|
|
329
|
+
for (let t = 0; t < e[0].data.length; t++) {
|
|
330
|
+
let n = [];
|
|
331
|
+
for (let o = 0; o < e.length; o++) n.push(e[o].data[t]);
|
|
332
|
+
o.push(u(n));
|
|
333
|
+
}
|
|
334
|
+
const r = new Uint8ClampedArray(o);
|
|
335
|
+
return new ImageData(r, t, n);
|
|
336
|
+
}
|
|
337
|
+
function u(e) {
|
|
338
|
+
if (0 === e.length) return 0;
|
|
339
|
+
const t = {};
|
|
340
|
+
for (const n of e) t[n] = (t[n] || 0) + 1;
|
|
341
|
+
let n = e[0];
|
|
342
|
+
for (const e in t) t[e] > t[n] && (n = parseInt(e, 10));
|
|
343
|
+
return n;
|
|
344
|
+
}
|
|
345
|
+
function d(e) {
|
|
346
|
+
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
347
|
+
}
|
|
348
|
+
const m = new Uint32Array([
|
|
349
|
+
597399067,
|
|
350
|
+
2869860233,
|
|
351
|
+
951274213,
|
|
352
|
+
2716044179
|
|
353
|
+
]);
|
|
354
|
+
function f(e, t) {
|
|
355
|
+
return e << t | e >>> 32 - t;
|
|
356
|
+
}
|
|
357
|
+
function h(e, t = 0) {
|
|
358
|
+
if (t = t ? 0 | t : 0, "string" == typeof e && (e = function(e) {
|
|
359
|
+
if ("undefined" != typeof TextEncoder) return new TextEncoder().encode(e).buffer;
|
|
360
|
+
const t = [];
|
|
361
|
+
for (let n = 0; n < e.length; n++) {
|
|
362
|
+
let o = e.charCodeAt(n);
|
|
363
|
+
o < 128 ? t.push(o) : o < 2048 ? t.push(192 | o >> 6, 128 | 63 & o) : o < 55296 || o >= 57344 ? t.push(224 | o >> 12, 128 | o >> 6 & 63, 128 | 63 & o) : (n++, o = 65536 + ((1023 & o) << 10 | 1023 & e.charCodeAt(n)), t.push(240 | o >> 18, 128 | o >> 12 & 63, 128 | o >> 6 & 63, 128 | 63 & o));
|
|
364
|
+
}
|
|
365
|
+
return new Uint8Array(t).buffer;
|
|
366
|
+
}(e)), !(e instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
|
|
367
|
+
const n = new Uint32Array([
|
|
368
|
+
t,
|
|
369
|
+
t,
|
|
370
|
+
t,
|
|
371
|
+
t
|
|
372
|
+
]);
|
|
373
|
+
(function(e, t) {
|
|
374
|
+
const n = e.byteLength / 16 | 0, o = new Uint32Array(e, 0, 4 * n);
|
|
375
|
+
for (let e = 0; e < n; e++) {
|
|
376
|
+
const n = o.subarray(4 * e, 4 * (e + 1));
|
|
377
|
+
n[0] = Math.imul(n[0], m[0]), n[0] = f(n[0], 15), n[0] = Math.imul(n[0], m[1]), t[0] = t[0] ^ n[0], t[0] = f(t[0], 19), t[0] = t[0] + t[1], t[0] = Math.imul(t[0], 5) + 1444728091, n[1] = Math.imul(n[1], m[1]), n[1] = f(n[1], 16), n[1] = Math.imul(n[1], m[2]), t[1] = t[1] ^ n[1], t[1] = f(t[1], 17), t[1] = t[1] + t[2], t[1] = Math.imul(t[1], 5) + 197830471, n[2] = Math.imul(n[2], m[2]), n[2] = f(n[2], 17), n[2] = Math.imul(n[2], m[3]), t[2] = t[2] ^ n[2], t[2] = f(t[2], 15), t[2] = t[2] + t[3], t[2] = Math.imul(t[2], 5) + 2530024501, n[3] = Math.imul(n[3], m[3]), n[3] = f(n[3], 18), n[3] = Math.imul(n[3], m[0]), t[3] = t[3] ^ n[3], t[3] = f(t[3], 13), t[3] = t[3] + t[0], t[3] = Math.imul(t[3], 5) + 850148119;
|
|
378
|
+
}
|
|
379
|
+
})(e, n), function(e, t) {
|
|
380
|
+
const n = e.byteLength / 16 | 0, o = e.byteLength % 16, r = /* @__PURE__ */ new Uint32Array(4), i = new Uint8Array(e, 16 * n, o);
|
|
381
|
+
switch (o) {
|
|
382
|
+
case 15: r[3] = r[3] ^ i[14] << 16;
|
|
383
|
+
case 14: r[3] = r[3] ^ i[13] << 8;
|
|
384
|
+
case 13: r[3] = r[3] ^ i[12], r[3] = Math.imul(r[3], m[3]), r[3] = f(r[3], 18), r[3] = Math.imul(r[3], m[0]), t[3] = t[3] ^ r[3];
|
|
385
|
+
case 12: r[2] = r[2] ^ i[11] << 24;
|
|
386
|
+
case 11: r[2] = r[2] ^ i[10] << 16;
|
|
387
|
+
case 10: r[2] = r[2] ^ i[9] << 8;
|
|
388
|
+
case 9: r[2] = r[2] ^ i[8], r[2] = Math.imul(r[2], m[2]), r[2] = f(r[2], 17), r[2] = Math.imul(r[2], m[3]), t[2] = t[2] ^ r[2];
|
|
389
|
+
case 8: r[1] = r[1] ^ i[7] << 24;
|
|
390
|
+
case 7: r[1] = r[1] ^ i[6] << 16;
|
|
391
|
+
case 6: r[1] = r[1] ^ i[5] << 8;
|
|
392
|
+
case 5: r[1] = r[1] ^ i[4], r[1] = Math.imul(r[1], m[1]), r[1] = f(r[1], 16), r[1] = Math.imul(r[1], m[2]), t[1] = t[1] ^ r[1];
|
|
393
|
+
case 4: r[0] = r[0] ^ i[3] << 24;
|
|
394
|
+
case 3: r[0] = r[0] ^ i[2] << 16;
|
|
395
|
+
case 2: r[0] = r[0] ^ i[1] << 8;
|
|
396
|
+
case 1: r[0] = r[0] ^ i[0], r[0] = Math.imul(r[0], m[0]), r[0] = f(r[0], 15), r[0] = Math.imul(r[0], m[1]), t[0] = t[0] ^ r[0];
|
|
397
|
+
}
|
|
398
|
+
}(e, n), function(e, t) {
|
|
399
|
+
t[0] = t[0] ^ e.byteLength, t[1] = t[1] ^ e.byteLength, t[2] = t[2] ^ e.byteLength, t[3] = t[3] ^ e.byteLength, t[0] = t[0] + t[1] | 0, t[0] = t[0] + t[2] | 0, t[0] = t[0] + t[3] | 0, t[1] = t[1] + t[0] | 0, t[2] = t[2] + t[0] | 0, t[3] = t[3] + t[0] | 0, t[0] = d(t[0]), t[1] = d(t[1]), t[2] = d(t[2]), t[3] = d(t[3]), t[0] = t[0] + t[1] | 0, t[0] = t[0] + t[2] | 0, t[0] = t[0] + t[3] | 0, t[1] = t[1] + t[0] | 0, t[2] = t[2] + t[0] | 0, t[3] = t[3] + t[0] | 0;
|
|
400
|
+
}(e, n);
|
|
401
|
+
const o = new Uint8Array(n.buffer);
|
|
402
|
+
return Array.from(o).map(((e) => e.toString(16).padStart(2, "0"))).join("");
|
|
403
|
+
}
|
|
404
|
+
const p = 280;
|
|
405
|
+
async function g(e) {
|
|
406
|
+
for (var t; !document.body;) await w(50);
|
|
407
|
+
const n = document.createElement("iframe");
|
|
408
|
+
n.setAttribute("frameBorder", "0");
|
|
409
|
+
const o = n.style;
|
|
410
|
+
o.setProperty("position", "fixed"), o.setProperty("display", "block", "important"), o.setProperty("visibility", "visible"), o.setProperty("border", "0"), o.setProperty("opacity", "0"), n.src = "about:blank", document.body.appendChild(n);
|
|
411
|
+
const r = n.contentDocument || (null === (t = n.contentWindow) || void 0 === t ? void 0 : t.document);
|
|
412
|
+
if (!r) throw new Error("Iframe document is not accessible");
|
|
413
|
+
e({ iframe: r }), setTimeout((() => {
|
|
414
|
+
document.body.removeChild(n);
|
|
415
|
+
}), 0);
|
|
416
|
+
}
|
|
417
|
+
function w(e, t) {
|
|
418
|
+
return new Promise(((n) => setTimeout(n, e, t)));
|
|
419
|
+
}
|
|
420
|
+
const v = [
|
|
421
|
+
"Arial",
|
|
422
|
+
"Arial Black",
|
|
423
|
+
"Arial Narrow",
|
|
424
|
+
"Arial Rounded MT",
|
|
425
|
+
"Arimo",
|
|
426
|
+
"Archivo",
|
|
427
|
+
"Barlow",
|
|
428
|
+
"Bebas Neue",
|
|
429
|
+
"Bitter",
|
|
430
|
+
"Bookman",
|
|
431
|
+
"Calibri",
|
|
432
|
+
"Cabin",
|
|
433
|
+
"Candara",
|
|
434
|
+
"Century",
|
|
435
|
+
"Century Gothic",
|
|
436
|
+
"Comic Sans MS",
|
|
437
|
+
"Constantia",
|
|
438
|
+
"Courier",
|
|
439
|
+
"Courier New",
|
|
440
|
+
"Crimson Text",
|
|
441
|
+
"DM Mono",
|
|
442
|
+
"DM Sans",
|
|
443
|
+
"DM Serif Display",
|
|
444
|
+
"DM Serif Text",
|
|
445
|
+
"Dosis",
|
|
446
|
+
"Droid Sans",
|
|
447
|
+
"Exo",
|
|
448
|
+
"Fira Code",
|
|
449
|
+
"Fira Sans",
|
|
450
|
+
"Franklin Gothic Medium",
|
|
451
|
+
"Garamond",
|
|
452
|
+
"Geneva",
|
|
453
|
+
"Georgia",
|
|
454
|
+
"Gill Sans",
|
|
455
|
+
"Helvetica",
|
|
456
|
+
"Impact",
|
|
457
|
+
"Inconsolata",
|
|
458
|
+
"Indie Flower",
|
|
459
|
+
"Inter",
|
|
460
|
+
"Josefin Sans",
|
|
461
|
+
"Karla",
|
|
462
|
+
"Lato",
|
|
463
|
+
"Lexend",
|
|
464
|
+
"Lucida Bright",
|
|
465
|
+
"Lucida Console",
|
|
466
|
+
"Lucida Sans Unicode",
|
|
467
|
+
"Manrope",
|
|
468
|
+
"Merriweather",
|
|
469
|
+
"Merriweather Sans",
|
|
470
|
+
"Montserrat",
|
|
471
|
+
"Myriad",
|
|
472
|
+
"Noto Sans",
|
|
473
|
+
"Nunito",
|
|
474
|
+
"Nunito Sans",
|
|
475
|
+
"Open Sans",
|
|
476
|
+
"Optima",
|
|
477
|
+
"Orbitron",
|
|
478
|
+
"Oswald",
|
|
479
|
+
"Pacifico",
|
|
480
|
+
"Palatino",
|
|
481
|
+
"Perpetua",
|
|
482
|
+
"PT Sans",
|
|
483
|
+
"PT Serif",
|
|
484
|
+
"Poppins",
|
|
485
|
+
"Prompt",
|
|
486
|
+
"Public Sans",
|
|
487
|
+
"Quicksand",
|
|
488
|
+
"Rajdhani",
|
|
489
|
+
"Recursive",
|
|
490
|
+
"Roboto",
|
|
491
|
+
"Roboto Condensed",
|
|
492
|
+
"Rockwell",
|
|
493
|
+
"Rubik",
|
|
494
|
+
"Segoe Print",
|
|
495
|
+
"Segoe Script",
|
|
496
|
+
"Segoe UI",
|
|
497
|
+
"Sora",
|
|
498
|
+
"Source Sans Pro",
|
|
499
|
+
"Space Mono",
|
|
500
|
+
"Tahoma",
|
|
501
|
+
"Taviraj",
|
|
502
|
+
"Times",
|
|
503
|
+
"Times New Roman",
|
|
504
|
+
"Titillium Web",
|
|
505
|
+
"Trebuchet MS",
|
|
506
|
+
"Ubuntu",
|
|
507
|
+
"Varela Round",
|
|
508
|
+
"Verdana",
|
|
509
|
+
"Work Sans"
|
|
510
|
+
];
|
|
511
|
+
const y = [
|
|
512
|
+
"monospace",
|
|
513
|
+
"sans-serif",
|
|
514
|
+
"serif"
|
|
515
|
+
];
|
|
516
|
+
function S(e, t) {
|
|
517
|
+
return e.font = `72px ${t}`, e.measureText("WwMmLli0Oo").width;
|
|
518
|
+
}
|
|
519
|
+
function b() {
|
|
520
|
+
var e;
|
|
521
|
+
const t = document.createElement("canvas"), n = null !== (e = t.getContext("webgl")) && void 0 !== e ? e : t.getContext("experimental-webgl");
|
|
522
|
+
if (n && "getParameter" in n) try {
|
|
523
|
+
const e = (n.getParameter(n.VENDOR) || "").toString(), t = (n.getParameter(n.RENDERER) || "").toString();
|
|
524
|
+
let o = {
|
|
525
|
+
vendor: e,
|
|
526
|
+
renderer: t,
|
|
527
|
+
version: (n.getParameter(n.VERSION) || "").toString(),
|
|
528
|
+
shadingLanguageVersion: (n.getParameter(n.SHADING_LANGUAGE_VERSION) || "").toString()
|
|
529
|
+
};
|
|
530
|
+
if (!t.length || !e.length) {
|
|
531
|
+
const e = n.getExtension("WEBGL_debug_renderer_info");
|
|
532
|
+
if (e) {
|
|
533
|
+
const t = (n.getParameter(e.UNMASKED_VENDOR_WEBGL) || "").toString(), r = (n.getParameter(e.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
534
|
+
t && (o.vendorUnmasked = t), r && (o.rendererUnmasked = r);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return o;
|
|
538
|
+
} catch (e) {}
|
|
539
|
+
return "undefined";
|
|
540
|
+
}
|
|
541
|
+
function E() {
|
|
542
|
+
const e = /* @__PURE__ */ new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
543
|
+
return e[0] = Infinity, e[0] = e[0] - e[0], t[3];
|
|
544
|
+
}
|
|
545
|
+
const M = (e, t, n, o) => {
|
|
546
|
+
const r = (n - t) / o;
|
|
547
|
+
let i = 0;
|
|
548
|
+
for (let n = 0; n < o; n++) i += e(t + (n + .5) * r);
|
|
549
|
+
return i * r;
|
|
550
|
+
};
|
|
551
|
+
function P(e, t) {
|
|
552
|
+
const n = {};
|
|
553
|
+
return t.forEach(((t) => {
|
|
554
|
+
const o = function(e) {
|
|
555
|
+
if (0 === e.length) return null;
|
|
556
|
+
const t = {};
|
|
557
|
+
e.forEach(((e) => {
|
|
558
|
+
const n = String(e);
|
|
559
|
+
t[n] = (t[n] || 0) + 1;
|
|
560
|
+
}));
|
|
561
|
+
let n = e[0], o = 1;
|
|
562
|
+
return Object.keys(t).forEach(((e) => {
|
|
563
|
+
t[e] > o && (n = e, o = t[e]);
|
|
564
|
+
})), n;
|
|
565
|
+
}(e.map(((e) => t in e ? e[t] : void 0)).filter(((e) => void 0 !== e)));
|
|
566
|
+
o && (n[t] = o);
|
|
567
|
+
})), n;
|
|
568
|
+
}
|
|
569
|
+
const A = [
|
|
570
|
+
"accelerometer",
|
|
571
|
+
"accessibility",
|
|
572
|
+
"accessibility-events",
|
|
573
|
+
"ambient-light-sensor",
|
|
574
|
+
"background-fetch",
|
|
575
|
+
"background-sync",
|
|
576
|
+
"bluetooth",
|
|
577
|
+
"camera",
|
|
578
|
+
"clipboard-read",
|
|
579
|
+
"clipboard-write",
|
|
580
|
+
"device-info",
|
|
581
|
+
"display-capture",
|
|
582
|
+
"gyroscope",
|
|
583
|
+
"geolocation",
|
|
584
|
+
"local-fonts",
|
|
585
|
+
"magnetometer",
|
|
586
|
+
"microphone",
|
|
587
|
+
"midi",
|
|
588
|
+
"nfc",
|
|
589
|
+
"notifications",
|
|
590
|
+
"payment-handler",
|
|
591
|
+
"persistent-storage",
|
|
592
|
+
"push",
|
|
593
|
+
"speaker",
|
|
594
|
+
"storage-access",
|
|
595
|
+
"top-level-storage-access",
|
|
596
|
+
"window-management",
|
|
597
|
+
"query"
|
|
598
|
+
];
|
|
599
|
+
function x() {
|
|
600
|
+
var e, t, n, o, r, i;
|
|
601
|
+
if ("undefined" == typeof navigator) return {
|
|
602
|
+
name: "unknown",
|
|
603
|
+
version: "unknown"
|
|
604
|
+
};
|
|
605
|
+
const a = navigator.userAgent, s = [
|
|
606
|
+
/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)+)/,
|
|
607
|
+
/(?<name>EdgA|EdgiOS|Edg)\/(?<version>\d+(?:\.\d+)+)/,
|
|
608
|
+
/(?<name>OPR|OPX)\/(?<version>\d+(?:\.\d+)+)/,
|
|
609
|
+
/Opera[\s\/](?<version>\d+(?:\.\d+)+)/,
|
|
610
|
+
/Opera Mini\/(?<version>\d+(?:\.\d+)+)/,
|
|
611
|
+
/Opera Mobi\/(?<version>\d+(?:\.\d+)+)/,
|
|
612
|
+
/(?<name>Vivaldi)\/(?<version>\d+(?:\.\d+)+)/,
|
|
613
|
+
/(?<name>Brave)\/(?<version>\d+(?:\.\d+)+)/,
|
|
614
|
+
/(?<name>CriOS)\/(?<version>\d+(?:\.\d+)+)/,
|
|
615
|
+
/(?<name>FxiOS)\/(?<version>\d+(?:\.\d+)+)/,
|
|
616
|
+
/(?<name>Chrome|Chromium)\/(?<version>\d+(?:\.\d+)+)/,
|
|
617
|
+
/(?<name>Firefox|Waterfox|Iceweasel|IceCat)\/(?<version>\d+(?:\.\d+)+)/,
|
|
618
|
+
/Version\/(?<version1>[\d.]+).*Safari\/[\d.]+|(?<name>Safari)\/(?<version2>[\d.]+)/,
|
|
619
|
+
/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)+)/,
|
|
620
|
+
/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)+)/
|
|
621
|
+
], c = {
|
|
622
|
+
edg: "Edge",
|
|
623
|
+
edga: "Edge",
|
|
624
|
+
edgios: "Edge",
|
|
625
|
+
opr: "Opera",
|
|
626
|
+
opx: "Opera",
|
|
627
|
+
crios: "Chrome",
|
|
628
|
+
fxios: "Firefox",
|
|
629
|
+
samsung: "SamsungBrowser",
|
|
630
|
+
vivaldi: "Vivaldi",
|
|
631
|
+
brave: "Brave"
|
|
632
|
+
};
|
|
633
|
+
for (const l of s) {
|
|
634
|
+
const s = a.match(l);
|
|
635
|
+
if (s) {
|
|
636
|
+
let a = null === (e = s.groups) || void 0 === e ? void 0 : e.name, u = (null === (t = s.groups) || void 0 === t ? void 0 : t.version) || (null === (n = s.groups) || void 0 === n ? void 0 : n.version1) || (null === (o = s.groups) || void 0 === o ? void 0 : o.version2);
|
|
637
|
+
if (a || !(null === (r = s.groups) || void 0 === r ? void 0 : r.version1) && !(null === (i = s.groups) || void 0 === i ? void 0 : i.version2) || (a = "Safari"), !a && l.source.includes("Opera Mini") && (a = "Opera Mini"), !a && l.source.includes("Opera Mobi") && (a = "Opera Mobi"), !a && l.source.includes("Opera") && (a = "Opera"), !a && s[1] && (a = s[1]), !u && s[2] && (u = s[2]), a) return {
|
|
638
|
+
name: c[a.toLowerCase()] || a,
|
|
639
|
+
version: u || "unknown"
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return {
|
|
644
|
+
name: "unknown",
|
|
645
|
+
version: "unknown"
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
function C() {
|
|
649
|
+
if ("undefined" == typeof navigator || !navigator.userAgent) return !1;
|
|
650
|
+
const e = navigator.userAgent;
|
|
651
|
+
return /Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|Windows Phone/i.test(e) && !/iPad/i.test(e);
|
|
652
|
+
}
|
|
653
|
+
function _() {
|
|
654
|
+
let e = [];
|
|
655
|
+
const t = {
|
|
656
|
+
"prefers-contrast": [
|
|
657
|
+
"high",
|
|
658
|
+
"more",
|
|
659
|
+
"low",
|
|
660
|
+
"less",
|
|
661
|
+
"forced",
|
|
662
|
+
"no-preference"
|
|
663
|
+
],
|
|
664
|
+
"any-hover": ["hover", "none"],
|
|
665
|
+
"any-pointer": [
|
|
666
|
+
"none",
|
|
667
|
+
"coarse",
|
|
668
|
+
"fine"
|
|
669
|
+
],
|
|
670
|
+
pointer: [
|
|
671
|
+
"none",
|
|
672
|
+
"coarse",
|
|
673
|
+
"fine"
|
|
674
|
+
],
|
|
675
|
+
hover: ["hover", "none"],
|
|
676
|
+
update: ["fast", "slow"],
|
|
677
|
+
"inverted-colors": ["inverted", "none"],
|
|
678
|
+
"prefers-reduced-motion": ["reduce", "no-preference"],
|
|
679
|
+
"prefers-reduced-transparency": ["reduce", "no-preference"],
|
|
680
|
+
scripting: [
|
|
681
|
+
"none",
|
|
682
|
+
"initial-only",
|
|
683
|
+
"enabled"
|
|
684
|
+
],
|
|
685
|
+
"forced-colors": ["active", "none"]
|
|
686
|
+
};
|
|
687
|
+
return Object.keys(t).forEach(((n) => {
|
|
688
|
+
t[n].forEach(((t) => {
|
|
689
|
+
matchMedia(`(${n}: ${t})`).matches && e.push(`${n}: ${t}`);
|
|
690
|
+
}));
|
|
691
|
+
})), e;
|
|
692
|
+
}
|
|
693
|
+
function I() {
|
|
694
|
+
if ("https:" === window.location.protocol && "function" == typeof window.ApplePaySession) try {
|
|
695
|
+
const e = window.ApplePaySession.supportsVersion;
|
|
696
|
+
for (let t = 15; t > 0; t--) if (e(t)) return t;
|
|
697
|
+
} catch (e) {
|
|
698
|
+
return 0;
|
|
699
|
+
}
|
|
700
|
+
return 0;
|
|
701
|
+
}
|
|
702
|
+
const T = "SamsungBrowser" !== x().name ? 1 : 3;
|
|
703
|
+
let R;
|
|
704
|
+
let k = null;
|
|
705
|
+
function O(e) {
|
|
706
|
+
const t = [];
|
|
707
|
+
return function e(n) {
|
|
708
|
+
if (n && n.toJSON && "function" == typeof n.toJSON && (n = n.toJSON()), void 0 === n) return;
|
|
709
|
+
if ("number" == typeof n) return isFinite(n) ? "" + n : "null";
|
|
710
|
+
if ("object" != typeof n) return JSON.stringify(n);
|
|
711
|
+
let o, r;
|
|
712
|
+
if (Array.isArray(n)) {
|
|
713
|
+
for (r = "[", o = 0; o < n.length; o++) o && (r += ","), r += e(n[o]) || "null";
|
|
714
|
+
return r + "]";
|
|
715
|
+
}
|
|
716
|
+
if (null === n) return "null";
|
|
717
|
+
if (-1 !== t.indexOf(n)) throw new TypeError("Converting circular structure to JSON");
|
|
718
|
+
const i = t.push(n) - 1, a = Object.keys(n).sort();
|
|
719
|
+
for (r = "", o = 0; o < a.length; o++) {
|
|
720
|
+
const t = a[o], i = e(n[t]);
|
|
721
|
+
i && (r && (r += ","), r += JSON.stringify(t) + ":" + i);
|
|
722
|
+
}
|
|
723
|
+
return t.splice(i, 1), "{" + r + "}";
|
|
724
|
+
}(e) || "";
|
|
725
|
+
}
|
|
726
|
+
const L = [
|
|
727
|
+
"𝔄",
|
|
728
|
+
"𝔅",
|
|
729
|
+
"ℭ",
|
|
730
|
+
"𝔇",
|
|
731
|
+
"𝔈",
|
|
732
|
+
"𝔉",
|
|
733
|
+
"𝔸",
|
|
734
|
+
"𝔹",
|
|
735
|
+
"ℂ",
|
|
736
|
+
"𝔻",
|
|
737
|
+
"𝔼",
|
|
738
|
+
"𝔽"
|
|
739
|
+
];
|
|
740
|
+
const B = [
|
|
741
|
+
"β",
|
|
742
|
+
"ψ",
|
|
743
|
+
"λ",
|
|
744
|
+
"ε",
|
|
745
|
+
"ζ",
|
|
746
|
+
"α",
|
|
747
|
+
"ξ",
|
|
748
|
+
"μ",
|
|
749
|
+
"ρ",
|
|
750
|
+
"φ",
|
|
751
|
+
"κ",
|
|
752
|
+
"τ",
|
|
753
|
+
"η",
|
|
754
|
+
"σ",
|
|
755
|
+
"ι",
|
|
756
|
+
"ω",
|
|
757
|
+
"γ",
|
|
758
|
+
"ν",
|
|
759
|
+
"χ",
|
|
760
|
+
"δ",
|
|
761
|
+
"θ",
|
|
762
|
+
"π",
|
|
763
|
+
"υ",
|
|
764
|
+
"ο"
|
|
765
|
+
];
|
|
766
|
+
function D(e, t) {
|
|
767
|
+
return `<math><mrow>${t}</mrow></math>`;
|
|
768
|
+
}
|
|
769
|
+
function N() {
|
|
770
|
+
let e = "<mo>∏</mo>";
|
|
771
|
+
return L.forEach(((t, n) => {
|
|
772
|
+
const o = 2 * n, r = B.slice(o, o + 2);
|
|
773
|
+
2 === r.length && (e += `<mmultiscripts><mi>${t}</mi><none/><mi>${r[1]}</mi><mprescripts></mprescripts><mi>${r[0]}</mi><none/></mmultiscripts>`);
|
|
774
|
+
})), D(0, `<munderover><mmultiscripts>${e}</mmultiscripts></munderover>`);
|
|
775
|
+
}
|
|
776
|
+
function $() {
|
|
777
|
+
const e = [];
|
|
778
|
+
return L.forEach(((t, n) => {
|
|
779
|
+
const o = 2 * n, r = B.slice(o, o + 2);
|
|
780
|
+
2 === r.length && e.push(D(0, `<mmultiscripts><mi>${t}</mi><none/><mi>${r[1]}</mi><mprescripts></mprescripts><mi>${r[0]}</mi><none/></mmultiscripts>`));
|
|
781
|
+
})), e;
|
|
782
|
+
}
|
|
783
|
+
const V = {
|
|
784
|
+
audio: async function() {
|
|
785
|
+
return s ? async function() {
|
|
786
|
+
return new Promise(((e, t) => {
|
|
787
|
+
try {
|
|
788
|
+
const t = new s(1, 5e3, 44100), n = t.createBufferSource(), o = t.createOscillator();
|
|
789
|
+
o.frequency.value = 1e3;
|
|
790
|
+
const r = t.createDynamicsCompressor();
|
|
791
|
+
let i;
|
|
792
|
+
r.threshold.value = -50, r.knee.value = 40, r.ratio.value = 12, r.attack.value = 0, r.release.value = .2, o.connect(r), r.connect(t.destination), o.start(), t.oncomplete = (o) => {
|
|
793
|
+
i = o.renderedBuffer.getChannelData(0), e({
|
|
794
|
+
sampleHash: c(i),
|
|
795
|
+
maxChannels: t.destination.maxChannelCount,
|
|
796
|
+
channelCountMode: n.channelCountMode
|
|
797
|
+
});
|
|
798
|
+
}, t.startRendering();
|
|
799
|
+
} catch (e) {
|
|
800
|
+
console.error("Error creating audio fingerprint:", e), t(e);
|
|
801
|
+
}
|
|
802
|
+
}));
|
|
803
|
+
}() : null;
|
|
804
|
+
},
|
|
805
|
+
canvas: async function() {
|
|
806
|
+
return new Promise(((e) => {
|
|
807
|
+
const t = Array.from({ length: 3 }, (() => function() {
|
|
808
|
+
const e = document.createElement("canvas"), t = e.getContext("2d");
|
|
809
|
+
if (!t) return null;
|
|
810
|
+
e.width = p, e.height = 20;
|
|
811
|
+
const n = t.createLinearGradient(0, 0, e.width, e.height);
|
|
812
|
+
n.addColorStop(0, "red"), n.addColorStop(1 / 6, "orange"), n.addColorStop(2 / 6, "yellow"), n.addColorStop(.5, "green"), n.addColorStop(4 / 6, "blue"), n.addColorStop(5 / 6, "indigo"), n.addColorStop(1, "violet"), t.fillStyle = n, t.fillRect(0, 0, e.width, e.height);
|
|
813
|
+
const o = "Random Text WMwmil10Oo";
|
|
814
|
+
t.font = "23.123px Arial", t.fillStyle = "black", t.fillText(o, -5, 15), t.fillStyle = "rgba(0, 0, 255, 0.5)", t.fillText(o, -3.3, 17.7), t.beginPath(), t.moveTo(0, 0), t.lineTo(2 * e.width / 7, e.height), t.strokeStyle = "white", t.lineWidth = 2, t.stroke();
|
|
815
|
+
return t.getImageData(0, 0, e.width, e.height);
|
|
816
|
+
}())).filter(((e) => null !== e));
|
|
817
|
+
0 !== t.length ? e({ commonPixelsHash: h(l(t, p, 20).data.toString()).toString() }) : e(null);
|
|
818
|
+
}));
|
|
819
|
+
},
|
|
820
|
+
fonts: async function(e) {
|
|
821
|
+
return new Promise(((e) => {
|
|
822
|
+
try {
|
|
823
|
+
g((async ({ iframe: t }) => {
|
|
824
|
+
const n = t.createElement("canvas").getContext("2d");
|
|
825
|
+
if (!n) return void e(null);
|
|
826
|
+
const o = y.map(((e) => S(n, e)));
|
|
827
|
+
let r = {};
|
|
828
|
+
v.forEach(((e) => {
|
|
829
|
+
const t = S(n, e);
|
|
830
|
+
o.includes(t) || (r[e] = t);
|
|
831
|
+
})), e(r);
|
|
832
|
+
}));
|
|
833
|
+
} catch (t) {
|
|
834
|
+
e(null);
|
|
835
|
+
}
|
|
836
|
+
}));
|
|
837
|
+
},
|
|
838
|
+
hardware: function() {
|
|
839
|
+
return new Promise(((e, t) => {
|
|
840
|
+
const n = void 0 !== navigator.deviceMemory ? navigator.deviceMemory : 0, o = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
841
|
+
e({
|
|
842
|
+
videocard: b(),
|
|
843
|
+
architecture: E(),
|
|
844
|
+
deviceMemory: n.toString() || "undefined",
|
|
845
|
+
jsHeapSizeLimit: o.jsHeapSizeLimit || 0
|
|
846
|
+
});
|
|
847
|
+
}));
|
|
848
|
+
},
|
|
849
|
+
locales: function() {
|
|
850
|
+
return new Promise(((e) => {
|
|
851
|
+
e({
|
|
852
|
+
languages: navigator.language,
|
|
853
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
854
|
+
});
|
|
855
|
+
}));
|
|
856
|
+
},
|
|
857
|
+
math: function() {
|
|
858
|
+
return new Promise(((e) => {
|
|
859
|
+
e({
|
|
860
|
+
acos: Math.acos(.5),
|
|
861
|
+
asin: M(Math.asin, -1, 1, 97),
|
|
862
|
+
cos: M(Math.cos, 0, Math.PI, 97),
|
|
863
|
+
largeCos: Math.cos(0x56bc75e2d63100000),
|
|
864
|
+
largeSin: Math.sin(0x56bc75e2d63100000),
|
|
865
|
+
largeTan: Math.tan(0x56bc75e2d63100000),
|
|
866
|
+
sin: M(Math.sin, -Math.PI, Math.PI, 97),
|
|
867
|
+
tan: M(Math.tan, 0, 2 * Math.PI, 97)
|
|
868
|
+
});
|
|
869
|
+
}));
|
|
870
|
+
},
|
|
871
|
+
permissions: async function(e) {
|
|
872
|
+
const t = (null == e ? void 0 : e.permissions_to_check) || A;
|
|
873
|
+
return P(await Promise.all(Array.from({ length: 3 }, (() => async function(e) {
|
|
874
|
+
const t = {};
|
|
875
|
+
for (const n of e) try {
|
|
876
|
+
t[n] = (await navigator.permissions.query({ name: n })).state.toString();
|
|
877
|
+
} catch (e) {}
|
|
878
|
+
return t;
|
|
879
|
+
}(t)))), t);
|
|
880
|
+
},
|
|
881
|
+
plugins: async function() {
|
|
882
|
+
const e = [];
|
|
883
|
+
if (navigator.plugins) for (let t = 0; t < navigator.plugins.length; t++) {
|
|
884
|
+
const n = navigator.plugins[t];
|
|
885
|
+
e.push([
|
|
886
|
+
n.name,
|
|
887
|
+
n.filename,
|
|
888
|
+
n.description
|
|
889
|
+
].join("|"));
|
|
890
|
+
}
|
|
891
|
+
return new Promise(((t) => {
|
|
892
|
+
t({ plugins: e });
|
|
893
|
+
}));
|
|
894
|
+
},
|
|
895
|
+
screen: function() {
|
|
896
|
+
return new Promise(((e) => {
|
|
897
|
+
if ("undefined" == typeof matchMedia || "undefined" == typeof screen) return void e(null);
|
|
898
|
+
const t = {
|
|
899
|
+
is_touchscreen: navigator.maxTouchPoints > 0,
|
|
900
|
+
maxTouchPoints: navigator.maxTouchPoints,
|
|
901
|
+
colorDepth: screen.colorDepth,
|
|
902
|
+
mediaMatches: _()
|
|
903
|
+
};
|
|
904
|
+
C() && navigator.maxTouchPoints > 0 && (t.resolution = function() {
|
|
905
|
+
const e = window.screen.width, t = window.screen.height;
|
|
906
|
+
return `${Math.max(e, t).toString()}x${Math.min(e, t).toString()}`;
|
|
907
|
+
}()), e(t);
|
|
908
|
+
}));
|
|
909
|
+
},
|
|
910
|
+
system: function() {
|
|
911
|
+
return new Promise(((e) => {
|
|
912
|
+
const t = x();
|
|
913
|
+
e({
|
|
914
|
+
platform: window.navigator.platform,
|
|
915
|
+
productSub: navigator.productSub,
|
|
916
|
+
product: navigator.product,
|
|
917
|
+
useragent: navigator.userAgent,
|
|
918
|
+
hardwareConcurrency: navigator.hardwareConcurrency,
|
|
919
|
+
browser: {
|
|
920
|
+
name: t.name,
|
|
921
|
+
version: t.version
|
|
922
|
+
},
|
|
923
|
+
mobile: C(),
|
|
924
|
+
applePayVersion: I(),
|
|
925
|
+
cookieEnabled: window.navigator.cookieEnabled
|
|
926
|
+
});
|
|
927
|
+
}));
|
|
928
|
+
},
|
|
929
|
+
webgl: async function() {
|
|
930
|
+
"undefined" != typeof document && (R = document.createElement("canvas"), R.width = 200, R.height = 100, k = R.getContext("webgl"));
|
|
931
|
+
try {
|
|
932
|
+
if (!k) throw new Error("WebGL not supported");
|
|
933
|
+
return { commonPixelsHash: h(l(Array.from({ length: T }, (() => function() {
|
|
934
|
+
try {
|
|
935
|
+
if (!k) throw new Error("WebGL not supported");
|
|
936
|
+
const e = "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ", t = "\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ", n = k.createShader(k.VERTEX_SHADER), o = k.createShader(k.FRAGMENT_SHADER);
|
|
937
|
+
if (!n || !o) throw new Error("Failed to create shaders");
|
|
938
|
+
if (k.shaderSource(n, e), k.shaderSource(o, t), k.compileShader(n), !k.getShaderParameter(n, k.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + k.getShaderInfoLog(n));
|
|
939
|
+
if (k.compileShader(o), !k.getShaderParameter(o, k.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + k.getShaderInfoLog(o));
|
|
940
|
+
const r = k.createProgram();
|
|
941
|
+
if (!r) throw new Error("Failed to create shader program");
|
|
942
|
+
if (k.attachShader(r, n), k.attachShader(r, o), k.linkProgram(r), !k.getProgramParameter(r, k.LINK_STATUS)) throw new Error("Shader program linking failed: " + k.getProgramInfoLog(r));
|
|
943
|
+
k.useProgram(r);
|
|
944
|
+
const i = 137, a = new Float32Array(4 * i), s = 2 * Math.PI / i;
|
|
945
|
+
for (let e = 0; e < i; e++) {
|
|
946
|
+
const t = e * s;
|
|
947
|
+
a[4 * e] = 0, a[4 * e + 1] = 0, a[4 * e + 2] = Math.cos(t) * (R.width / 2), a[4 * e + 3] = Math.sin(t) * (R.height / 2);
|
|
948
|
+
}
|
|
949
|
+
const c = k.createBuffer();
|
|
950
|
+
k.bindBuffer(k.ARRAY_BUFFER, c), k.bufferData(k.ARRAY_BUFFER, a, k.STATIC_DRAW);
|
|
951
|
+
const l = k.getAttribLocation(r, "position");
|
|
952
|
+
k.enableVertexAttribArray(l), k.vertexAttribPointer(l, 2, k.FLOAT, !1, 0, 0), k.viewport(0, 0, R.width, R.height), k.clearColor(0, 0, 0, 1), k.clear(k.COLOR_BUFFER_BIT), k.drawArrays(k.LINES, 0, 2 * i);
|
|
953
|
+
const u = new Uint8ClampedArray(R.width * R.height * 4);
|
|
954
|
+
k.readPixels(0, 0, R.width, R.height, k.RGBA, k.UNSIGNED_BYTE, u);
|
|
955
|
+
return new ImageData(u, R.width, R.height);
|
|
956
|
+
} catch (e) {
|
|
957
|
+
return new ImageData(1, 1);
|
|
958
|
+
} finally {
|
|
959
|
+
k && (k.bindBuffer(k.ARRAY_BUFFER, null), k.useProgram(null), k.viewport(0, 0, k.drawingBufferWidth, k.drawingBufferHeight), k.clearColor(0, 0, 0, 0));
|
|
960
|
+
}
|
|
961
|
+
}())), R.width, R.height).data.toString()).toString() };
|
|
962
|
+
} catch (e) {
|
|
963
|
+
return { webgl: "unsupported" };
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
const F = {
|
|
968
|
+
webrtc: async function() {
|
|
969
|
+
return new Promise(((e) => {
|
|
970
|
+
try {
|
|
971
|
+
const t = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
|
|
972
|
+
if (!t) return void e({
|
|
973
|
+
supported: !1,
|
|
974
|
+
error: "WebRTC not supported"
|
|
975
|
+
});
|
|
976
|
+
const n = new t({
|
|
977
|
+
iceCandidatePoolSize: 1,
|
|
978
|
+
iceServers: []
|
|
979
|
+
});
|
|
980
|
+
n.createDataChannel("");
|
|
981
|
+
(async () => {
|
|
982
|
+
try {
|
|
983
|
+
const o = await n.createOffer({
|
|
984
|
+
offerToReceiveAudio: !0,
|
|
985
|
+
offerToReceiveVideo: !0
|
|
986
|
+
});
|
|
987
|
+
await n.setLocalDescription(o);
|
|
988
|
+
const r = o.sdp || "", i = [...new Set((r.match(/extmap:\d+ [^\n\r]+/g) || []).map(((e) => e.replace(/extmap:\d+ /, ""))))].sort(), a = (e) => {
|
|
989
|
+
const t = r.match(new RegExp(`m=${e} [^\\s]+ [^\\s]+ ([^\\n\\r]+)`));
|
|
990
|
+
return t ? t[1].split(" ") : [];
|
|
991
|
+
}, s = (e, t) => t.map(((t) => {
|
|
992
|
+
const n = new RegExp(`(rtpmap|fmtp|rtcp-fb):${t} (.+)`, "g"), o = [...r.matchAll(n)];
|
|
993
|
+
if (!o.length) return null;
|
|
994
|
+
const i = {};
|
|
995
|
+
return o.forEach(((t) => {
|
|
996
|
+
const [n, o, r] = t, a = r.split("/");
|
|
997
|
+
"rtpmap" === o ? (i.mimeType = `${e}/${a[0]}`, i.clockRate = +a[1], "audio" === e && (i.channels = +a[2] || 1)) : "rtcp-fb" === o ? (i.feedbackSupport = i.feedbackSupport || [], i.feedbackSupport.push(r)) : "fmtp" === o && (i.sdpFmtpLine = r);
|
|
998
|
+
})), i;
|
|
999
|
+
})).filter(Boolean), c = s("audio", a("audio")), l = s("video", a("video")), u = {
|
|
1000
|
+
audio: {
|
|
1001
|
+
count: c.length,
|
|
1002
|
+
hash: h(O(c))
|
|
1003
|
+
},
|
|
1004
|
+
video: {
|
|
1005
|
+
count: l.length,
|
|
1006
|
+
hash: h(O(l))
|
|
1007
|
+
},
|
|
1008
|
+
extensionsHash: h(O(i))
|
|
1009
|
+
}, d = await new Promise(((e) => {
|
|
1010
|
+
const t = setTimeout((() => {
|
|
1011
|
+
n.removeEventListener("icecandidate", o), n.close(), e({
|
|
1012
|
+
supported: !0,
|
|
1013
|
+
...u,
|
|
1014
|
+
timeout: !0
|
|
1015
|
+
});
|
|
1016
|
+
}), 3e3), o = (r) => {
|
|
1017
|
+
const i = r.candidate;
|
|
1018
|
+
i && i.candidate && (clearTimeout(t), n.removeEventListener("icecandidate", o), n.close(), e({
|
|
1019
|
+
supported: !0,
|
|
1020
|
+
...u,
|
|
1021
|
+
candidateType: i.type || ""
|
|
1022
|
+
}));
|
|
1023
|
+
};
|
|
1024
|
+
n.addEventListener("icecandidate", o);
|
|
1025
|
+
}));
|
|
1026
|
+
e({
|
|
1027
|
+
details: d,
|
|
1028
|
+
hash: h(O(d))
|
|
1029
|
+
});
|
|
1030
|
+
} catch (t) {
|
|
1031
|
+
n.close(), e({
|
|
1032
|
+
supported: !0,
|
|
1033
|
+
error: `WebRTC offer failed: ${t.message}`
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
})();
|
|
1037
|
+
} catch (t) {
|
|
1038
|
+
e({
|
|
1039
|
+
supported: !1,
|
|
1040
|
+
error: `WebRTC error: ${t.message}`
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
}));
|
|
1044
|
+
},
|
|
1045
|
+
mathml: async function() {
|
|
1046
|
+
return new Promise(((e) => {
|
|
1047
|
+
try {
|
|
1048
|
+
g((async ({ iframe: t }) => {
|
|
1049
|
+
try {
|
|
1050
|
+
if (!function(e) {
|
|
1051
|
+
try {
|
|
1052
|
+
const t = e.createElement("math");
|
|
1053
|
+
t.innerHTML = "<mrow><mi>x</mi></mrow>", t.style.position = "absolute", t.style.visibility = "hidden", e.body.appendChild(t);
|
|
1054
|
+
const n = t.getBoundingClientRect();
|
|
1055
|
+
return e.body.removeChild(t), n.width > 0 && n.height > 0;
|
|
1056
|
+
} catch (e) {
|
|
1057
|
+
return !1;
|
|
1058
|
+
}
|
|
1059
|
+
}(t)) return void e({
|
|
1060
|
+
supported: !1,
|
|
1061
|
+
error: "MathML not supported"
|
|
1062
|
+
});
|
|
1063
|
+
const n = [
|
|
1064
|
+
D("integral", "<msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mrow><mi>g</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mfrac><mi>dx</mi>"),
|
|
1065
|
+
D("fraction", "<mfrac><mrow><mi>π</mi><mo>×</mo><msup><mi>r</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><mi>σ</mi></mrow></mfrac>"),
|
|
1066
|
+
D("matrix", "<mo>[</mo><mtable><mtr><mtd><mi>α</mi></mtd><mtd><mi>β</mi></mtd></mtr><mtr><mtd><mi>γ</mi></mtd><mtd><mi>δ</mi></mtd></mtr></mtable><mo>]</mo>"),
|
|
1067
|
+
N(),
|
|
1068
|
+
...$()
|
|
1069
|
+
], o = [];
|
|
1070
|
+
let r = "";
|
|
1071
|
+
n.forEach(((e, n) => {
|
|
1072
|
+
const i = function(e, t) {
|
|
1073
|
+
try {
|
|
1074
|
+
const n = t.createElement("math");
|
|
1075
|
+
n.innerHTML = e.replace(/<\/?math>/g, ""), n.style.whiteSpace = "nowrap", n.style.position = "absolute", n.style.visibility = "hidden", n.style.top = "-9999px", t.body.appendChild(n);
|
|
1076
|
+
const o = n.getBoundingClientRect(), r = (t.defaultView || window).getComputedStyle(n), i = {
|
|
1077
|
+
dimensions: {
|
|
1078
|
+
width: o.width,
|
|
1079
|
+
height: o.height
|
|
1080
|
+
},
|
|
1081
|
+
fontInfo: {
|
|
1082
|
+
fontFamily: r.fontFamily,
|
|
1083
|
+
fontSize: r.fontSize,
|
|
1084
|
+
fontWeight: r.fontWeight,
|
|
1085
|
+
fontStyle: r.fontStyle,
|
|
1086
|
+
lineHeight: r.lineHeight,
|
|
1087
|
+
fontVariant: r.fontVariant || "normal",
|
|
1088
|
+
fontStretch: r.fontStretch || "normal",
|
|
1089
|
+
fontSizeAdjust: r.fontSizeAdjust || "none",
|
|
1090
|
+
textRendering: r.textRendering || "auto",
|
|
1091
|
+
fontFeatureSettings: r.fontFeatureSettings || "normal",
|
|
1092
|
+
fontVariantNumeric: r.fontVariantNumeric || "normal",
|
|
1093
|
+
fontKerning: r.fontKerning || "auto"
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
return t.body.removeChild(n), i;
|
|
1097
|
+
} catch (e) {
|
|
1098
|
+
return { error: e.message };
|
|
1099
|
+
}
|
|
1100
|
+
}(e, t);
|
|
1101
|
+
o.push({
|
|
1102
|
+
width: i.dimensions.width,
|
|
1103
|
+
height: i.dimensions.height
|
|
1104
|
+
}), 0 === n && i.fontInfo && (r = h(O(i.fontInfo)));
|
|
1105
|
+
}));
|
|
1106
|
+
const i = {
|
|
1107
|
+
fontStyleHash: r,
|
|
1108
|
+
dimensions: o
|
|
1109
|
+
};
|
|
1110
|
+
e({
|
|
1111
|
+
details: i,
|
|
1112
|
+
hash: h(O(i))
|
|
1113
|
+
});
|
|
1114
|
+
} catch (t) {
|
|
1115
|
+
e({
|
|
1116
|
+
supported: !1,
|
|
1117
|
+
error: `MathML error: ${t.message}`
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
}));
|
|
1121
|
+
} catch (t) {
|
|
1122
|
+
e({
|
|
1123
|
+
supported: !1,
|
|
1124
|
+
error: `MathML error: ${t.message}`
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
}));
|
|
1128
|
+
},
|
|
1129
|
+
speech: async function() {
|
|
1130
|
+
return new Promise(((e) => {
|
|
1131
|
+
try {
|
|
1132
|
+
if ("undefined" == typeof window || !window.speechSynthesis || "function" != typeof window.speechSynthesis.getVoices) return void e({
|
|
1133
|
+
supported: !1,
|
|
1134
|
+
error: "Speech Synthesis API not supported"
|
|
1135
|
+
});
|
|
1136
|
+
let t = !1, n = null;
|
|
1137
|
+
const o = (o) => {
|
|
1138
|
+
if (!t) {
|
|
1139
|
+
t = !0, n && clearTimeout(n);
|
|
1140
|
+
try {
|
|
1141
|
+
const t = o.map(((e) => {
|
|
1142
|
+
const t = (e) => e.replace(/\\/g, "\\\\").replace(/,/g, "\\,");
|
|
1143
|
+
return [
|
|
1144
|
+
t(e.voiceURI || ""),
|
|
1145
|
+
t(e.name || ""),
|
|
1146
|
+
t(e.lang || ""),
|
|
1147
|
+
e.localService ? "1" : "0",
|
|
1148
|
+
e.default ? "1" : "0"
|
|
1149
|
+
].join(",");
|
|
1150
|
+
}));
|
|
1151
|
+
t.sort();
|
|
1152
|
+
const n = {
|
|
1153
|
+
voiceCount: o.length,
|
|
1154
|
+
voicesHash: h(O(t))
|
|
1155
|
+
};
|
|
1156
|
+
e({
|
|
1157
|
+
details: n,
|
|
1158
|
+
hash: h(O(n))
|
|
1159
|
+
});
|
|
1160
|
+
} catch (t) {
|
|
1161
|
+
e({
|
|
1162
|
+
supported: !0,
|
|
1163
|
+
error: `Voice processing failed: ${t.message}`
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}, r = window.speechSynthesis.getVoices();
|
|
1168
|
+
if (r.length > 0) return void o(r);
|
|
1169
|
+
n = setTimeout((() => {
|
|
1170
|
+
const e = window.speechSynthesis.getVoices();
|
|
1171
|
+
o(e);
|
|
1172
|
+
}), 800);
|
|
1173
|
+
const i = () => {
|
|
1174
|
+
window.speechSynthesis.removeEventListener("voiceschanged", i);
|
|
1175
|
+
const e = window.speechSynthesis.getVoices();
|
|
1176
|
+
o(e);
|
|
1177
|
+
};
|
|
1178
|
+
window.speechSynthesis.addEventListener("voiceschanged", i);
|
|
1179
|
+
} catch (t) {
|
|
1180
|
+
e({
|
|
1181
|
+
supported: !1,
|
|
1182
|
+
error: `Speech Synthesis error: ${t.message}`
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
}));
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1188
|
+
const U = {};
|
|
1189
|
+
const j = { timeout: "true" };
|
|
1190
|
+
const W = (e, t, n) => {
|
|
1191
|
+
U[e] = t;
|
|
1192
|
+
};
|
|
1193
|
+
function G(e, t) {
|
|
1194
|
+
var n;
|
|
1195
|
+
let o = x();
|
|
1196
|
+
if ("unknown" === o.name && e.system && "object" == typeof e.system && !Array.isArray(e.system)) {
|
|
1197
|
+
const t = e.system.browser;
|
|
1198
|
+
if (t && "object" == typeof t && !Array.isArray(t)) {
|
|
1199
|
+
const e = t;
|
|
1200
|
+
o = {
|
|
1201
|
+
name: e.name || "unknown",
|
|
1202
|
+
version: e.version || "unknown"
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
const r = o.name.toLowerCase(), i = o.version.split(".")[0] || "0", s = parseInt(i, 10), c = [...(null == t ? void 0 : t.exclude) || []], l = (null == t ? void 0 : t.stabilize) || [], u = (null == t ? void 0 : t.include) || [];
|
|
1207
|
+
for (const e of l) {
|
|
1208
|
+
const t = a[e];
|
|
1209
|
+
if (t) for (const e of t) {
|
|
1210
|
+
const t = !("browsers" in e), o = !t && (null === (n = e.browsers) || void 0 === n ? void 0 : n.some(((e) => {
|
|
1211
|
+
const t = e.match(/(.+?)(>=)(\d+)/);
|
|
1212
|
+
if (t) {
|
|
1213
|
+
const [, e, , n] = t;
|
|
1214
|
+
return r === e && s >= parseInt(n, 10);
|
|
1215
|
+
}
|
|
1216
|
+
return r === e;
|
|
1217
|
+
})));
|
|
1218
|
+
(t || o) && c.push(...e.exclude);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
return function e(t, n = "") {
|
|
1222
|
+
const o = {};
|
|
1223
|
+
for (const [r, i] of Object.entries(t)) {
|
|
1224
|
+
const t = n ? `${n}.${r}` : r;
|
|
1225
|
+
if ("object" != typeof i || Array.isArray(i) || null === i) {
|
|
1226
|
+
const e = c.some(((e) => t.startsWith(e))), n = u.some(((e) => t.startsWith(e)));
|
|
1227
|
+
e && !n || (o[r] = i);
|
|
1228
|
+
} else {
|
|
1229
|
+
const n = e(i, t);
|
|
1230
|
+
Object.keys(n).length > 0 && (o[r] = n);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
return o;
|
|
1234
|
+
}(e);
|
|
1235
|
+
}
|
|
1236
|
+
const z = "visitor_id";
|
|
1237
|
+
function J(e) {
|
|
1238
|
+
return e.storage_property_name ? e.storage_property_name : e.property_name_factory(z);
|
|
1239
|
+
}
|
|
1240
|
+
const q = `${t}_${z}`;
|
|
1241
|
+
function K(e, t) {
|
|
1242
|
+
try {
|
|
1243
|
+
localStorage.setItem(J(t), e);
|
|
1244
|
+
} catch (e) {}
|
|
1245
|
+
}
|
|
1246
|
+
const Y = "cache";
|
|
1247
|
+
function X(e) {
|
|
1248
|
+
try {
|
|
1249
|
+
const t = localStorage.getItem(e.property_name_factory(Y));
|
|
1250
|
+
return JSON.parse(t) || {};
|
|
1251
|
+
} catch (e) {}
|
|
1252
|
+
return {};
|
|
1253
|
+
}
|
|
1254
|
+
function Z(t) {
|
|
1255
|
+
return t.cache_lifetime_in_ms > e ? Date.now() + e : Date.now() + t.cache_lifetime_in_ms;
|
|
1256
|
+
}
|
|
1257
|
+
let Q = null;
|
|
1258
|
+
let ee = null;
|
|
1259
|
+
const te = (e, t) => {
|
|
1260
|
+
if (e.cache_api_call) {
|
|
1261
|
+
if (ee) return Promise.resolve(ee);
|
|
1262
|
+
const t = function(e) {
|
|
1263
|
+
const t = X(e);
|
|
1264
|
+
if (t && t.apiResponse && t.apiResponseExpiry && Date.now() <= t.apiResponseExpiry) return t.apiResponse;
|
|
1265
|
+
}(e);
|
|
1266
|
+
if (t) return Promise.resolve(t);
|
|
1267
|
+
if (Q) return Q;
|
|
1268
|
+
}
|
|
1269
|
+
const o = `${e.api_endpoint || n}/thumbmark`, r = function(e) {
|
|
1270
|
+
try {
|
|
1271
|
+
const t = J(e);
|
|
1272
|
+
let n = localStorage.getItem(t);
|
|
1273
|
+
return n || t === q || (n = localStorage.getItem(q), n && K(n, e)), n;
|
|
1274
|
+
} catch (e) {
|
|
1275
|
+
return null;
|
|
1276
|
+
}
|
|
1277
|
+
}(e), i = {
|
|
1278
|
+
components: t,
|
|
1279
|
+
options: e,
|
|
1280
|
+
clientHash: h(O(t)),
|
|
1281
|
+
version: "1.6.3"
|
|
1282
|
+
};
|
|
1283
|
+
r && (i.visitorId = r);
|
|
1284
|
+
const a = fetch(o, {
|
|
1285
|
+
method: "POST",
|
|
1286
|
+
headers: {
|
|
1287
|
+
"x-api-key": e.api_key,
|
|
1288
|
+
Authorization: "custom-authorized",
|
|
1289
|
+
"Content-Type": "application/json"
|
|
1290
|
+
},
|
|
1291
|
+
body: JSON.stringify(i)
|
|
1292
|
+
}).then(((e) => {
|
|
1293
|
+
if (!e.ok) {
|
|
1294
|
+
if (403 === e.status) throw new Error("INVALID_API_KEY");
|
|
1295
|
+
throw new Error(`HTTP error! status: ${e.status}`);
|
|
1296
|
+
}
|
|
1297
|
+
return e.json();
|
|
1298
|
+
})).then(((t) => (t.visitorId && t.visitorId !== r && K(t.visitorId, e), ee = t, function(e, t) {
|
|
1299
|
+
if (!e.cache_api_call || !e.cache_lifetime_in_ms) return;
|
|
1300
|
+
(function(e, t) {
|
|
1301
|
+
const n = {
|
|
1302
|
+
...X(e),
|
|
1303
|
+
...t
|
|
1304
|
+
};
|
|
1305
|
+
try {
|
|
1306
|
+
localStorage.setItem(e.property_name_factory(Y), JSON.stringify(n));
|
|
1307
|
+
} catch (e) {}
|
|
1308
|
+
})(e, {
|
|
1309
|
+
apiResponseExpiry: Z(e),
|
|
1310
|
+
apiResponse: t
|
|
1311
|
+
});
|
|
1312
|
+
}(e, t), Q = null, t))).catch(((e) => {
|
|
1313
|
+
if (console.error("Error fetching pro data", e), Q = null, "INVALID_API_KEY" === e.message) throw e;
|
|
1314
|
+
return null;
|
|
1315
|
+
})), s = e.timeout || 5e3, c = new Promise(((t) => {
|
|
1316
|
+
setTimeout((() => {
|
|
1317
|
+
const n = X(e);
|
|
1318
|
+
n && n.apiResponse ? t(n.apiResponse) : t({
|
|
1319
|
+
info: { timed_out: !0 },
|
|
1320
|
+
...r && { visitorId: r }
|
|
1321
|
+
});
|
|
1322
|
+
}), s);
|
|
1323
|
+
}));
|
|
1324
|
+
return Q = Promise.race([a, c]), Q;
|
|
1325
|
+
};
|
|
1326
|
+
async function ne(e) {
|
|
1327
|
+
var t;
|
|
1328
|
+
if ("undefined" == typeof document || "undefined" == typeof window) return {
|
|
1329
|
+
thumbmark: "",
|
|
1330
|
+
components: {},
|
|
1331
|
+
info: {},
|
|
1332
|
+
version: "1.6.3",
|
|
1333
|
+
error: "Browser environment required"
|
|
1334
|
+
};
|
|
1335
|
+
const r = {
|
|
1336
|
+
...o,
|
|
1337
|
+
...e
|
|
1338
|
+
}, i = r.logging && !sessionStorage.getItem("_tmjs_l") && Math.random() < 1e-4, { elapsed: s, resolvedComponents: c } = await oe({
|
|
1339
|
+
...V,
|
|
1340
|
+
...U
|
|
1341
|
+
}, r);
|
|
1342
|
+
let l = {}, u = {};
|
|
1343
|
+
if (i || r.experimental) {
|
|
1344
|
+
const { elapsed: e, resolvedComponents: t } = await oe(F, r);
|
|
1345
|
+
l = t, u = e;
|
|
1346
|
+
}
|
|
1347
|
+
const d = r.api_key ? te(r, c) : null;
|
|
1348
|
+
let m = null;
|
|
1349
|
+
if (d) try {
|
|
1350
|
+
m = await d;
|
|
1351
|
+
} catch (e) {
|
|
1352
|
+
if (e instanceof Error && "INVALID_API_KEY" === e.message) return {
|
|
1353
|
+
error: "Invalid API key or quota exceeded",
|
|
1354
|
+
components: {},
|
|
1355
|
+
info: {},
|
|
1356
|
+
version: "1.6.3",
|
|
1357
|
+
thumbmark: ""
|
|
1358
|
+
};
|
|
1359
|
+
throw e;
|
|
1360
|
+
}
|
|
1361
|
+
const f = {
|
|
1362
|
+
...s,
|
|
1363
|
+
...u
|
|
1364
|
+
}, p = r.performance ? { elapsed: f } : {}, g = G((null == m ? void 0 : m.components) || {}, r), w = {
|
|
1365
|
+
...c,
|
|
1366
|
+
...g
|
|
1367
|
+
}, v = (null == m ? void 0 : m.info) || { uniqueness: { score: "api only" } }, y = null !== (t = null == m ? void 0 : m.thumbmark) && void 0 !== t ? t : h(O(w));
|
|
1368
|
+
i && async function(e, t, o, r = {}) {
|
|
1369
|
+
var i;
|
|
1370
|
+
const a = `${n}/log`, s = {
|
|
1371
|
+
thumbmark: e,
|
|
1372
|
+
components: t,
|
|
1373
|
+
experimental: r,
|
|
1374
|
+
version: "1.6.3",
|
|
1375
|
+
options: o,
|
|
1376
|
+
path: null === (i = null === window || void 0 === window ? void 0 : window.location) || void 0 === i ? void 0 : i.pathname
|
|
1377
|
+
};
|
|
1378
|
+
sessionStorage.setItem("_tmjs_l", "1");
|
|
1379
|
+
try {
|
|
1380
|
+
await fetch(a, {
|
|
1381
|
+
method: "POST",
|
|
1382
|
+
headers: { "Content-Type": "application/json" },
|
|
1383
|
+
body: JSON.stringify(s)
|
|
1384
|
+
});
|
|
1385
|
+
} catch (e) {}
|
|
1386
|
+
}(y, w, r, l).catch((() => {}));
|
|
1387
|
+
return {
|
|
1388
|
+
...(null == m ? void 0 : m.visitorId) && { visitorId: m.visitorId },
|
|
1389
|
+
thumbmark: y,
|
|
1390
|
+
components: w,
|
|
1391
|
+
info: v,
|
|
1392
|
+
version: "1.6.3",
|
|
1393
|
+
...p,
|
|
1394
|
+
...Object.keys(l).length > 0 && r.experimental && { experimental: l },
|
|
1395
|
+
...(null == m ? void 0 : m.requestId) && { requestId: m.requestId }
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
async function oe(e, t) {
|
|
1399
|
+
const n = {
|
|
1400
|
+
...o,
|
|
1401
|
+
...t
|
|
1402
|
+
}, r = Object.entries(e).filter((([e]) => {
|
|
1403
|
+
var t;
|
|
1404
|
+
return !(null === (t = null == n ? void 0 : n.exclude) || void 0 === t ? void 0 : t.includes(e));
|
|
1405
|
+
})).filter((([e]) => {
|
|
1406
|
+
var t, o, r, i;
|
|
1407
|
+
return (null === (t = null == n ? void 0 : n.include) || void 0 === t ? void 0 : t.some(((e) => e.includes(".")))) ? null === (o = null == n ? void 0 : n.include) || void 0 === o ? void 0 : o.some(((t) => t.startsWith(e))) : 0 === (null === (r = null == n ? void 0 : n.include) || void 0 === r ? void 0 : r.length) || (null === (i = null == n ? void 0 : n.include) || void 0 === i ? void 0 : i.includes(e));
|
|
1408
|
+
})), i = r.map((([e]) => e)), s = await function(e, t, n) {
|
|
1409
|
+
return Promise.all(e.map(((e) => {
|
|
1410
|
+
const o = performance.now();
|
|
1411
|
+
return Promise.race([e.then(((e) => ({
|
|
1412
|
+
value: e,
|
|
1413
|
+
elapsed: performance.now() - o
|
|
1414
|
+
}))), (r = t, i = n, new Promise(((e) => {
|
|
1415
|
+
setTimeout((() => e(i)), r);
|
|
1416
|
+
}))).then(((e) => ({
|
|
1417
|
+
value: e,
|
|
1418
|
+
elapsed: performance.now() - o
|
|
1419
|
+
})))]);
|
|
1420
|
+
var r, i;
|
|
1421
|
+
})));
|
|
1422
|
+
}(r.map((([e, n]) => n(t))), (null == n ? void 0 : n.timeout) || 5e3, j), c = {}, l = {};
|
|
1423
|
+
s.forEach(((e, t) => {
|
|
1424
|
+
var n;
|
|
1425
|
+
null != e.value && (l[i[t]] = e.value, c[i[t]] = null !== (n = e.elapsed) && void 0 !== n ? n : 0);
|
|
1426
|
+
}));
|
|
1427
|
+
return {
|
|
1428
|
+
elapsed: c,
|
|
1429
|
+
resolvedComponents: G(l, n)
|
|
1430
|
+
};
|
|
1431
|
+
}
|
|
1432
|
+
var se = class {
|
|
1433
|
+
constructor(e) {
|
|
1434
|
+
this.options = {
|
|
1435
|
+
...o,
|
|
1436
|
+
...e
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
async get(e) {
|
|
1440
|
+
return ne({
|
|
1441
|
+
...this.options,
|
|
1442
|
+
...e
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
getVersion() {
|
|
1446
|
+
return "1.6.3";
|
|
1447
|
+
}
|
|
1448
|
+
includeComponent(e, t) {
|
|
1449
|
+
W(e, t);
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
//#endregion
|
|
1453
|
+
//#region ../infra/src/providers/browser/thumbmarkAdapter.ts
|
|
1454
|
+
/**
|
|
1455
|
+
* Adapter for @thumbmarkjs/thumbmarkjs. Single point of dependency so bundlers
|
|
1456
|
+
* resolve it from infra's node_modules when building apps that depend on core → infra.
|
|
1457
|
+
*/
|
|
1458
|
+
async function getThumbmarkId() {
|
|
1459
|
+
return (await new se().get()).thumbmark;
|
|
1460
|
+
}
|
|
1461
|
+
//#endregion
|
|
1462
|
+
//#region ../infra/src/providers/browser/FingerprintProvider.ts
|
|
1463
|
+
var FingerprintProvider = class {
|
|
1464
|
+
constructor(ipLookup) {
|
|
1465
|
+
this.ipLookup = ipLookup;
|
|
1466
|
+
}
|
|
1467
|
+
async getFingerprint(disableIpify = false) {
|
|
1468
|
+
const visitorId = await getThumbmarkId();
|
|
1469
|
+
const [deviceInfo, ip] = await Promise.all([getDeviceFingerprintInfo(), disableIpify ? Promise.resolve("") : this.ipLookup.getIp()]);
|
|
1470
|
+
return {
|
|
1471
|
+
visitorId,
|
|
1472
|
+
ip,
|
|
1473
|
+
deviceInfo
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
};
|
|
1477
|
+
//#endregion
|
|
1478
|
+
//#region ../infra/src/providers/browser/IpifyProvider.ts
|
|
1479
|
+
let cachedIp;
|
|
1480
|
+
let inFlightLookup;
|
|
1481
|
+
/**
|
|
1482
|
+
* Resets the module-level IP cache. Intended for tests and full session resets.
|
|
1483
|
+
*/
|
|
1484
|
+
function resetIpifyCache() {
|
|
1485
|
+
cachedIp = void 0;
|
|
1486
|
+
inFlightLookup = void 0;
|
|
1487
|
+
}
|
|
1488
|
+
async function fetchIpFromIpify() {
|
|
1489
|
+
if (typeof fetch === "undefined") return "";
|
|
1490
|
+
let timeoutId = 0;
|
|
1491
|
+
const controller = new AbortController();
|
|
1492
|
+
if (AbortSignal.timeout) {
|
|
1493
|
+
const signal = AbortSignal.timeout(3e3);
|
|
1494
|
+
return (await (await fetch("https://api.ipify.org?format=json", { signal })).json()).ip;
|
|
1495
|
+
}
|
|
1496
|
+
const timeoutPromise = new Promise((_, reject) => {
|
|
1497
|
+
timeoutId = setTimeout(() => {
|
|
1498
|
+
controller.abort();
|
|
1499
|
+
reject(/* @__PURE__ */ new Error("Request timeout"));
|
|
1500
|
+
}, 3e3);
|
|
1501
|
+
});
|
|
1502
|
+
const fetchPromise = fetch("https://api.ipify.org?format=json", { signal: controller.signal }).then((res) => res.json()).then((data) => data.ip);
|
|
1503
|
+
const result = await Promise.race([fetchPromise, timeoutPromise]);
|
|
1504
|
+
clearTimeout(timeoutId);
|
|
1505
|
+
return result;
|
|
1506
|
+
}
|
|
1507
|
+
var IpifyProvider = class {
|
|
1508
|
+
async getIp() {
|
|
1509
|
+
if (cachedIp !== void 0) return cachedIp;
|
|
1510
|
+
if (inFlightLookup) return inFlightLookup;
|
|
1511
|
+
inFlightLookup = (async () => {
|
|
1512
|
+
try {
|
|
1513
|
+
const ip = await fetchIpFromIpify();
|
|
1514
|
+
cachedIp = ip;
|
|
1515
|
+
return ip;
|
|
1516
|
+
} catch {
|
|
1517
|
+
cachedIp = "";
|
|
1518
|
+
return "";
|
|
1519
|
+
} finally {
|
|
1520
|
+
inFlightLookup = void 0;
|
|
1521
|
+
}
|
|
1522
|
+
})();
|
|
1523
|
+
return inFlightLookup;
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
//#endregion
|
|
1527
|
+
//#region src/internal/featureConfig/featureConfigService.ts
|
|
1528
|
+
let cachedFeatures$1 = null;
|
|
1529
|
+
/**
|
|
1530
|
+
* Checks if a feature is enabled in the feature config.
|
|
1531
|
+
*/
|
|
1532
|
+
function isFeatureEnabled(feature, features) {
|
|
1533
|
+
return features?.find((f) => f.feature === feature)?.enabled ?? false;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Fetches feature configuration from the backend.
|
|
1537
|
+
* Results are cached for the session lifetime.
|
|
1538
|
+
*/
|
|
1539
|
+
async function fetchFeatureConfig(signal) {
|
|
1540
|
+
if (cachedFeatures$1) return cachedFeatures$1;
|
|
1541
|
+
const response = await api.get(endpoints.featureConfig, { signal });
|
|
1542
|
+
if (!response.ok) throw new Error(`Failed to fetch feature config: ${response.status} ${response.statusText}`);
|
|
1543
|
+
cachedFeatures$1 = response.data;
|
|
1544
|
+
return cachedFeatures$1;
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Resets the cached feature config (useful for testing).
|
|
1548
|
+
*/
|
|
1549
|
+
function resetFeatureConfigCache() {
|
|
1550
|
+
cachedFeatures$1 = null;
|
|
1551
|
+
}
|
|
1552
|
+
//#endregion
|
|
1553
|
+
//#region src/internal/device/hasLiedBrowser.ts
|
|
1554
|
+
function detectBrowserFromUserAgent(userAgent) {
|
|
1555
|
+
if (userAgent.indexOf("edge/") >= 0 || userAgent.indexOf("iemobile/") >= 0) return "Other";
|
|
1556
|
+
if (userAgent.indexOf("opera mini") >= 0) return "Other";
|
|
1557
|
+
if (userAgent.indexOf("firefox/") >= 0) return "Firefox";
|
|
1558
|
+
if (userAgent.indexOf("opera/") >= 0 || userAgent.indexOf(" opr/") >= 0) return "Opera";
|
|
1559
|
+
if (userAgent.indexOf("chrome/") >= 0) return "Chrome";
|
|
1560
|
+
if (userAgent.indexOf("safari/") >= 0) {
|
|
1561
|
+
if (userAgent.indexOf("android 1.") >= 0 || userAgent.indexOf("android 2.") >= 0 || userAgent.indexOf("android 3.") >= 0 || userAgent.indexOf("android 4.") >= 0) return "AOSP";
|
|
1562
|
+
return "Safari";
|
|
1563
|
+
}
|
|
1564
|
+
if (userAgent.indexOf("trident/") >= 0) return "Internet Explorer";
|
|
1565
|
+
return "Other";
|
|
1566
|
+
}
|
|
1567
|
+
function hasLiedBrowser(browserEnv) {
|
|
1568
|
+
const userAgent = getUserAgent().toLowerCase();
|
|
1569
|
+
if (userAgent.indexOf("edge/") >= 0 || userAgent.indexOf("iemobile/") >= 0) return false;
|
|
1570
|
+
if (userAgent.indexOf("opera mini") >= 0) return false;
|
|
1571
|
+
const browser = detectBrowserFromUserAgent(userAgent);
|
|
1572
|
+
const productSub = browserEnv.getNavigatorProductSub();
|
|
1573
|
+
if ((browser === "Chrome" || browser === "Safari" || browser === "Opera") && productSub !== "20030107") return true;
|
|
1574
|
+
const evalLength = browserEnv.getEvalToStringLength();
|
|
1575
|
+
if (evalLength === 37 && browser !== "Safari" && browser !== "Firefox" && browser !== "Other") return true;
|
|
1576
|
+
if (evalLength === 39 && browser !== "Internet Explorer" && browser !== "Other") return true;
|
|
1577
|
+
if (evalLength === 33 && browser !== "Chrome" && browser !== "AOSP" && browser !== "Opera" && browser !== "Other") return true;
|
|
1578
|
+
return browserEnv.tryFirefoxToSource() && browser !== "Firefox" && browser !== "Other";
|
|
1579
|
+
}
|
|
1580
|
+
//#endregion
|
|
1581
|
+
//#region src/internal/device/browserSimulation.ts
|
|
1582
|
+
const AUTOMATION_MARKERS = {
|
|
1583
|
+
window: [
|
|
1584
|
+
"callPhantom",
|
|
1585
|
+
"_phantom",
|
|
1586
|
+
"phantom",
|
|
1587
|
+
"__nightmare",
|
|
1588
|
+
"domAutomation",
|
|
1589
|
+
"domAutomationController"
|
|
1590
|
+
],
|
|
1591
|
+
navigator: ["webdriver"]
|
|
1592
|
+
};
|
|
1593
|
+
function hasAutomationMarker(browserEnv) {
|
|
1594
|
+
for (const prop of AUTOMATION_MARKERS.window) if (browserEnv.getWindowProperty(prop)) return true;
|
|
1595
|
+
for (const prop of AUTOMATION_MARKERS.navigator) if (browserEnv.getNavigatorProperty(prop)) return true;
|
|
1596
|
+
return false;
|
|
1597
|
+
}
|
|
1598
|
+
function isBrowserSimulation(browserEnv) {
|
|
1599
|
+
if (hasAutomationMarker(browserEnv)) return true;
|
|
1600
|
+
if (!getParsedUserAgent().browser.name) return true;
|
|
1601
|
+
const touchPoints = browserEnv.getMaxTouchPoints();
|
|
1602
|
+
const isTouch = touchPoints > 0 || browserEnv.hasOnTouchStart();
|
|
1603
|
+
if (isTouch && touchPoints !== 1) return false;
|
|
1604
|
+
const ua = getUserAgent();
|
|
1605
|
+
if (isTouch && (hasLiedBrowser(browserEnv) || ua.includes("Mobile"))) return true;
|
|
1606
|
+
if (isIOS(ua) && !browserEnv.hasOnTouchStart()) return true;
|
|
1607
|
+
return false;
|
|
1608
|
+
}
|
|
1609
|
+
//#endregion
|
|
1610
|
+
//#region src/internal/version/sdkVersion.ts
|
|
1611
|
+
const SDK_VERSION = "0.0.0-dev-20260715-dcc78bcd";
|
|
1612
|
+
//#endregion
|
|
1613
|
+
//#region src/internal/fingerprint/fingerprintService.ts
|
|
1614
|
+
function formatOsVersion(os) {
|
|
1615
|
+
return `${os.name || "Unknown"} ${os.version || ""}`.trim();
|
|
1616
|
+
}
|
|
1617
|
+
function formatBrowser(browser) {
|
|
1618
|
+
if (!browser.name || !browser.version) return "Unknown";
|
|
1619
|
+
return `${browser.name} ${browser.version}`;
|
|
1620
|
+
}
|
|
1621
|
+
async function submitDeviceFingerprint(options = {}, dependencies) {
|
|
1622
|
+
const { disableIpify = false, hostingApp, signal } = options;
|
|
1623
|
+
const fingerprint = await dependencies.fingerprintProvider.getFingerprint(disableIpify);
|
|
1624
|
+
const hasLiedBrowser = isBrowserSimulation(dependencies.browserEnv);
|
|
1625
|
+
const payload = {
|
|
1626
|
+
hash: fingerprint.visitorId || "",
|
|
1627
|
+
ip: fingerprint.ip || "",
|
|
1628
|
+
deviceType: "WEBAPP",
|
|
1629
|
+
data: JSON.stringify(fingerprint),
|
|
1630
|
+
osVersion: formatOsVersion(fingerprint.deviceInfo.os),
|
|
1631
|
+
deviceModel: fingerprint.deviceInfo.device.model || "",
|
|
1632
|
+
browser: formatBrowser(fingerprint.deviceInfo.browser),
|
|
1633
|
+
hasLiedBrowser,
|
|
1634
|
+
sdkVersion: SDK_VERSION,
|
|
1635
|
+
hostingApp: hostingApp ?? "Web SDK"
|
|
1636
|
+
};
|
|
1637
|
+
const response = await api.post(endpoints.deviceFingerprint, payload, { signal });
|
|
1638
|
+
if (!response.ok) throw new Error(`Failed to submit fingerprint: ${response.status} ${response.statusText}`);
|
|
1639
|
+
return response.data;
|
|
1640
|
+
}
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region src/internal/session/sessionInitializer.ts
|
|
1643
|
+
let sessionInitialized = false;
|
|
1644
|
+
let cachedFeatures = null;
|
|
1645
|
+
let cachedDisableIpify = false;
|
|
1646
|
+
let clientIpLookupEnabled = true;
|
|
1647
|
+
let clientFingerprintEnabled = true;
|
|
1648
|
+
function setClientIpLookupEnabled(enabled) {
|
|
1649
|
+
clientIpLookupEnabled = enabled;
|
|
1650
|
+
}
|
|
1651
|
+
function setClientFingerprintEnabled(enabled) {
|
|
1652
|
+
clientFingerprintEnabled = enabled;
|
|
1653
|
+
}
|
|
1654
|
+
function resolveDisableIpify(serverDisableIpify) {
|
|
1655
|
+
return !clientIpLookupEnabled || serverDisableIpify;
|
|
1656
|
+
}
|
|
1657
|
+
let cachedFingerprintSuccess = false;
|
|
1658
|
+
let cachedFingerprintResult;
|
|
1659
|
+
let sessionInitPromise = null;
|
|
1660
|
+
/**
|
|
1661
|
+
* Activates a session by setting the auth token on the HTTP client and
|
|
1662
|
+
* preloading session-scoped state.
|
|
1663
|
+
*
|
|
1664
|
+
* Performs:
|
|
1665
|
+
* 1. Sets the token (and clears stale session-init cache if the token changed)
|
|
1666
|
+
* 2. Links the session with the TRI activity if TRI is enabled
|
|
1667
|
+
* 3. Fetches feature configuration from backend
|
|
1668
|
+
* 4. Submits device fingerprint
|
|
1669
|
+
* 5. Starts the analytics batcher so buffered events are flushed
|
|
1670
|
+
*
|
|
1671
|
+
* Results are cached per token. Calling again with the same token returns the
|
|
1672
|
+
* cached result; calling with a different token re-initializes from scratch.
|
|
1673
|
+
*
|
|
1674
|
+
* @param options - Session activation options (`token` required)
|
|
1675
|
+
* @returns Session initialization result with feature config
|
|
1676
|
+
*
|
|
1677
|
+
* @example
|
|
1678
|
+
* ```ts
|
|
1679
|
+
* await setup({ apiURL: 'https://api.incode.com' });
|
|
1680
|
+
* const session = await createSession('api-key', options);
|
|
1681
|
+
* const { features } = await initializeSession({ token: session.token });
|
|
1682
|
+
*
|
|
1683
|
+
* // Check feature flags
|
|
1684
|
+
* if (isFeatureEnabled('DISABLE_IPIFY', features.features)) {
|
|
1685
|
+
* // Handle disabled ipify
|
|
1686
|
+
* }
|
|
1687
|
+
* ```
|
|
1688
|
+
*/
|
|
1689
|
+
async function initializeSession(options = {}) {
|
|
1690
|
+
const { token, hostingApp, signal } = options;
|
|
1691
|
+
if (token !== void 0 && token !== getToken()) {
|
|
1692
|
+
setToken(token);
|
|
1693
|
+
resetSessionInit();
|
|
1694
|
+
if (isTRIStarted()) await linkSessionWithTRI(token);
|
|
1695
|
+
}
|
|
1696
|
+
if (sessionInitialized && cachedFeatures) return {
|
|
1697
|
+
features: cachedFeatures,
|
|
1698
|
+
disableIpify: cachedDisableIpify,
|
|
1699
|
+
fingerprintSuccess: cachedFingerprintSuccess,
|
|
1700
|
+
fingerprintResult: cachedFingerprintResult
|
|
1701
|
+
};
|
|
1702
|
+
if (sessionInitPromise) return sessionInitPromise;
|
|
1703
|
+
sessionInitPromise = (async () => {
|
|
1704
|
+
let features;
|
|
1705
|
+
let serverDisableIpify = false;
|
|
1706
|
+
try {
|
|
1707
|
+
features = await fetchFeatureConfig(signal);
|
|
1708
|
+
serverDisableIpify = isFeatureEnabled("DISABLE_IPIFY", features.features);
|
|
1709
|
+
} catch {
|
|
1710
|
+
features = { sessionIdentifier: "" };
|
|
1711
|
+
}
|
|
1712
|
+
const disableIpify = resolveDisableIpify(serverDisableIpify);
|
|
1713
|
+
let fingerprintSuccess = false;
|
|
1714
|
+
let fingerprintResult;
|
|
1715
|
+
if (clientFingerprintEnabled) try {
|
|
1716
|
+
const fingerprintProvider = new FingerprintProvider(new IpifyProvider());
|
|
1717
|
+
const browserEnv = new BrowserEnvironmentProvider();
|
|
1718
|
+
fingerprintResult = await submitDeviceFingerprint({
|
|
1719
|
+
disableIpify,
|
|
1720
|
+
hostingApp,
|
|
1721
|
+
signal
|
|
1722
|
+
}, {
|
|
1723
|
+
fingerprintProvider,
|
|
1724
|
+
browserEnv
|
|
1725
|
+
});
|
|
1726
|
+
fingerprintSuccess = true;
|
|
1727
|
+
flushDeviceStatsQueue();
|
|
1728
|
+
} catch (error) {
|
|
1729
|
+
console.warn("Failed to submit device fingerprint:", error);
|
|
1730
|
+
}
|
|
1731
|
+
else flushDeviceStatsQueue();
|
|
1732
|
+
try {
|
|
1733
|
+
const browserInfo = new BrowserInfoProvider().getBrowserInfo();
|
|
1734
|
+
addEvent({
|
|
1735
|
+
code: "browser",
|
|
1736
|
+
payload: {
|
|
1737
|
+
userAgent: browserInfo.userAgent,
|
|
1738
|
+
isWebRtcSupported: browserInfo.isWebRtcSupported,
|
|
1739
|
+
browser: browserInfo.browser,
|
|
1740
|
+
os: browserInfo.os,
|
|
1741
|
+
device: browserInfo.device,
|
|
1742
|
+
engine: browserInfo.engine,
|
|
1743
|
+
cpu: browserInfo.cpu
|
|
1744
|
+
}
|
|
1745
|
+
});
|
|
1746
|
+
} catch (error) {
|
|
1747
|
+
console.warn("Failed to send browser info event:", error);
|
|
1748
|
+
}
|
|
1749
|
+
sessionInitialized = true;
|
|
1750
|
+
cachedFeatures = features;
|
|
1751
|
+
cachedDisableIpify = disableIpify;
|
|
1752
|
+
cachedFingerprintSuccess = fingerprintSuccess;
|
|
1753
|
+
cachedFingerprintResult = fingerprintResult;
|
|
1754
|
+
return {
|
|
1755
|
+
features,
|
|
1756
|
+
disableIpify,
|
|
1757
|
+
fingerprintSuccess,
|
|
1758
|
+
fingerprintResult
|
|
1759
|
+
};
|
|
1760
|
+
})().finally(() => {
|
|
1761
|
+
sessionInitPromise = null;
|
|
1762
|
+
getAnalyticsBatcher()?.start();
|
|
1763
|
+
});
|
|
1764
|
+
return sessionInitPromise;
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Gets the cached disableIpify flag.
|
|
1768
|
+
* Returns false if session hasn't been initialized.
|
|
1769
|
+
*/
|
|
1770
|
+
function getDisableIpify() {
|
|
1771
|
+
if (!clientIpLookupEnabled) return true;
|
|
1772
|
+
return cachedDisableIpify;
|
|
1773
|
+
}
|
|
1774
|
+
function getSessionFingerprintResult() {
|
|
1775
|
+
return cachedFingerprintResult;
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* Gets whether client-side device-fingerprint submission is enabled.
|
|
1779
|
+
* Consumed by `loadDeepsightSession` to resolve `disableFingerprint`
|
|
1780
|
+
* (mirrors how `getDisableIpify` is used).
|
|
1781
|
+
*/
|
|
1782
|
+
function getFingerprintEnabled() {
|
|
1783
|
+
return clientFingerprintEnabled;
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Resets session initialization state.
|
|
1787
|
+
* Useful for testing or when starting a new session.
|
|
1788
|
+
*/
|
|
1789
|
+
function resetSessionInit() {
|
|
1790
|
+
sessionInitialized = false;
|
|
1791
|
+
cachedFeatures = null;
|
|
1792
|
+
cachedDisableIpify = false;
|
|
1793
|
+
cachedFingerprintSuccess = false;
|
|
1794
|
+
cachedFingerprintResult = void 0;
|
|
1795
|
+
sessionInitPromise = null;
|
|
1796
|
+
resetFeatureConfigCache();
|
|
1797
|
+
resetIpifyCache();
|
|
1798
|
+
resetDeviceStatsQueue();
|
|
1799
|
+
}
|
|
1800
|
+
//#endregion
|
|
1801
|
+
export { resetSessionInit as a, isBrowserSimulation as c, getThumbmarkId as d, getDeviceFingerprintInfo as f, initializeSession as i, IpifyProvider as l, getFingerprintEnabled as n, setClientFingerprintEnabled as o, BrowserEnvironmentProvider as p, getSessionFingerprintResult as r, setClientIpLookupEnabled as s, getDisableIpify as t, FingerprintProvider as u };
|