@scandit/web-datacapture-core 8.0.0 → 8.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 (410) hide show
  1. package/THIRD_PARTY.txt +331 -70
  2. package/build/js/AimerViewfinder.d.ts +8 -2
  3. package/build/js/AimerViewfinder.js +1 -1
  4. package/build/js/Brush.d.ts +5 -1
  5. package/build/js/Brush.js +1 -1
  6. package/build/js/Camera-DhGjpcjv.d.ts +394 -0
  7. package/build/js/Camera.d.ts +5 -3
  8. package/build/js/Camera.js +1 -1
  9. package/build/js/CameraRelated.d.ts +4 -2
  10. package/build/js/CameraRelated.js +1 -1
  11. package/build/js/{DataCaptureContext-8EuyQSL7.d.ts → DataCaptureContext-fzPdCXUX.d.ts} +69 -79
  12. package/build/js/DataCaptureContext.d.ts +16 -7
  13. package/build/js/DataCaptureContext.js +1 -1
  14. package/build/js/DataCaptureContextRelated.d.ts +19 -10
  15. package/build/js/DataCaptureContextSettings.d.ts +1 -1
  16. package/build/js/DataCaptureVersion.js +1 -1
  17. package/build/js/DataCaptureView.d.ts +17 -8
  18. package/build/js/DataCaptureView.js +1 -1
  19. package/build/js/DefaultViewClassnames.d.ts +0 -6
  20. package/build/js/DefaultViewClassnames.js +1 -1
  21. package/build/js/Feedback.js +1 -1
  22. package/build/js/FrameData.d.ts +17 -8
  23. package/build/js/FrameData.js +1 -1
  24. package/build/js/ImageFrameSource.d.ts +4 -2
  25. package/build/js/ImageFrameSource.js +1 -1
  26. package/build/js/LaserlineViewfinder.d.ts +7 -1
  27. package/build/js/LaserlineViewfinder.js +1 -1
  28. package/build/js/LocationSelection.d.ts +6 -1
  29. package/build/js/LocationSelection.js +1 -1
  30. package/build/js/NotificationPresenter/NotificationBuilder.d.ts +1 -1
  31. package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
  32. package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +1 -1
  33. package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -1
  34. package/build/js/NotificationPresenter/NotificationPresenter.d.ts +1 -1
  35. package/build/js/NotificationPresenter/index.d.ts +17 -8
  36. package/build/js/NotificationPresenter/index.js +1 -1
  37. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +17 -8
  38. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -1
  39. package/build/js/NotificationPresenter/private/presets.d.ts +17 -8
  40. package/build/js/NotificationPresenter/private/presets.js +1 -1
  41. package/build/js/RectangularViewfinder.d.ts +7 -1
  42. package/build/js/RectangularViewfinder.js +1 -1
  43. package/build/js/ScanditIcon.d.ts +1 -1
  44. package/build/js/ScanditIcon.js +1 -1
  45. package/build/js/ScanditIconBuilder.d.ts +22 -20
  46. package/build/js/ScanditIconBuilder.js +1 -1
  47. package/build/js/SingleImageUploader.d.ts +4 -2
  48. package/build/js/SingleImageUploader.js +1 -1
  49. package/build/js/SingleImageUploaderSettings.js +1 -1
  50. package/build/js/Vibration.js +1 -1
  51. package/build/js/Viewfinder.d.ts +7 -1
  52. package/build/js/ViewfinderPlusRelated.d.ts +7 -1
  53. package/build/js/browserHelper.d.ts +23 -1
  54. package/build/js/browserHelper.js +1 -1
  55. package/build/js/chunks/{chunk-2EY4FBA3.js → chunk-24IG7HUA.js} +1 -1
  56. package/build/js/chunks/chunk-2AX7TBDI.js +1 -0
  57. package/build/js/chunks/chunk-2JIATMSD.js +1 -0
  58. package/build/js/chunks/chunk-3CXYB36D.js +1 -0
  59. package/build/js/chunks/chunk-3D2HNEVH.js +1 -0
  60. package/build/js/chunks/chunk-3KKUZY2T.js +1 -0
  61. package/build/js/chunks/{chunk-5YXBE5P2.js → chunk-3LVMEVOI.js} +1 -1
  62. package/build/js/chunks/chunk-4BP7D26M.js +1 -0
  63. package/build/js/chunks/{chunk-A5WVN3T4.js → chunk-4F5JUHOJ.js} +1 -1
  64. package/build/js/chunks/{chunk-T4QDTXZN.js → chunk-4GKVQAVF.js} +1 -1
  65. package/build/js/chunks/chunk-4JH6EEAE.js +1 -0
  66. package/build/js/chunks/chunk-523EQN4Z.js +1 -0
  67. package/build/js/chunks/chunk-5C4OO6CX.js +35 -0
  68. package/build/js/chunks/{chunk-TDOKACT7.js → chunk-5IGOKD23.js} +1 -1
  69. package/build/js/chunks/{chunk-UBDDFAOX.js → chunk-5JAPQHXF.js} +1 -1
  70. package/build/js/chunks/chunk-5LXHD7FZ.js +1 -0
  71. package/build/js/chunks/chunk-5RCWM6NI.js +1 -0
  72. package/build/js/chunks/chunk-6LHGFWQI.js +1 -0
  73. package/build/js/chunks/chunk-74GO72VC.js +1 -0
  74. package/build/js/chunks/chunk-ADFFBLII.js +1 -0
  75. package/build/js/chunks/chunk-AFCJ24Y3.js +1 -0
  76. package/build/js/chunks/chunk-AWPUSRYW.js +1 -0
  77. package/build/js/chunks/chunk-AZWFNBVA.js +1 -0
  78. package/build/js/chunks/chunk-BDGRWHLY.js +1 -0
  79. package/build/js/chunks/chunk-BFLBICOJ.js +1 -0
  80. package/build/js/chunks/chunk-BG2MAWWN.js +1 -0
  81. package/build/js/chunks/chunk-BGUY24J4.js +1 -0
  82. package/build/js/chunks/chunk-BIJB4K7G.js +1 -0
  83. package/build/js/chunks/chunk-BZAQMYII.js +1 -0
  84. package/build/js/chunks/chunk-C3EY6I75.js +2 -0
  85. package/build/js/chunks/chunk-C657OBED.js +1 -0
  86. package/build/js/chunks/chunk-CAHJ3YOV.js +1 -0
  87. package/build/js/chunks/{chunk-GGMX65YP.js → chunk-CD2BU66N.js} +1 -1
  88. package/build/js/chunks/chunk-CRUOVJHW.js +1 -0
  89. package/build/js/chunks/chunk-D6JKW7G4.js +1 -0
  90. package/build/js/chunks/chunk-DQ2IFWM5.js +1 -0
  91. package/build/js/chunks/chunk-DZKZ6RMW.js +1 -0
  92. package/build/js/chunks/chunk-E4XJ4GKD.js +1 -0
  93. package/build/js/chunks/chunk-ENYHCJGH.js +1 -0
  94. package/build/js/chunks/{chunk-LOV5GR63.js → chunk-EQP4U5U2.js} +1 -1
  95. package/build/js/chunks/chunk-F2GMW4LP.js +1 -0
  96. package/build/js/chunks/{chunk-IU22MD7N.js → chunk-F2IJCZAS.js} +1 -1
  97. package/build/js/chunks/{chunk-3HOGSYPB.js → chunk-F6TT5US7.js} +1 -1
  98. package/build/js/chunks/chunk-FR24G4R7.js +1 -0
  99. package/build/js/chunks/chunk-GJBUPJIM.js +1 -0
  100. package/build/js/chunks/chunk-GPPCTFZF.js +1 -0
  101. package/build/js/chunks/chunk-GPUTPXQM.js +1 -0
  102. package/build/js/chunks/{chunk-3MEGNPVU.js → chunk-I6SWF3FQ.js} +1 -1
  103. package/build/js/chunks/chunk-IJQG3OU6.js +1 -0
  104. package/build/js/chunks/chunk-IMXMNDKM.js +1 -0
  105. package/build/js/chunks/chunk-J6LCRGZO.js +1 -0
  106. package/build/js/chunks/chunk-KAFNKP6O.js +1 -0
  107. package/build/js/chunks/{chunk-5MUFGMII.js → chunk-L7WVCDGR.js} +1 -1
  108. package/build/js/chunks/chunk-LORGLY2X.js +1 -0
  109. package/build/js/chunks/chunk-MA6UDVDJ.js +1 -0
  110. package/build/js/chunks/chunk-MBL5Q2H2.js +1 -0
  111. package/build/js/chunks/{chunk-HDY35RKY.js → chunk-NDQQHCZN.js} +1 -1
  112. package/build/js/chunks/chunk-O7QIRKOP.js +1 -0
  113. package/build/js/chunks/chunk-ORP45GHJ.js +1 -0
  114. package/build/js/chunks/chunk-PA2BMEFD.js +1 -0
  115. package/build/js/chunks/chunk-Q45KFJIS.js +1 -0
  116. package/build/js/chunks/chunk-QG3MRQMP.js +1 -0
  117. package/build/js/chunks/chunk-QOCHMKNY.js +1 -0
  118. package/build/js/chunks/chunk-QQEY536Q.js +1 -0
  119. package/build/js/chunks/chunk-R4KME2DS.js +6 -0
  120. package/build/js/chunks/chunk-R6SUMD5F.js +1 -0
  121. package/build/js/chunks/{chunk-CF2DKFX2.js → chunk-RHMGLXJ3.js} +1 -1
  122. package/build/js/chunks/chunk-RL4LGOQS.js +1 -0
  123. package/build/js/chunks/chunk-RSQRPDVQ.js +1 -0
  124. package/build/js/chunks/chunk-RXPPTQAB.js +1 -0
  125. package/build/js/chunks/chunk-SBC5K7IT.js +1 -0
  126. package/build/js/chunks/chunk-SGL5J2CI.js +1 -0
  127. package/build/js/chunks/chunk-SOCEWYYO.js +1 -0
  128. package/build/js/chunks/chunk-SVJ6BU5X.js +1 -0
  129. package/build/js/chunks/chunk-TKO5JMMS.js +1 -0
  130. package/build/js/chunks/chunk-TPHGDMKG.js +1 -0
  131. package/build/js/chunks/chunk-TU44BW74.js +1 -0
  132. package/build/js/chunks/chunk-TXVFFRVY.js +1 -0
  133. package/build/js/chunks/chunk-UOQFOEG6.js +1 -0
  134. package/build/js/chunks/chunk-UQVVJP5Z.js +1 -0
  135. package/build/js/chunks/chunk-V6RG452U.js +1 -0
  136. package/build/js/chunks/chunk-VBUDN72N.js +2 -0
  137. package/build/js/chunks/chunk-W6HSMZGZ.js +1 -0
  138. package/build/js/chunks/chunk-WARGMW7Z.js +1 -0
  139. package/build/js/chunks/{chunk-BRS5WVNO.js → chunk-WL2XKPJD.js} +1 -1
  140. package/build/js/chunks/{chunk-RETAUGCJ.js → chunk-X2ZGBI4S.js} +1 -1
  141. package/build/js/chunks/chunk-X4LJRWLI.js +1 -0
  142. package/build/js/chunks/{chunk-WAJ5PI3A.js → chunk-XINFYUZW.js} +1 -1
  143. package/build/js/chunks/chunk-Y7ZNLVR2.js +1 -0
  144. package/build/js/chunks/chunk-YOTQPBO6.js +1 -0
  145. package/build/js/chunks/{chunk-2BBQRPKY.js → chunk-ZEBGTTCX.js} +1 -1
  146. package/build/js/commons/Anchor.d.ts +14 -0
  147. package/build/js/commons/Anchor.js +1 -0
  148. package/build/js/commons/Color.d.ts +28 -0
  149. package/build/js/commons/Color.js +1 -0
  150. package/build/js/commons/Direction.d.ts +12 -0
  151. package/build/js/commons/Direction.js +1 -0
  152. package/build/js/commons/JSONType.d.ts +6 -0
  153. package/build/js/commons/JSONType.js +0 -0
  154. package/build/js/commons/MarginsWithUnit.d.ts +39 -0
  155. package/build/js/commons/MarginsWithUnit.js +1 -0
  156. package/build/js/commons/MeasureUnit.d.ts +7 -0
  157. package/build/js/commons/MeasureUnit.js +1 -0
  158. package/build/js/commons/NumberWithUnit.d.ts +19 -0
  159. package/build/js/commons/NumberWithUnit.js +1 -0
  160. package/build/js/commons/Orientation.d.ts +10 -0
  161. package/build/js/commons/Orientation.js +1 -0
  162. package/build/js/commons/Point.d.ts +20 -0
  163. package/build/js/commons/Point.js +1 -0
  164. package/build/js/commons/PointWithUnit.d.ts +27 -0
  165. package/build/js/commons/PointWithUnit.js +1 -0
  166. package/build/js/commons/Quadrilateral.d.ts +25 -0
  167. package/build/js/commons/Quadrilateral.js +1 -0
  168. package/build/js/commons/Rect.d.ts +19 -0
  169. package/build/js/commons/Rect.js +1 -0
  170. package/build/js/commons/RectWithUnit.d.ts +21 -0
  171. package/build/js/commons/RectWithUnit.js +1 -0
  172. package/build/js/commons/Size.d.ts +18 -0
  173. package/build/js/commons/Size.js +1 -0
  174. package/build/js/commons/SizeMode.d.ts +9 -0
  175. package/build/js/commons/SizeMode.js +1 -0
  176. package/build/js/commons/SizeWithAspect.d.ts +14 -0
  177. package/build/js/commons/SizeWithAspect.js +1 -0
  178. package/build/js/commons/SizeWithUnit.d.ts +27 -0
  179. package/build/js/commons/SizeWithUnit.js +1 -0
  180. package/build/js/commons/SizeWithUnitAndAspect.d.ts +42 -0
  181. package/build/js/commons/SizeWithUnitAndAspect.js +1 -0
  182. package/build/js/controls/CameraFOVSwitchControl.d.ts +71 -0
  183. package/build/js/controls/CameraFOVSwitchControl.js +1 -0
  184. package/build/js/controls/CameraSwitchControl.d.ts +64 -0
  185. package/build/js/controls/CameraSwitchControl.js +1 -0
  186. package/build/js/controls/TorchSwitchControl.d.ts +65 -0
  187. package/build/js/controls/TorchSwitchControl.js +1 -0
  188. package/build/js/controls/common.d.ts +37 -0
  189. package/build/js/controls/common.js +0 -0
  190. package/build/js/controls/index.d.ts +40 -0
  191. package/build/js/controls/index.js +1 -0
  192. package/build/js/defaults/DefaultsBrush.d.ts +9 -0
  193. package/build/js/defaults/DefaultsBrush.js +1 -0
  194. package/build/js/defaults/DefaultsCamera.d.ts +21 -0
  195. package/build/js/defaults/DefaultsCamera.js +1 -0
  196. package/build/js/defaults/DefaultsCameraSettings.d.ts +17 -0
  197. package/build/js/defaults/DefaultsCameraSettings.js +1 -0
  198. package/build/js/defaults/DefaultsDataCaptureView.d.ts +22 -0
  199. package/build/js/defaults/DefaultsDataCaptureView.js +1 -0
  200. package/build/js/defaults/DefaultsDeserializers.d.ts +12 -0
  201. package/build/js/defaults/DefaultsDeserializers.js +1 -0
  202. package/build/js/defaults/DefaultsFeedback.d.ts +7 -0
  203. package/build/js/defaults/DefaultsFeedback.js +1 -0
  204. package/build/js/defaults/DefaultsSingleImageUploader.d.ts +19 -0
  205. package/build/js/defaults/DefaultsSingleImageUploader.js +1 -0
  206. package/build/js/defaults/DefaultsViewfinders.d.ts +46 -0
  207. package/build/js/defaults/DefaultsViewfinders.js +1 -0
  208. package/build/js/index.d.ts +26 -8
  209. package/build/js/index.js +1 -1
  210. package/build/js/moduleLoader.d.ts +17 -8
  211. package/build/js/private/AnchorPositions.d.ts +2 -1
  212. package/build/js/private/AnchorPositions.js +1 -1
  213. package/build/js/private/CameraAccess.d.ts +4 -166
  214. package/build/js/private/CameraAccess.js +1 -1
  215. package/build/js/private/CameraManager.d.ts +17 -8
  216. package/build/js/private/CameraManager.js +1 -1
  217. package/build/js/private/CameraPool.d.ts +17 -8
  218. package/build/js/private/CanvasDrawerWithMetrics.d.ts +17 -8
  219. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +17 -8
  220. package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
  221. package/build/js/private/CustomLocationsView.d.ts +7 -1
  222. package/build/js/private/CustomLocationsView.js +1 -1
  223. package/build/js/private/DataCaptureContextRelated.d.ts +17 -8
  224. package/build/js/private/FrameReaders/ColorType.d.ts +7 -0
  225. package/build/js/private/FrameReaders/ColorType.js +1 -0
  226. package/build/js/private/FrameReaders/FrameReader.d.ts +32 -8
  227. package/build/js/private/FrameReaders/FrameReader.js +1 -1
  228. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +47 -8
  229. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +17 -6
  230. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  231. package/build/js/private/FrameReaders/index.d.ts +20 -8
  232. package/build/js/private/FrameReaders/index.js +1 -1
  233. package/build/js/private/GestureRecognizer/GestureRecognizer.d.ts +22 -2
  234. package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
  235. package/build/js/private/GestureRecognizer/index.d.ts +1 -1
  236. package/build/js/private/GestureRecognizer/index.js +1 -1
  237. package/build/js/private/HtmlElementState.d.ts +3 -1
  238. package/build/js/private/HtmlElementState.js +1 -1
  239. package/build/js/private/{AsyncImageConverterBase.d.ts → ImageConverterBase.d.ts} +3 -3
  240. package/build/js/private/ImageConverterBase.js +1 -0
  241. package/build/js/private/{AsyncImageConverterMainThread.d.ts → ImageConverterMainThread.d.ts} +3 -3
  242. package/build/js/private/ImageConverterMainThread.js +1 -0
  243. package/build/js/private/NormalizedModuleLoaderOptions.d.ts +19 -10
  244. package/build/js/private/OrientationObserver.d.ts +8 -3
  245. package/build/js/private/OrientationObserver.js +1 -1
  246. package/build/js/private/SingleImageUploaderView.d.ts +4 -0
  247. package/build/js/private/SingleImageUploaderView.js +1 -1
  248. package/build/js/private/ViewClassNames.d.ts +0 -6
  249. package/build/js/private/ViewClassNames.js +1 -1
  250. package/build/js/private/ViewControls+related.js +1 -1
  251. package/build/js/private/ViewControls_related.d.ts +20 -8
  252. package/build/js/private/ViewStyles.js +1 -1
  253. package/build/js/private/ViewsRegistry.d.ts +17 -8
  254. package/build/js/private/djinni-types/index.d.ts +3 -3
  255. package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
  256. package/build/js/private/multithreadSimdHelper.d.ts +9 -4
  257. package/build/js/private/multithreadSimdHelper.js +1 -1
  258. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
  259. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
  260. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
  261. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
  262. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
  263. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  264. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  265. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
  266. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.d.ts +17 -0
  267. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -0
  268. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.d.ts +17 -0
  269. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -0
  270. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
  271. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
  272. package/build/js/private/ui/atoms/Card.d.ts +1 -1
  273. package/build/js/private/ui/atoms/Card.js +1 -1
  274. package/build/js/private/ui/atoms/CardList.d.ts +1 -1
  275. package/build/js/private/ui/atoms/CardList.js +1 -1
  276. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
  277. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
  278. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
  279. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
  280. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
  281. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
  282. package/build/js/private/ui/atoms/DeleteSvgIcon.d.ts +17 -0
  283. package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -0
  284. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
  285. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
  286. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
  287. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
  288. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
  289. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
  290. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
  291. package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
  292. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  293. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
  294. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
  295. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  296. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
  297. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  298. package/build/js/private/ui/atoms/ShutterButton.js +1 -1
  299. package/build/js/private/ui/atoms/SlashSvgIcon.d.ts +17 -0
  300. package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -0
  301. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
  302. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
  303. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
  304. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  305. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
  306. package/build/js/private/ui/atoms/Toast.d.ts +17 -8
  307. package/build/js/private/ui/atoms/Toast.js +1 -1
  308. package/build/js/private/ui/atoms/TorchOffSvgIcon.d.ts +17 -0
  309. package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -0
  310. package/build/js/private/ui/atoms/TorchOnSvgIcon.d.ts +17 -0
  311. package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -0
  312. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
  313. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
  314. package/build/js/private/ui/colors.d.ts +1 -1
  315. package/build/js/private/ui/colors.js +1 -1
  316. package/build/js/private/ui/molecules/ButtonEvents.d.ts +31 -0
  317. package/build/js/private/ui/molecules/ButtonEvents.js +1 -0
  318. package/build/js/private/ui/molecules/CameraFOVSwitchButton.d.ts +66 -0
  319. package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -0
  320. package/build/js/private/ui/molecules/CameraSwitchButton.d.ts +59 -0
  321. package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -0
  322. package/build/js/private/ui/molecules/ControlsLayout.d.ts +22 -0
  323. package/build/js/private/ui/molecules/ControlsLayout.js +1 -0
  324. package/build/js/private/ui/molecules/HintPresenter.d.ts +17 -8
  325. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  326. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  327. package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +68 -0
  328. package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -0
  329. package/build/js/private/utils/index.js +1 -1
  330. package/build/js/private/utils/polyfillLoader.js +1 -1
  331. package/build/js/private/utils/quadrilateralUtils.d.ts +2 -1
  332. package/build/js/private/utils/quadrilateralUtils.js +1 -1
  333. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +16 -7
  334. package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
  335. package/build/js/worker/{AsyncImageConverterForwarder.d.ts → ImageConverterForwarder.d.ts} +20 -11
  336. package/build/js/worker/ImageConverterForwarder.js +1 -0
  337. package/build/js/worker/{AsyncImageConverterWorker.d.ts → ImageConverterWorker.d.ts} +3 -3
  338. package/build/js/worker/ImageConverterWorker.js +1 -0
  339. package/build/js/worker/WorkerMain.d.ts +17 -8
  340. package/build/js/worker/WorkerMain.js +1 -1
  341. package/build/js/worker/coreCapture.inlineWorker.d.ts +17 -8
  342. package/build/js/worker/coreCapture.inlineWorker.js +1 -1
  343. package/build/js/worker/dataCaptureEngine.d.ts +17 -8
  344. package/build/js/worker/dataCaptureEngine.js +1 -1
  345. package/build/js/worker/dataCaptureLoader.d.ts +17 -8
  346. package/build/js/worker/dataCaptureLoader.js +1 -1
  347. package/build/js/worker/dataCaptureWorkerRelated.d.ts +17 -8
  348. package/build/js/worker/index.d.ts +17 -8
  349. package/build/js/worker/index.js +1 -1
  350. package/package.json +4 -4
  351. package/build/js/Camera-CZ0Hl7v2.d.ts +0 -213
  352. package/build/js/Common.d.ts +0 -231
  353. package/build/js/Common.js +0 -1
  354. package/build/js/Defaults.d.ts +0 -139
  355. package/build/js/Defaults.js +0 -1
  356. package/build/js/ViewControls.d.ts +0 -54
  357. package/build/js/ViewControls.js +0 -1
  358. package/build/js/assets/index.d.d.ts +0 -5
  359. package/build/js/assets/index.d.ts +0 -5
  360. package/build/js/assets/index.js +0 -1
  361. package/build/js/chunks/chunk-25EQ6RFI.js +0 -1
  362. package/build/js/chunks/chunk-2VNXD4FC.js +0 -1
  363. package/build/js/chunks/chunk-36CF5U7R.js +0 -1
  364. package/build/js/chunks/chunk-4GP73VVU.js +0 -97
  365. package/build/js/chunks/chunk-4Y7Q64OZ.js +0 -1
  366. package/build/js/chunks/chunk-5N4CQMMU.js +0 -1
  367. package/build/js/chunks/chunk-5S537AFM.js +0 -1
  368. package/build/js/chunks/chunk-5TW3OTHU.js +0 -1
  369. package/build/js/chunks/chunk-7RMPOOYQ.js +0 -1
  370. package/build/js/chunks/chunk-AKDTQZ73.js +0 -1
  371. package/build/js/chunks/chunk-AL6GJUID.js +0 -1
  372. package/build/js/chunks/chunk-B2I3SBRI.js +0 -1
  373. package/build/js/chunks/chunk-EFFUWK5Z.js +0 -1
  374. package/build/js/chunks/chunk-EKOWJS3E.js +0 -1
  375. package/build/js/chunks/chunk-ELQAIHEQ.js +0 -1
  376. package/build/js/chunks/chunk-FGCJ3ZLG.js +0 -2
  377. package/build/js/chunks/chunk-FS52JIW4.js +0 -1
  378. package/build/js/chunks/chunk-GQVOVLRR.js +0 -1
  379. package/build/js/chunks/chunk-GYSREBEJ.js +0 -1
  380. package/build/js/chunks/chunk-HLJPVZHK.js +0 -1
  381. package/build/js/chunks/chunk-HTQSOUB3.js +0 -6
  382. package/build/js/chunks/chunk-I3U43DWH.js +0 -1
  383. package/build/js/chunks/chunk-K5B6J4SK.js +0 -1
  384. package/build/js/chunks/chunk-K7MUTJWB.js +0 -1
  385. package/build/js/chunks/chunk-KUVVZN66.js +0 -1
  386. package/build/js/chunks/chunk-MQ6H2ORR.js +0 -1
  387. package/build/js/chunks/chunk-MTNFYUSF.js +0 -2
  388. package/build/js/chunks/chunk-PAPLDTB7.js +0 -1
  389. package/build/js/chunks/chunk-PXPLMVCF.js +0 -1
  390. package/build/js/chunks/chunk-QDZ6UZHF.js +0 -1
  391. package/build/js/chunks/chunk-T3DJYPIP.js +0 -18
  392. package/build/js/chunks/chunk-TB4UKDDI.js +0 -1
  393. package/build/js/chunks/chunk-TOR7V7M7.js +0 -1
  394. package/build/js/chunks/chunk-TPQTY3KB.js +0 -1
  395. package/build/js/chunks/chunk-TQ6K3P2B.js +0 -1
  396. package/build/js/chunks/chunk-TZ6TWPJD.js +0 -1
  397. package/build/js/chunks/chunk-UHFABUTI.js +0 -1
  398. package/build/js/chunks/chunk-UMHCVFPN.js +0 -2
  399. package/build/js/chunks/chunk-UUD3OXOZ.js +0 -1
  400. package/build/js/chunks/chunk-VBRTZG3W.js +0 -1
  401. package/build/js/chunks/chunk-VQ7LLVHQ.js +0 -1
  402. package/build/js/chunks/chunk-WNFUUIF3.js +0 -1
  403. package/build/js/chunks/chunk-XVVC3E6G.js +0 -35
  404. package/build/js/private/AsyncImageConverterBase.js +0 -1
  405. package/build/js/private/AsyncImageConverterMainThread.js +0 -1
  406. package/build/js/worker/AsyncImageConverterForwarder.js +0 -1
  407. package/build/js/worker/AsyncImageConverterWorker.js +0 -1
  408. /package/build/js/{assets/index.d.js → chunks/chunk-ATTDETQP.js} +0 -0
  409. /package/build/js/chunks/{chunk-5RW5274G.js → chunk-BUKZPAC5.js} +0 -0
  410. /package/build/js/chunks/{chunk-GZMB3TRK.js → chunk-GHDJPETZ.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import {a as a$6}from'./chunk-C3EY6I75.js';import {a as a$9,c as c$2,b as b$3}from'./chunk-X2ZGBI4S.js';import {a as a$g}from'./chunk-BA3RP6L2.js';import {a as a$7}from'./chunk-AIC4H5KG.js';import {a as a$e}from'./chunk-4F5JUHOJ.js';import {a as a$c}from'./chunk-JS3T7K2Z.js';import {b as b$2}from'./chunk-6H6FKGVE.js';import {a as a$b}from'./chunk-N5YZEC56.js';import {a as a$5}from'./chunk-VJB527QZ.js';import {a as a$4}from'./chunk-GHTCNOQN.js';import {a as a$1}from'./chunk-LXOZUOZU.js';import {a as a$d}from'./chunk-FGO2SSRS.js';import {d}from'./chunk-ADFFBLII.js';import {a as a$8}from'./chunk-GPJEB376.js';import {b as b$1}from'./chunk-VBUDN72N.js';import {c as c$1,e}from'./chunk-SBC5K7IT.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {f as f$1}from'./chunk-3D2HNEVH.js';import {a as a$f}from'./chunk-WUHKODFA.js';import {a as a$2}from'./chunk-7SW2PEHB.js';import {a as a$a}from'./chunk-QCZSSQAQ.js';import {c}from'./chunk-TR3NGINC.js';var $=[{from:"unconfigured",to:"configuring"},{from:"configuring",to:"configured"},{from:"configuring",to:"unconfigured"},{from:"configured",to:"creating-context"},{from:"creating-context",to:"ready"},{from:"creating-context",to:"unconfigured"},{from:"ready",to:"unconfigured"},{from:"configured",to:"unconfigured"}];function f(C,e,t){let r=t.value;return t.value=function(...n){let i=g.stateMachine;return i.currentState==="ready"&&g.mainDataCaptureLoader!=null?r.apply(this,n):i.isInitializing||i.currentState==="configured"?i.waitForState("ready").then(()=>r.apply(this,n)):Promise.reject(new Error(`Please call DataCaptureContext.forLicenseKey() before calling ${String(e)}`))},t}function j(C){return C[a$g]!=null}function P(C){return "skipSerialization"in C||C[a$g]!=null}var z,B,U,a=class a{constructor(){this._asyncImageConverterInstance=void 0;this.framework="web";this.runtimeEnvironment={deviceOS:(z=b$1.getUserAgentInfo().getOS().name)!=null?z:"",browser:(B=b$1.getUserAgentInfo().getBrowser().name)!=null?B:"",browserVersion:(U=b$1.getUserAgentInfo().getBrowser().version)!=null?U:"",get deviceModelName(){let{model:e,vendor:t}=b$1.getUserAgentInfo().getDevice();return (t==null||t==="")&&(t="Unknown"),(e==null||e==="")&&(e="Unknown"),[t,e].join(" ")}};this.settings=new a$2;this._frameSource=null;this._view=null;this.modes=new Set;this.components=[];this.listeners=[];this.updateListeners=new Set;this.cameraPropertiesReportListener=this.reportCameraProperties.bind(this);this.cameraAccessErrorListener=this.onCameraAccessError.bind(this);this.onWorkerMessageListener=this.onWorkerMessage.bind(this);this.onVisibilityChangeListener=this.onVisibilityChange.bind(this);this.pendingWorkerMessageListeners=new Set;this.delayedRegistration=false;this.highEndBlurryRecognition=false;this._frameHandlers=[];this._useSynchronousFrameFlow=false;}static get moduleLicenseTextProviders(){return [new b]}static get sharedInstance(){return a._sharedInstance==null&&(a._sharedInstance=new a),a._sharedInstance}static get currentState(){return a.stateMachine.currentState}static get isReady(){return a.stateMachine.currentState==="ready"}static get isInitializing(){return a.stateMachine.isInitializing}static addStateListener(e){a.stateMachine.addListener(e);}static removeStateListener(e){a.stateMachine.removeListener(e);}async initializeWithOptions(e){var t,r,n,i,o,s,u,p,c;this.licenseKey=(r=(t=e.licenseKey)!=null?t:a.userLicenseKey)!=null?r:"",this.deviceName=(n=e.deviceName)!=null?n:"",this.dataCaptureInstance=(i=e.dataCaptureInstance)!=null?i:a.mainDataCaptureLoader,this.delayedRegistration=(o=e.delayedRegistration)!=null?o:false,e.settings!=null&&(this.settings=e.settings),this.highEndBlurryRecognition=(c=(p=(s=e.dataCaptureInstance)==null?void 0:s.highEndBlurryRecognition)!=null?p:(u=a.mainDataCaptureLoader)==null?void 0:u.highEndBlurryRecognition)!=null?c:false;for(let S of this.pendingWorkerMessageListeners)this.dataCaptureInstance.addWorkerListener(S);this.pendingWorkerMessageListeners.clear(),this.settings!=null&&await this.applySettings(this.settings),await this.createContext();}get frameSource(){return this._frameSource}get workerCommand(){if(this.dataCaptureInstance==null)throw new Error("Cannot call workerCommand before dataCaptureInstance is set");return this.dataCaptureInstance.workerCommand.bind(this.dataCaptureInstance)}static async forLicenseKey(e,t){return a$3.debug(`forLicenseKey called, current state: ${a.stateMachine.currentState}`),a.stateMachine.currentState==="ready"?(a$3.debug("DataCaptureContext is already ready, returning existing instance"),a.sharedInstance):a.stateMachine.isInitializing?(a$3.debug("DataCaptureContext is already initializing, waiting for completion"),await a.stateMachine.waitForState("ready"),a.sharedInstance):(a.stateMachine.currentState==="unconfigured"&&(a$3.debug("Starting initialization from unconfigured state"),await a.stateMachine.executeAsyncTransition({targetState:"configuring",action:async()=>{await a.internalConfigure(e,t);},onSuccess:"configured",onError:"unconfigured"}),await a.stateMachine.executeAsyncTransition({targetState:"creating-context",action:async()=>{await a.sharedInstance.initializeWithOptions({licenseKey:e,deviceName:t.deviceName,settings:t.settings});},onSuccess:"ready",onError:"unconfigured"})),a.sharedInstance)}static async internalConfigure(e$1,t){var S;a$4.getInstance().updateIfMissing(a$5);let{forceAllPolyfills:r,overrideThreadsSupport:n,overrideSimdSupport:i}=a.getOverridesFromQueryString(),[o,s,u]=await Promise.all([a$6({forceAllPolyfills:r}),c$1(),e()]);n!=="auto"&&(a$3.warn(`Threads support override: was ${u} is now ${n==="on"}`),u=n==="on"),i!=="auto"&&(a$3.warn(`SIMD support override: was ${s} is now ${i==="on"}`),s=i==="on"),a.capabilityInfo={simdSupport:s,threadsSupport:u},a$3.debug(`Capability info detected - SIMD: ${s}, Threads: ${u}`),await a.validateOptions({...t,licenseKey:e$1});let p={licenseKey:e$1,libraryLocation:a$7(t.libraryLocation),moduleLoaders:t.moduleLoaders,logLevel:(S=t.logLevel)!=null?S:a$3.Level.Debug,verifyResponseHash:true,loadProgressNotifier:b$2.notify.bind(b$2),simdSupport:s,threadsSupport:u};a$3.setLevel(p.logLevel),a.userLicenseKey=p.licenseKey,a.libraryLocation=p.libraryLocation,b$2.subscribe(a.updateViewsWithProgress);let c=b$1.checkBrowserCompatibility();if(!c.fullSupport&&!c.scannerSupport)throw new a$8(c);b$1.isSupportedIOSVersion()||a$3.warn(`Warning: Minimum supported iOS version is 14.6.
2
+ Please check the minimum system requirements here:
3
+ https://docs.scandit.com/system-requirements#browser-compatibility`),a.dataCaptureLoaders=await a.loadModules(p.moduleLoaders,p),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],b$2.unsubscribe(a.updateViewsWithProgress);}static async forLicenseKeyInElectronPath(e,t){if(!a$9())throw new a$a({name:"MisconfigurationError",message:"forLicenseKeyInElectronPath can only be used in Electron applications"});let r=await c$2({licenseDataPath:e});if(r==null)throw new a$a({name:"NoLicenseKeyError",message:`Cannot retrieve license key for Electron app at ${e}`});return a.forLicenseKey(r.licenseKey,{...t})}static updateViewsWithProgress({percentage:e}){for(let t of a$b.values())t.setProgressBarPercentage(e);}static getOverridesFromQueryString(){var o,s,u;function e(p){return ["auto","off","on"].includes(p)}let t=new URLSearchParams(window.location.search),[r="auto",n="auto",i=false]=[(o=t.get("pthreads"))==null?void 0:o.toLowerCase(),(s=t.get("simd"))==null?void 0:s.toLowerCase(),((u=t.get("forceAllPolyfills"))==null?void 0:u.toLowerCase())==="true"];return {overrideThreadsSupport:e(r)?r:"auto",overrideSimdSupport:e(n)?n:"auto",forceAllPolyfills:i}}static async validateOptions(e){if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$a({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$a({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$a({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let t=e.moduleLoaders.map(r=>r.moduleName);if(!["BarcodeCapture","IdCapture","LabelCapture"].includes(t[0]))throw new a$a({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}static async loadModules(e,t){let r=new Map,n=new Map;for(let i of e)n.set(i.moduleName,i.load(t));await Promise.all(n.values());for(let[i,o]of n)r.set(i,await o);return r}static async getOpenSourceSoftwareLicenseInfo(){let e=[];for(let r of a.moduleLicenseTextProviders){let n=await r.getLicenseText();e.push(n);}let t=e.join(`
4
+
5
+ `);return new a$c(t)}async setFrameSource(e){let t=e!==this._frameSource;if(this._frameSource!==null&&(this._frameSource.context=null),this._frameSource=e!=null?e:null,e&&(e.context=this,await this.workerCommand("setFrameSource",{mirrorAxis:this.getMirrorAxisForFrameSource(e),isCameraFrameSource:f$1(e)})),await this.update([{type:"frameSourceState",newValue:this.frameSource}]),t)for(let r of this.listeners)r.didChangeFrameSource&&r.didChangeFrameSource(this,this._frameSource);}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}async flushAnalytics(){await this.workerCommand("flushAnalytics",{});}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async addMode(e){this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update([],{updateContext:!P(e)});}async removeMode(e){this.modes.delete(e),await e.detachedFromContext(),this.updateCameraFrameFlow(),await this.update([],{updateContext:!P(e)});}async setMode(e){this.modes.has(e)||(this.modes.clear(),this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update());}async removeCurrentMode(){for(let e of this.modes)await e.detachedFromContext();this.modes.clear(),await this.update();}async removeAllModes(){let e=Array.from(this.modes);for(let t of e)await this.removeMode(t);}async dispose(){if(a.stateMachine.currentState!=="unconfigured")try{await a.stateMachine.executeAsyncTransition({targetState:"unconfigured",action:async()=>{d.instance().removeListener("cameraProperties",this.cameraPropertiesReportListener),d.instance().removeListener("cameraAccessError",this.cameraAccessErrorListener),this.unsubscribeToVisibilityChange(this.onVisibilityChangeListener);for(let e of this.modes)await e.detachedFromContext();this._view&&(await this._view.setContext(null),this._view=null),this.dataCaptureInstance&&(await this.dataCaptureInstance.terminateDataCaptureWorker(true).catch(()=>{}),this.dataCaptureInstance=void 0);},onSuccess:"unconfigured",onError:"unconfigured"});}catch(e){if(a.stateMachine.currentState==="unconfigured")return;throw e}finally{this.modes.clear(),this.listeners=[],this.components.length=0,this.updateListeners.clear(),this.pendingWorkerMessageListeners.clear(),this.delayedRegistration=false,this.highEndBlurryRecognition=false,this._frameHandlers.length=0,this.frameSource&&(this.frameSource.context=null,this._frameSource=null),this.licenseKey="",this.deviceName="";}}async applySettings(e){this.settings=e,await this.update();}toJSONObject(){var e,t;return {licenseKey:this.licenseKey,framework:this.framework,deviceName:this.deviceName,...this.runtimeEnvironment,modes:[...this.modes].filter(r=>!P(r)).map(r=>r.toJSONObject()),components:this.components.map(r=>r.toJSONObject()),frameSource:this.frameSource?this.frameSource.toJSONObject():null,settings:this.settings.toJSONObject(),view:(t=(e=this._view)==null?void 0:e.toJSONObject())!=null?t:null}}getView(){return this._view}async setView(e){return this._view=e,this.update([{type:"viewSet",newValue:e}])}async getAppName(){let e=null;if(a$9()){let t=await b$3();if((t==null?void 0:t.appName)==null||t.appName==="")throw new Error("Cannot retrieve electron appName. Did you set it up in package.json? https://www.electronjs.org/docs/latest/api/app#appgetname");e=t.appName;}return e}urlToHostname(e){try{return new URL(e!=null?e:"").hostname}catch{return ""}}getParentDomain(){var t;let e="";return parent!==window&&(e||(e=this.urlToHostname((t=location.ancestorOrigins)==null?void 0:t[0])),e||(e=this.urlToHostname(document.referrer)),e||(e="")),e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e}async createContext(){await this.workerCommand("createContext",{context:this.toJSONObject(),deviceId:a.deviceID,delayedRegistration:this.delayedRegistration,highEndBlurryRecognition:this.highEndBlurryRecognition,appName:await this.getAppName(),parentDomain:this.getParentDomain()}),this.subscribeToWorkerMessages(this.onWorkerMessageListener),this.subscribeToCameraManagerEvents(),this.subscribeToVisibilityChange(this.onVisibilityChangeListener),this._view!=null&&await this.setView(this._view),this.frameSource!=null&&await this.setFrameSource(this.frameSource);}subscribeToVisibilityChange(e){document.addEventListener("visibilitychange",e);}unsubscribeToVisibilityChange(e){document.removeEventListener("visibilitychange",e);}async requestFrameData(e){return this.workerCommand("requestFrameData",{frameId:e})}performanceMark(e){a$d(globalThis.performance)&&typeof globalThis.performance.mark=="function"&&performance.mark(e);}async sendFrameToProcessor(e){let t=e instanceof ImageData?{data:e.data,width:e.width,height:e.height}:e,r=await this.sendFrameToHandlers(t);return t.data=r.capture.data,r.skip?r.capture:(this.performanceMark("processFrameBeforeSDC"),this.sendFrameToSDC(t))}async sendFrameToHandlers(e){for(let t of this._frameHandlers)if((await t(e)).action==="skip")return {skip:true,capture:e};return {skip:false,capture:e}}async sendFrameToSDC(e){return this.workerCommand("processFrame",e,[e.data.buffer])}registerFrameHandler(e){this._frameHandlers.includes(e)||this._frameHandlers.push(e);}unregisterFrameHandler(e){this._frameHandlers.includes(e)&&this._frameHandlers.splice(this._frameHandlers.indexOf(e),1);}onVisibilityChange(){this.workerCommand("documentVisibility",{state:document.visibilityState});}getImageConverterInstance(e){return this._asyncImageConverterInstance==null&&(this._asyncImageConverterInstance=new a$e(e)),this._asyncImageConverterInstance}onWorkerMessage(e){if(e.type==="contextDidChangeStatus"){e.payload.isValid||a$3.error(e.payload);for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$f.fromJSON(e.payload));}if(e.type==="didStartObservingContext")for(let t of this.listeners)t.didStartObservingContext&&t.didStartObservingContext(this);e.type==="onFrameProcessingFinished"&&this.performanceMark("processFrameAfterSDC"),e.type==="convertToJPEG"&&this.convertImageToJPEG(e);}async convertImageToJPEG(e){let{imageId:t,width:r,height:n,data:i,planes:o,orientation:s,quality:u}=e,p={getWidth:()=>r,getHeight:()=>n,getPlanes:()=>o,toBitmap:()=>i,getBitmapRepresentationFromYUV:()=>{throw new Error("Not implemented")},deepCopy:()=>{throw new Error("Not implemented")}},c=await this.getImageConverterInstance({quality:u}).convertToJpeg(p,s);return this.workerCommand("convertToJPEGResult",{imageId:t,result:c})}subscribeToCameraManagerEvents(){d.instance().addListener("cameraProperties",this.cameraPropertiesReportListener),d.instance().addListener("cameraAccessError",this.cameraAccessErrorListener);}async reportCameraProperties(e){return this.workerCommand("reportCameraProperties",e)}onCameraAccessError(e){for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$f.fromJSON({code:33794,isValid:true,message:typeof(e==null?void 0:e.toString)=="function"?e.toString():"Unknown error"}));}async update(e=[],{updateContext:t=true}={}){var r,n;t&&await this.updateContext();for(let i of e){switch(i.type){case "frameSourceState":{await((r=this._view)==null?void 0:r.onFrameSourceChange(this.frameSource));break}case "singleImageModeUploaderSettings":{(n=this._view)==null||n.onSingleImageUploaderSettingsChange(i.newValue);break}case "addOverlay":{await this.addNativeOverlay(i.newValue);break}case "removeOverlay":{await this.removeNativeOverlay(i.newValue);break}}for(let o of this.updateListeners)o(i);}}async updateContext(){await this.workerCommand("updateContext",{context:this.toJSONObject(),...this.getViewInfo()}).catch(e=>a$3.warn("Error while updating context:",e,this.toJSONObject()));}getViewInfo(){return this._view!=null?{view:{width:this._view.width,height:this._view.height,visible:this._view.width>0&&this._view.height>0,orientation:this._view.orientation}}:{view:null}}getMirrorAxisForFrameSource(e){let t="None";return f$1(e)&&e.getMirrorImageEnabled()&&(t="Y"),t}async addComponent(e){if(!this.components.includes(e))return this.components.push(e),e._context=this,this.update()}async addNativeOverlay(e){if(j(e))return this.workerCommand("addNativeOverlay",{overlayHandle:e[a$g]})}async removeNativeOverlay(e){if(j(e))return this.workerCommand("removeNativeOverlay",{overlayHandle:e[a$g]})}subscribeToWorkerMessages(e){this.dataCaptureInstance?this.dataCaptureInstance.addWorkerListener(e):this.pendingWorkerMessageListeners.add(e);}unsubscribeToWorkerMessages(e){this.dataCaptureInstance&&this.dataCaptureInstance.removeWorkerListener(e),this.pendingWorkerMessageListeners.delete(e);}hasEnabledMode(){return [...this.modes].some(e=>e.isEnabled())}updateCameraFrameFlow(){let e=[...this.modes].some(t=>t._synchronousFrameFlow===true);d.instance().setFrameHandling(e);}async isFeatureSupported(e){return (await this.workerCommand("isFeatureSupported",{feature:e})).supported}};a.deviceID=b$1.getDeviceId(),a.stateMachine=new a$1("unconfigured",$),a.mainDataCaptureLoader=void 0,a.dataCaptureLoaders=new Map,a.libraryLocation=void 0,a.userLicenseKey=null,a.capabilityInfo=void 0,c([f],a.prototype,"setFrameSource",1),c([f],a.prototype,"addMode",1),c([f],a.prototype,"removeMode",1),c([f],a.prototype,"setMode",1),c([f],a.prototype,"removeCurrentMode",1),c([f],a.prototype,"isFeatureSupported",1);var g=a;var b=class{constructor(e=g,t=a$3,r=globalThis.fetch.bind(globalThis)){this.staticContext=g;this.staticContext=e,this.logger=t,this.fetch=r;}get workerCommand(){var e;return (e=this.staticContext.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.staticContext.mainDataCaptureLoader)}async getLicenseText(){var i,o;let e=this.staticContext.stateMachine.currentState;if(e==="unconfigured"||e==="configuring")return this.logger.warn('You must call "DataCaptureContext.forLicenseKey" before retrieving open source license text info.'),"";let t=new URL(`${((i=this.staticContext.libraryLocation)!=null?i:"").replace(/\/$/,"")}/license/web-core-license.txt`),[r,n]=await Promise.all([(o=this.workerCommand)==null?void 0:o.call(this,"getOpenSourceSoftwareLicenseInfo",{}),this.fetchWebLicenseText(t.toString())]);return [r==null?void 0:r.licenseText,n].filter(s=>s!=null).join(`
6
+ `)}async fetchWebLicenseText(e){return this.fetch(e,{mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"}}).then(async t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.text()}).catch(t=>(this.logger.warn(`Failed to fetch license from ${e}: ${t.toString()}`),null))}};export{b as a,g as b};
@@ -0,0 +1 @@
1
+ var e={defaultVibrationPattern:[300]};export{e as a};
@@ -1 +1 @@
1
- import {b,a as a$3,c,f as f$1}from'./chunk-TB4UKDDI.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$5}from'./chunk-3A4KLILV.js';import {a as a$4}from'./chunk-LSZZVJ6B.js';var h="scandit-progress-bar",n="aria-valuenow",f="aria-valuemin",w="aria-valuemax",a=class a extends a$1{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=a$2`<div id="scandit-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100">`,e.append(a.createStyleElement().cloneNode(true)),this.progress=e.querySelector("#scandit-progress");}static get observedAttributes(){return ["value","min","max"]}static createStyleElement(){return a$4`:host{display:inline-block;--indeterminate-bubble-width:35%;--accent-color:#${b.toJSON()};--start-gradient-color:#${a$3.toJSON()};--end-gradient-color:#${c.toJSON()};--secondary-color:#${f$1.toJSON()};width:100%}:host [role=progressbar]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:.5rem;overflow:hidden;position:relative}:host [role=progressbar]:after,:host [role=progressbar]:before{background:var(--accent-color);border-radius:.5rem;content:" ";height:.5rem;left:0;position:absolute;top:0}:host([variant=gradient]) [role=progressbar]:after,:host([variant=gradient]) [role=progressbar]:before{background:linear-gradient(90deg,var(--start-gradient-color) 0,var(--end-gradient-color) 100%)}:host(:focus-visible){border-radius:.5rem;outline-color:var(--accent-color);outline-offset:5px}:host [role=progressbar]:not([aria-valuenow]):after{animation:indeterminate-progress-bar 2.5s ease infinite;width:var(--indeterminate-bubble-width);z-index:1}:host [role=progressbar][aria-valuenow]:after{animation:none;width:0}:host [role=progressbar][aria-valuenow]:before{background-color:var(--accent-color);border-radius:.5rem;transition:width .3s linear;width:calc(var(--aria-valuenow)*1%)}:host [role=progressbar]{background-color:var(--secondary-color);border-radius:.5rem}@keyframes indeterminate-progress-bar{0%{left:0}50%{left:calc(100% - var(--indeterminate-bubble-width))}}`}get min(){var r;let e=(r=this.getAttribute("min"))!=null?r:0;return Number(e)}get max(){var r;let e=(r=this.getAttribute("max"))!=null?r:1;return Number(e)}set max(e){e!==null&&this.setAttribute("max",String(e));}get value(){let e=this.getAttribute("value");return e==null||e===""?null:Number(e)}set value(e){if(e==null){this.removeAttribute("value");return}e>=this.min&&e<=this.max&&this.setAttribute("value",String(e));}static create(){return document.createElement(h)}static register(){a$5({[a.tag]:a});}attributeChangedCallback(){this.update();}connectedCallback(){this.update();}update(){let{min:e,max:r,value:i,progress:t}=this;if(t==null||t.setAttribute(f,e.toString()),t==null||t.setAttribute(w,r.toString()),i==null){t==null||t.removeAttribute(n),t==null||t.removeAttribute("style");return}if(i>=e&&i<=r){let v=(i-e)/(r-e)*100,l=String(v);t==null||t.setAttribute(n,l),t==null||t.setAttribute("style",`--${n}: ${l}`);}}};a.tag=h;var o=a;o.register();export{o as a};
1
+ import {b,a as a$3,c,f as f$1}from'./chunk-SOCEWYYO.js';import {a as a$5}from'./chunk-3A4KLILV.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$4}from'./chunk-LSZZVJ6B.js';var h="scandit-progress-bar",n="aria-valuenow",f="aria-valuemin",w="aria-valuemax",a=class a extends a$1{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=a$2`<div id="scandit-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100">`,e.append(a.createStyleElement().cloneNode(true)),this.progress=e.querySelector("#scandit-progress");}static get observedAttributes(){return ["value","min","max"]}static createStyleElement(){return a$4`:host{display:inline-block;--indeterminate-bubble-width:35%;--accent-color:#${b.toJSON()};--start-gradient-color:#${a$3.toJSON()};--end-gradient-color:#${c.toJSON()};--secondary-color:#${f$1.toJSON()};width:100%}:host [role=progressbar]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:.5rem;overflow:hidden;position:relative}:host [role=progressbar]:after,:host [role=progressbar]:before{background:var(--accent-color);border-radius:.5rem;content:" ";height:.5rem;left:0;position:absolute;top:0}:host([variant=gradient]) [role=progressbar]:after,:host([variant=gradient]) [role=progressbar]:before{background:linear-gradient(90deg,var(--start-gradient-color) 0,var(--end-gradient-color) 100%)}:host(:focus-visible){border-radius:.5rem;outline-color:var(--accent-color);outline-offset:5px}:host [role=progressbar]:not([aria-valuenow]):after{animation:indeterminate-progress-bar 2.5s ease infinite;width:var(--indeterminate-bubble-width);z-index:1}:host [role=progressbar][aria-valuenow]:after{animation:none;width:0}:host [role=progressbar][aria-valuenow]:before{background-color:var(--accent-color);border-radius:.5rem;transition:width .3s linear;width:calc(var(--aria-valuenow)*1%)}:host [role=progressbar]{background-color:var(--secondary-color);border-radius:.5rem}@keyframes indeterminate-progress-bar{0%{left:0}50%{left:calc(100% - var(--indeterminate-bubble-width))}}`}get min(){var r;let e=(r=this.getAttribute("min"))!=null?r:0;return Number(e)}get max(){var r;let e=(r=this.getAttribute("max"))!=null?r:1;return Number(e)}set max(e){e!==null&&this.setAttribute("max",String(e));}get value(){let e=this.getAttribute("value");return e==null||e===""?null:Number(e)}set value(e){if(e==null){this.removeAttribute("value");return}e>=this.min&&e<=this.max&&this.setAttribute("value",String(e));}static create(){return document.createElement(h)}static register(){a$5({[a.tag]:a});}attributeChangedCallback(){this.update();}connectedCallback(){this.update();}update(){let{min:e,max:r,value:i,progress:t}=this;if(t==null||t.setAttribute(f,e.toString()),t==null||t.setAttribute(w,r.toString()),i==null){t==null||t.removeAttribute(n),t==null||t.removeAttribute("style");return}if(i>=e&&i<=r){let v=(i-e)/(r-e)*100,l=String(v);t==null||t.setAttribute(n,l),t==null||t.setAttribute("style",`--${n}: ${l}`);}}};a.tag=h;var o=a;o.register();export{o as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-GJBUPJIM.js';import {d}from'./chunk-AFCJ24Y3.js';import {f,g}from'./chunk-3D2HNEVH.js';var u=class{constructor(){this.type="camera";this.customImages={idle:"",pressed:""};this.cameraSwitchButton=void 0;this.CameraSwitchButtonClass=void 0;this.currentFrameSource=null;this.view=void 0;this.onCameraSwitched=this.handleCameraSwitched.bind(this);this.isTransitioning=false;}get idleImage(){return this.customImages.idle}set idleImage(t){this.customImages.idle=t,this.applyCustomImagesToButton();}get pressedImage(){return this.customImages.pressed}set pressedImage(t){this.customImages.pressed=t,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(t){var i,r,s;this.CameraSwitchButtonClass||(this.CameraSwitchButtonClass=await import('../private/ui/molecules/CameraSwitchButton.js').then(l=>l.CameraSwitchButton),(i=this.CameraSwitchButtonClass)==null||i.register()),this.view=t,this.currentFrameSource=(s=(r=t.getContext())==null?void 0:r.frameSource)!=null?s:null,this.cameraSwitchButton=this.CameraSwitchButtonClass.create(),this.cameraSwitchButton.slot="topRight",this.cameraSwitchButton.hidden=true,this.cameraSwitchButton.addEventListener("camera-switched",this.onCameraSwitched);let e=t.controlsElement;e&&e.append(this.cameraSwitchButton),this.applyCustomImagesToButton();let a=await this.canShow();return this.updateButtonVisibility(a),true}remove(t){t&&this.cameraSwitchButton&&(this.cameraSwitchButton.removeEventListener("camera-switched",this.onCameraSwitched),this.cameraSwitchButton.remove(),this.cameraSwitchButton=null,this.currentFrameSource=null,this.view=void 0);}async update(t){var a,i;this.currentFrameSource=(i=(a=t.getContext())==null?void 0:a.frameSource)!=null?i:null,this.view=t;let e=await this.canShow();this.updateButtonVisibility(e);}updateButtonVisibility(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}applyCustomImagesToButton(){if(!this.cameraSwitchButton)return;this.customImages.idle||this.customImages.pressed?this.cameraSwitchButton.setCustomImages(this.customImages):this.cameraSwitchButton.useCustomImages=false;}async canShow(){if(!f(this.currentFrameSource)||this.currentFrameSource.getCurrentState()!=="on")return false;try{return (await d.getCameras(false,true)).length>1}catch{return false}}handleCameraSwitched(t){let{currentMode:e}=t.detail,a=e==="back"?"front":"back";this.cameraSwitchButton.mode=a,this.handleCameraSwitch();}async handleCameraSwitch(){if(this.isTransitioning)return;let t=await this.getNextDeviceCamera();t&&await this.switchCameras(t);}async getNextDeviceCamera(){var r;let t=await a.getAll(false,true),e=this.currentFrameSource?this.currentFrameSource:null,a$1=e==null?void 0:e.deviceId,i=t.findIndex(s=>s.deviceId===a$1);return i>-1?(r=t[i+1])!=null?r:t[0]:t.length>0?t[0]:null}async switchCameras(t){var s;this.isTransitioning=true;let e=(s=this.view)==null?void 0:s.getContext(),a=e==null?void 0:e.frameSource,i,r;a!=null&&(i=new g(a.settings),r=a.desiredState),await(a==null?void 0:a.switchToDesiredState("off")),i!=null&&await t.applySettings(i),await(e==null?void 0:e.setFrameSource(t)),await(e==null?void 0:e.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{u as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-IJQG3OU6.js';import {a as a$1}from'./chunk-KAFNKP6O.js';var b=class f extends a{constructor(n,t,h,e,c,s,r,P,p){super(n,t,h,e),this._centerLeft=c,this._topCenter=s,this._centerRight=r,this._bottomCenter=P,this._center=p;}get centerRight(){return this._centerRight}get center(){return this._center}get centerLeft(){return this._centerLeft}get topCenter(){return this._topCenter}get bottomCenter(){return this._bottomCenter}static fromJSON(n){let{topLeft:t,topRight:h,bottomRight:e,bottomLeft:c,centerLeft:s,topCenter:r,centerRight:P,bottomCenter:p,center:l}=n,i=a$1.fromJSON(t),m=a$1.fromJSON(h),O=a$1.fromJSON(e),S=a$1.fromJSON(c),g=a$1.fromJSON(s),J=a$1.fromJSON(r),N=a$1.fromJSON(P),u=a$1.fromJSON(p),x=a$1.fromJSON(l);return new f(i,m,O,S,g,J,N,u,x)}toJSONObject(){return {...super.toJSONObject(),center:this._center.toJSONObject(),bottomCenter:this._bottomCenter.toJSONObject(),topCenter:this._topCenter.toJSONObject(),centerLeft:this._centerLeft.toJSONObject(),centerRight:this._centerRight.toJSONObject()}}orderVerticesByPosition(){let n=[this.topLeft,this.topRight,this.bottomLeft,this.bottomRight],t=n.reduce((i,m)=>m.y<i.y?m:i),h=n.filter(i=>!i.equals(t));if(h.length===0)return this;let e=h.reduce((i,m)=>m.y<i.y?m:i),c=t.x<=e.x?t:e,s=t.x>e.x?t:e,r=n.filter(i=>!i.equals(c)&&!i.equals(s));if(r.length!==2)return this;let P=r[0].x<=r[1].x?r[0]:r[1],p=r[0].x>r[1].x?r[0]:r[1];return new f(c,s,p,P,new a$1((c.x+P.x)/2,(c.y+P.y)/2),new a$1((c.x+s.x)/2,(c.y+s.y)/2),new a$1((s.x+p.x)/2,(s.y+p.y)/2),new a$1((P.x+p.x)/2,(P.y+p.y)/2),this.center)}getArea(n){let t=[n.topLeft,n.topRight,n.bottomRight,n.bottomLeft,n.topLeft],h=0;for(let e=0;e<t.length-1;e++)h+=t[e].x*t[e+1].y-t[e+1].x*t[e].y;return Math.abs(h)/2}};export{b as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-QG3MRQMP.js';var i=class{constructor(){this.type="laserline";this.width=a.LaserlineViewfinder.width,this.enabledColor=a.LaserlineViewfinder.enabledColor,this.disabledColor=a.LaserlineViewfinder.disabledColor;}toJSONObject(){return {type:this.type,width:this.width.toJSONObject(),disabledColor:this.disabledColor.toJSON(),enabledColor:this.enabledColor.toJSON()}}};export{i as a};
@@ -0,0 +1 @@
1
+ var t=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));var a=()=>(async e=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(e)}catch{return false}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));function i(){return typeof crossOriginIsolated>"u"?false:crossOriginIsolated}function A(){try{return new WebAssembly.Memory({initial:1,maximum:1,shared:true}).buffer.constructor.name==="SharedArrayBuffer"}catch{return false}}async function b(){return t()}async function o(){if(!await a())return false;let n=null;try{n=new Worker(URL.createObjectURL(new Blob(['postMessage("Worker" in self);'],{type:"text/javascript"})),{name:"nestedWorkerTest"});}catch{return false}return new Promise(r=>{if(n==null){r(false);return}n.onmessage=s=>{n==null||n.terminate(),r(s.data);};})}async function u(){let e=await o();return i()&&A()&&e&&y()>=2}function y(){var e;return (e=navigator.hardwareConcurrency)!=null?e:1}export{i as a,A as b,b as c,o as d,u as e,y as f};
@@ -0,0 +1 @@
1
+ var n=class t{constructor(e){this.hexadecimalString=e;}get redComponent(){return this.hexadecimalString.slice(0,2)}get greenComponent(){return this.hexadecimalString.slice(2,4)}get blueComponent(){return this.hexadecimalString.slice(4,6)}get alphaComponent(){return this.hexadecimalString.slice(6,8)}get red(){return t.hexToNumber(this.redComponent)}get green(){return t.hexToNumber(this.greenComponent)}get blue(){return t.hexToNumber(this.blueComponent)}get alpha(){return t.hexToNumber(this.alphaComponent)}static fromHex(e){return new t(t.normalizeHex(e))}static fromRGBA(e,r,i,l=1){let a=[e,r,i,t.normalizeAlpha(l)].reduce((o,u)=>o+t.numberToHex(u),"");return new t(a)}static areEquals(e,r){return e==null||r==null?false:e.hexadecimalString===r.hexadecimalString}static hexToNumber(e){return Number.parseInt(e,16)}static fromJSON(e){return t.fromHex(e)}static numberToHex(e){let i=Math.round(e).toString(16);return i.length===1&&(i=`0${i}`),i.toUpperCase()}static normalizeHex(e){let r=e;return r.startsWith("#")&&(r=r.slice(1)),r.length<6&&(r=[...r].map(i=>i+i).join("")),r.length===6&&(r+="FF"),r.toUpperCase()}static normalizeAlpha(e){return e>0&&e<=1?255*e:e}withAlpha(e){let r=this.hexadecimalString.slice(0,6)+t.numberToHex(t.normalizeAlpha(e));return t.fromHex(r)}toJSON(){return this.hexadecimalString}};export{n as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-SGL5J2CI.js';var e=a$1.fromRGBA(46,193,206,1),n=a$1.fromRGBA(98,209,218,1),t=a$1.fromRGBA(151,224,230,1),c=a$1.fromRGBA(203,240,243,1),a=a$1.fromRGBA(18,22,25,1),m=a$1.fromRGBA(218,225,231,1),p=a$1.fromRGBA(40,211,128,1),G=a$1.fromRGBA(83,220,153,1),R=a$1.fromRGBA(126,229,179,1),B=a$1.fromRGBA(169,237,204,1),f=a$1.fromRGBA(212,246,230,1),s=a$1.fromRGBA(251,192,44,1),x=a$1.fromRGBA(252,205,86,1),y=a$1.fromRGBA(253,217,128,1),A=a$1.fromRGBA(254,230,171,1),d=a$1.fromRGBA(254,242,213,1),S=a$1.fromRGBA(250,68,70,1),l=a$1.fromRGBA(251,105,107,1),g=a$1.fromRGBA(252,143,144,1),i=a$1.fromRGBA(253,180,181,1),O=a$1.fromRGBA(254,218,218,1),T=a$1.fromRGBA(10,51,144,1),u=a$1.fromRGBA(22,96,217,1),C=a$1.fromRGBA(217,231,255,1);export{e as a,n as b,t as c,c as d,a as e,m as f,p as g,G as h,R as i,B as j,f as k,s as l,x as m,y as n,A as o,d as p,S as q,l as r,g as s,i as t,O as u,T as v,u as w,C as x};
@@ -0,0 +1 @@
1
+ async function u(e,l){let t=document.createElement("canvas");t.width=this.width,t.height=this.height;let o=t.getContext("2d");if(!o)throw new Error("Could not get 2d context from an HTMLCanvasElement");let s=await this.getData();if(s==null)return null;let m;if(this.colorType==="GRAYSCALE"){let n=this.width*this.height,a=new Uint8ClampedArray(n*4);for(let r=0;r<n;r++){let h=s[r],i=r*4;a[i]=h,a[i+1]=h,a[i+2]=h,a[i+3]=255;}m=new ImageData(a,this.width,this.height);}else m=new ImageData(s,this.width,this.height);return o.putImageData(m,0,0),new Promise((n,a)=>{t.toBlob(r=>{if(t=null,o=null,r===null){a(new Error("Could not create Blob object from canvas"));return}n(r);},e,l);})}function c(e,l){let t={width:e.width,height:e.height,isFrameSourceMirrored:e.isFrameSourceMirrored,colorType:e.colorType,getData:async()=>(await l.requestFrameData(e.frameId)).data};return t.toBlob=u.bind(t),t}export{c as a};
@@ -0,0 +1 @@
1
+ var i=class{constructor(t,e){this._origin=t,this._size=e;}get origin(){return this._origin}get size(){return this._size}toJSONObject(){return {origin:this._origin.toJSONObject(),size:this._size.toJSONObject()}}};export{i as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-4BP7D26M.js';var E={CONTAINER_CLASS_NAME:a.CONTAINER_CLASS_NAME,PAINTBOARD_CLASS_NAME:a.PAINTBOARD_CLASS_NAME,PAINTBOARD_CLASS_NAME_STATE_ON:a.PAINTBOARD_CLASS_NAME_STATE_ON,MIRRORED_CLASS_NAME:a.MIRRORED_CLASS_NAME,CAMERA_RECOVERY_CLASS_NAME:a.CAMERA_RECOVERY_CLASS_NAME,ERROR_CLASS_NAME:a.ERROR_CLASS_NAME,PAINTBOARDS_CONTAINER_CLASS_NAME:a.PAINTBOARDS_CONTAINER_CLASS_NAME,SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME:a.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME,CANVAS_VIDEO_PREVIEW_CLASS_NAME:a.CANVAS_VIDEO_PREVIEW_CLASS_NAME,FROZEN_FRAME:a.FROZEN_FRAME};export{E as a};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-24IG7HUA.js';import {a as a$1}from'./chunk-SGL5J2CI.js';var h=(t=>(t.ArrowDown="arrowDown",t.ArrowLeft="arrowLeft",t.ArrowRight="arrowRight",t.ArrowUp="arrowUp",t.CameraSwitch="cameraSwitch",t.Checkmark="checkMark",t.ChevronDown="chevronDown",t.ChevronLeft="chevronLeft",t.ChevronRight="chevronRight",t.ChevronUp="chevronUp",t.Delete="delete",t.DotFiveX="dotFiveX",t.ExclamationMark="exclamationMark",t.ExpiredItem="expiredItem",t.FragileItem="fragileItem",t.InspectItem="inspectItem",t.Keyboard="keyboard",t.LowStock="lowStock",t.OneX="oneX",t.Print="print",t.QuestionMark="questionMark",t.Restart="restart",t.Slash="slash",t.StarFilled="starFilled",t.StarHalfFilled="starHalfFilled",t.StarOutlined="starOutlined",t.ToPick="toPick",t.TwoX="twoX",t.WrongItem="wrongItem",t.XMark="xMark",t))(h||{}),l={arrowDown:import('../private/ui/atoms/ArrowDownSvgIcon.js').then(o=>o.ArrowDownSvgIcon),arrowLeft:import('../private/ui/atoms/ArrowLeftSvgIcon.js').then(o=>o.ArrowLeftSvgIcon),arrowRight:import('../private/ui/atoms/ArrowRightSvgIcon.js').then(o=>o.ArrowRightSvgIcon),arrowUp:import('../private/ui/atoms/ArrowUpSvgIcon.js').then(o=>o.ArrowUpSvgIcon),cameraSwitch:import('../private/ui/atoms/CameraSwitchSvgIcon.js').then(o=>o.CameraSwitchSvgIcon),checkMark:import('../private/ui/atoms/CheckSvgIcon.js').then(o=>o.CheckSvgIcon),chevronDown:import('../private/ui/atoms/ChevronDownSvgIcon.js').then(o=>o.ChevronDownSvgIcon),chevronLeft:import('../private/ui/atoms/ChevronLeftSvgIcon.js').then(o=>o.ChevronLeftSvgIcon),chevronRight:import('../private/ui/atoms/ChevronRightSvgIcon.js').then(o=>o.ChevronRightSvgIcon),chevronUp:import('../private/ui/atoms/ChevronUpSvgIcon.js').then(o=>o.ChevronUpSvgIcon),delete:import('../private/ui/atoms/DeleteSvgIcon.js').then(o=>o.DeleteSvgIcon),dotFiveX:import('../private/ui/atoms/Dot5xSvgIcon.js').then(o=>o.Dot5xSvgIcon),exclamationMark:import('../private/ui/atoms/ExclamationMarkSvgIcon.js').then(o=>o.ExclamationMarkSvgIcon),expiredItem:import('../private/ui/atoms/CalendarExclamationMarkSvgIcon.js').then(o=>o.CalendarExclamationMarkSvgIcon),fragileItem:import('../private/ui/atoms/GlassSvgIcon.js').then(o=>o.GlassSvgIcon),inspectItem:import('../private/ui/atoms/HandLensCheckSvgIcon.js').then(o=>o.HandLensCheckSvgIcon),keyboard:import('../private/ui/atoms/KeyboardSvgIcon.js').then(o=>o.KeyboardSvgIcon),lowStock:import('../private/ui/atoms/LowStockSvgIcon.js').then(o=>o.LowStockSvgIcon),oneX:import('../private/ui/atoms/OnexSvgIcon.js').then(o=>o.OnexSvgIcon),print:import('../private/ui/atoms/PrinterSvgIcon.js').then(o=>o.PrinterSvgIcon),questionMark:import('../private/ui/atoms/QuestionMarkSvgIcon.js').then(o=>o.QuestionMarkSvgIcon),restart:import('../private/ui/atoms/RestartSvgIcon.js').then(o=>o.RestartSvgIcon),slash:import('../private/ui/atoms/SlashSvgIcon.js').then(o=>o.SlashSvgIcon),starFilled:import('../private/ui/atoms/StarFilledSvgIcon.js').then(o=>o.StarFilledSvgIcon),starHalfFilled:import('../private/ui/atoms/StarHalfFilledSvgIcon.js').then(o=>o.StarHalfFilledSvgIcon),starOutlined:import('../private/ui/atoms/StarOutlinedSvgIcon.js').then(o=>o.StarOutlinedSvgIcon),toPick:import('../private/ui/atoms/ToPickSvgIcon.js').then(o=>o.ToPickSvgIcon),twoX:import('../private/ui/atoms/TwoxSvgIcon.js').then(o=>o.TwoxSvgIcon),wrongItem:import('../private/ui/atoms/WrongItemSvgIcon.js').then(o=>o.WrongItemSvgIcon),xMark:import('../private/ui/atoms/CrossSvgIcon.js').then(o=>o.CrossSvgIcon)},a=class{constructor(){this.iconName=null;this.backgroundShape=null;this.iconColor=a$1.fromHex("#fff");this.backgroundStrokeWidth=0;this.width=32;this.height=32;this.iconSize=null;}withIcon(r){return this.iconName=r,this}withBackgroundShape(r){return this.backgroundShape=r,this}withIconColor(r){return this.iconColor=r,this}withBackgroundColor(r){return this.backgroundColor=r,this}withBackgroundStrokeColor(r){return this.backgroundStrokeColor=r,this}withBackgroundStrokeWidth(r){return this.backgroundStrokeWidth=r,this}async build(){let r=b.create();r.backgroundStrokeWidth=this.backgroundStrokeWidth,r.backgroundShape=this.backgroundShape,this.backgroundColor!=null&&(r.backgroundColor=this.backgroundColor),this.backgroundStrokeColor!=null&&(r.backgroundStrokeColor=this.backgroundStrokeColor);let n=null;if(this.iconName!=null){let e=await l[this.iconName];e.register(),n=e.create(),r.append(n);}return r.width=this.width,r.height=this.height,r.iconColor=this.iconColor,n!=null&&this.iconSize!=null&&(n.size=this.iconSize),r}withIconSize(r){return this.iconSize=r,this}withWidth(r){return this.width=r,this}withHeight(r){return this.height=r,this}};export{h as a,l as b,a as c};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-5JAPQHXF.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$3}from'./chunk-UWBNF47P.js';var t=class t extends a$1{static create(){return document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<style>${t.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><rect opacity="0.5" width="32" height="32" rx="16" fill="white"/><path d="M7.98828 21.082C8.59668 21.082 9.08887 20.5898 9.08887 19.9814C9.08887 19.3662 8.59668 18.8809 7.98828 18.8809C7.37305 18.8809 6.8877 19.3662 6.8877 19.9814C6.8877 20.5898 7.37305 21.082 7.98828 21.082Z" fill="white"/><path d="M14.3662 21.2188C16.6152 21.2188 18.1807 19.7969 18.1807 17.6914C18.1807 15.8115 16.8408 14.4854 14.9541 14.4854C13.9492 14.4854 13.1426 14.8818 12.7393 15.5176H12.6982L12.9307 12.7764H16.8271C17.3467 12.7764 17.6748 12.4551 17.6748 11.9561C17.6748 11.457 17.3398 11.1357 16.8271 11.1357H12.5C11.7002 11.1357 11.2695 11.4707 11.2012 12.3047L10.9141 15.9209C10.9072 15.9551 10.9072 15.9756 10.9072 16.0029C10.8799 16.5566 11.2012 17.0283 11.8779 17.0283C12.3359 17.0283 12.541 16.9258 12.9443 16.5498C13.293 16.2148 13.7852 15.9619 14.373 15.9619C15.4463 15.9619 16.2119 16.7002 16.2119 17.7393C16.2119 18.8057 15.4395 19.5781 14.3662 19.5781C13.4775 19.5781 12.8965 19.1475 12.541 18.4365C12.3086 18.0674 12.0488 17.9238 11.6387 17.9238C11.1055 17.9238 10.7773 18.2383 10.7773 18.7646C10.7773 19.0107 10.8389 19.2227 10.9414 19.4414C11.4336 20.4873 12.8008 21.2188 14.3662 21.2188Z" fill="white"/><path d="M19.9307 21.1436C20.2861 21.1436 20.4844 21.0273 20.7578 20.6035L22.1865 18.457H22.2275L23.6836 20.6377C23.9092 20.9795 24.1006 21.1436 24.4902 21.1436C25.0303 21.1436 25.4404 20.8018 25.4404 20.2617C25.4404 20.043 25.3721 19.8516 25.2217 19.6465L23.5195 17.2949L25.1943 15.0596C25.3857 14.8135 25.4609 14.6152 25.4609 14.3691C25.4609 13.8633 25.085 13.5215 24.5244 13.5215C24.1553 13.5215 23.9434 13.6855 23.6768 14.1025L22.3369 16.1465H22.2959L20.9287 14.0889C20.6621 13.665 20.4502 13.5215 20.0469 13.5215C19.5 13.5215 19.0898 13.8975 19.0898 14.3965C19.0898 14.6289 19.1582 14.8271 19.3018 15.0186L21.0107 17.3496L19.2949 19.6465C19.1035 19.8994 19.0283 20.0908 19.0283 20.3301C19.0283 20.8086 19.4043 21.1436 19.9307 21.1436Z" fill="white"/></svg>`}};t.tag="scandit-camera-fov-ultrawide-icon";var a=t;export{a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-TPHGDMKG.js';import {a as a$2}from'./chunk-LSZZVJ6B.js';function a(){let i=a$2`@keyframes scandit-rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.${a$1.CONTAINER_CLASS_NAME}{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.${a$1.CONTAINER_CLASS_NAME}:before{animation:scandit-rotation 1s linear infinite;background-color:#fff;content:" ";height:1px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;width:1px}`,o=a$2`.${a$1.PAINTBOARDS_CONTAINER_CLASS_NAME}{height:inherit;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}{aspect-ratio:16/9;background-color:#000;height:100%;min-height:1px;min-width:1px;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.PAINTBOARD_CLASS_NAME_STATE_ON}{aspect-ratio:auto}.${a$1.PAINTBOARD_CLASS_NAME} video{display:block;height:100%;object-fit:cover;transition:opacity .3s;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.MIRRORED_CLASS_NAME}{transform:scaleX(-1)}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}{background-color:#000;cursor:pointer;z-index:5}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME},.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{align-items:center;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{background-color:#00000080;text-align:center;z-index:6}.${a$1.CAMERA_RECOVERY_CLASS_NAME}[hidden],.${a$1.ERROR_CLASS_NAME}[hidden]{display:none}.${a$1.PAINTBOARD_CLASS_NAME} canvas{height:100%;left:0;object-fit:cover;pointer-events:none;position:absolute;top:0;transition:opacity .3s;width:100%}`,A=a$2`.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME}{-webkit-tap-highlight-color:rgba(255,255,255,0);align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label input[type=file]{position:absolute;top:-9999px}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label button{pointer-events:none}`,n=a$2`.${a$1.FROZEN_FRAME}{height:100%;left:0;object-fit:cover;opacity:1;position:absolute;top:0;width:100%}.${a$1.FROZEN_FRAME}[hidden]{opacity:0;pointer-events:none;visibility:hidden}`;return [i,o,A,n]}export{a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-MA6UDVDJ.js';import {a as a$2}from'./chunk-BDGRWHLY.js';var a={focusGesture:null,zoomGesture:null,logoAnchor:"bottomRight",logoStyle:"extended",logoOffset:a$2.fromJSON({x:{value:0,unit:"fraction"},y:{value:0,unit:"fraction"}}),pointOfInterest:a$2.fromJSON({x:{value:.5,unit:"fraction"},y:{value:.5,unit:"fraction"}}),scanAreaMargins:a$1.fromJSON({left:{value:0,unit:"fraction"},right:{value:0,unit:"fraction"},top:{value:0,unit:"fraction"},bottom:{value:0,unit:"fraction"}}),cameraRecoveryText:"(This text is updated from translations)"};export{a};
@@ -0,0 +1 @@
1
+ import {c,a as a$1,b}from'./chunk-JFRSUCMO.js';import {a as a$3}from'./chunk-EQRBQJYM.js';import {a as a$2}from'./chunk-GHTCNOQN.js';import {a as a$4}from'./chunk-XR65N6EG.js';var a=class a{constructor(e){this.canUploadFile=false;this._mounted=false;this._loading=false;this._htmlRoot=void 0;this._canvas=void 0;this._onInputCheck=void 0;this._onBeforeFileRead=void 0;this._onImageLoadError=void 0;this._onFileReaderError=void 0;this._onCaptureReady=void 0;this._resizedImageSizeLimit=1440;this._inputElement=void 0;this._buttonElement=void 0;this._informationElement=void 0;this._chooseImageText="";this._localizationSubscription=void 0;this._onLocalizationUpdated=this.onLocalizationUpdated.bind(this);this._settings=e;}get canvas(){return this._canvas||(this._canvas=document.createElement("canvas")),this._canvas}get canvasContext(){return this._canvasContext||(this._canvasContext=this.canvas.getContext("2d",{willReadFrequently:true})),this._canvasContext}mount(e){var g;if(this._mounted)return;if(!document.head.querySelector(`[data-component=${a.componentName}]`)){let s=document.createElement("style");s.dataset.component=a.componentName,s.textContent=c,document.head.append(s);}let t=document.createElement("div");t.className=a$1.SINGLE_IMAGE_UPLOADER_CONTAINER,Object.assign(t.style,b.SINGLE_IMAGE_UPLOADER_CONTAINER_STYLE,this._settings.containerStyle),e.append(t);let{iconElement:n,iconStyle:r,informationElement:i,informationStyle:l,buttonElement:d,buttonStyle:h,onlyCameraCapture:p}=this._settings;Object.assign(n.style,b.SINGLE_IMAGE_UPLOADER_ICON_STYLE,r,{maxWidth:"100px",maxHeight:"100px"}),t.append(n),i.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(i.style,b.SINGLE_IMAGE_UPLOADER_INFORMATION_STYLE,l),i.textContent=a$2.getInstance().get("core.singleImageUploader.title")),t.append(i);let o=document.createElement("input");o.type="file",o.accept="image/*",p&&(o.capture="environment",o.dataset.onlyCaptureOnMobile="environment"),o.addEventListener("change",s=>{this.onFileUpload(s);}),o.addEventListener("click",s=>{var m;(m=this._onInputCheck)==null||m.call(this,s);}),o.addEventListener("keydown",s=>{var m;(m=this._onInputCheck)==null||m.call(this,s);});let v=document.createElement("label");v.append(o),d.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&Object.assign(d.style,b.SINGLE_IMAGE_UPLOADER_BUTTON_STYLE,h),v.append(d),t.append(v);let E=document.createRange().createContextualFragment(atob(a$3)).firstElementChild;Object.assign(E.style,{position:"absolute",bottom:"1em",right:"1em",width:"10em"}),t.append(E),this._htmlRoot=t,this._mounted=true,this._inputElement=o,this._buttonElement=d,this._chooseImageText=(g=d.textContent)!=null?g:"",this._informationElement=i,this._localizationSubscription=a$2.getInstance().subscribe(this._onLocalizationUpdated);}unmount(){var e,t,n;this._mounted&&((e=this._htmlRoot)==null||e.remove(),(t=document.head.querySelector(`[data-component=${a.componentName}]`))==null||t.remove(),(n=this._localizationSubscription)==null||n.cancel(),this._mounted=false);}setButtonState(e){this._inputElement&&(this._inputElement.disabled=e==="disabled");}getButtonState(){return this._inputElement?this._inputElement.disabled?"disabled":"enabled":"disabled"}onInputCheck(e){this._onInputCheck=e;}onBeforeFileRead(e){this._onBeforeFileRead=e;}onImageLoadError(e){this._onImageLoadError=e;}onFileReaderError(e){this._onFileReaderError=e;}onCaptureReady(e){this._onCaptureReady=e;}onAfterImageProcessed(){this.setLoading(false);}onLocalizationUpdated(){var e,t;(e=this._buttonElement)!=null&&e.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&(this._buttonElement.textContent=a$2.getInstance().get("core.singleImageUploader.button")),(t=this._informationElement)!=null&&t.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&(this._informationElement.textContent=a$2.getInstance().get("core.singleImageUploader.title"));}setLoading(e){this._buttonElement&&(this.setButtonState(e?"disabled":"enabled"),this._buttonElement.textContent=e?"...":this._chooseImageText,this._loading=e);}getResizedImageDimensions(e,t){return e<=this._resizedImageSizeLimit&&t<=this._resizedImageSizeLimit?{width:e,height:t}:e>t?{width:this._resizedImageSizeLimit,height:Math.round(t/e*this._resizedImageSizeLimit)}:{width:Math.round(e/t*this._resizedImageSizeLimit),height:this._resizedImageSizeLimit}}onImageLoad(e){var i;let{height:t,width:n}=this.getResizedImageDimensions(e.naturalWidth,e.naturalHeight);this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=t,this.canvasContext.drawImage(e,0,0,n,t);let r={data:this.canvasContext.getImageData(0,0,n,t).data,width:n,height:t};(i=this._onCaptureReady)==null||i.call(this,r);}onFileReaderLoad(e,t,n){e.value="",t.result!=null&&(n.addEventListener("load",()=>{this.onImageLoad(n);},{once:true}),n.addEventListener("error",r=>{var i;(i=this._onImageLoadError)==null||i.call(this,r),this.setLoading(false);},{once:true}),n.src=t.result);}async onFileUpload(e){var d;this.setLoading(true);let t=e.currentTarget,{files:n}=t;if(n==null||n.length===0){this.setLoading(false);return}let r=(d=this._onBeforeFileRead)==null?void 0:d.call(this,e);if(r instanceof Promise&&await r,!this.canUploadFile){t.value="",a$4.warn("Can't upload file, no capture mode enabled."),this.setLoading(false);return}let i=new Image,l=new FileReader;l.addEventListener("load",()=>{this.onFileReaderLoad(t,l,i);}),l.addEventListener("error",h=>{var p;(p=this._onFileReaderError)==null||p.call(this,h),this.setLoading(false);}),l.readAsDataURL(n[0]);}};a.componentName="SingleImageUploaderView",a.DEFAULT_DOM_ATTRIBUTE="data-scandit-default";var I=a;export{I as a};
@@ -0,0 +1,2 @@
1
+ import {b as b$2}from'./chunk-MKTACV3Q.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-SBC5K7IT.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((Y,ie)=>{(function(m,u){var I="1.0.40",U="",x="?",E="function",g="undefined",C="object",O="string",y="major",e="model",n="name",i="type",o="vendor",r="version",T="architecture",N="console",l="mobile",w="tablet",S="smarttv",_="wearable",q="embedded",X=500,W="Amazon",L="Apple",oe="ASUS",j="BlackBerry",a="Browser",t="Chrome",b="Edge",h="Firefox",k="Google",F="Huawei",P="LG",ne="Microsoft",be="Motorola",V="Opera",G="Samsung",ce="Sharp",$="Sony",re="Xiaomi",te="Zebra",ue="Facebook",we="Chromium OS",de="Mac OS",pe=" Browser",Te=function(d,p){var c={};for(var v in d)p[v]&&p[v].length%2===0?c[v]=p[v].concat(d[v]):c[v]=d[v];return c},K=function(d){for(var p={},c=0;c<d.length;c++)p[d[c].toUpperCase()]=d[c];return p},fe=function(d,p){return typeof d===O?D(p).indexOf(D(d))!==-1:false},D=function(d){return d.toLowerCase()},_e=function(d){return typeof d===O?d.replace(/[^\d\.]/g,U).split(".")[0]:u},ae=function(d,p){if(typeof d===O)return d=d.replace(/^\s\s*/,U),typeof p===g?d:d.substring(0,X)},H=function(d,p){for(var c=0,v,B,R,f,s,M;c<p.length&&!s;){var se=p[c],ve=p[c+1];for(v=B=0;v<se.length&&!s&&se[v];)if(s=se[v++].exec(d),s)for(R=0;R<ve.length;R++)M=s[++B],f=ve[R],typeof f===C&&f.length>0?f.length===2?typeof f[1]==E?this[f[0]]=f[1].call(this,M):this[f[0]]=f[1]:f.length===3?typeof f[1]===E&&!(f[1].exec&&f[1].test)?this[f[0]]=M?f[1].call(this,M,f[2]):u:this[f[0]]=M?M.replace(f[1],f[2]):u:f.length===4&&(this[f[0]]=M?f[3].call(this,M.replace(f[1],f[2])):u):this[f]=M||u;c+=2;}},Z=function(d,p){for(var c in p)if(typeof p[c]===C&&p[c].length>0){for(var v=0;v<p[c].length;v++)if(fe(p[c][v],d))return c===x?u:c}else if(fe(p[c],d))return c===x?u:c;return p.hasOwnProperty("*")?p["*"]:d},Ue={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},me={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ge={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[r,[n,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[r,[n,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[n,r],[/opios[\/ ]+([\w\.]+)/i],[r,[n,V+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[r,[n,V+" GX"]],[/\bopr\/([\w\.]+)/i],[r,[n,V]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[r,[n,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[r,[n,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[n,r],[/quark(?:pc)?\/([-\w\.]+)/i],[r,[n,"Quark"]],[/\bddg\/([\w\.]+)/i],[r,[n,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[r,[n,"UC"+a]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[r,[n,"WeChat"]],[/konqueror\/([\w\.]+)/i],[r,[n,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[r,[n,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[r,[n,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[r,[n,"Smart Lenovo "+a]],[/(avast|avg)\/([\w\.]+)/i],[[n,/(.+)/,"$1 Secure "+a],r],[/\bfocus\/([\w\.]+)/i],[r,[n,h+" Focus"]],[/\bopt\/([\w\.]+)/i],[r,[n,V+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[r,[n,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[r,[n,"Dolphin"]],[/coast\/([\w\.]+)/i],[r,[n,V+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[r,[n,"MIUI"+pe]],[/fxios\/([\w\.-]+)/i],[r,[n,h]],[/\bqihoobrowser\/?([\w\.]*)/i],[r,[n,"360"]],[/\b(qq)\/([\w\.]+)/i],[[n,/(.+)/,"$1Browser"],r],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[n,/(.+)/,"$1"+pe],r],[/samsungbrowser\/([\w\.]+)/i],[r,[n,G+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[r,[n,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[n,"Sogou Mobile"],r],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[n,r],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[n],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[r,n],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[n,ue],r],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[n,r],[/\bgsa\/([\w\.]+) .*safari\//i],[r,[n,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[r,[n,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[r,[n,t+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[n,t+" WebView"],r],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[r,[n,"Android "+a]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[n,r],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[r,[n,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[r,n],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[n,[r,Z,Ue]],[/(webkit|khtml)\/([\w\.]+)/i],[n,r],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[n,"Netscape"],r],[/(wolvic|librewolf)\/([\w\.]+)/i],[n,r],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[r,[n,h+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[n,[r,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[n,[r,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,D]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,U,D]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,D]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[e,[o,G],[i,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[e,[o,G],[i,l]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[e,[o,L],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[e,[o,L],[i,w]],[/(macintosh);/i],[e,[o,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[e,[o,ce],[i,l]],[/(?:honor)([-\w ]+)[;\)]/i],[e,[o,"Honor"],[i,l]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[e,[o,F],[i,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[e,[o,F],[i,l]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[e,/_/g," "],[o,re],[i,l]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[e,/_/g," "],[o,re],[i,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[e,[o,"OPPO"],[i,l]],[/\b(opd2\d{3}a?) bui/i],[e,[o,"OPPO"],[i,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[e,[o,"Vivo"],[i,l]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[e,[o,"Realme"],[i,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[e,[o,be],[i,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[e,[o,be],[i,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[e,[o,P],[i,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[e,[o,P],[i,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[e,[o,"Lenovo"],[i,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[e,/_/g," "],[o,"Nokia"],[i,l]],[/(pixel c)\b/i],[e,[o,k],[i,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[e,[o,k],[i,l]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[e,[o,$],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[e,"Xperia Tablet"],[o,$],[i,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[e,[o,"OnePlus"],[i,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[e,[o,W],[i,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[e,/(.+)/g,"Fire Phone $1"],[o,W],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[e,o,[i,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[e,[o,j],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[e,[o,oe],[i,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[e,[o,oe],[i,l]],[/(nexus 9)/i],[e,[o,"HTC"],[i,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[e,/_/g," "],[i,l]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[e,[o,"TCL"],[i,w]],[/(itel) ((\w+))/i],[[o,D],e,[i,Z,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[e,[o,"Acer"],[i,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[e,[o,"Meizu"],[i,l]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[e,[o,"Ulefone"],[i,l]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[e,[o,"Energizer"],[i,l]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[e,[o,"Cat"],[i,l]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[e,[o,"Smartfren"],[i,l]],[/droid.+; (a(?:015|06[35]|142p?))/i],[e,[o,"Nothing"],[i,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[o,e,[i,l]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,e,[i,w]],[/(surface duo)/i],[e,[o,ne],[i,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[e,[o,"Fairphone"],[i,l]],[/(u304aa)/i],[e,[o,"AT&T"],[i,l]],[/\bsie-(\w*)/i],[e,[o,"Siemens"],[i,l]],[/\b(rct\w+) b/i],[e,[o,"RCA"],[i,w]],[/\b(venue[\d ]{2,7}) b/i],[e,[o,"Dell"],[i,w]],[/\b(q(?:mv|ta)\w+) b/i],[e,[o,"Verizon"],[i,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[e,[o,"Barnes & Noble"],[i,w]],[/\b(tm\d{3}\w+) b/i],[e,[o,"NuVision"],[i,w]],[/\b(k88) b/i],[e,[o,"ZTE"],[i,w]],[/\b(nx\d{3}j) b/i],[e,[o,"ZTE"],[i,l]],[/\b(gen\d{3}) b.+49h/i],[e,[o,"Swiss"],[i,l]],[/\b(zur\d{3}) b/i],[e,[o,"Swiss"],[i,w]],[/\b((zeki)?tb.*\b) b/i],[e,[o,"Zeki"],[i,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],e,[i,w]],[/\b(ns-?\w{0,9}) b/i],[e,[o,"Insignia"],[i,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[e,[o,"NextBook"],[i,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],e,[i,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],e,[i,l]],[/\b(ph-1) /i],[e,[o,"Essential"],[i,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[e,[o,"Envizen"],[i,w]],[/\b(trio[-\w\. ]+) b/i],[e,[o,"MachSpeed"],[i,w]],[/\btu_(1491) b/i],[e,[o,"Rotor"],[i,w]],[/(shield[\w ]+) b/i],[e,[o,"Nvidia"],[i,w]],[/(sprint) (\w+)/i],[o,e,[i,l]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[o,ne],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[e,[o,te],[i,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[e,[o,te],[i,l]],[/smart-tv.+(samsung)/i],[o,[i,S]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[o,G],[i,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,P],[i,S]],[/(apple) ?tv/i],[o,[e,L+" TV"],[i,S]],[/crkey/i],[[e,t+"cast"],[o,k],[i,S]],[/droid.+aft(\w+)( bui|\))/i],[e,[o,W],[i,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[e,[o,ce],[i,S]],[/(bravia[\w ]+)( bui|\))/i],[e,[o,$],[i,S]],[/(mitv-\w{5}) bui/i],[e,[o,re],[i,S]],[/Hbbtv.*(technisat) (.*);/i],[o,e,[i,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,ae],[e,ae],[i,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,e,[i,N]],[/droid.+; (shield) bui/i],[e,[o,"Nvidia"],[i,N]],[/(playstation [345portablevi]+)/i],[e,[o,$],[i,N]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[e,[o,ne],[i,N]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[e,[o,G],[i,_]],[/((pebble))app/i],[o,e,[i,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[e,[o,L],[i,_]],[/droid.+; (glass) \d/i],[e,[o,k],[i,_]],[/droid.+; (wt63?0{2,3})\)/i],[e,[o,te],[i,_]],[/droid.+; (glass) \d/i],[e,[o,k],[i,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,e,[i,_]],[/; (quest( \d| pro)?)/i],[e,[o,ue],[i,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[i,q]],[/(aeobc)\b/i],[e,[o,W],[i,q]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[e,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[e,[i,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[e,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[r,[n,b+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[n,r],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[r,[n,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[n,r],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[r,n]],os:[[/microsoft (windows) (vista|xp)/i],[n,r],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[n,[r,Z,me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[r,Z,me],[n,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[r,/_/g,"."],[n,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[n,de],[r,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[r,n],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[n,r],[/\(bb(10);/i],[r,[n,j]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[r,[n,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[r,[n,h+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[r,[n,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[r,[n,"watchOS"]],[/crkey\/([\d\.]+)/i],[r,[n,t+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[n,we],r],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[n,r],[/(sunos) ?([\w\.\d]*)/i],[[n,"Solaris"],r],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[n,r]]},A=function(d,p){if(typeof d===C&&(p=d,d=u),!(this instanceof A))return new A(d,p).getResult();var c=typeof m!==g&&m.navigator?m.navigator:u,v=d||(c&&c.userAgent?c.userAgent:U),B=c&&c.userAgentData?c.userAgentData:u,R=p?Te(ge,p):ge,f=c&&c.userAgent==v;return this.getBrowser=function(){var s={};return s[n]=u,s[r]=u,H.call(s,v,R.browser),s[y]=_e(s[r]),f&&c&&c.brave&&typeof c.brave.isBrave==E&&(s[n]="Brave"),s},this.getCPU=function(){var s={};return s[T]=u,H.call(s,v,R.cpu),s},this.getDevice=function(){var s={};return s[o]=u,s[e]=u,s[i]=u,H.call(s,v,R.device),f&&!s[i]&&B&&B.mobile&&(s[i]=l),f&&s[e]=="Macintosh"&&c&&typeof c.standalone!==g&&c.maxTouchPoints&&c.maxTouchPoints>2&&(s[e]="iPad",s[i]=w),s},this.getEngine=function(){var s={};return s[n]=u,s[r]=u,H.call(s,v,R.engine),s},this.getOS=function(){var s={};return s[n]=u,s[r]=u,H.call(s,v,R.os),f&&!s[n]&&B&&B.platform&&B.platform!="Unknown"&&(s[n]=B.platform.replace(/chrome os/i,we).replace(/macos/i,de)),s},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(s){return v=typeof s===O&&s.length>X?ae(s,X):s,this},this.setUA(v),this};A.VERSION=I,A.BROWSER=K([n,r,y]),A.CPU=K([T]),A.DEVICE=K([e,o,i,N,l,S,w,_,q]),A.ENGINE=A.OS=K([n,r]),typeof Y!==g?(typeof ie!==g&&ie.exports&&(Y=ie.exports=A),Y.UAParser=A):typeof define===E&&define.amd?define(function(){return A}):typeof m!==g&&(m.UAParser=A);var z=typeof m!==g&&(m.jQuery||m.Zepto);if(z&&!z.ua){var J=new A;z.ua=J.getResult(),z.ua.get=function(){return J.getUA()},z.ua.set=function(d){J.setUA(d);var p=J.getResult();for(var c in p)z.ua[c]=p[c];};}})(typeof window=="object"?window:Y);});function ee(m){for(var u=1;u<arguments.length;u++){var I=arguments[u];for(var U in I)m[U]=I[U];}return m}var Ie={read:function(m){return m[0]==='"'&&(m=m.slice(1,-1)),m.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(m){return encodeURIComponent(m).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function le(m,u){function I(x,E,g){if(!(typeof document>"u")){g=ee({},u,g),typeof g.expires=="number"&&(g.expires=new Date(Date.now()+g.expires*864e5)),g.expires&&(g.expires=g.expires.toUTCString()),x=encodeURIComponent(x).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var C="";for(var O in g)g[O]&&(C+="; "+O,g[O]!==true&&(C+="="+g[O].split(";")[0]));return document.cookie=x+"="+m.write(E,x)+C}}function U(x){if(!(typeof document>"u"||arguments.length&&!x)){for(var E=document.cookie?document.cookie.split("; "):[],g={},C=0;C<E.length;C++){var O=E[C].split("="),y=O.slice(1).join("=");try{var e=decodeURIComponent(O[0]);if(g[e]=m.read(y,e),x===e)break}catch{}}return x?g[x]:g}}return Object.create({set:I,get:U,remove:function(x,E){I(x,"",ee({},E,{expires:-1}));},withAttributes:function(x){return le(this.converter,ee({},this.attributes,x))},withConverter:function(x){return le(ee({},this.converter,x),this.attributes)}},{attributes:{value:Object.freeze(u)},converter:{value:Object.freeze(m)}})}var Oe=le(Ie,{path:"/"});var Ce=b(Ae(),1);var Be=(x=>(x.Standalone="standalone",x.Fullscreen="fullscreen",x.MinimalUI="minimal-ui",x.Browser="browser",x))(Be||{}),Ee;(j=>{let m;function u(){return m==null&&(m=new Ce.default(navigator.userAgent)),m}j.getUserAgentInfo=u;function I(){var b;if("orientation"in window)return false;let a="(any-pointer: coarse)",t=(b=window.matchMedia)==null?void 0:b.call(window,a);return navigator.maxTouchPoints===0||(t==null?void 0:t.media)===a&&!(t!=null&&t.matches)}j.isDesktopDevice=I;function U(){return u().getDevice().model==="iPhone"}j.isIPhone=U;function x(){let a=u().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}j.isIOSDeviceWithExtendedCameraAccess=x;function E(){return "document"in window?window.document.createElement("canvas"):null}j.getCanvas=E;function g(a){return a.name==="iOS"&&a.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(a.version)}async function C(){return c()}j.hasSIMDSupport=C;async function O(){return d()}j.hasThreadsSupport=O;function y(a,t,b){let h=a[t[0]];return h==null?false:t.length===1?typeof h===b:(typeof h=="function"||typeof h=="object")&&y(h,t.slice(1),b)}function e$1(){var F;let a=true,t=null,b=null,h=null,k=null;try{if(t=j.getCanvas(),b=j.getCanvas(),h=t==null?void 0:t.getContext("webgl"),k=b==null?void 0:b.getContext("experimental-webgl"),!y(window,["WebGLRenderingContext"],"function")||h==null&&k==null)throw new Error("WebGLRenderingContext is not supported")}catch{a=false;}finally{for(let P of [h,k])typeof(P==null?void 0:P.getExtension)=="function"&&((F=P.getExtension("WEBGL_lose_context"))==null||F.loseContext());h=null,k=null,t=null,b=null;}return a}function n(){let a=true,t=true,b=new Set;location.protocol.startsWith("http")||b.add("httpProtocol"),y(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&b.add("secureContext"),!y(navigator,["mediaDevices","getUserMedia"],"function")&&!y(navigator,["enumerateDevices"],"function")&&!y(window,["MediaStreamTrack","getSources"],"function")&&(b.add("mediaDevices"),a=false),y(window,["Worker"],"function")||(b.add("webWorkers"),a=false,t=false),y(window,["WebAssembly"],"object")||(b.add("webAssembly"),a=false,t=false),y(window,["Blob"],"function")||(b.add("blob"),a=false,t=false),y(window,["URL","createObjectURL"],"function")||(b.add("urlObject"),a=false,t=false),y(window,["OffscreenCanvas"],"function")||b.add("offscreenCanvas"),e$1()||b.add("webGL");let h=u().getOS();return g(h)&&(b.add("webAssemblyErrorFree"),a=false,t=false),b$1()||b.add("sharedArrayBuffer"),a$1()||b.add("crossOriginIsolated"),L()||b.add("animationApi"),{fullSupport:a,scannerSupport:t,missingFeatures:[...b]}}j.checkBrowserCompatibility=n;async function i(){return e()}j.checkMultithreadingSupport=i;function o(){let a="scandit-device-id",t=b$2.getItem(a);if(t!=null&&t!=="")return t;if(t=Oe.get(a),t!=null&&t!=="")return b$2.setItem(a,t),t;let b=new Uint8Array(20);return crypto.getRandomValues(b),t=[...b].map(h=>{let k=h.toString(16);return k.length===1?`0${k}`:k}).join(""),b$2.setItem(a,t),t}j.getDeviceId=o;function r(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}j.isValidHTMLElement=r;function T(){var h,k;let a=u().getOS();if(a.name!=="iOS")return true;let[t,b]=(k=(h=a.version)==null?void 0:h.split(".").map(Number))!=null?k:[];return t>14||t===14&&b>=6}j.isSupportedIOSVersion=T;function N(){var a,t;return (t=(a=u().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?t:false}j.isSafari=N;function l(){var t,b;return /iphone|ipod|ipad/.test((b=(t=u().getDevice().model)==null?void 0:t.toLowerCase())!=null?b:"")&&!N()}j.isIosWebView=l;async function w(){var t;return ((t=u().getOS().name)==null?void 0:t.toLowerCase())!=="android"?false:u().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([b])=>b.toLowerCase()==="x-requested-with")}j.isAndroidWebView=w;function S(){return u().getOS().name==="Windows"}j.isWindows=S;function _(){return u().getBrowser().name==="Firefox"}j.isFirefox=_;function q(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}j.getSupportedVibrationMethod=q;function X(){return q()!=null&&!I()&&!S()&&!_()}j.isVibrationAvailable=X;function W(){return u().getOS().name==="iOS"}j.isIOS=W;function L(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}j.isAnimationApiSupported=L;function oe(a){var h;let t=`(display-mode: ${a})`,b=(h=globalThis.matchMedia)==null?void 0:h.call(globalThis,t);return (b==null?void 0:b.matches)===true?true:a==="standalone"&&typeof navigator=="object"&&"standalone"in navigator&&typeof navigator.standalone=="boolean"?navigator.standalone===true:false}j.isPwaDisplayMode=oe;})(Ee||(Ee={}));
2
+ export{Be as a,Ee as b};
@@ -0,0 +1 @@
1
+ import {a as a$3}from'./chunk-4JH6EEAE.js';import {b,a as a$2}from'./chunk-KYNYQBNF.js';import {a as a$1}from'./chunk-QOCHMKNY.js';import {a as a$4}from'./chunk-KAFNKP6O.js';var z={bottomLeft:"bottomRight",bottomRight:"bottomLeft",topLeft:"topRight",topRight:"topLeft",centerLeft:"centerRight",centerRight:"centerLeft",center:"center",topCenter:"topCenter",bottomCenter:"bottomCenter"},a=class a{constructor(){this.listener=null;this._mounted=false;this._mirrored=false;this._cachedSize=new a$1(0,0);this.resizeObserver=null;this.mapViewAnchorPositionsForFramePoint=t=>t;}get size(){return this._cachedSize}setMirrored(t){this._mounted&&(this._mirrored=t);}mount(t){var n;if(this._mounted)return;if(!document.head.querySelector(`[data-component=${a.componentName}]`)){let i=document.createElement("style");i.dataset.component=a.componentName,i.append(document.createTextNode(b)),document.head.append(i);}let r=document.createElement("div");r.classList.add(a$2.CUSTOM_VIEW_CONTAINER),(n=t.parentNode)==null||n.replaceChild(r,t),this._htmlRoot=r,this.gestureRecognizer=new a$3(this._htmlRoot),this.gestureRecognizer.addListener({onTap:(i,o)=>{var s,e;let m=(s=o.target.dataset.identifier)!=null?s:"";m!==""&&((e=this.listener)==null||e.didTapView(Number.parseInt(m,10)));}}),this.resizeObserver=new ResizeObserver(([i])=>{this._cachedSize=new a$1(i.contentRect.width,i.contentRect.height);}),this.resizeObserver.observe(this._htmlRoot),this._cachedSize=new a$1(this._htmlRoot.clientWidth,this._htmlRoot.clientHeight),this._mounted=true;}unmount(){var t,r,n,i;this._mounted&&(this.removeChildren(),(t=this.gestureRecognizer)==null||t.removeAllListeners(),(r=this.resizeObserver)==null||r.disconnect(),(n=this._htmlRoot)==null||n.remove(),this._htmlRoot=null,this.gestureRecognizer=null,(i=document.head.querySelector(`[data-component=${a.componentName}]`))==null||i.remove(),this.listener=null,this._mounted=false);}render(t){var n,i,o,m,s;if(t.elements.length===0){this.removeChildren();return}for(let e of t.removedIds)(i=(n=this._htmlRoot)==null?void 0:n.querySelector(`#${a.elementSelectorPrefix}${e}`))==null||i.remove();let r=document.createDocumentFragment();for(let e of t.elements){let c=`${a.elementSelectorPrefix}${e.identifier}`,p=(o=this._htmlRoot)==null?void 0:o.querySelector(`#${c}`),l=p;if(p==null&&(l=new Image(e.view.options.size.width,e.view.options.size.height),l.id=c,l.dataset.identifier=String(e.identifier),r.append(l)),l){l.src=e.view.data;let h=this.mapViewAnchorPositionsForFramePoint(e.anchorPositions)[this._mirrored?z[e.anchor]:e.anchor];this._mirrored&&(h=a$4.mirrorX(h,this.size));let{x:u,y:P}=this.adjustCoordinatesWithOffset(h,{elementSize:e.view.options.size,offset:e.offset}),v=(m=e.view.options.scale)!=null?m:1;l.style.scale=`${v}`,l.style.transform=`translate3d(${u/v}px, ${P/v}px, 0px)`;}}(s=this._htmlRoot)==null||s.append(r);}renderDomView(t){var n,i;if(t.elements.length===0){this.removeChildren();return}let r=document.createDocumentFragment();for(let o of t.elements){let m=`${a.elementSelectorPrefix}${o.identifier}`,s=(n=this._htmlRoot)==null?void 0:n.querySelector(`#${m}`),{view:e}=o;if(e!=null){e.id=m,s&&s!==e&&s.replaceWith(e);let c=this.mapViewAnchorPositionsForFramePoint(o.anchorPositions)[this._mirrored?z[o.anchor]:o.anchor];this._mirrored&&(c=a$4.mirrorX(c,this.size));let{width:p,height:l}=e.getBoundingClientRect(),{x:h,y:u}=this.adjustCoordinatesWithOffset(c,{elementSize:{width:p,height:l},offset:o.offset});e.style.position="absolute",e.style.transform=`translate3d(calc(${h}px - 50%), calc(${u}px - 50%), 0px)`,r.append(e);}}(i=this._htmlRoot)==null||i.append(r);}removeChildren(){var t;for(;(t=this._htmlRoot)!=null&&t.firstChild;)this._htmlRoot.firstChild.remove();}adjustCoordinatesWithOffset(t,r){let n=t,{elementSize:i,offset:o}=r,m=t.x-i.width/2,s=t.y-i.height/2;return o.x.unit==="pixel"&&(n=new a$4(m+o.x.value,s+o.y.value)),o.x.unit==="fraction"&&(n=new a$4(m+i.width*o.x.value,s+i.height*o.y.value)),n}};a.componentName="CustomLocationsView",a.elementSelectorPrefix="scandit-view-";var S=a;export{S as a};
@@ -0,0 +1 @@
1
+ var t=(o=>(o.None="none",o.Horizontal="horizontal",o.LeftToRight="leftToRight",o.RightToLeft="rightToLeft",o.Vertical="vertical",o.TopToBottom="topToBottom",o.BottomToTop="bottomToTop",o))(t||{});export{t as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-QCZSSQAQ.js';import {a as a$1}from'./chunk-XR65N6EG.js';var s=class i{constructor(){this.type="imageFrameSource";this._listeners=new Set;this._currentState="off";this._desiredState="off";this._context=null;this._imageData=null;}get desiredState(){return this._desiredState}get context(){return this._context}set context(e){this._context=e;}get currentState(){return this._currentState}static async fromFile(e){let t=URL.createObjectURL(e),r=new Image;r.src=t;try{await r.decode();}catch{throw new a({name:"InvalidImageError",message:"Submitted file is not an image"})}finally{URL.revokeObjectURL(t);}return i.fromImage(r)}static async fromImage(e){let t=new i;try{await e.decode();}catch{throw new a({name:"InvalidImageError",message:"Submitted image cannot be decoded"})}let r=t.getCanvasAndContext(e.width,e.height);return r.drawImage(e,0,0),t._imageData=r.getImageData(0,0,e.width,e.height,{colorSpace:"srgb"}),t}static async fromImageData(e){let t=new i,r=t.getCanvasAndContext(e.width,e.height);try{r.putImageData(e,0,0);}catch(n){throw new a({name:"InvalidImageError",message:`Submitted image data does not seem valid (details: ${n})`})}return t._imageData=e,t}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on")return}else if(this.currentState==="off")return;if(this._desiredState=e,e==="off"){await this.setCurrentState("off");return}return this._imageData==null?(a$1.log(a$1.Level.Warn,"No image data to process."),this.processSubmittedImage({data:new Uint8ClampedArray(0),width:0,height:0,colorSpace:"srgb"})):this.processSubmittedImage(this._imageData)}addListener(e){e!=null&&this._listeners.add(e);}removeListener(e){e!=null&&this._listeners.delete(e);}toJSONObject(){return {type:this.type}}getCurrentState(){return this._currentState}getCanvasAndContext(e,t){let r=document.createElement("canvas");r.width=e,r.height=t;let n=r.getContext("2d");if(n==null)throw new a({name:"ImageFrameSourceError",message:"Could not generate a canvas context to get image data"});return n}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this._listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processSubmittedImage(e){var t;await this.setCurrentState("on"),await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),await this.setCurrentState("off");}};export{s as a};
1
+ import {a as a$1}from'./chunk-XR65N6EG.js';import {a}from'./chunk-QCZSSQAQ.js';var s=class i{constructor(){this.type="imageFrameSource";this._listeners=new Set;this._currentState="off";this._desiredState="off";this._context=null;this._imageData=null;}get desiredState(){return this._desiredState}get context(){return this._context}set context(e){this._context=e;}get currentState(){return this._currentState}static async fromFile(e){let t=URL.createObjectURL(e),r=new Image;r.src=t;try{await r.decode();}catch{throw new a({name:"InvalidImageError",message:"Submitted file is not an image"})}finally{URL.revokeObjectURL(t);}return i.fromImage(r)}static async fromImage(e){let t=new i;try{await e.decode();}catch{throw new a({name:"InvalidImageError",message:"Submitted image cannot be decoded"})}let r=t.getCanvasAndContext(e.width,e.height);return r.drawImage(e,0,0),t._imageData=r.getImageData(0,0,e.width,e.height,{colorSpace:"srgb"}),t}static async fromImageData(e){let t=new i,r=t.getCanvasAndContext(e.width,e.height);try{r.putImageData(e,0,0);}catch(n){throw new a({name:"InvalidImageError",message:`Submitted image data does not seem valid (details: ${n})`})}return t._imageData=e,t}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on")return}else if(this.currentState==="off")return;if(this._desiredState=e,e==="off"){await this.setCurrentState("off");return}return this._imageData==null?(a$1.log(a$1.Level.Warn,"No image data to process."),this.processSubmittedImage({data:new Uint8ClampedArray(0),width:0,height:0,colorSpace:"srgb"})):this.processSubmittedImage(this._imageData)}addListener(e){e!=null&&this._listeners.add(e);}removeListener(e){e!=null&&this._listeners.delete(e);}toJSONObject(){return {type:this.type}}getCurrentState(){return this._currentState}getCanvasAndContext(e,t){let r=document.createElement("canvas");r.width=e,r.height=t;let n=r.getContext("2d");if(n==null)throw new a({name:"ImageFrameSourceError",message:"Could not generate a canvas context to get image data"});return n}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this._listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processSubmittedImage(e){var t;await this.setCurrentState("on"),await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),await this.setCurrentState("off");}};export{s as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-MTNFYUSF.js';var p=[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108],s=[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57],c=[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94],t=String.fromCodePoint,n=t.apply(String,p);t.apply(String,s);t.apply(String,c);function l(){return globalThis.location.hostname==="localhost"||globalThis.location.hostname==="127.0.0.1"||globalThis.location.hostname===""}function r(o){let e=o;if(e!=null&&typeof e.getAppInfo=="function"&&typeof e.getKey=="function")return e}function m(){let{name:o=""}=a.getUserAgentInfo().getBrowser();return o==="Electron"&&typeof r(window[n])=="object"&&l()}async function y(){var o;return (o=r(window[n]))==null?void 0:o.getAppInfo()}async function A(o){var e;return (e=r(window[n]))==null?void 0:e.getKey(o)}export{m as a,y as b,A as c};
1
+ import {b}from'./chunk-VBUDN72N.js';var p=[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108],s=[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57],c=[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94],t=String.fromCodePoint,n=t.apply(String,p);t.apply(String,s);t.apply(String,c);function l(){return globalThis.location.hostname==="localhost"||globalThis.location.hostname==="127.0.0.1"||globalThis.location.hostname===""}function r(o){let e=o;if(e!=null&&typeof e.getAppInfo=="function"&&typeof e.getKey=="function")return e}function m(){let{name:o=""}=b.getUserAgentInfo().getBrowser();return o==="Electron"&&typeof r(window[n])=="object"&&l()}async function y(){var o;return (o=r(window[n]))==null?void 0:o.getAppInfo()}async function A(o){var e;return (e=r(window[n]))==null?void 0:e.getKey(o)}export{m as a,y as b,A as c};
@@ -0,0 +1 @@
1
+ var e;(o=>{function i(){let r="8.1.0";return r}o.sdkVersion=i;})(e||(e={}));export{e as a};
@@ -1 +1 @@
1
- import {a as a$3}from'./chunk-T4QDTXZN.js';import {a as a$2}from'./chunk-IU22MD7N.js';import {e}from'./chunk-TB4UKDDI.js';import {a as a$7,b}from'./chunk-EQ6V4W5K.js';import {a as a$4}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$6}from'./chunk-3A4KLILV.js';import {a as a$5}from'./chunk-LSZZVJ6B.js';var E=(e=>(e.DidShow="didshow",e.DidHide="didhide",e.WillShow="willshow",e))(E||{}),o="--text-size",s="--text-color",n="--text-alignment",r="--text-weight",a="--line-height",l="--background-color",c="--corner-radius",h="--max-lines",w="ease-in-out",i=class i extends a$1{constructor(){super();this.toast=null;this._hintStyle=null;this._customIcon=null;this.currentAnimation=null;this.animationDuration=250;this._currentAnimationDirection=null;let t=this.attachShadow({mode:"open"});this._exclamationIcon=a$2.create(),this._checkIcon=a$3.create(),this._exclamationIcon.size=24,this._checkIcon.size=24,t.innerHTML=a$4`<div class="toast"><slot name="first-child"></slot><div class="left"><slot name="icon"></slot></div><p class="middle"><slot></slot></p></div>`,t.append(i.createStyleElement().cloneNode(true)),this.toast=t.querySelector(".toast");}static createStyleElement(){return a$5`:host{display:inline-block;font-family:SF Pro Display,sans-serif}:host([hidden]){display:none}.toast{${o}:1rem;${s}:#000;${r}:400;${n}:${"center"};${a}:1.5rem;${l}:#fff;${c}:.25rem;${h}:2;align-items:flex-start;background-color:var(${l});border-radius:var(${c});color:var(${s});display:flex;flex-direction:row;font-size:var(${o});font-weight:var(${r});gap:.625rem;justify-content:var(${n});line-height:var(${a});padding:.75rem 1rem}:host([direction=column]) .toast{align-items:center;flex-direction:column}:host([direction=row]) .toast{align-items:center;flex-direction:row}.toast .left{align-self:flex-start;display:flex}.toast.icon-${"none"} .left{display:none}.toast p.middle{display:inline-block;display:-webkit-box;margin:0;padding:0;text-align:var(${n});-webkit-line-clamp:var(${h});-webkit-box-orient:vertical;align-self:center;overflow:hidden;text-shadow:0 1px 2px #${e.withAlpha(.3).toJSON()}}p.middle{text-align:var(${n})}`}get hintStyle(){return this._hintStyle}set hintStyle(t){this._hintStyle=t,this.render();}get customIcon(){return this._customIcon}set customIcon(t){this._customIcon=t,this.render();}get showAnimation(){return new Animation(new KeyframeEffect(this,[{opacity:0},{opacity:1}],{duration:this.animationDuration,fill:"both",easing:w}))}get hideAnimation(){return new Animation(new KeyframeEffect(this,[{opacity:1},{opacity:0}],{duration:this.animationDuration,fill:"both",easing:w}))}static create(){return i.register(),document.createElement(i.tag)}static register(){a$6({[i.tag]:i});}async show(){return this.toggle(true)}async hide(){return this.toggle(false)}connectedCallback(){this.render();}async toggle(t){var m,d;let e=t?"showing":"hiding";this.currentAnimation&&this._currentAnimationDirection===e&&this.currentAnimation.playState==="running"||(this.currentAnimation&&a$7(this.currentAnimation),this.animationDuration=(d=(m=this.hintStyle)==null?void 0:m.isAnimatedToView)==null||d?250:0,this._currentAnimationDirection=e,this.currentAnimation=t?this.showAnimation:this.hideAnimation,t&&this.dispatchEvent(new CustomEvent("willshow",{bubbles:true})),this.currentAnimation.play(),await b(this.currentAnimation),this.dispatchEvent(new CustomEvent(t?"didshow":"didhide",{bubbles:true,detail:{target:this}})),this.currentAnimation=null,this._currentAnimationDirection=null);}render(){var t;if(!(!this.toast||!this.hintStyle)){this.toast.className="toast",this.toast.style.setProperty(o,`${this.hintStyle.textSize}px`),this.toast.style.setProperty(s,`#${this.hintStyle.textColor}`),this.toast.style.setProperty(r,this.hintStyle.textWeight.toString()),this.toast.style.setProperty(n,this.hintStyle.textAlignment),this.toast.style.setProperty(a,`${this.hintStyle.lineHeight/14}`),this.toast.style.setProperty(l,`#${this.hintStyle.backgroundColor}`),this.toast.style.setProperty(c,`${this.hintStyle.cornerRadius/10}rem`),this.toast.style.setProperty(h,this.hintStyle.maxLines.toString());for(let e of this.querySelectorAll("[slot=icon]"))e.remove();this._customIcon?(this._customIcon.setAttribute("slot","icon"),this.append(this._customIcon),this.toast.classList.remove("icon-none")):(this.toast.classList.toggle("icon-none",this.hintStyle.hintIcon==="none"),this.hintStyle.hintIcon==="check"?(this._checkIcon.setAttribute("slot","icon"),this.append(this._checkIcon)):this.hintStyle.hintIcon==="exclamationMark"&&(this._exclamationIcon.setAttribute("slot","icon"),this.append(this._exclamationIcon)),this.hintStyle.iconColor&&((t=this.querySelector("[slot=icon]"))==null||t.setAttribute("fill",`#${this.hintStyle.iconColor}`)));}}};i.tag="scandit-toast-hint";var A=i;export{E as a,A as b};
1
+ import {a as a$3}from'./chunk-4GKVQAVF.js';import {a as a$2}from'./chunk-F2IJCZAS.js';import {e}from'./chunk-SOCEWYYO.js';import {a as a$7,b}from'./chunk-EQ6V4W5K.js';import {a as a$6}from'./chunk-3A4KLILV.js';import {a as a$4}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$5}from'./chunk-LSZZVJ6B.js';var E=(e=>(e.DidShow="didshow",e.DidHide="didhide",e.WillShow="willshow",e))(E||{}),o="--text-size",s="--text-color",n="--text-alignment",r="--text-weight",a="--line-height",l="--background-color",c="--corner-radius",h="--max-lines",w="ease-in-out",i=class i extends a$1{constructor(){super();this.toast=null;this._hintStyle=null;this._customIcon=null;this.currentAnimation=null;this.animationDuration=250;this._currentAnimationDirection=null;let t=this.attachShadow({mode:"open"});this._exclamationIcon=a$2.create(),this._checkIcon=a$3.create(),this._exclamationIcon.size=24,this._checkIcon.size=24,t.innerHTML=a$4`<div class="toast"><slot name="first-child"></slot><div class="left"><slot name="icon"></slot></div><p class="middle"><slot></slot></p></div>`,t.append(i.createStyleElement().cloneNode(true)),this.toast=t.querySelector(".toast");}static createStyleElement(){return a$5`:host{display:inline-block;font-family:SF Pro Display,sans-serif}:host([hidden]){display:none}.toast{${o}:1rem;${s}:#000;${r}:400;${n}:${"center"};${a}:1.5rem;${l}:#fff;${c}:.25rem;${h}:2;align-items:flex-start;background-color:var(${l});border-radius:var(${c});color:var(${s});display:flex;flex-direction:row;font-size:var(${o});font-weight:var(${r});gap:.625rem;justify-content:var(${n});line-height:var(${a});padding:.75rem 1rem}:host([direction=column]) .toast{align-items:center;flex-direction:column}:host([direction=row]) .toast{align-items:center;flex-direction:row}.toast .left{align-self:flex-start;display:flex}.toast.icon-${"none"} .left{display:none}.toast p.middle{display:inline-block;display:-webkit-box;margin:0;padding:0;text-align:var(${n});-webkit-line-clamp:var(${h});-webkit-box-orient:vertical;align-self:center;overflow:hidden;text-shadow:0 1px 2px #${e.withAlpha(.3).toJSON()}}p.middle{text-align:var(${n})}`}get hintStyle(){return this._hintStyle}set hintStyle(t){this._hintStyle=t,this.render();}get customIcon(){return this._customIcon}set customIcon(t){this._customIcon=t,this.render();}get showAnimation(){return new Animation(new KeyframeEffect(this,[{opacity:0},{opacity:1}],{duration:this.animationDuration,fill:"both",easing:w}))}get hideAnimation(){return new Animation(new KeyframeEffect(this,[{opacity:1},{opacity:0}],{duration:this.animationDuration,fill:"both",easing:w}))}static create(){return i.register(),document.createElement(i.tag)}static register(){a$6({[i.tag]:i});}async show(){return this.toggle(true)}async hide(){return this.toggle(false)}connectedCallback(){this.render();}async toggle(t){var m,d;let e=t?"showing":"hiding";this.currentAnimation&&this._currentAnimationDirection===e&&this.currentAnimation.playState==="running"||(this.currentAnimation&&a$7(this.currentAnimation),this.animationDuration=(d=(m=this.hintStyle)==null?void 0:m.isAnimatedToView)==null||d?250:0,this._currentAnimationDirection=e,this.currentAnimation=t?this.showAnimation:this.hideAnimation,t&&this.dispatchEvent(new CustomEvent("willshow",{bubbles:true})),this.currentAnimation.play(),await b(this.currentAnimation),this.dispatchEvent(new CustomEvent(t?"didshow":"didhide",{bubbles:true,detail:{target:this}})),this.currentAnimation=null,this._currentAnimationDirection=null);}render(){var t;if(!(!this.toast||!this.hintStyle)){this.toast.className="toast",this.toast.style.setProperty(o,`${this.hintStyle.textSize}px`),this.toast.style.setProperty(s,`#${this.hintStyle.textColor}`),this.toast.style.setProperty(r,this.hintStyle.textWeight.toString()),this.toast.style.setProperty(n,this.hintStyle.textAlignment),this.toast.style.setProperty(a,`${this.hintStyle.lineHeight/14}`),this.toast.style.setProperty(l,`#${this.hintStyle.backgroundColor}`),this.toast.style.setProperty(c,`${this.hintStyle.cornerRadius/10}rem`),this.toast.style.setProperty(h,this.hintStyle.maxLines.toString());for(let e of this.querySelectorAll("[slot=icon]"))e.remove();this._customIcon?(this._customIcon.setAttribute("slot","icon"),this.append(this._customIcon),this.toast.classList.remove("icon-none")):(this.toast.classList.toggle("icon-none",this.hintStyle.hintIcon==="none"),this.hintStyle.hintIcon==="check"?(this._checkIcon.setAttribute("slot","icon"),this.append(this._checkIcon)):this.hintStyle.hintIcon==="exclamationMark"&&(this._exclamationIcon.setAttribute("slot","icon"),this.append(this._exclamationIcon)),this.hintStyle.iconColor&&((t=this.querySelector("[slot=icon]"))==null||t.setAttribute("fill",`#${this.hintStyle.iconColor}`)));}}};i.tag="scandit-toast-hint";var A=i;export{E as a,A as b};
@@ -0,0 +1 @@
1
+ var e=(t=>(t.TopLeft="topLeft",t.TopCenter="topCenter",t.TopRight="topRight",t.CenterLeft="centerLeft",t.Center="center",t.CenterRight="centerRight",t.BottomLeft="bottomLeft",t.BottomCenter="bottomCenter",t.BottomRight="bottomRight",t))(e||{});export{e as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-SGL5J2CI.js';var e={fillColor:a.fromJSON("#00000000"),strokeColor:a.fromJSON("#00000000"),strokeWidth:0},i=class l{constructor(o=e.fillColor,t=e.strokeColor,s=e.strokeWidth){this.fill={color:o},this.stroke={color:t,width:s};}static get transparent(){let o=a.fromRGBA(255,255,255,0);return new l(o,o,0)}get fillColor(){return this.fill.color}get strokeColor(){return this.stroke.color}get strokeWidth(){return this.stroke.width}clone(){return new l(this.fillColor,this.strokeColor,this.strokeWidth)}static areEquals(o,t){return o==null||t==null?false:a.areEquals(o.fill.color,t.fill.color)&&a.areEquals(o.stroke.color,t.stroke.color)&&o.stroke.width===t.stroke.width}toJSONObject(){return {fill:{color:this.fillColor.toJSON()},stroke:{width:this.strokeWidth,color:this.strokeColor.toJSON()}}}static fromJSONObject(o){return new l(a.fromJSON(o.fill.color),a.fromJSON(o.stroke.color),o.stroke.width)}};export{i as a};
@@ -1 +1 @@
1
- import {a as a$3}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let a=this.attachShadow({mode:"open"});a.innerHTML=this.render(),a.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var e=t;e.register();export{e as a};
1
+ import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$3}from'./chunk-UWBNF47P.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let a=this.attachShadow({mode:"open"});a.innerHTML=this.render(),a.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var e=t;e.register();export{e as a};
@@ -0,0 +1,14 @@
1
+ /// <reference types="emscripten" />
2
+ declare enum Anchor {
3
+ TopLeft = "topLeft",
4
+ TopCenter = "topCenter",
5
+ TopRight = "topRight",
6
+ CenterLeft = "centerLeft",
7
+ Center = "center",
8
+ CenterRight = "centerRight",
9
+ BottomLeft = "bottomLeft",
10
+ BottomCenter = "bottomCenter",
11
+ BottomRight = "bottomRight"
12
+ }
13
+
14
+ export { Anchor };
@@ -0,0 +1 @@
1
+ export{a as Anchor}from'../chunks/chunk-Y7ZNLVR2.js';
@@ -0,0 +1,28 @@
1
+ /// <reference types="emscripten" />
2
+ import { StringSerializable } from '../private/Serializable.js';
3
+
4
+ type ColorJSON = string;
5
+ declare class Color implements StringSerializable {
6
+ private readonly hexadecimalString;
7
+ private constructor();
8
+ get redComponent(): string;
9
+ get greenComponent(): string;
10
+ get blueComponent(): string;
11
+ get alphaComponent(): string;
12
+ get red(): number;
13
+ get green(): number;
14
+ get blue(): number;
15
+ get alpha(): number;
16
+ static fromHex(hex: string): Color;
17
+ static fromRGBA(red: number, green: number, blue: number, alpha?: number): Color;
18
+ private static areEquals;
19
+ private static hexToNumber;
20
+ private static fromJSON;
21
+ private static numberToHex;
22
+ private static normalizeHex;
23
+ private static normalizeAlpha;
24
+ withAlpha(alpha: number): Color;
25
+ toJSON(): string;
26
+ }
27
+
28
+ export { Color, type ColorJSON };
@@ -0,0 +1 @@
1
+ export{a as Color}from'../chunks/chunk-SGL5J2CI.js';
@@ -0,0 +1,12 @@
1
+ /// <reference types="emscripten" />
2
+ declare enum Direction {
3
+ None = "none",
4
+ Horizontal = "horizontal",
5
+ LeftToRight = "leftToRight",
6
+ RightToLeft = "rightToLeft",
7
+ Vertical = "vertical",
8
+ TopToBottom = "topToBottom",
9
+ BottomToTop = "bottomToTop"
10
+ }
11
+
12
+ export { Direction };
@@ -0,0 +1 @@
1
+ export{a as Direction}from'../chunks/chunk-WARGMW7Z.js';
@@ -0,0 +1,6 @@
1
+ /// <reference types="emscripten" />
2
+ interface JSONType {
3
+ [key: string]: JSONType | JSONType[] | boolean | number | string | null;
4
+ }
5
+
6
+ export type { JSONType };
File without changes
@@ -0,0 +1,39 @@
1
+ /// <reference types="emscripten" />
2
+ import { Serializable } from '../private/Serializable.js';
3
+ import { NumberWithUnit } from './NumberWithUnit.js';
4
+ import './MeasureUnit.js';
5
+
6
+ interface MarginsWithUnitJSON {
7
+ left: {
8
+ value: number;
9
+ unit: string;
10
+ };
11
+ right: {
12
+ value: number;
13
+ unit: string;
14
+ };
15
+ top: {
16
+ value: number;
17
+ unit: string;
18
+ };
19
+ bottom: {
20
+ value: number;
21
+ unit: string;
22
+ };
23
+ }
24
+ declare class MarginsWithUnit implements Serializable<MarginsWithUnitJSON> {
25
+ private readonly _left;
26
+ private readonly _right;
27
+ private readonly _top;
28
+ private readonly _bottom;
29
+ constructor(left: NumberWithUnit, top: NumberWithUnit, right: NumberWithUnit, bottom: NumberWithUnit);
30
+ private static get zero();
31
+ get left(): NumberWithUnit;
32
+ get right(): NumberWithUnit;
33
+ get top(): NumberWithUnit;
34
+ get bottom(): NumberWithUnit;
35
+ private static fromJSON;
36
+ toJSONObject(): MarginsWithUnitJSON;
37
+ }
38
+
39
+ export { MarginsWithUnit, type MarginsWithUnitJSON };
@@ -0,0 +1 @@
1
+ export{a as MarginsWithUnit}from'../chunks/chunk-MA6UDVDJ.js';
@@ -0,0 +1,7 @@
1
+ /// <reference types="emscripten" />
2
+ declare enum MeasureUnit {
3
+ Pixel = "pixel",
4
+ Fraction = "fraction"
5
+ }
6
+
7
+ export { MeasureUnit };
@@ -0,0 +1 @@
1
+ export{a as MeasureUnit}from'../chunks/chunk-QQEY536Q.js';
@@ -0,0 +1,19 @@
1
+ /// <reference types="emscripten" />
2
+ import { Serializable } from '../private/Serializable.js';
3
+ import { MeasureUnit } from './MeasureUnit.js';
4
+
5
+ interface NumberWithUnitJSON {
6
+ value: number;
7
+ unit: string;
8
+ }
9
+ declare class NumberWithUnit implements Serializable<NumberWithUnitJSON> {
10
+ private readonly _value;
11
+ private readonly _unit;
12
+ constructor(value: number, unit: MeasureUnit);
13
+ get value(): number;
14
+ get unit(): MeasureUnit;
15
+ private static fromJSON;
16
+ toJSONObject(): NumberWithUnitJSON;
17
+ }
18
+
19
+ export { NumberWithUnit, type NumberWithUnitJSON };
@@ -0,0 +1 @@
1
+ export{a as NumberWithUnit}from'../chunks/chunk-ENYHCJGH.js';
@@ -0,0 +1,10 @@
1
+ /// <reference types="emscripten" />
2
+ declare enum Orientation {
3
+ Unknown = "unknown",
4
+ Portrait = "portrait",
5
+ PortraitUpsideDown = "portraitUpsideDown",
6
+ LandscapeRight = "landscapeRight",
7
+ LandscapeLeft = "landscapeLeft"
8
+ }
9
+
10
+ export { Orientation };
@@ -0,0 +1 @@
1
+ export{a as Orientation}from'../chunks/chunk-5RCWM6NI.js';
@@ -0,0 +1,20 @@
1
+ /// <reference types="emscripten" />
2
+ import { Serializable } from '../private/Serializable.js';
3
+
4
+ interface PointJSON {
5
+ x: number;
6
+ y: number;
7
+ }
8
+ declare class Point implements Serializable<PointJSON> {
9
+ private readonly _x;
10
+ private readonly _y;
11
+ constructor(x: number, y: number);
12
+ get x(): number;
13
+ get y(): number;
14
+ private static mirrorX;
15
+ private static fromJSON;
16
+ toJSONObject(): PointJSON;
17
+ private static areEquals;
18
+ }
19
+
20
+ export { Point, type PointJSON };
@@ -0,0 +1 @@
1
+ export{a as Point}from'../chunks/chunk-KAFNKP6O.js';
@@ -0,0 +1,27 @@
1
+ /// <reference types="emscripten" />
2
+ import { Serializable } from '../private/Serializable.js';
3
+ import { NumberWithUnit } from './NumberWithUnit.js';
4
+ import './MeasureUnit.js';
5
+
6
+ interface PointWithUnitJSON {
7
+ x: {
8
+ value: number;
9
+ unit: string;
10
+ };
11
+ y: {
12
+ value: number;
13
+ unit: string;
14
+ };
15
+ }
16
+ declare class PointWithUnit implements Serializable<PointWithUnitJSON> {
17
+ private readonly _x;
18
+ private readonly _y;
19
+ constructor(x: NumberWithUnit, y: NumberWithUnit);
20
+ private static get zero();
21
+ get x(): NumberWithUnit;
22
+ get y(): NumberWithUnit;
23
+ private static fromJSON;
24
+ toJSONObject(): PointWithUnitJSON;
25
+ }
26
+
27
+ export { PointWithUnit, type PointWithUnitJSON };
@@ -0,0 +1 @@
1
+ export{a as PointWithUnit}from'../chunks/chunk-BDGRWHLY.js';