@sekyro/elements 0.1.0-rc.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/CHANGELOG.md +452 -0
  2. package/README.md +4 -4
  3. package/dist/cdn/chunks/{camera-trait-V4UAOPIQ-TFCPOCSU.js → camera-trait-DELAK3YN-4I2GHAFU.js} +1 -1
  4. package/dist/cdn/chunks/capture-session-doc-7SHEMIO2-UEB3BLJY.js +1 -0
  5. package/dist/cdn/chunks/challenge-frame-HTZ2ZBIE-5JRAFZOU.js +1 -0
  6. package/dist/cdn/chunks/chunk-37BKUH3E.js +1 -0
  7. package/dist/cdn/chunks/chunk-4VGBIKKF.js +3 -0
  8. package/dist/cdn/chunks/{chunk-ZXPJTB7H.js → chunk-4X4DNUJB.js} +1 -1
  9. package/dist/cdn/chunks/chunk-5QOH6NQH.js +1 -0
  10. package/dist/cdn/chunks/{chunk-SMZ7F4L7.js → chunk-5Y7NCFTK.js} +1 -1
  11. package/dist/cdn/chunks/chunk-65WXOD3F.js +33 -0
  12. package/dist/cdn/chunks/chunk-6MYG4HWP.js +1 -0
  13. package/dist/cdn/chunks/{chunk-DASQWRD2.js → chunk-6W6GR7P4.js} +1 -1
  14. package/dist/cdn/chunks/chunk-7UCVVWRT.js +1 -0
  15. package/dist/cdn/chunks/chunk-CIDO7UAK.js +1 -0
  16. package/dist/cdn/chunks/chunk-DDUCV6NE.js +1 -0
  17. package/dist/cdn/chunks/chunk-E7UFFFZO.js +1 -0
  18. package/dist/cdn/chunks/{chunk-A2ZKVVIE.js → chunk-ERJRG52Z.js} +1 -1
  19. package/dist/cdn/chunks/{chunk-O33NXBND.js → chunk-F3BSTTXB.js} +1 -1
  20. package/dist/cdn/chunks/{chunk-E2MOAJT7.js → chunk-G6ICN3K2.js} +1 -1
  21. package/dist/cdn/chunks/chunk-K3XSP444.js +25 -0
  22. package/dist/cdn/chunks/chunk-KQCTXWDO.js +1 -0
  23. package/dist/cdn/chunks/{chunk-RUN75CTZ.js → chunk-MVPBIASR.js} +1 -1
  24. package/dist/cdn/chunks/{chunk-T5IERZBI.js → chunk-MZETEVSB.js} +1 -1
  25. package/dist/cdn/chunks/chunk-NGJMT7M3.js +1 -0
  26. package/dist/cdn/chunks/chunk-OD63YRJW.js +1 -0
  27. package/dist/cdn/chunks/chunk-PND4F7JQ.js +1 -0
  28. package/dist/cdn/chunks/chunk-PQGILDKC.js +1 -0
  29. package/dist/cdn/chunks/chunk-SLLJX5QK.js +1 -0
  30. package/dist/cdn/chunks/{chunk-UQKRYXN5.js → chunk-T5IBMUSY.js} +1 -1
  31. package/dist/cdn/chunks/chunk-W5WWCOOW.js +1 -0
  32. package/dist/cdn/chunks/chunk-XKZZC74I.js +1 -0
  33. package/dist/cdn/chunks/{chunk-DYCKQAZH.js → chunk-XUZB5KEZ.js} +1 -1
  34. package/dist/cdn/chunks/chunk-YHUTESVX.js +1 -0
  35. package/dist/cdn/chunks/create-document-capture-D6MSQXPC-REYSYPDK.js +1 -0
  36. package/dist/cdn/chunks/{create-portrait-capture-5VGYZUOK-N3333DJC.js → create-portrait-capture-3MHP4DGA-4XIQSUJ3.js} +1 -1
  37. package/dist/cdn/chunks/{detector-scanic-SE3CL55N-JIGLCDPS.js → detector-scanic-3VQFGZAA-NF7AFUUP.js} +1 -1
  38. package/dist/cdn/chunks/document-capture-view-HKEUWRPE-LOW3SNGM.js +1 -0
  39. package/dist/cdn/chunks/eid-view-Y5OFAHVC-H2H5O3H4.js +1 -0
  40. package/dist/cdn/chunks/email-otp-view-ZEVLA5UZ-JO2KA6XE.js +1 -0
  41. package/dist/cdn/chunks/flow-views-ARNNXDI4-7BYKNQLO.js +1 -0
  42. package/dist/cdn/chunks/form-view-PQQO4VIK-IE4YHFTL.js +1 -0
  43. package/dist/cdn/chunks/icons-form-R366YPMB-6C7SJPCB.js +1 -0
  44. package/dist/cdn/chunks/mrz-band-IH54XO42-AE4D3F2E.js +1 -0
  45. package/dist/cdn/chunks/overlay-de-QAMFKRTE-YSXFO53C.js +1 -0
  46. package/dist/cdn/chunks/overlay-es-5RUP36SI-HFW77Y5Z.js +1 -0
  47. package/dist/cdn/chunks/overlay-pt-7EUG7TIT-FUKZ7M5O.js +1 -0
  48. package/dist/cdn/chunks/plan-runner-DOJCVU2R-PLBX6YZK.js +1 -0
  49. package/dist/cdn/chunks/{portrait-capture-view-UYISOXXV-HR5FCO4J.js → portrait-capture-view-EKCFW3YQ-DSL42XKH.js} +1 -1
  50. package/dist/cdn/chunks/portrait-review-view-NKIVRFCL-BK65RBU6.js +1 -0
  51. package/dist/cdn/chunks/print-DCYX3CZD-DLQCPZZE.js +11 -0
  52. package/dist/cdn/chunks/proof-of-address-view-HYTT7NHY-73YT3QLR.js +1 -0
  53. package/dist/cdn/chunks/session-events-W5DRVA6F-BNHYAEHE.js +8 -0
  54. package/dist/cdn/chunks/session-watch-7HMFAHQI-WNCXXNDK.js +1 -0
  55. package/dist/cdn/define.js +1 -1
  56. package/dist/cdn/index.js +1 -1
  57. package/dist/{chunk-HOOZLWNR.js → chunk-25BK7D5W.js} +1 -1
  58. package/dist/chunk-2Z5FHSRB.js +33 -0
  59. package/dist/chunk-73ETQUUL.js +1 -0
  60. package/dist/{chunk-IB3NF7H5.js → chunk-B7CZCSMF.js} +1 -1
  61. package/dist/chunk-ENB7AFED.js +25 -0
  62. package/dist/{chunk-UIOHM6CB.js → chunk-FV5OWBNU.js} +1 -1
  63. package/dist/chunk-HBK2ROSI.js +1 -0
  64. package/dist/{chunk-DAAZBRNM.js → chunk-HFOCTDYM.js} +1 -1
  65. package/dist/{chunk-FAZTWW5J.js → chunk-N2BPYCKG.js} +1 -1
  66. package/dist/{chunk-6MLQBNF4.js → chunk-N3WQ4QSD.js} +1 -1
  67. package/dist/chunk-NAURWQ6C.js +1 -0
  68. package/dist/{chunk-THDSSKYQ.js → chunk-RV6PEFNT.js} +1 -1
  69. package/dist/{chunk-JIHK7L54.js → chunk-TC5736OF.js} +1 -1
  70. package/dist/chunk-XXCBLQ53.js +1 -0
  71. package/dist/chunk-Y7JBM2YL.js +1 -0
  72. package/dist/define.cjs +5 -5
  73. package/dist/define.js +1 -1
  74. package/dist/document-capture-view-HKEUWRPE-KB4IVUEE.js +1 -0
  75. package/dist/{eid-view-U2HL2IX7-ONZGT2S5.js → eid-view-Y5OFAHVC-NUZ7QUBA.js} +1 -1
  76. package/dist/{email-otp-view-CMJHROOH-4DBMTA3R.js → email-otp-view-ZEVLA5UZ-LAXHM22A.js} +1 -1
  77. package/dist/flow-views-ARNNXDI4-YXYLG7SQ.js +1 -0
  78. package/dist/form-view-PQQO4VIK-H7PE6SJF.js +1 -0
  79. package/dist/icons-form-R366YPMB-KUTXHC7X.js +1 -0
  80. package/dist/index.cjs +5 -5
  81. package/dist/index.d.cts +112 -17
  82. package/dist/index.d.ts +112 -17
  83. package/dist/index.js +1 -1
  84. package/dist/overlay-de-QAMFKRTE-Q37YV6YD.js +1 -0
  85. package/dist/overlay-es-5RUP36SI-N7N3ULGK.js +1 -0
  86. package/dist/overlay-pt-7EUG7TIT-5S423QBY.js +1 -0
  87. package/dist/portrait-capture-view-EKCFW3YQ-7UBYR6BX.js +1 -0
  88. package/dist/portrait-review-view-NKIVRFCL-IP7ZWZ6B.js +1 -0
  89. package/dist/proof-of-address-view-HYTT7NHY-QFJ33FM2.js +1 -0
  90. package/dist/styles.css +83 -4
  91. package/package.json +3 -3
  92. package/sbom.cdx.json +4 -4
  93. package/dist/cdn/chunks/capture-session-doc-ESEZJBQM-BXCU4HNS.js +0 -1
  94. package/dist/cdn/chunks/challenge-frame-YAQJ5YMB-MHZYRGKY.js +0 -1
  95. package/dist/cdn/chunks/chunk-2FETDQV5.js +0 -1
  96. package/dist/cdn/chunks/chunk-3S4VNKLC.js +0 -1
  97. package/dist/cdn/chunks/chunk-4PBYN632.js +0 -1
  98. package/dist/cdn/chunks/chunk-4ZCLJICC.js +0 -1
  99. package/dist/cdn/chunks/chunk-6NWHU56A.js +0 -33
  100. package/dist/cdn/chunks/chunk-CW56KMMH.js +0 -1
  101. package/dist/cdn/chunks/chunk-CYLXKJUY.js +0 -3
  102. package/dist/cdn/chunks/chunk-ELKN3A2Q.js +0 -1
  103. package/dist/cdn/chunks/chunk-F2MXING6.js +0 -1
  104. package/dist/cdn/chunks/chunk-GTYN5CAI.js +0 -25
  105. package/dist/cdn/chunks/chunk-J6ERQV2N.js +0 -1
  106. package/dist/cdn/chunks/chunk-KMKUWNV6.js +0 -1
  107. package/dist/cdn/chunks/chunk-KVTY4E6J.js +0 -1
  108. package/dist/cdn/chunks/chunk-L22GFJQV.js +0 -1
  109. package/dist/cdn/chunks/chunk-MSENKS6X.js +0 -1
  110. package/dist/cdn/chunks/chunk-OVZDKB3N.js +0 -1
  111. package/dist/cdn/chunks/chunk-PJ2UDPYO.js +0 -1
  112. package/dist/cdn/chunks/chunk-S5NGSYGI.js +0 -1
  113. package/dist/cdn/chunks/create-document-capture-V7XCRRDV-3MGZONM3.js +0 -1
  114. package/dist/cdn/chunks/document-capture-view-5FWUD45F-TTB7XRVE.js +0 -1
  115. package/dist/cdn/chunks/eid-view-U2HL2IX7-EKYQNIVA.js +0 -1
  116. package/dist/cdn/chunks/email-otp-view-CMJHROOH-S7HHGHMS.js +0 -1
  117. package/dist/cdn/chunks/flow-views-O3KBN7YF-37NQVUAE.js +0 -1
  118. package/dist/cdn/chunks/form-view-WVPN7ZUY-WVYV733R.js +0 -1
  119. package/dist/cdn/chunks/mrz-band-VYHOTDHY-VEZ2J5IL.js +0 -1
  120. package/dist/cdn/chunks/overlay-de-PVJMYZGV-JDDHHQJZ.js +0 -1
  121. package/dist/cdn/chunks/overlay-es-PZCE25XM-D7N7YW66.js +0 -1
  122. package/dist/cdn/chunks/overlay-pt-PZ3L6DR7-AD7SQLSO.js +0 -1
  123. package/dist/cdn/chunks/plan-runner-IXCKR4DB-OJHNDXG2.js +0 -1
  124. package/dist/cdn/chunks/portrait-review-view-67VI2Q6K-KD55P5MN.js +0 -1
  125. package/dist/cdn/chunks/print-SEWS3VHQ-HWJTHADG.js +0 -11
  126. package/dist/cdn/chunks/proof-of-address-view-EIQXYYM3-JYSRHJ7R.js +0 -1
  127. package/dist/chunk-DUYCGH4R.js +0 -33
  128. package/dist/chunk-MYYAFIK6.js +0 -1
  129. package/dist/chunk-TOU3UDCB.js +0 -25
  130. package/dist/chunk-V2KMG4IA.js +0 -1
  131. package/dist/chunk-WCPTICNC.js +0 -1
  132. package/dist/chunk-YZ6YGLNN.js +0 -1
  133. package/dist/chunk-ZLREPJUJ.js +0 -1
  134. package/dist/document-capture-view-5FWUD45F-PZAJNUII.js +0 -1
  135. package/dist/flow-views-O3KBN7YF-I2I3K4EY.js +0 -1
  136. package/dist/form-view-WVPN7ZUY-Z523S2WJ.js +0 -1
  137. package/dist/overlay-de-PVJMYZGV-75ZFRADU.js +0 -1
  138. package/dist/overlay-es-PZCE25XM-IEA7Y6EU.js +0 -1
  139. package/dist/overlay-pt-PZ3L6DR7-WMCH3XQV.js +0 -1
  140. package/dist/portrait-capture-view-UYISOXXV-SO3YYR22.js +0 -1
  141. package/dist/portrait-review-view-67VI2Q6K-ELE4HPWJ.js +0 -1
  142. package/dist/proof-of-address-view-EIQXYYM3-HDMZQJCO.js +0 -1
@@ -1,11 +0,0 @@
1
- import{a as G,b as ee}from"./chunk-KVTY4E6J.js";import{a as u}from"./chunk-4FHWXBOB.js";var me="thumbmark",fe="https://api.thumbmarkjs.com",F={exclude:[],include:[],stabilize:["private","iframe"],logging:!0,collect_beacon:!0,timeout:5e3,cache_api_call:!0,cache_lifetime_in_ms:0,performance:!1,experimental:!1,simple_request:!1,property_name_factory:u(t=>`${me}_${t}`,"property_name_factory")},ut={...F};var Ae={private:[{exclude:["canvas"],browsers:["firefox","safari>=17","brave"]},{exclude:["audio"],browsers:["samsungbrowser","safari"]},{exclude:["fonts"],browsers:["firefox"]},{exclude:["audio.sampleHash","hardware.deviceMemory","header.acceptLanguage.q","system.hardwareConcurrency","plugins"],browsers:["brave"]},{exclude:["tls.extensions"],browsers:["firefox","chrome","safari"]},{exclude:["header.acceptLanguage"],browsers:["edge","chrome"]}],iframe:[{exclude:["system.applePayVersion","system.cookieEnabled"],browsers:["safari"]},{exclude:["permissions"]}],vpn:[{exclude:["ip"]}],always:[{exclude:["speech"],browsers:["brave","firefox"]}]},te=typeof window<"u"?window.OfflineAudioContext||window.webkitOfflineAudioContext:null;function xe(t){let n=0;for(let r=0;r<t.length;++r)n+=Math.abs(t[r]);return n}u(xe,"c");function ne(t,n,r){if(t.length===1)return t[0];if(t.length===3){let e=t[0].data,c=t[1].data,l=t[2].data,a=new Uint8ClampedArray(e.length);for(let s=0;s<e.length;s++){let m=e[s],f=c[s],d=l[s];a[s]=m===f||m===d?m:f===d?f:m}return new ImageData(a,n,r)}let o=[];for(let e=0;e<t[0].data.length;e++){let c=[];for(let l=0;l<t.length;l++)c.push(t[l].data[e]);o.push(Ce(c))}let i=new Uint8ClampedArray(o);return new ImageData(i,n,r)}u(ne,"l");function Ce(t){if(t.length===0)return 0;let n={};for(let o of t)n[o]=(n[o]||0)+1;let r=t[0];for(let o in n)n[o]>n[r]&&(r=parseInt(o,10));return r}u(Ce,"u");function L(t){return t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),(t^=t>>>16)>>>0}u(L,"d");var _=new Uint32Array([597399067,2869860233,951274213,2716044179]);function C(t,n){return t<<n|t>>>32-n}u(C,"p");function M(t,n=0){if(n=n?0|n:0,typeof t=="string"&&(t=(function(i){if(typeof TextEncoder<"u")return new TextEncoder().encode(i).buffer;let e=[];for(let c=0;c<i.length;c++){let l=i.charCodeAt(c);l<128?e.push(l):l<2048?e.push(192|l>>6,128|63&l):l<55296||l>=57344?e.push(224|l>>12,128|l>>6&63,128|63&l):(c++,l=65536+((1023&l)<<10|1023&i.charCodeAt(c)),e.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|63&l))}return new Uint8Array(e).buffer})(t)),!(t instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");let r=new Uint32Array([n,n,n,n]);(function(i,e){let c=i.byteLength/16|0,l=new Uint32Array(i,0,4*c);for(let a=0;a<c;a++){let s=l.subarray(4*a,4*(a+1));s[0]=Math.imul(s[0],_[0]),s[0]=C(s[0],15),s[0]=Math.imul(s[0],_[1]),e[0]=e[0]^s[0],e[0]=C(e[0],19),e[0]=e[0]+e[1],e[0]=Math.imul(e[0],5)+1444728091,s[1]=Math.imul(s[1],_[1]),s[1]=C(s[1],16),s[1]=Math.imul(s[1],_[2]),e[1]=e[1]^s[1],e[1]=C(e[1],17),e[1]=e[1]+e[2],e[1]=Math.imul(e[1],5)+197830471,s[2]=Math.imul(s[2],_[2]),s[2]=C(s[2],17),s[2]=Math.imul(s[2],_[3]),e[2]=e[2]^s[2],e[2]=C(e[2],15),e[2]=e[2]+e[3],e[2]=Math.imul(e[2],5)+2530024501,s[3]=Math.imul(s[3],_[3]),s[3]=C(s[3],18),s[3]=Math.imul(s[3],_[0]),e[3]=e[3]^s[3],e[3]=C(e[3],13),e[3]=e[3]+e[0],e[3]=Math.imul(e[3],5)+850148119}})(t,r),(function(i,e){let c=i.byteLength/16|0,l=i.byteLength%16,a=new Uint32Array(4),s=new Uint8Array(i,16*c,l);switch(l){case 15:a[3]=a[3]^s[14]<<16;case 14:a[3]=a[3]^s[13]<<8;case 13:a[3]=a[3]^s[12],a[3]=Math.imul(a[3],_[3]),a[3]=C(a[3],18),a[3]=Math.imul(a[3],_[0]),e[3]=e[3]^a[3];case 12:a[2]=a[2]^s[11]<<24;case 11:a[2]=a[2]^s[10]<<16;case 10:a[2]=a[2]^s[9]<<8;case 9:a[2]=a[2]^s[8],a[2]=Math.imul(a[2],_[2]),a[2]=C(a[2],17),a[2]=Math.imul(a[2],_[3]),e[2]=e[2]^a[2];case 8:a[1]=a[1]^s[7]<<24;case 7:a[1]=a[1]^s[6]<<16;case 6:a[1]=a[1]^s[5]<<8;case 5:a[1]=a[1]^s[4],a[1]=Math.imul(a[1],_[1]),a[1]=C(a[1],16),a[1]=Math.imul(a[1],_[2]),e[1]=e[1]^a[1];case 4:a[0]=a[0]^s[3]<<24;case 3:a[0]=a[0]^s[2]<<16;case 2:a[0]=a[0]^s[1]<<8;case 1:a[0]=a[0]^s[0],a[0]=Math.imul(a[0],_[0]),a[0]=C(a[0],15),a[0]=Math.imul(a[0],_[1]),e[0]=e[0]^a[0]}})(t,r),(function(i,e){e[0]=e[0]^i.byteLength,e[1]=e[1]^i.byteLength,e[2]=e[2]^i.byteLength,e[3]=e[3]^i.byteLength,e[0]=e[0]+e[1]|0,e[0]=e[0]+e[2]|0,e[0]=e[0]+e[3]|0,e[1]=e[1]+e[0]|0,e[2]=e[2]+e[0]|0,e[3]=e[3]+e[0]|0,e[0]=L(e[0]),e[1]=L(e[1]),e[2]=L(e[2]),e[3]=L(e[3]),e[0]=e[0]+e[1]|0,e[0]=e[0]+e[2]|0,e[0]=e[0]+e[3]|0,e[1]=e[1]+e[0]|0,e[2]=e[2]+e[0]|0,e[3]=e[3]+e[0]|0})(t,r);let o=new Uint8Array(r.buffer);return Array.from(o).map((i=>i.toString(16).padStart(2,"0"))).join("")}u(M,"f");var re=280;function Ee(t,n){return new Promise((r=>setTimeout(r,t,n)))}u(Ee,"g");var Me=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],Te=["monospace","sans-serif","serif"];function oe(t,n){return t.font=`72px ${n}`,t.measureText("WwMmLli0Oo").width}u(oe,"w");function ke(){var t;let n=document.createElement("canvas"),r=(t=n.getContext("webgl"))!==null&&t!==void 0?t:n.getContext("experimental-webgl");if(r&&"getParameter"in r)try{let o=(r.getParameter(r.VENDOR)||"").toString(),i=(r.getParameter(r.RENDERER)||"").toString(),e={vendor:o,renderer:i,version:(r.getParameter(r.VERSION)||"").toString(),shadingLanguageVersion:(r.getParameter(r.SHADING_LANGUAGE_VERSION)||"").toString()};if(!i.length||!o.length){let c=r.getExtension("WEBGL_debug_renderer_info");if(c){let l=(r.getParameter(c.UNMASKED_VENDOR_WEBGL)||"").toString(),a=(r.getParameter(c.UNMASKED_RENDERER_WEBGL)||"").toString();l&&(e.vendorUnmasked=l),a&&(e.rendererUnmasked=a)}}return e}catch{}return"undefined"}u(ke,"S");function Re(){let t=new Float32Array(1),n=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],n[3]}u(Re,"b");var j=u((t,n,r,o)=>{let i=(r-n)/o,e=0;for(let c=0;c<o;c++)e+=t(n+(c+.5)*i);return e*i},"_");function Oe(t,n){let r={};return n.forEach((o=>{let i=(function(e){if(e.length===0)return null;let c={};e.forEach((s=>{let m=String(s);c[m]=(c[m]||0)+1}));let l=e[0],a=1;return Object.keys(c).forEach((s=>{c[s]>a&&(l=s,a=c[s])})),l})(t.map((e=>o in e?e[o]:void 0)).filter((e=>e!==void 0)));i&&(r[o]=i)})),r}u(Oe,"P");var Ie=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],z=new Map;function $(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};let t=!!navigator.brave,n=(t?"B|":"N|")+navigator.userAgent,r=z.get(n);if(r)return r;let o=[{name:"Brave",detect:u(()=>t,"detect")}],i;for(let e of o)if(e.detect()){let c=ie(navigator.userAgent);return i={name:e.name,version:c.version},z.set(n,i),i}return i=ie(navigator.userAgent),z.set(n,i),i}u($,"M");function ie(t){var n,r,o,i,e,c;let l=[/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>EdgA|EdgiOS|Edg)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>OPR|OPX)\/(?<version>\d+(?:\.\d+)+)/,/Opera[\s\/](?<version>\d+(?:\.\d+)+)/,/Opera Mini\/(?<version>\d+(?:\.\d+)+)/,/Opera Mobi\/(?<version>\d+(?:\.\d+)+)/,/(?<name>Vivaldi)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>CriOS)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>FxiOS)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>Chrome|Chromium)\/(?<version>\d+(?:\.\d+)+)/,/(?<name>Firefox|Waterfox|Iceweasel|IceCat)\/(?<version>\d+(?:\.\d+)+)/,/Version\/(?<version1>[\d.]+).*Safari\/[\d.]+|(?<name>Safari)\/(?<version2>[\d.]+)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)+)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)+)/],a={edg:"Edge",edga:"Edge",edgios:"Edge",opr:"Opera",opx:"Opera",crios:"Chrome",fxios:"Firefox",samsung:"SamsungBrowser",vivaldi:"Vivaldi"};for(let s of l){let m=t.match(s);if(m){let f=(n=m.groups)===null||n===void 0?void 0:n.name,d=((r=m.groups)===null||r===void 0?void 0:r.version)||((o=m.groups)===null||o===void 0?void 0:o.version1)||((i=m.groups)===null||i===void 0?void 0:i.version2);if(f||!(!((e=m.groups)===null||e===void 0)&&e.version1)&&!(!((c=m.groups)===null||c===void 0)&&c.version2)||(f="Safari"),!f&&s.source.includes("Opera Mini")&&(f="Opera Mini"),!f&&s.source.includes("Opera Mobi")&&(f="Opera Mobi"),!f&&s.source.includes("Opera")&&(f="Opera"),!f&&m[1]&&(f=m[1]),!d&&m[2]&&(d=m[2]),f)return{name:a[f.toLowerCase()]||f,version:d||"unknown"}}}return{name:"unknown",version:"unknown"}}u(ie,"C");function ae(){if(typeof navigator>"u"||!navigator.userAgent)return!1;let t=navigator.userAgent;return/Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|Windows Phone/i.test(t)&&!/iPad/i.test(t)}u(ae,"E");function Be(){let t=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(n).forEach((r=>{n[r].forEach((o=>{matchMedia(`(${r}: ${o})`).matches&&t.push(`${r}: ${o}`)}))})),t}u(Be,"T");function De(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{let t=window.ApplePaySession.supportsVersion;for(let n=15;n>0;n--)if(t(n))return n}catch{return 0}return 0}u(De,"k");var Le=$().name!=="SamsungBrowser"?1:3,je=$().name!=="Brave",se=137,Ne=(()=>{let t=new Float32Array(548),n=2*Math.PI/se;for(let r=0;r<se;r++){let o=r*n;t[4*r]=0,t[4*r+1]=0,t[4*r+2]=100*Math.cos(o),t[4*r+3]=50*Math.sin(o)}return t})(),D=null;function ce(){try{if(typeof document>"u")return null;let t=document.createElement("canvas");t.width=200,t.height=100;let n=t.getContext("webgl");if(!n)return null;t.addEventListener("webglcontextlost",(c=>{c.preventDefault(),D=null}),{once:!0});let r=n.createShader(n.VERTEX_SHADER),o=n.createShader(n.FRAGMENT_SHADER);if(!r||!o||(n.shaderSource(r,`
2
- attribute vec2 position;
3
- void main() {
4
- gl_Position = vec4(position, 0.0, 1.0);
5
- }
6
- `),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))||(n.shaderSource(o,`
7
- precision mediump float;
8
- void main() {
9
- gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
10
- }
11
- `),n.compileShader(o),!n.getShaderParameter(o,n.COMPILE_STATUS)))return null;let i=n.createProgram();if(!i||(n.attachShader(i,r),n.attachShader(i,o),n.linkProgram(i),!n.getProgramParameter(i,n.LINK_STATUS)))return null;let e=n.createBuffer();return e?(n.bindBuffer(n.ARRAY_BUFFER,e),n.bufferData(n.ARRAY_BUFFER,Ne,n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),{canvas:t,gl:n,program:i,buffer:e}):null}catch{return null}}u(ce,"D");function R(t){let n=new Set;return u(function r(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o===void 0)return;if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);let i,e;if(Array.isArray(o)){for(e="[",i=0;i<o.length;i++)i&&(e+=","),e+=r(o[i])||"null";return e+"]"}if(o===null)return"null";if(n.has(o))throw new TypeError("Converting circular structure to JSON");n.add(o);let c=Object.keys(o).sort();for(e="",i=0;i<c.length;i++){let l=c[i],a=r(o[l]);a&&(e&&(e+=","),e+=JSON.stringify(l)+":"+a)}return n.delete(o),"{"+e+"}"},"e")(t)||""}u(R,"N");var Ue={audio:u(async function(){return te?(async function(){return new Promise(((t,n)=>{try{let r=new te(1,5e3,44100),o=r.createBufferSource(),i=r.createOscillator();i.frequency.value=1e3;let e=r.createDynamicsCompressor(),c;e.threshold.value=-50,e.knee.value=40,e.ratio.value=12,e.attack.value=0,e.release.value=.2,i.connect(e),e.connect(r.destination),i.start(),r.oncomplete=l=>{c=l.renderedBuffer.getChannelData(0),t({sampleHash:xe(c),maxChannels:r.destination.maxChannelCount,channelCountMode:o.channelCountMode})},r.startRendering()}catch(r){n(r)}}))})():null},"audio"),canvas:u(async function(){return new Promise((t=>{let n=Array.from({length:3},(()=>(function(){let r=document.createElement("canvas"),o=r.getContext("2d");if(!o)return null;r.width=re,r.height=20;let i=o.createLinearGradient(0,0,r.width,r.height);i.addColorStop(0,"red"),i.addColorStop(.16666666666666666,"orange"),i.addColorStop(.3333333333333333,"yellow"),i.addColorStop(.5,"green"),i.addColorStop(.6666666666666666,"blue"),i.addColorStop(.8333333333333334,"indigo"),i.addColorStop(1,"violet"),o.fillStyle=i,o.fillRect(0,0,r.width,r.height);let e="Random Text WMwmil10Oo";return o.font="23.123px Arial",o.fillStyle="black",o.fillText(e,-5,15),o.fillStyle="rgba(0, 0, 255, 0.5)",o.fillText(e,-3.3,17.7),o.beginPath(),o.moveTo(0,0),o.lineTo(2*r.width/7,r.height),o.strokeStyle="white",o.lineWidth=2,o.stroke(),o.getImageData(0,0,r.width,r.height)})())).filter((r=>r!==null));n.length!==0?t({commonPixelsHash:M(ne(n,re,20).data.toString()).toString()}):t(null)}))},"canvas"),fonts:u(async function(t){return new Promise((n=>{try{(async function(r){for(var o;!document.body;)await Ee(50);let i=document.createElement("iframe");i.setAttribute("frameBorder","0");let e=i.style;e.setProperty("position","fixed"),e.setProperty("display","block","important"),e.setProperty("visibility","visible"),e.setProperty("border","0"),e.setProperty("opacity","0"),i.src="about:blank",document.body.appendChild(i);let c=i.contentDocument||((o=i.contentWindow)===null||o===void 0?void 0:o.document);if(!c)throw new Error("Iframe document is not accessible");r({iframe:c}),setTimeout((()=>{document.body.removeChild(i)}),0)})((async({iframe:r})=>{let o=r.createElement("canvas").getContext("2d");if(!o)return void n(null);let i=Te.map((c=>oe(o,c))),e={};Me.forEach((c=>{let l=oe(o,c);i.includes(l)||(e[c]=l)})),n(e)}))}catch{n(null)}}))},"fonts"),hardware:u(function(){return new Promise(((t,n)=>{let r=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,o=window.performance&&window.performance.memory?window.performance.memory:0;t({videocard:ke(),architecture:Re(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:o.jsHeapSizeLimit||0})}))},"hardware"),locales:u(function(){return new Promise((t=>{t({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))},"locales"),math:u(function(){return new Promise((t=>{t({acos:Math.acos(.5),asin:j(Math.asin,-1,1,97),cos:j(Math.cos,0,Math.PI,97),largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),sin:j(Math.sin,-Math.PI,Math.PI,97),tan:j(Math.tan,0,2*Math.PI,97)})}))},"math"),permissions:u(async function(t){let n=t?.permissions_to_check||Ie;return Oe(await Promise.all(Array.from({length:3},(()=>(async function(r){let o={};for(let i of r)try{let e=await navigator.permissions.query({name:i});o[i]=e.state.toString()}catch{}return o})(n)))),n)},"permissions"),plugins:u(async function(){let t=[];if(navigator.plugins)for(let n=0;n<navigator.plugins.length;n++){let r=navigator.plugins[n];t.push([r.name,r.filename,r.description].join("|"))}return new Promise((n=>{n({plugins:t})}))},"plugins"),screen:u(function(){return new Promise((t=>{if(typeof matchMedia>"u"||typeof screen>"u")return void t(null);let n={is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:Be()};ae()&&navigator.maxTouchPoints>0&&(n.resolution=(function(){let r=window.screen.width,o=window.screen.height,i=Math.max(r,o).toString(),e=Math.min(r,o).toString();return`${i}x${e}`})()),t(n)}))},"screen"),system:u(function(){return new Promise((t=>{let n=$();t({platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:n.name,version:n.version},mobile:ae(),applePayVersion:De(),cookieEnabled:window.navigator.cookieEnabled})}))},"system"),webgl:u(async function(){let t=je?(D||(D=ce()),D):ce();if(!t)return{webgl:"unsupported"};try{let n=Array.from({length:Le},(()=>(function(r){let{canvas:o,gl:i,program:e,buffer:c}=r;try{i.useProgram(e),i.bindBuffer(i.ARRAY_BUFFER,c);let l=i.getAttribLocation(e,"position");i.enableVertexAttribArray(l),i.vertexAttribPointer(l,2,i.FLOAT,!1,0,0),i.viewport(0,0,o.width,o.height),i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.LINES,0,274);let a=new Uint8ClampedArray(o.width*o.height*4);return i.readPixels(0,0,o.width,o.height,i.RGBA,i.UNSIGNED_BYTE,a),new ImageData(a,o.width,o.height)}catch{return D=null,new ImageData(1,1)}finally{i.bindBuffer(i.ARRAY_BUFFER,null),i.useProgram(null),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.clearColor(0,0,0,0)}})(t)));return{commonPixelsHash:M(ne(n,t.canvas.width,t.canvas.height).data.toString()).toString()}}catch{return{webgl:"unsupported"}}},"webgl"),webrtc:u(async function(t){return new Promise((n=>{let r;try{let o=window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection;if(!o)return void n({supported:!1,error:"WebRTC not supported"});r=new o({iceCandidatePoolSize:1,iceServers:[]});let i=r;i.createDataChannel(""),(async()=>{try{let e={offerToReceiveAudio:!0,offerToReceiveVideo:!0},c=await i.createOffer(e);await i.setLocalDescription(c);let l=c.sdp||"",a=[...new Set((l.match(/extmap:\d+ [^\n\r]+/g)||[]).map((A=>A.replace(/extmap:\d+ /,""))))].sort(),s=u(A=>{let w=l.match(new RegExp(`m=${A} [^\\s]+ [^\\s]+ ([^\\n\\r]+)`));return w?w[1].split(" "):[]},"a"),m=u((A,w)=>w.map((E=>{let T=new RegExp(`(rtpmap|fmtp|rtcp-fb):${E} (.+)`,"g"),h=[...l.matchAll(T)];if(!h.length)return null;let g={};return h.forEach((b=>{let[S,x,P]=b,O=P.split("/");x==="rtpmap"?(g.mimeType=`${A}/${O[0]}`,g.clockRate=+O[1],A==="audio"&&(g.channels=+O[2]||1)):x==="rtcp-fb"?(g.feedbackSupport=g.feedbackSupport||[],g.feedbackSupport.push(P)):x==="fmtp"&&(g.sdpFmtpLine=P)})),g})).filter(Boolean),"s"),f=m("audio",s("audio")),d=m("video",s("video")),p={audio:{count:f.length,hash:M(R(f))},video:{count:d.length,hash:M(R(d))},extensionsHash:M(R(a))};i.close();let v={supported:!0,...p,candidateType:"host"};n({details:v,hash:M(R(v))})}catch(e){i.close(),n({supported:!0,error:`WebRTC offer failed: ${e.message}`})}})()}catch(o){r?.close(),n({supported:!1,error:`WebRTC error: ${o.message}`})}}))},"webrtc"),speech:u(async function(){return new Promise((t=>{try{if(typeof window>"u"||!window.speechSynthesis||typeof window.speechSynthesis.getVoices!="function")return void t({supported:!1,error:"Speech Synthesis API not supported"});let n=!1,r=null,o=u(c=>{if(!n){n=!0,r&&clearTimeout(r);try{let l=c.map((s=>{let m=u(f=>f.replace(/\\/g,"\\\\").replace(/,/g,"\\,"),"n");return[m(s.voiceURI||""),m(s.name||""),m(s.lang||""),s.localService?"1":"0",s.default?"1":"0"].join(",")}));l.sort();let a={voiceCount:c.length,voicesHash:M(R(l))};t({details:a,hash:M(R(a))})}catch(l){t({supported:!0,error:`Voice processing failed: ${l.message}`})}}},"r"),i=window.speechSynthesis.getVoices();if(i.length>0)return void o(i);r=setTimeout((()=>{let c=window.speechSynthesis.getVoices();o(c)}),800);let e=u(()=>{window.speechSynthesis.removeEventListener("voiceschanged",e);let c=window.speechSynthesis.getVoices();o(c)},"i");window.speechSynthesis.addEventListener("voiceschanged",e)}catch(n){t({supported:!1,error:`Speech Synthesis error: ${n.message}`})}}))},"speech")},Fe={},$e={timeout:"true"};function pe(t,n){var r,o;let i=$();if(i.name==="unknown"&&n){let s=(r=n.system)===null||r===void 0?void 0:r.browser;s?.name&&(i={name:String(s.name),version:String(s.version||"unknown")})}let e=i.name.toLowerCase(),c=parseInt(i.version.split(".")[0]||"0",10),l=Array.isArray(t?.exclude)?[...t.exclude]:[],a=[...new Set([...t?.stabilize||[],"always"])];for(let s of a){let m=Ae[s];if(m)for(let f of m)"browsers"in f&&!(!((o=f.browsers)===null||o===void 0)&&o.some((d=>{let p=d.match(/(.+?)(>=)(\d+)/);return p?e===p[1]&&c>=+p[3]:e===d})))||l.push(...f.exclude)}return l}u(pe,"W");function he(t,n){let r=pe(n,t),o=Array.isArray(n?.include)?n.include:[];return u(function i(e,c=""){let l={};for(let[a,s]of Object.entries(e)){let m=c?`${c}.${a}`:a;if(typeof s!="object"||Array.isArray(s)||s===null){let f=r.some((p=>m.startsWith(p))),d=o.some((p=>m.startsWith(p)));f&&!d||(l[a]=s)}else{let f=i(s,m);Object.keys(f).length>0&&(l[a]=f)}}return l},"e")(t)}u(he,"G");var Ve="https://experimental.thumbmarkjs.com/experimental.min.js",We=131072;function k(t,n){let r={target:"request",type:t};return n&&(r.message=n.slice(0,200)),{schema:0,payload_id:"none",signals:{},errors:[r]}}u(k,"J");function le(t){if(typeof t!="object"||t===null||Array.isArray(t))return!1;let n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}u(le,"z");function J(t){return t instanceof Error?t.message:void 0}u(J,"Y");async function He(){var t;try{return(t=await(function(n,r){let o,i=new Promise((e=>{o=setTimeout((()=>e(null)),r)}));return Promise.race([n,i]).finally((()=>clearTimeout(o)))})((async function(){let n,r;try{let o=await fetch(Ve,{method:"GET"});if(!o.ok)return k("http",`HTTP ${o.status}`);n=await o.text()}catch(o){return k("fetch",J(o))}if(!n)return k("empty");if(n.length>We)return k("oversized",`${n.length} chars`);try{let o=eval;r=await Promise.resolve(o(n))}catch(o){return k((function(i){return i instanceof SyntaxError?"syntax":i instanceof EvalError?"eval_blocked":"threw"})(o),J(o))}return(function(o){return!!le(o)&&!(typeof o.schema!="number"||o.schema<1)&&typeof o.payload_id=="string"&&le(o.signals)})(r)?{...r,errors:Array.isArray(r.errors)?r.errors:[]}:k("malformed")})(),2e3))!==null&&t!==void 0?t:k("timeout","exceeded 2000ms")}catch(n){return k("threw",J(n))}}u(He,"K");var ge="_tmjs_c";function N(t){return new TextEncoder().encode(t).length}u(N,"Z");function ue(){try{if(typeof sessionStorage>"u")return;sessionStorage.setItem(ge,"1")}catch{}}u(ue,"Q");function qe(t,n,r){try{if(n.collect_beacon===!1||!t||N(t)>64||(function(){try{return typeof sessionStorage<"u"&&!!sessionStorage.getItem(ge)}catch{return!1}})())return;let o=n.collect_endpoint||"https://collect.thumbmarkjs.com/beacon",i=typeof navigator<"u"?navigator.userAgent:"",e={thumbmark:t};i&&N(i)<=512&&(e.ua=i),r?.ja4&&N(r.ja4)<=64&&(e.ja4=r.ja4),r?.source&&N(r.source)<=32&&(e.ja4_source=r.source);let c=JSON.stringify(e);if(typeof navigator<"u"&&typeof navigator.sendBeacon=="function"){let l=!1;try{l=navigator.sendBeacon(o,c)}catch{l=!1}if(l)return void ue()}try{let l=fetch(o,{method:"POST",mode:"no-cors",keepalive:!0,headers:{"Content-Type":"text/plain;charset=UTF-8"},body:c});ue(),l.catch((()=>{}))}catch{}}catch{}}u(qe,"ee");var ve="visitor_id";function ye(t){return t.storage_property_name?t.storage_property_name:t.property_name_factory(ve)}u(ye,"te");var de=`${me}_${ve}`;function we(t,n){try{localStorage.setItem(ye(n),t)}catch{}}u(we,"oe");var be="cache";function Y(t){try{let n=localStorage.getItem(t.property_name_factory(be));return JSON.parse(n)||{}}catch{}return{}}u(Y,"ae");function Ge(t){return t.cache_lifetime_in_ms>2592e5?Date.now()+2592e5:Date.now()+t.cache_lifetime_in_ms}u(Ge,"se");var X=class X extends Error{constructor(n){super(`HTTP error! status: ${n}`),this.status=n}};u(X,"ce");var I=X,B=null,K=null;async function ze(t,n,r,o){let i=r.simple_request?{"Content-Type":"text/plain"}:{"x-api-key":r.api_key,Authorization:"custom-authorized","Content-Type":"application/json"},e=await fetch(t,{method:"POST",headers:i,body:JSON.stringify(n)});if(!e.ok)throw new I(e.status);let c=await e.json();return c.visitorId&&c.visitorId!==o&&we(c.visitorId,r),K=c,(function(l,a){if(!l.cache_api_call||!l.cache_lifetime_in_ms)return;let{collect:s,...m}=a;(function(f,d){let p={...Y(f),...d};try{localStorage.setItem(f.property_name_factory(be),JSON.stringify(p))}catch{}})(l,{apiResponseExpiry:Ge(l),apiResponse:m})})(r,c),c}u(ze,"de");var Je=u((t,n)=>{var r;if(t.cache_api_call){if(K)return Promise.resolve(K);let d=(function(p){let v=Y(p);if(v&&v.apiResponse&&v.apiResponseExpiry&&Date.now()<=v.apiResponseExpiry)return v.apiResponse})(t);if(d)return Promise.resolve(d);if(B)return B}let o=t.api_endpoint||fe,i;try{let d=new URL(o);i=d.pathname!=="/"||o.endsWith("/")?o:`${d.origin}/thumbmark`}catch{i=`${o}/thumbmark`}let e=(function(d){try{let p=ye(d),v=localStorage.getItem(p);return v||p===de||(v=localStorage.getItem(de),v&&we(v,d)),v}catch{return null}})(t),{api_key:c,...l}=t,a={components:n,options:l,clientHash:M(R(n)),version:"1.12.0",path:(r=window?.location)===null||r===void 0?void 0:r.pathname};if(e&&(a.visitorId=e),t.metadata){let d=typeof t.metadata=="function"?t.metadata():t.metadata;d&&((typeof d=="string"?d.length:JSON.stringify(d).length)>1e3?console.error("ThumbmarkJS: Metadata exceeds 1000 characters. Skipping metadata."):a.metadata=d)}let s=t.timeout||5e3,m=(async function(d,p,v,A){for(let w=0;w<3;w++){w>0&&await new Promise((E=>setTimeout(E,200*w)));try{return await ze(d,p,v,A)}catch(E){if(E instanceof I||w===2)throw E}}throw new Error("Unreachable")})(i,a,t,e).finally((()=>{B=null})),f=new Promise((d=>{setTimeout((()=>{let p=Y(t);d(p?.apiResponse||{info:{timed_out:!0},...e&&{visitorId:e}})}),s)}));return B=Promise.race([m,f]),B},"me");async function Ye(t,n={}){var r;if(typeof document>"u"||typeof window>"u")return{thumbmark:"",components:{},info:{},version:"1.12.0",error:[{type:"fatal",message:"Browser environment required"}]};try{let o={...F,...t},i=[],e=o.logging&&!sessionStorage.getItem("_tmjs_l")&&Math.random()<1e-4,c={...Ue,...Fe,...n},{elapsed:l,resolvedComponents:a,errors:s,pipelineTimings:m}=await Ke(c,o);i.push(...s);let f=o.api_key||o.simple_request?Je(o,a):null,d=null;if(f)try{d=await f}catch(y){if(y instanceof I&&y.status===403)return{error:[{type:"api_unauthorized",message:"Invalid API key or quota exceeded"}],components:{},info:{},version:"1.12.0",thumbmark:""};i.push({type:y instanceof I?"api_error":"network_error",message:y instanceof Error?y.message:String(y)})}!((r=d?.info)===null||r===void 0)&&r.timed_out&&i.push({type:"api_timeout",message:"API request timed out"});let p=performance.now(),v=he(d?.components||{},o),A=performance.now()-p,w={...a,...v},E=d?.info||{uniqueness:{score:"api only"}},T,h=0,g=0;if(d?.thumbmark)T=d.thumbmark;else{let y=performance.now(),W=R(w);h=performance.now()-y;let H=performance.now();T=M(W),g=performance.now()-H}let b="1.12.0";e&&(async function(y,W,H,Q=[]){var q;let _e=`${fe}/log`;sessionStorage.setItem("_tmjs_l","1");let Pe={thumbmark:y,components:W,experimental:await He(),version:"1.12.0",options:H,path:(q=window?.location)===null||q===void 0?void 0:q.pathname,...Q.length>0&&{errors:Q}};try{await fetch(_e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Pe)})}catch{}})(T,w,o,i).catch((()=>{})),d?.collect&&typeof d.collect=="object"&&qe(T,o,d.collect);let S={"_pipeline.dispatch":m["_pipeline.dispatch"],"_pipeline.resolve":m["_pipeline.resolve"],"_pipeline.filter":m["_pipeline.filter"]+A,"_pipeline.stringify":h,"_pipeline.hash":g,"_pipeline.assembly":0},x={...l,...m,...S},P=o.performance?{elapsed:x}:{},O=performance.now(),V={...d?.visitorId&&{visitorId:d.visitorId},thumbmark:T,components:w,info:E,version:b,...P,...i.length>0&&{error:i},...d?.requestId&&{requestId:d.requestId},...d?.metadata&&{metadata:d.metadata}};return x["_pipeline.assembly"]=performance.now()-O,V}catch(o){return{thumbmark:"",components:{},info:{},version:"1.12.0",error:[{type:"fatal",message:o instanceof Error?o.message:String(o)}]}}}u(Ye,"pe");async function Ke(t,n){let r={...F,...n},o=pe(r).filter((h=>!h.includes("."))),i=Object.entries(t).filter((([h])=>{var g;return!(!((g=r?.exclude)===null||g===void 0)&&g.includes(h))})).filter((([h])=>!o.includes(h))).filter((([h])=>{var g,b,S,x;return!((g=r?.include)===null||g===void 0)&&g.some((P=>P.includes(".")))?(b=r?.include)===null||b===void 0?void 0:b.some((P=>P.startsWith(h))):((S=r?.include)===null||S===void 0?void 0:S.length)===0||((x=r?.include)===null||x===void 0?void 0:x.includes(h))})),e=i.map((([h])=>h)),c={},l=performance.now(),a=i.map((([h,g])=>{let b=performance.now(),S=g(n);return c[`_dispatch.${h}`]=performance.now()-b,S})),s=performance.now()-l,m=performance.now(),f=await(function(h,g,b){return Promise.all(h.map((S=>{let x=performance.now(),P,O=S.then((y=>(P!==void 0&&clearTimeout(P),{value:y,elapsed:performance.now()-x}))).catch((y=>(P!==void 0&&clearTimeout(P),{value:b,elapsed:performance.now()-x,error:y instanceof Error?y.message:String(y)}))),V=new Promise((y=>{P=setTimeout((()=>{y({value:b,elapsed:performance.now()-x,error:"timeout"})}),g)}));return Promise.race([O,V])})))})(a,r?.timeout||5e3,$e),d=performance.now()-m,p={},v={},A=[];f.forEach(((h,g)=>{var b;let S=e[g];p[S]=(b=h.elapsed)!==null&&b!==void 0?b:0,h.error==="timeout"?A.push({type:"component_timeout",message:`Component '${S}' timed out`,component:S}):h.error&&A.push({type:"component_error",message:h.error,component:S}),h.value!=null&&(v[S]=h.value)}));let w=performance.now(),E=he(v,r),T={"_pipeline.dispatch":s,"_pipeline.resolve":d,"_pipeline.filter":performance.now()-w,...c};return{elapsed:p,resolvedComponents:E,errors:A,pipelineTimings:T}}u(Ke,"fe");var Z=class Z{constructor(n){this.options={...F,...n},this.customComponents={}}async get(n){return Ye({...this.options,...n},this.customComponents)}getVersion(){return"1.12.0"}includeComponent(n,r){this.customComponents[n]=r}};u(Z,"ye");var U=Z;var Xe=["canvas","webgl","audio","fonts","hardware","screen","system","locales","math","plugins"],Ze=2e3,Qe=4e3,et=1e3,tt=2e3,nt=64,rt=32,ot=8,it=128;function Se(t,n){if(typeof t!="string")return;let r=t.trim();return r.length>0&&r.length<=n?r:void 0}u(Se,"a");async function at(){let t=navigator.userAgentData;if(typeof t?.getHighEntropyValues!="function")return;let n=await G(()=>t.getHighEntropyValues(["model","platformVersion"]),et);if(n==null)return;let r=Se(n.model,nt),o=Se(n.platformVersion,rt),i={...r!==void 0?{model:r}:{},...o!==void 0?{platformVersion:o}:{}};return Object.keys(i).length>0?i:void 0}u(at,"y");async function st(){let[t,n]=await Promise.all([new U({stabilize:["private","iframe"],exclude:["permissions","webrtc","speech"],logging:!1,collect_beacon:!1,timeout:Ze}).get(),at()]),r=t?.thumbmark;if(typeof r!="string"||r.length<ot||r.length>it)return;let o={};for(let i of Xe){let e=t.components?.[i];e==null||e.timeout==="true"||(o[i]=await ee(e))}return{hash:r,c:o,...n!==void 0?{hints:n}:{}}}u(st,"_");function ct(){return new Promise(t=>{typeof globalThis.requestIdleCallback=="function"?globalThis.requestIdleCallback(()=>t(),{timeout:tt}):t()})}u(ct,"w");async function ht(t){return t()||(await ct(),t())?"busy":G(st,Qe)}u(ht,"I");export{ht as computePrint,at as readHints};
@@ -1 +0,0 @@
1
- "use client";import{a as J}from"./chunk-SIBJ56BG.js";import{a as S}from"./chunk-O33NXBND.js";import{a as q}from"./chunk-KMKUWNV6.js";import"./chunk-T5IERZBI.js";import{d as M}from"./chunk-MSENKS6X.js";import"./chunk-J6ERQV2N.js";import{K as b,L as G,a as O,b as j,c as k,v as N,w as D,y as R}from"./chunk-GTYN5CAI.js";import{a as p}from"./chunk-5QL6W6FW.js";import{a as l,c as x}from"./chunk-4FHWXBOB.js";var v=x(O(),1),f=x(O(),1),o=x(j(),1),t=x(j(),1);var ee={"poa.title":"إثبات العنوان","poa.lead":"ارفع وثيقة حديثة تُظهر اسمك وعنوانك الحالي.","poa.accepted":"الوثائق المقبولة","poa.acceptedFor":"مقبول في {country}","poa.kindDated":"{kind}، صادر خلال آخر {days} يومًا","poa.kinds.utility_bill":"فاتورة كهرباء أو ماء أو غاز","poa.kinds.telecom_bill":"فاتورة هاتف أو إنترنت","poa.kinds.bank_statement":"كشف حساب بنكي","poa.kinds.tax_notice":"إشعار ضريبي","poa.kinds.rental_agreement":"عقد إيجار","poa.kinds.government_certificate":"شهادة السكن","poa.kinds.insurance_statement":"وثيقة تأمين","poa.source.camera":"التقاط صورة","poa.source.upload":"رفع ملف","poa.source.lead":"صورة للوثيقة، أو ملف PDF أو صورة من جهازك","poa.upload.hint":"PDF أو JPEG أو PNG، بحد أقصى 3 صفحات و10 ميغابايت","poa.upload.choose":"اختيار ملف","poa.upload.addPage":"إضافة صفحة","poa.upload.pages":"{count} من 3 صفحات","poa.upload.send":"إرسال الوثيقة","poa.upload.sending":"جارٍ إرسال وثيقتك…","poa.upload.unsupported":"نوع الملف هذا غير مقبول. اختر ملف PDF أو JPEG أو PNG","poa.upload.tooManyPages":"أرسل 3 صفحات على الأكثر. احذف صفحة أو اختر ملفًا أقصر","poa.upload.tooLarge":"حجم الملف يتجاوز 10 ميغابايت. اختر ملفًا أصغر","poa.upload.failed":"تعذّر إرسال الوثيقة. تحقّق من اتصالك وحاول مرة أخرى","poa.camera.lead":"ضع الوثيقة بشكل مسطّح واملأ الإطار. التقط صورة واحدة لكل صفحة","poa.camera.capture":"التقاط الصورة","poa.camera.retake":"إعادة الالتقاط","poa.camera.next":"الصفحة التالية","poa.camera.page":"الصفحة {number}","poa.letter.title":"رسالة من صاحب الفاتورة","poa.letter.lead":"الوثيقة باسم شخص آخر. أضف رسالة موقّعة من هذا الشخص تفيد بأنك تسكن في هذا العنوان","poa.letter.send":"إرسال الرسالة","poa.licence.use":"استخدام العنوان المذكور في رخصة القيادة","poa.licence.note":"قرأنا هذا العنوان من رخصتك. لا تحتاج إلى وثيقة أخرى.","poa.retry.document_too_old":"هذه الوثيقة أقدم من المسموح. ارفع وثيقة أحدث من القائمة أدناه","poa.retry.document_date_invalid":"تاريخ الوثيقة في المستقبل. ارفع وثيقة بتاريخ اليوم أو قبله","poa.retry.document_kind_not_accepted":"نوع هذه الوثيقة غير مقبول. ارفع إحدى الوثائق المذكورة أدناه","poa.retry.name_mismatch":"الاسم في الوثيقة لا يطابق اسمك. ارفع وثيقة باسمك","poa.retry.address_mismatch":"العنوان في الوثيقة لا يطابق العنوان الذي وصلنا. ارفع وثيقة لهذا العنوان","poa.retry.holder_letter_missing":"يجب أن تكون الرسالة موقّعة وأن تذكر اسمك واسم صاحب الفاتورة. ارفع رسالة كاملة","poa.retry.unreadable":"تعذّرت قراءة الوثيقة. ارفع نسخة كاملة وأكثر وضوحًا","poa.retry.pdf_protected":"أزل كلمة المرور من ملف PDF وحاول مرة أخرى","poa.retry.provider_unavailable":"تعذّر فحص الوثيقة حاليًا. حاول مرة أخرى بعد قليل","poa.hint.blurry":"الصورة غير واضحة","poa.hint.cropped":"جزء من الوثيقة مقطوع","poa.hint.glare":"يوجد انعكاس ضوء على الوثيقة","reasons.provider_unavailable":"تعذّر فحص الوثيقة حاليًا","reasons.pdf_protected":"ملف PDF محمي بكلمة مرور أو يحتوي على محتوى نشط","reasons.document_kind_not_accepted":"نوع الوثيقة غير مقبول","reasons.document_date_invalid":"تاريخ الوثيقة في المستقبل","reasons.document_too_old":"الوثيقة قديمة جدًا","reasons.document_tampered":"يبدو أن الوثيقة قد عُدّلت","reasons.holder_letter_required":"يلزم تقديم رسالة من صاحب الفاتورة","reasons.holder_letter_missing":"رسالة صاحب الفاتورة مفقودة أو غير مكتملة","reasons.address_mismatch":"العنوان لا يطابق العنوان المقدَّم"},U={"poa.title":"Proof of address","poa.lead":"Upload a recent document that shows your name and your current address.","poa.accepted":"Accepted documents","poa.acceptedFor":"Accepted for {country}","poa.kindDated":"{kind}, dated within the last {days} days","poa.kinds.utility_bill":"Electricity, water or gas bill","poa.kinds.telecom_bill":"Phone or internet bill","poa.kinds.bank_statement":"Bank statement","poa.kinds.tax_notice":"Tax notice","poa.kinds.rental_agreement":"Rental agreement","poa.kinds.government_certificate":"Residence certificate","poa.kinds.insurance_statement":"Insurance statement","poa.source.camera":"Take a photo","poa.source.upload":"Upload a file","poa.source.lead":"A photo of the document, or a PDF or image from your device","poa.upload.hint":"PDF, JPEG or PNG, up to 3 pages and 10 MB","poa.upload.choose":"Choose a file","poa.upload.addPage":"Add a page","poa.upload.pages":"{count} of 3 pages","poa.upload.send":"Send document","poa.upload.sending":"Sending your document…","poa.upload.unsupported":"This file type is not accepted. Choose a PDF, JPEG or PNG","poa.upload.tooManyPages":"Send at most 3 pages. Remove a page or choose a shorter file","poa.upload.tooLarge":"The file is over 10 MB. Choose a smaller file","poa.upload.failed":"We could not send the document. Check your connection and try again","poa.camera.lead":"Lay the document flat and fill the frame. Take one photo per page","poa.camera.capture":"Take photo","poa.camera.retake":"Retake","poa.camera.next":"Next page","poa.camera.page":"Page {number}","poa.letter.title":"Letter from the bill holder","poa.letter.lead":"The document is in another person's name. Add a signed letter from that person saying that you live at this address","poa.letter.send":"Send letter","poa.licence.use":"Use the address on my driver's license","poa.licence.note":"We read this address from your license. You don't need another document.","poa.retry.document_too_old":"This document is older than allowed. Upload a more recent one from the list below","poa.retry.document_date_invalid":"The date on the document is in the future. Upload a document with today's date or earlier","poa.retry.document_kind_not_accepted":"This document type is not accepted. Upload one of the documents listed below","poa.retry.name_mismatch":"The name on the document does not match yours. Upload a document in your name","poa.retry.address_mismatch":"The address on the document does not match the one we were given. Upload a document for that address","poa.retry.holder_letter_missing":"The letter must be signed and name both you and the bill holder. Upload a complete letter","poa.retry.unreadable":"We could not read the document. Upload a sharper, complete copy","poa.retry.pdf_protected":"Remove the password from the PDF and try again","poa.retry.provider_unavailable":"The document could not be checked right now. Try again in a moment","poa.hint.blurry":"The image is blurry","poa.hint.cropped":"Part of the document is cut off","poa.hint.glare":"There is glare on the document","reasons.provider_unavailable":"The document could not be checked right now","reasons.pdf_protected":"The PDF is password-protected or contains active content","reasons.document_kind_not_accepted":"The document type is not accepted","reasons.document_date_invalid":"The document date is in the future","reasons.document_too_old":"The document is too old","reasons.document_tampered":"The document appears to have been edited","reasons.holder_letter_required":"A letter from the bill holder is needed","reasons.holder_letter_missing":"The letter from the bill holder is missing or incomplete","reasons.address_mismatch":"The address does not match the one supplied"},ae={"poa.title":"Justificatif de domicile","poa.lead":"Importez un document récent qui indique votre nom et votre adresse actuelle.","poa.accepted":"Documents acceptés","poa.acceptedFor":"Accepté pour {country}","poa.kindDated":"{kind}, daté des {days} derniers jours","poa.kinds.utility_bill":"Facture d'électricité, d'eau ou de gaz","poa.kinds.telecom_bill":"Facture de téléphone ou d'internet","poa.kinds.bank_statement":"Relevé bancaire","poa.kinds.tax_notice":"Avis d'imposition","poa.kinds.rental_agreement":"Bail ou quittance de loyer","poa.kinds.government_certificate":"Certificat de résidence","poa.kinds.insurance_statement":"Attestation d'assurance","poa.source.camera":"Prendre une photo","poa.source.upload":"Importer un fichier","poa.source.lead":"Une photo du document, ou un PDF ou une image depuis votre appareil","poa.upload.hint":"PDF, JPEG ou PNG, 3 pages et 10 Mo au maximum","poa.upload.choose":"Choisir un fichier","poa.upload.addPage":"Ajouter une page","poa.upload.pages":"{count} sur 3 pages","poa.upload.send":"Envoyer le document","poa.upload.sending":"Envoi de votre document…","poa.upload.unsupported":"Ce type de fichier n'est pas accepté. Choisissez un PDF, un JPEG ou un PNG","poa.upload.tooManyPages":"Envoyez 3 pages au maximum. Retirez une page ou choisissez un fichier plus court","poa.upload.tooLarge":"Le fichier dépasse 10 Mo. Choisissez un fichier plus léger","poa.upload.failed":"Nous n'avons pas pu envoyer le document. Vérifiez votre connexion et réessayez","poa.camera.lead":"Posez le document à plat et remplissez le cadre. Prenez une photo par page","poa.camera.capture":"Prendre la photo","poa.camera.retake":"Reprendre","poa.camera.next":"Page suivante","poa.camera.page":"Page {number}","poa.letter.title":"Lettre du titulaire de la facture","poa.letter.lead":"Le document est au nom d'une autre personne. Ajoutez une lettre signée de cette personne attestant que vous habitez à cette adresse","poa.letter.send":"Envoyer la lettre","poa.licence.use":"Utiliser l'adresse de mon permis de conduire","poa.licence.note":"Nous avons lu cette adresse sur votre permis. Vous n'avez pas besoin d'un autre document.","poa.retry.document_too_old":"Ce document est plus ancien que la limite. Importez un document plus récent parmi ceux de la liste ci-dessous","poa.retry.document_date_invalid":"La date du document est dans le futur. Importez un document daté d'aujourd'hui ou d'avant","poa.retry.document_kind_not_accepted":"Ce type de document n'est pas accepté. Importez l'un des documents de la liste ci-dessous","poa.retry.name_mismatch":"Le nom sur le document ne correspond pas au vôtre. Importez un document à votre nom","poa.retry.address_mismatch":"L'adresse du document ne correspond pas à celle qui nous a été transmise. Importez un document pour cette adresse","poa.retry.holder_letter_missing":"La lettre doit être signée et nommer à la fois vous et le titulaire de la facture. Importez une lettre complète","poa.retry.unreadable":"Nous n'avons pas pu lire le document. Importez une copie plus nette et complète","poa.retry.pdf_protected":"Retirez le mot de passe du PDF et réessayez","poa.retry.provider_unavailable":"Le document n'a pas pu être vérifié pour le moment. Réessayez dans un instant","poa.hint.blurry":"L'image est floue","poa.hint.cropped":"Une partie du document est coupée","poa.hint.glare":"Il y a un reflet sur le document","reasons.provider_unavailable":"Le document n'a pas pu être vérifié pour le moment","reasons.pdf_protected":"Le PDF est protégé par un mot de passe ou contient du contenu actif","reasons.document_kind_not_accepted":"Ce type de document n'est pas accepté","reasons.document_date_invalid":"La date du document est dans le futur","reasons.document_too_old":"Le document est trop ancien","reasons.document_tampered":"Le document semble avoir été modifié","reasons.holder_letter_required":"Une lettre du titulaire de la facture est nécessaire","reasons.holder_letter_missing":"La lettre du titulaire de la facture est absente ou incomplète","reasons.address_mismatch":"L'adresse ne correspond pas à celle qui a été transmise"};function B({blob:a,label:n}){let[e,r]=(0,f.useState)(void 0);return(0,f.useEffect)(()=>{if(typeof URL.createObjectURL!="function")return;let d=URL.createObjectURL(a);return r(d),()=>URL.revokeObjectURL(d)},[a]),(0,o.jsx)("img",{src:e,alt:n})}l(B,"Q");p(B,"PageThumb");function $({step:a,i18n:n,c:e,title:r,notice:d,intro:m,onUpload:i}){let y=(0,f.useRef)(null),s=(0,f.useRef)(null),[c,_]=(0,f.useState)([]),[h,P]=(0,f.useState)(!1),[L,C]=(0,f.useState)("idle"),[K,F]=(0,f.useState)(!1),A=p(u=>{P(!1),u.start().catch(()=>P(!0))},"open");(0,f.useEffect)(()=>{let u=y.current;if(u===null)return;let g;try{g=a.capturePage({video:u})}catch{P(!0);return}return s.current=g,A(g),()=>{g.destroy(),s.current=null}},[]);let E=c.length>=a.maxPages,Q=p(async()=>{let u=s.current;if(!(u===null||E)){C("taking"),F(!1);try{await u.takePage()}catch{}_([...u.pages]),C("idle")}},"take"),X=p(u=>{let g=s.current;g!==null&&(g.removePage(u),_([...g.pages]))},"retake"),Z=p(async()=>{let u=s.current;if(!(u===null||c.length===0)){C("sending"),F(!1);try{await u.submitPages()}catch{F(!0)}C("idle")}},"send"),T=L==="sending";return(0,o.jsxs)("section",{className:"sekyro-step","data-testid":"sekyro-poa-camera",children:[(0,o.jsx)(D,{title:r,lead:e("poa.camera.lead")}),d,K?(0,o.jsx)(b,{tone:"danger",children:(0,o.jsx)("span",{children:e("poa.upload.failed")})}):null,h?(0,o.jsxs)(b,{tone:"danger",children:[(0,o.jsx)("span",{children:e("doc.cameraBlocked")}),(0,o.jsx)("span",{children:e("doc.cameraBlockedHint")}),s.current!==null?(0,o.jsx)(k,{kind:"secondary",onClick:l(()=>s.current!==null&&A(s.current),"onClick"),children:e("doc.retryCamera")}):null]}):null,c.length===0?m:null,(0,o.jsx)("video",{ref:y,className:"sekyro-poa-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true"}),c.length>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"sekyro-text-muted",role:"status",children:e("poa.upload.pages",{count:c.length})}),(0,o.jsx)("ul",{className:"sekyro-poa-pages",children:c.map((u,g)=>{let I=e("poa.camera.page",{number:g+1});return(0,o.jsxs)("li",{children:[(0,o.jsx)(B,{blob:u,label:I}),(0,o.jsx)(k,{kind:"ghost",onClick:l(()=>X(g),"onClick"),disabled:T,"aria-label":`${e("poa.camera.retake")} ${I}`,children:e("poa.camera.retake")})]},g)})})]}):null,T?(0,o.jsx)("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:e("poa.upload.sending")}):null,(0,o.jsxs)(R,{children:[(0,o.jsxs)(k,{full:!0,kind:c.length>0?"secondary":"primary",onClick:l(()=>{Q()},"onClick"),disabled:E||h||L!=="idle"||a.attemptsExhausted,"aria-busy":L==="taking"||void 0,children:[(0,o.jsx)(N,{name:"camera"}),e("poa.camera.capture")]}),c.length>0?(0,o.jsx)(k,{full:!0,onClick:l(()=>{Z()},"onClick"),disabled:L!=="idle","aria-busy":T||void 0,children:e("poa.upload.send")}):null,i!==void 0?(0,o.jsx)(k,{full:!0,kind:"ghost",onClick:i,disabled:T,children:e("poa.source.upload")}):null]})]})}l($,"J");p($,"PageCamera");var te={en:U,fr:ae,ar:ee,es:U,pt:U,de:U},oe="image/jpeg,image/png,image/heic,image/heif,application/pdf";function V(a){let n=a.strings,e=te[a.locale];return(r,d)=>q(n[r]??e[r]??"",d)}l(V,"ae");p(V,"poaCopy");function z({step:a,i18n:n,c:e}){if(a.reason===void 0)return null;let r=e(`poa.retry.${a.reason}`)||e(`reasons.${a.reason}`)||e("poa.retry.unreadable");return(0,t.jsxs)(b,{tone:"warning",children:[(0,t.jsx)("span",{children:r}),(0,t.jsx)("span",{children:G(n,a.attemptsRemaining,a.attemptsExhausted)})]})}l(z,"U");p(z,"RetryNotice");function w({step:a,i18n:n,c:e}){let r=(0,v.useId)(),{country:d}=a.rule,m=d===null?e("poa.accepted"):e("poa.acceptedFor",{country:J(d,n.locale)});return(0,t.jsxs)("div",{className:"sekyro-poa-accepted",children:[(0,t.jsx)("p",{id:r,className:"sekyro-poa-accepted__title",children:m}),(0,t.jsx)("ul",{className:"sekyro-poa-list","aria-labelledby":r,children:a.rule.kinds.map(i=>(0,t.jsx)("li",{children:e("poa.kindDated",{kind:e(`poa.kinds.${i.kind}`)||i.kind,days:i.maxAgeDays})},i.kind))})]})}l(w,"j");p(w,"AcceptedList");var re={unsupported:"poa.upload.unsupported",tooMany:"poa.upload.tooManyPages",tooLarge:"poa.upload.tooLarge",failed:"poa.upload.failed"};function W(a){return a instanceof TypeError&&a.message==="unsupported_file"?"unsupported":a instanceof RangeError&&a.message==="file_too_large"?"tooLarge":a instanceof RangeError&&(a.message==="too_many_pages"||a.message==="no_pages")?"tooMany":"failed"}l(W,"re");p(W,"refusalOf");function H({step:a,i18n:n,c:e,letter:r,onCamera:d}){let m=(0,v.useRef)(null),[i,y]=(0,v.useState)("idle"),s=i==="sending",c=p(async _=>{let h=Array.from(_.currentTarget.files??[]);if(_.currentTarget.value="",h.length!==0){if(h.length>a.maxPages){y("tooMany");return}y("sending");try{await(r?a.uploadHolderLetter(h):a.uploadPages(h)),y("idle")}catch(P){y(W(P))}}},"onFiles");return(0,t.jsxs)("section",{className:"sekyro-step","data-testid":r?"sekyro-poa-letter":"sekyro-poa-upload",children:[(0,t.jsx)(D,{title:e(r?"poa.letter.title":"poa.title"),lead:e(r?"poa.letter.lead":"poa.lead")}),i==="idle"||s?(0,t.jsx)(z,{step:a,i18n:n,c:e}):null,i!=="idle"&&!s?(0,t.jsx)(b,{tone:"danger",children:(0,t.jsx)("span",{children:e(re[i])})}):null,r?null:(0,t.jsx)(w,{step:a,i18n:n,c:e}),(0,t.jsx)("p",{className:"sekyro-text-muted",children:e("poa.upload.hint")}),s?(0,t.jsx)("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:e("poa.upload.sending")}):null,(0,t.jsx)("input",{ref:m,type:"file",accept:oe,multiple:!0,hidden:!0,"data-testid":"sekyro-poa-file","aria-label":e(r?"poa.letter.title":"poa.title"),onChange:l(_=>{c(_)},"onChange")}),(0,t.jsxs)(R,{children:[(0,t.jsx)(k,{full:!0,onClick:l(()=>m.current?.click(),"onClick"),disabled:s||!a.photo.uploadOffered||a.attemptsExhausted,"aria-busy":s||void 0,children:e("poa.upload.choose")}),d!==void 0?(0,t.jsxs)(k,{full:!0,kind:"ghost",onClick:d,disabled:s,children:[(0,t.jsx)(N,{name:a.photo.cameraOnPhone===!0?"smartphone":"camera"}),a.photo.cameraOnPhone===!0?e("capture.source.phone"):e("poa.source.camera")]}):null]})]})}l(H,"se");p(H,"UploadScreen");function Y({step:a,c:n}){let[e,r]=(0,v.useState)("idle"),d=a.useLicenceAddress;if(d===void 0)return null;let m=p(async()=>{r("sending");try{await d(),r("idle")}catch{r("failed")}},"onUse");return(0,t.jsxs)("div",{className:"sekyro-poa-licence","data-testid":"sekyro-poa-licence",children:[(0,t.jsx)("p",{className:"sekyro-text-muted",children:n("poa.licence.note")}),e==="failed"?(0,t.jsx)(b,{tone:"danger",children:(0,t.jsx)("span",{children:n("poa.upload.failed")})}):null,(0,t.jsx)(k,{full:!0,kind:"secondary",onClick:l(()=>{m()},"onClick"),disabled:e==="sending"||a.attemptsExhausted,"aria-busy":e==="sending"||void 0,children:n("poa.licence.use")})]})}l(Y,"de");p(Y,"LicenceShortcut");function ne({step:a,i18n:n}){let e=V(n),[r,d]=(0,v.useState)(null),m=a.phase==="holder_letter",i=a.photo.source,y=i==="choice"?r??a.photo.pick:i,s=a.photo.cameraOnPhone===!0,c=a.photo.uploadOffered?()=>d("upload"):void 0,_=e(m?"poa.letter.title":"poa.title"),h;return y===null?h=(0,t.jsx)(S,{testId:"sekyro-poa-source",title:_,lead:e("poa.source.lead"),cameraLabel:e(s?"capture.source.phone":"poa.source.camera"),uploadLabel:e("poa.source.upload"),onPhone:s,notice:(0,t.jsx)(z,{step:a,i18n:n,c:e}),onCamera:l(()=>d("camera"),"onCamera"),onUpload:l(()=>d("upload"),"onUpload")}):y==="camera"&&s?h=(0,t.jsx)(M,{i18n:n,lead:e("handoff.lead.poa"),refresh:a.refresh,actions:c!==void 0?(0,t.jsx)(k,{kind:"ghost",full:!0,onClick:c,children:e("poa.source.upload")}):null}):y==="camera"?h=(0,t.jsx)($,{step:a,i18n:n,c:e,title:_,notice:(0,t.jsx)(z,{step:a,i18n:n,c:e}),intro:m?null:(0,t.jsx)(w,{step:a,i18n:n,c:e}),...i==="choice"&&c!==void 0?{onUpload:c}:{}}):h=(0,t.jsx)(H,{step:a,i18n:n,c:e,letter:m,...i==="choice"?{onCamera:p(()=>d("camera"),"onCamera")}:{}}),(0,t.jsxs)(t.Fragment,{children:[m?null:(0,t.jsx)(Y,{step:a,c:e}),h]})}l(ne,"we");p(ne,"ProofOfAddressView");export{oe as POA_UPLOAD_ACCEPT,ne as ProofOfAddressView,V as poaCopy};