@scandit/web-datacapture-core 7.6.0-beta.1 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/build/js/AimerViewfinder.js +1 -1
  2. package/build/js/Brush.js +1 -1
  3. package/build/js/{Camera-DYYZ5vW1.d.ts → Camera-C_4xOv5n.d.ts} +5 -8
  4. package/build/js/Camera.d.ts +1 -1
  5. package/build/js/Camera.js +1 -1
  6. package/build/js/CameraAccess.d.ts +1 -1
  7. package/build/js/CameraAccess.js +1 -1
  8. package/build/js/CameraRelated.d.ts +1 -1
  9. package/build/js/CameraRelated.js +1 -1
  10. package/build/js/Common.d.ts +1 -0
  11. package/build/js/Common.js +1 -1
  12. package/build/js/DataCaptureContext.d.ts +1 -1
  13. package/build/js/DataCaptureContext.js +1 -1
  14. package/build/js/DataCaptureContextRelated.d.ts +1 -1
  15. package/build/js/DataCaptureVersion.js +1 -1
  16. package/build/js/DataCaptureView.d.ts +1 -1
  17. package/build/js/DataCaptureView.js +1 -1
  18. package/build/js/DefaultViewClassnames.d.ts +0 -2
  19. package/build/js/DefaultViewClassnames.js +1 -1
  20. package/build/js/Defaults.d.ts +1 -1
  21. package/build/js/Defaults.js +1 -1
  22. package/build/js/Feedback.js +1 -1
  23. package/build/js/FrameData.d.ts +1 -1
  24. package/build/js/ImageFrameSource.d.ts +1 -1
  25. package/build/js/LaserlineViewfinder.js +1 -1
  26. package/build/js/LocationSelection.js +1 -1
  27. package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
  28. package/build/js/NotificationPresenter/index.d.ts +1 -1
  29. package/build/js/NotificationPresenter/index.js +1 -1
  30. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +1 -1
  31. package/build/js/NotificationPresenter/private/presets.d.ts +1 -1
  32. package/build/js/RectangularViewfinder.js +1 -1
  33. package/build/js/ScanditIcon.js +1 -1
  34. package/build/js/ScanditIconBuilder.js +1 -1
  35. package/build/js/SingleImageUploader.d.ts +1 -1
  36. package/build/js/SingleImageUploader.js +1 -1
  37. package/build/js/SingleImageUploaderSettings.js +1 -1
  38. package/build/js/Vibration.js +1 -1
  39. package/build/js/ViewControls.js +1 -1
  40. package/build/js/browserCompatibility.d.ts +6 -1
  41. package/build/js/browserCompatibility.js +1 -1
  42. package/build/js/browserHelper.d.ts +6 -0
  43. package/build/js/browserHelper.js +1 -1
  44. package/build/js/chunks/{chunk-O4TEQJ6H.js → chunk-26DQPDMK.js} +1 -1
  45. package/build/js/chunks/{chunk-FZWKZSE4.js → chunk-27Z5CYJL.js} +1 -1
  46. package/build/js/chunks/{chunk-3BBG6EVS.js → chunk-2HL2IEE2.js} +1 -1
  47. package/build/js/chunks/chunk-2LSO6JEZ.js +1 -0
  48. package/build/js/chunks/{chunk-RWDRTV7B.js → chunk-2QT7PJFA.js} +1 -1
  49. package/build/js/chunks/{chunk-7WQXUZB4.js → chunk-4TDWWHP2.js} +1 -1
  50. package/build/js/chunks/{chunk-O2SM24G4.js → chunk-4XTOUXDD.js} +1 -1
  51. package/build/js/chunks/{chunk-DAFXSVRW.js → chunk-5S5BT5PK.js} +1 -1
  52. package/build/js/chunks/{chunk-LEE5JACK.js → chunk-6NVWG2LP.js} +1 -1
  53. package/build/js/chunks/{chunk-LLU62JKU.js → chunk-6TG3MN7M.js} +1 -1
  54. package/build/js/chunks/{chunk-OPX62GWU.js → chunk-7ELPJFJV.js} +1 -1
  55. package/build/js/chunks/{chunk-JVZYXEYO.js → chunk-7TQID6JJ.js} +1 -1
  56. package/build/js/chunks/{chunk-2T36DQ52.js → chunk-AJE43LJ5.js} +1 -1
  57. package/build/js/chunks/{chunk-DCZONWJ2.js → chunk-AKDTQZ73.js} +1 -1
  58. package/build/js/chunks/chunk-BPNTTDTU.js +18 -0
  59. package/build/js/chunks/chunk-DFFYK2ZZ.js +1 -0
  60. package/build/js/chunks/chunk-DUFF6WVD.js +5 -0
  61. package/build/js/chunks/chunk-ECRBANIT.js +1 -0
  62. package/build/js/chunks/chunk-EKOWJS3E.js +1 -0
  63. package/build/js/chunks/{chunk-T5EUB6UG.js → chunk-FS52JIW4.js} +1 -1
  64. package/build/js/chunks/chunk-GC2ECHKL.js +2 -0
  65. package/build/js/chunks/{chunk-FUNKO4DC.js → chunk-GYQMVT7L.js} +1 -1
  66. package/build/js/chunks/{chunk-MCAVCIZT.js → chunk-GYSREBEJ.js} +1 -1
  67. package/build/js/chunks/{chunk-TSOWSKE3.js → chunk-H75G3H4R.js} +1 -1
  68. package/build/js/chunks/{chunk-FSWALUUO.js → chunk-K7MUTJWB.js} +1 -1
  69. package/build/js/chunks/{chunk-BMMGUF55.js → chunk-KK47T3R2.js} +1 -1
  70. package/build/js/chunks/{chunk-6G52QHDH.js → chunk-L3BBOGIY.js} +1 -1
  71. package/build/js/chunks/{chunk-EPP3SBHK.js → chunk-LISC6VSM.js} +1 -1
  72. package/build/js/chunks/{chunk-WSTE2OZY.js → chunk-M6SPJT67.js} +1 -1
  73. package/build/js/chunks/chunk-MQ6H2ORR.js +1 -0
  74. package/build/js/chunks/{chunk-5QETTOSS.js → chunk-N2GWO3EX.js} +1 -1
  75. package/build/js/chunks/chunk-NVK73TNL.js +1 -0
  76. package/build/js/chunks/{chunk-E67SHSCO.js → chunk-OQ4XCKFQ.js} +1 -1
  77. package/build/js/chunks/{chunk-EUZWZFRQ.js → chunk-PUP3NNKU.js} +1 -1
  78. package/build/js/chunks/{chunk-TAMEEK7W.js → chunk-Q5DQ3FTE.js} +1 -1
  79. package/build/js/chunks/{chunk-26YPQCXW.js → chunk-QR3AOFAD.js} +1 -1
  80. package/build/js/chunks/{chunk-I2LMKSHH.js → chunk-QUHRBS4G.js} +1 -1
  81. package/build/js/chunks/{chunk-PAZQUCPC.js → chunk-R3XUWVHG.js} +1 -1
  82. package/build/js/chunks/chunk-REEU55IG.js +11 -0
  83. package/build/js/chunks/{chunk-NA6AZIR5.js → chunk-S24T6WS2.js} +1 -1
  84. package/build/js/chunks/{chunk-JDX5TFXN.js → chunk-SJJGHQ52.js} +1 -1
  85. package/build/js/chunks/chunk-SM5S3DDC.js +1 -0
  86. package/build/js/chunks/{chunk-IVDD7PCI.js → chunk-TB4UKDDI.js} +1 -1
  87. package/build/js/chunks/chunk-TPQTY3KB.js +1 -0
  88. package/build/js/chunks/chunk-UCD6YLP3.js +2 -0
  89. package/build/js/chunks/chunk-UUD3OXOZ.js +1 -0
  90. package/build/js/chunks/chunk-VBNI76IP.js +1 -0
  91. package/build/js/chunks/{chunk-6YZS76QW.js → chunk-VBRTZG3W.js} +1 -1
  92. package/build/js/chunks/chunk-VQ7LLVHQ.js +1 -0
  93. package/build/js/chunks/{chunk-ZF7CDMAC.js → chunk-VT73QNQB.js} +1 -1
  94. package/build/js/chunks/{chunk-QM37NXPY.js → chunk-VW3DMTE7.js} +1 -1
  95. package/build/js/index.d.ts +2 -2
  96. package/build/js/index.js +3 -3
  97. package/build/js/private/AnchorPositions.js +1 -1
  98. package/build/js/private/CameraAccess.d.ts +1 -1
  99. package/build/js/private/CameraAccess.js +1 -1
  100. package/build/js/private/CameraManager.d.ts +1 -1
  101. package/build/js/private/CameraManager.js +1 -1
  102. package/build/js/private/CanvasDrawerWithMetrics.d.ts +1 -1
  103. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +1 -1
  104. package/build/js/private/CustomLocationsView.js +1 -1
  105. package/build/js/private/DataCaptureContextRelated.d.ts +1 -1
  106. package/build/js/private/FrameReaders/FrameReader.d.ts +1 -1
  107. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +1 -1
  108. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +1 -1
  109. package/build/js/private/FrameReaders/index.d.ts +1 -1
  110. package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
  111. package/build/js/private/GestureRecognizer/index.js +1 -1
  112. package/build/js/private/HtmlElementState.js +1 -1
  113. package/build/js/private/NormalizedConfigureOptions.d.ts +1 -1
  114. package/build/js/private/SingleImageUploaderView.js +1 -1
  115. package/build/js/private/ViewClassNames.d.ts +0 -2
  116. package/build/js/private/ViewClassNames.js +1 -1
  117. package/build/js/private/ViewControls+related.js +1 -1
  118. package/build/js/private/ViewControls_related.d.ts +1 -1
  119. package/build/js/private/ViewStyles.js +1 -1
  120. package/build/js/private/ViewsRegistry.d.ts +1 -1
  121. package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
  122. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
  123. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
  124. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
  125. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
  126. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
  127. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  128. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  129. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
  130. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
  131. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
  132. package/build/js/private/ui/atoms/Card.js +1 -1
  133. package/build/js/private/ui/atoms/CardList.js +1 -1
  134. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
  135. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
  136. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
  137. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
  138. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
  139. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
  140. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
  141. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
  142. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
  143. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
  144. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
  145. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
  146. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
  147. package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
  148. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  149. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
  150. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
  151. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  152. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
  153. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  154. package/build/js/private/ui/atoms/ShutterButton.js +1 -1
  155. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
  156. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
  157. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
  158. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  159. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
  160. package/build/js/private/ui/atoms/Toast.d.ts +3 -2
  161. package/build/js/private/ui/atoms/Toast.js +1 -1
  162. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
  163. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
  164. package/build/js/private/ui/colors.js +1 -1
  165. package/build/js/private/ui/molecules/HintPresenter.d.ts +1 -1
  166. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  167. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  168. package/build/js/private/utils/AnimationSimplePolyfill.d.ts +59 -0
  169. package/build/js/private/utils/AnimationSimplePolyfill.js +1 -0
  170. package/build/js/private/utils/domIdFromValues.d.ts +18 -0
  171. package/build/js/private/utils/domIdFromValues.js +1 -0
  172. package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +0 -5
  173. package/build/js/private/utils/index.d.ts +2 -0
  174. package/build/js/private/utils/index.js +1 -1
  175. package/build/js/private/utils/polyfillLoader.d.ts +25 -0
  176. package/build/js/private/utils/polyfillLoader.js +1 -0
  177. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +1 -1
  178. package/build/js/private/utils/safeCancelAnimation.d.ts +53 -0
  179. package/build/js/private/utils/safeCancelAnimation.js +1 -0
  180. package/build/js/private/utils/structuredClonePolyfill.d.ts +15 -0
  181. package/build/js/private/utils/structuredClonePolyfill.js +1 -0
  182. package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
  183. package/build/js/sdk.d.ts +1 -1
  184. package/build/js/worker/WorkerMain.d.ts +1 -1
  185. package/build/js/worker/WorkerMain.js +1 -1
  186. package/build/js/worker/coreCapture.inlineWorker.d.ts +1 -1
  187. package/build/js/worker/coreCapture.inlineWorker.js +1 -1
  188. package/build/js/worker/dataCaptureEngine.d.ts +1 -1
  189. package/build/js/worker/dataCaptureEngine.js +1 -1
  190. package/build/js/worker/dataCaptureLoader.d.ts +1 -1
  191. package/build/js/worker/dataCaptureWorkerRelated.d.ts +1 -1
  192. package/build/js/worker/index.d.ts +1 -1
  193. package/build/js/worker/index.js +1 -1
  194. package/package.json +1 -1
  195. package/build/js/chunks/chunk-5FUZURCZ.js +0 -1
  196. package/build/js/chunks/chunk-5LIWL2C4.js +0 -1
  197. package/build/js/chunks/chunk-77BBIAZE.js +0 -1
  198. package/build/js/chunks/chunk-CVRIZLTM.js +0 -2
  199. package/build/js/chunks/chunk-DT4PRB74.js +0 -1
  200. package/build/js/chunks/chunk-JKL2W65E.js +0 -1
  201. package/build/js/chunks/chunk-MUJ7NKAY.js +0 -1
  202. package/build/js/chunks/chunk-NKYVY76A.js +0 -5
  203. package/build/js/chunks/chunk-NMX4VHW2.js +0 -1
  204. package/build/js/chunks/chunk-SHODT6PR.js +0 -21
  205. package/build/js/chunks/chunk-VQ2HNQ6B.js +0 -1
  206. package/build/js/chunks/chunk-WAUGWWV3.js +0 -1
  207. package/build/js/chunks/chunk-ZC7QACB2.js +0 -11
  208. /package/build/js/chunks/{chunk-2DXPVHBJ.js → chunk-EZFXLKBC.js} +0 -0
@@ -0,0 +1,59 @@
1
+ /// <reference types="emscripten" />
2
+ declare class MockAnimation extends EventTarget implements Animation {
3
+ private __isMockAnimation;
4
+ private element;
5
+ private keyFrameEffect;
6
+ private _playState;
7
+ get playState(): AnimationPlayState;
8
+ get replaceState(): AnimationReplaceState;
9
+ private resolver;
10
+ private readyResolver;
11
+ private timeoutId;
12
+ finished: Promise<any>;
13
+ timeline: AnimationTimeline | null;
14
+ effect: AnimationEffect | null;
15
+ id: string;
16
+ pending: boolean;
17
+ playbackRate: number;
18
+ private _replaceState;
19
+ ready: Promise<any>;
20
+ startTime: number | null;
21
+ currentTime: number | null;
22
+ constructor(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null);
23
+ play(): void;
24
+ pause(): void;
25
+ finish(): void;
26
+ cancel(): void;
27
+ reverse(): void;
28
+ onfinish: (() => void) | null;
29
+ oncancel: (() => void) | null;
30
+ onremove: (() => void) | null;
31
+ private createReadyPromise;
32
+ private applyFinalStyles;
33
+ private cleanupAppliedStyles;
34
+ commitStyles(): void;
35
+ persist(): void;
36
+ updatePlaybackRate(playbackRate: number): void;
37
+ get overallProgress(): number;
38
+ }
39
+ declare class MockKeyframeEffect implements KeyframeEffect {
40
+ target: Element | null;
41
+ keyframes: Keyframe[];
42
+ options: KeyframeEffectOptions;
43
+ activeDuration: number;
44
+ composite: CompositeOperation;
45
+ pseudoElement: string | null;
46
+ iterationComposite: IterationCompositeOperation;
47
+ constructor(targetOrSource: Element | null | KeyframeEffect, keyframes?: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions);
48
+ private normalizeKeyframes;
49
+ calculateActiveDuration(): number;
50
+ getTiming(): EffectTiming;
51
+ updateTiming(timing?: Partial<EffectTiming>): void;
52
+ setKeyframes(newKeyframes: Keyframe[]): void;
53
+ getKeyframes(): ComputedKeyframe[];
54
+ getTarget(): Element | null;
55
+ getComputedTiming(): ComputedEffectTiming;
56
+ }
57
+ declare function polyfill(): () => void;
58
+
59
+ export { MockAnimation, MockKeyframeEffect, polyfill };
@@ -0,0 +1 @@
1
+ var u=class extends EventTarget{constructor(e,i){var t;super();this.__isMockAnimation=true;this._playState="idle";this.resolver=()=>{};this.readyResolver=()=>{};this.timeoutId=null;this.finished=Promise.resolve();this.timeline=null;this.effect=null;this.id="";this.pending=false;this.playbackRate=1;this._replaceState="active";this.startTime=null;this.currentTime=null;this.onfinish=null;this.oncancel=null;this.onremove=null;this.effect=e||null,this.timeline=i!==void 0?i:((t=globalThis.document)==null?void 0:t.timeline)||null,e&&"target"in e&&(this.element=e.target,this.keyFrameEffect=e),this.createReadyPromise();}get playState(){return this._playState}get replaceState(){return this._replaceState}play(){var i,t,r;if(this.timeoutId&&(clearTimeout(this.timeoutId),this._playState==="running"||this._playState==="paused"))try{this.resolver();}catch(a){}(this._playState==="finished"||this._playState==="running"&&this.timeoutId)&&this.createReadyPromise();let e=(t=(i=this.keyFrameEffect)==null?void 0:i.getTiming().duration)!=null?t:0;if(this._playState==="paused"){this._playState="running",this.pending=false;try{this.readyResolver(this);}catch(s){}let a=Math.max(0,e-((r=this.currentTime)!=null?r:0));this.timeoutId=setTimeout(()=>{var s;this._playState="finished",this.pending=false,this.currentTime=e,this.applyFinalStyles(),this.dispatchEvent(new Event("finish")),(s=this.onfinish)==null||s.call(this),this.resolver();},a);}else this._playState="running",this.pending=true,this.startTime=performance.now(),this.currentTime=0,this.finished=new Promise(a=>{this.resolver=a;}),Promise.resolve().then(()=>{if(this._playState==="running"){this.pending=false;try{this.readyResolver(this);}catch(a){}}}),this.timeoutId=setTimeout(()=>{var a;this._playState="finished",this.pending=false,this.currentTime=e,this.applyFinalStyles(),this.dispatchEvent(new Event("finish")),(a=this.onfinish)==null||a.call(this),this.resolver();},e);}pause(){this.timeoutId&&clearTimeout(this.timeoutId),this._playState="paused",this.pending=false,this.startTime!==null&&(this.currentTime=performance.now()-this.startTime);}finish(){var r,a,s,l,o;if(this.playbackRate===0){let m=new Error("Cannot finish animation with playbackRate of 0");throw m.name="InvalidStateError",m}let e=(a=(r=this.keyFrameEffect)==null?void 0:r.getTiming().duration)!=null?a:0,i=(l=(s=this.keyFrameEffect)==null?void 0:s.getTiming().iterations)!=null?l:1,t=e*i;if(this.playbackRate>0&&(t===Number.POSITIVE_INFINITY||i===Number.POSITIVE_INFINITY)){let m=new Error("Cannot finish animation with infinite end time and positive playbackRate");throw m.name="InvalidStateError",m}this.timeoutId&&clearTimeout(this.timeoutId),this._playState="finished",this.pending=false,this.currentTime=this.playbackRate<0?0:e,this.applyFinalStyles(),this.dispatchEvent(new Event("finish")),(o=this.onfinish)==null||o.call(this),this.resolver();}cancel(){var e;this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this._playState="idle",this.pending=false,this.currentTime=null,this.startTime=null,this.cleanupAppliedStyles(),this.dispatchEvent(new Event("cancel")),(e=this.oncancel)==null||e.call(this);try{this.resolver();}catch(i){}this.createReadyPromise();}reverse(){this.playbackRate*=-1,this.dispatchEvent(new Event("reverse"));}createReadyPromise(){this.ready=new Promise(e=>{this.readyResolver=e;});}applyFinalStyles(){if(!this.keyFrameEffect||!this.element)return;let e=this.keyFrameEffect.getKeyframes(),i=e[e.length-1];if(i&&this.element instanceof HTMLElement){for(let[t,r]of Object.entries(i))if(t!=="offset"&&t!=="easing"&&t!=="composite")try{this.element.style.setProperty(t,String(r));}catch(a){}}}cleanupAppliedStyles(){if(!this.keyFrameEffect||!this.element)return;let e=this.keyFrameEffect.getKeyframes();if(this.element instanceof HTMLElement){for(let i of e)for(let[t]of Object.entries(i))if(t!=="offset"&&t!=="easing"&&t!=="composite")try{let r=t.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`);this.element.style.removeProperty(r);}catch(r){}}}commitStyles(){this.applyFinalStyles();}persist(){this._replaceState="persisted";}updatePlaybackRate(e){this.playbackRate=e;}get overallProgress(){var i,t,r;if(this._playState==="idle")return 0;if(this._playState==="finished")return 1;let e=(t=(i=this.keyFrameEffect)==null?void 0:i.getTiming().duration)!=null?t:0;return e===0?0:Math.min(1,Math.max(0,((r=this.currentTime)!=null?r:0)/e))}},f=class{constructor(n,e,i={}){this.composite="replace";this.pseudoElement=null;this.iterationComposite="replace";if(arguments.length===1&&n&&typeof n=="object"&&"getKeyframes"in n&&"target"in n){let t=n;this.target=t.target;let r=t.getKeyframes?t.getKeyframes():[];this.keyframes=r.map(a=>{let{easing:s,computedOffset:l,...o}=a;return s&&s!=="linear"&&(o.easing=s),o}),this.options=t.getTiming?t.getTiming():{},this.composite=t.composite||"replace",this.pseudoElement=t.pseudoElement||null,this.iterationComposite=t.iterationComposite||"replace";}else this.target=n,this.keyframes=this.normalizeKeyframes(e!=null?e:[]),this.options=typeof i=="number"?{duration:i}:i;this.activeDuration=this.calculateActiveDuration();}normalizeKeyframes(n){if(!n)return [];if(Array.isArray(n))return n;let e=[],i=Object.keys(n);if(i.length===0)return [];let t=0;for(let r of i){let a=n[r];Array.isArray(a)?t=Math.max(t,a.length):a!==void 0&&(t=Math.max(t,1));}for(let r=0;r<t;r++){let a={};for(let s of i){let l=n[s];Array.isArray(l)?a[s]=l[r]||l[l.length-1]:l!==void 0&&(a[s]=l);}e.push(a);}return e}calculateActiveDuration(){var i;let n=typeof this.options.duration=="number"?this.options.duration:0,e=(i=this.options.iterations)!=null?i:1;return n*e}getTiming(){return {...this.options}}updateTiming(n){this.options={...this.options,...n},this.activeDuration=this.calculateActiveDuration();}setKeyframes(n){this.keyframes=n;}getKeyframes(){return this.keyframes.map(n=>{var e,i;return {...n,computedOffset:(e=n.offset)!=null?e:null,easing:(i=n.easing)!=null?i:"linear"}})}getTarget(){return this.target}getComputedTiming(){let n=this.getTiming();return {...n,activeDuration:this.activeDuration,endTime:this.activeDuration+(n.delay||0)+(n.endDelay||0),localTime:null,progress:null,currentIteration:null}}};function c(){let h=globalThis.Animation,n=globalThis.KeyframeEffect,e=globalThis.Element.prototype.animate;return Object.defineProperty(globalThis,"Animation",{writable:true,configurable:true,value:u}),Object.defineProperty(globalThis,"KeyframeEffect",{writable:true,configurable:true,value:f}),Object.defineProperty(globalThis.Element.prototype,"animate",{writable:true,configurable:true,value:function(i,t){let r=new f(this,i,t),a=new u(r);return a.play(),a}}),()=>{Object.defineProperty(globalThis,"Animation",{writable:true,configurable:true,value:h}),Object.defineProperty(globalThis,"KeyframeEffect",{writable:true,configurable:true,value:n}),Object.defineProperty(globalThis.Element.prototype,"animate",{writable:true,configurable:true,value:e});}}export{u as MockAnimation,f as MockKeyframeEffect,c as polyfill};
@@ -0,0 +1,18 @@
1
+ /// <reference types="emscripten" />
2
+ /**
3
+ * Creates a valid DOM ID from a list of values.
4
+ *
5
+ * This function takes an array of values and creates a deterministic, valid DOM ID.
6
+ * The resulting ID is human-readable and follows HTML5 ID rules.
7
+ *
8
+ * @param values - Array of string values to create an ID from
9
+ * @param prefix - Optional prefix for the ID (defaults to "id")
10
+ * @returns A valid DOM ID string
11
+ *
12
+ * @example
13
+ * domIdFromValues(["red", "white", "center"]) // Returns "id-red-white-center"
14
+ * domIdFromValues(["Toast", "Move Closer!"], "hint") // Returns "hint-toast-move_closer"
15
+ */
16
+ declare function domIdFromValues(values: string[], prefix?: string): string;
17
+
18
+ export { domIdFromValues };
@@ -0,0 +1 @@
1
+ export{a as domIdFromValues}from'../../chunks/chunk-2LSO6JEZ.js';
@@ -1,9 +1,4 @@
1
1
  /// <reference types="emscripten" />
2
- /**
3
- * Polyfill for FinalizationRegistry to support environments where it's not available
4
- * (e.g., some worker contexts). This provides a no-op implementation that maintains
5
- * the same API but doesn't perform actual cleanup.
6
- */
7
2
  /**
8
3
  * Provides FinalizationRegistry polyfill when not available
9
4
  * @param target The target object (globalThis, self, or global) where FinalizationRegistry should be added
@@ -9,8 +9,10 @@ export { css } from './css.js';
9
9
  export { html } from './html.js';
10
10
  export { waitTransitionEndForElement } from './waitTransitionEndForElement.js';
11
11
  export { wait } from './wait.js';
12
+ export { safeAwaitAnimation, safeCancelAnimation } from './safeCancelAnimation.js';
12
13
  export { ScanditHTMLElement } from './ScanditHTMLElement.js';
13
14
  export { isWorkerScope } from './isWorkerScope.js';
14
15
  export { throttle } from './throttle.js';
15
16
  export { clamp } from './clamp.js';
16
17
  export { fromEntries } from './fromEntries.js';
18
+ export { domIdFromValues } from './domIdFromValues.js';
@@ -1 +1 @@
1
- export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';export{a as wait}from'../../chunks/chunk-UZWBB65W.js';export{a as waitTransitionEndForElement}from'../../chunks/chunk-2HTI5D6Y.js';export{a as html}from'../../chunks/chunk-MU6SADSF.js';export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';export{a as css}from'../../chunks/chunk-LSZZVJ6B.js';export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';export{a as fromEntries}from'../../chunks/chunk-RG272MAJ.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
1
+ export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';export{a as wait}from'../../chunks/chunk-UZWBB65W.js';export{a as waitTransitionEndForElement}from'../../chunks/chunk-2HTI5D6Y.js';export{b as safeAwaitAnimation,a as safeCancelAnimation}from'../../chunks/chunk-SM5S3DDC.js';export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';export{a as domIdFromValues}from'../../chunks/chunk-2LSO6JEZ.js';export{a as html}from'../../chunks/chunk-MU6SADSF.js';export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';export{a as css}from'../../chunks/chunk-LSZZVJ6B.js';export{a as fromEntries}from'../../chunks/chunk-RG272MAJ.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
@@ -0,0 +1,25 @@
1
+ /// <reference types="emscripten" />
2
+ /**
3
+ * Copyright (C) 2024 Scandit AG. All rights reserved.
4
+ *
5
+ * Polyfill loader utility
6
+ * This module handles the dynamic loading of various polyfills needed for browser compatibility.
7
+ */
8
+ /**
9
+ * Options for polyfill loading
10
+ */
11
+ interface PolyfillOptions {
12
+ /** Whether to force loading the animation polyfill */
13
+ forceAnimationPolyfill?: boolean;
14
+ /** Whether to force loading the structuredClone polyfill */
15
+ forceStructuredClonePolyfill?: boolean;
16
+ /** Whether to force loading all polyfills */
17
+ forceAllPolyfills?: boolean;
18
+ }
19
+ /**
20
+ * Loads all necessary polyfills for browser compatibility
21
+ * @param options Polyfill loading options
22
+ */
23
+ declare function loadPolyfills(options?: PolyfillOptions): Promise<void>;
24
+
25
+ export { type PolyfillOptions, loadPolyfills };
@@ -0,0 +1 @@
1
+ export{a as loadPolyfills}from'../../chunks/chunk-GC2ECHKL.js';
@@ -2,7 +2,7 @@
2
2
  import { Size } from '../../Common.js';
3
3
  import { Optional } from '../../tsHelper.js';
4
4
  import '../../ScanditIcon.js';
5
- import '../../Camera-DYYZ5vW1.js';
5
+ import '../../Camera-C_4xOv5n.js';
6
6
  import '../Serializable.js';
7
7
  import './ScanditHTMLElement.js';
8
8
  import '../FrameReaders/WatermarkStack.js';
@@ -0,0 +1,53 @@
1
+ /// <reference types="emscripten" />
2
+ /**
3
+ * Web Animations API Robust Animation Utilities
4
+ *
5
+ * This module provides safe ways to work with Web Animations API animations,
6
+ * handling compatibility differences between different polyfills and native implementations.
7
+ *
8
+ * ## Background: Polyfill Compatibility Issues
9
+ *
10
+ * Different polyfills behave differently when cancelling animations:
11
+ * - **Our AnimationSimplePolyfill**: Resolves promises, no errors (permissive)
12
+ * - **web-animations-js**: Rejects promises, throws AbortError (strict spec)
13
+ * - **Native browsers**: Varies - some silent, some throw errors
14
+ *
15
+ * ## Our Solution: Handle All Scenarios
16
+ *
17
+ * Instead of assuming one behavior, we handle all possible outcomes:
18
+ * - Try to cancel animations and handle any errors
19
+ * - Safely await animation.finished promises with proper error handling
20
+ * - Ensure elements are always in a good state after operations
21
+ *
22
+ * ## Technical Details
23
+ *
24
+ * According to the Web Animations API specification:
25
+ * - An animation can be in one of several states: "idle", "running", "paused", "finished"
26
+ * - Calling `cancel()` on an animation in "idle" or "finished" state may throw AbortError
27
+ * - The `finished` promise may be rejected with AbortError when animations are cancelled
28
+ * - Different polyfills enforce this to varying degrees
29
+ * - Our utilities ensure compatibility across all implementations
30
+ *
31
+ * ## References
32
+ * - Web Animations API Specification: https://www.w3.org/TR/web-animations-1/
33
+ * - MDN Web Animations API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API
34
+ * - MDN Animation.cancel(): https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel
35
+ * - AbortError: https://developer.mozilla.org/en-US/docs/Web/API/AbortError
36
+ */
37
+ /**
38
+ * Safely cancels a Web Animation, handling any errors that may be thrown by strict polyfills.
39
+ *
40
+ * @param animation - The animation to cancel
41
+ * @returns true if the animation was successfully cancelled, false if it failed or was already finished
42
+ */
43
+ declare function safeCancelAnimation(animation: Animation | null | undefined): boolean;
44
+ /**
45
+ * Safely awaits an animation's finished promise, handling potential AbortError rejections
46
+ * from strict polyfills when animations are cancelled.
47
+ *
48
+ * @param animation - The animation to await
49
+ * @returns Promise that resolves when animation completes or is cancelled (never rejects)
50
+ */
51
+ declare function safeAwaitAnimation(animation: Animation | null | undefined): Promise<void>;
52
+
53
+ export { safeAwaitAnimation, safeCancelAnimation };
@@ -0,0 +1 @@
1
+ export{b as safeAwaitAnimation,a as safeCancelAnimation}from'../../chunks/chunk-SM5S3DDC.js';
@@ -0,0 +1,15 @@
1
+ /// <reference types="emscripten" />
2
+ /**
3
+ * Copyright (C) 2024 Scandit AG. All rights reserved.
4
+ *
5
+ * structuredClone polyfill for older browsers
6
+ * This polyfill provides a fallback implementation when structuredClone is not available.
7
+ * Based on the polyfill from https://github.com/ungap/structured-clone
8
+ */
9
+ /**
10
+ * Registers the structuredClone polyfill if it's not already available
11
+ * @returns true if the polyfill was applied, false if structuredClone already exists
12
+ */
13
+ declare function structuredClonePolyfill(): boolean;
14
+
15
+ export { structuredClonePolyfill };
@@ -0,0 +1 @@
1
+ function n(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(t=>n(t));if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let t=new Map;for(let[l,u]of e)t.set(n(l),n(u));return t}if(e instanceof Set){let t=new Set;for(let l of e)t.add(n(l));return t}let r={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=n(e[t]));return r}function a(){return typeof globalThis.structuredClone=="function"?false:(Object.defineProperty(globalThis,"structuredClone",{value:r=>n(r),writable:true,configurable:true}),true)}export{a as structuredClonePolyfill};
@@ -1,2 +1,2 @@
1
- import {a as a$1}from'../../chunks/chunk-CVRIZLTM.js';import {a as a$2}from'../../chunks/chunk-XR65N6EG.js';async function a(){let[{missingFeatures:t},i]=await Promise.all([a$1.checkBrowserCompatibility(),a$1.checkMultithreadingSupport()]);i||(a$2.warn("Multithreading is not supported."),t.includes("crossOriginIsolated")&&a$2.warn("Headers for Multithreading are absent or misconfigured: please check how to configure them properly: https://docs.scandit.com/sdks/web/matrixscan/get-started#enable-browser-multithreading"),t.includes("sharedArrayBuffer")&&a$2.warn("SharedArrayBuffer not supported. Check the requirements here: https://docs.scandit.com/system-requirements#web-sdk"));}
1
+ import {a as a$1}from'../../chunks/chunk-UCD6YLP3.js';import {a as a$2}from'../../chunks/chunk-XR65N6EG.js';async function a(){let[{missingFeatures:t},i]=await Promise.all([a$1.checkBrowserCompatibility(),a$1.checkMultithreadingSupport()]);i||(a$2.warn("Multithreading is not supported."),t.includes("crossOriginIsolated")&&a$2.warn("Headers for Multithreading are absent or misconfigured: please check how to configure them properly: https://docs.scandit.com/sdks/web/matrixscan/get-started#enable-browser-multithreading"),t.includes("sharedArrayBuffer")&&a$2.warn("SharedArrayBuffer not supported. Check the requirements here: https://docs.scandit.com/system-requirements#web-sdk"));}
2
2
  export{a as warnMultithreadingUnavailable};
package/build/js/sdk.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="emscripten" />
2
2
  import { LoadingStatus } from './LoadingStatus.js';
3
3
  import './ScanditIcon.js';
4
- import { D as DataCaptureLoader } from './Camera-DYYZ5vW1.js';
4
+ import { D as DataCaptureLoader } from './Camera-C_4xOv5n.js';
5
5
  import './Common.js';
6
6
  import './private/Serializable.js';
7
7
  import './private/utils/ScanditHTMLElement.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { W as DataCaptureEngine, X as Module, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, a0 as ModuleHandler, a1 as DataCaptureCallbackMessage, a2 as DataCaptureActionMessageKey, a3 as EngineWorkerResponse } from '../Camera-DYYZ5vW1.js';
2
+ import { X as DataCaptureEngine, Y as Module, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, a0 as ModuleHandler, a1 as DataCaptureCallbackMessage, a2 as DataCaptureActionMessageKey, a3 as EngineWorkerResponse } from '../Camera-C_4xOv5n.js';
3
3
  import '../private/Serializable.js';
4
4
  import '../Common.js';
5
5
  import '../private/FrameReaders/WatermarkStack.js';
@@ -1 +1 @@
1
- export{a as WorkerMain}from'../chunks/chunk-BMMGUF55.js';
1
+ export{a as WorkerMain}from'../chunks/chunk-KK47T3R2.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- import { W as DataCaptureEngine, X as Module } from '../Camera-DYYZ5vW1.js';
2
+ import { X as DataCaptureEngine, Y as Module } from '../Camera-C_4xOv5n.js';
3
3
  import { WorkerMain } from './WorkerMain.js';
4
4
  import '../private/Serializable.js';
5
5
  import '../Common.js';
@@ -1 +1 @@
1
- export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-DT4PRB74.js';
1
+ export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-ECRBANIT.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { bf as CreateContextParameters, W as DataCaptureEngine, be as LoadLibraryParameters, bi as ProcessFrameParameters, bj as ReportCameraPropertiesParameters, bh as SetFrameSourceParameters, bg as UpdateContextParameters, bk as WorkerFunctions } from '../Camera-DYYZ5vW1.js';
2
+ export { bf as CreateContextParameters, X as DataCaptureEngine, be as LoadLibraryParameters, bi as ProcessFrameParameters, bj as ReportCameraPropertiesParameters, bh as SetFrameSourceParameters, bg as UpdateContextParameters, bk as WorkerFunctions } from '../Camera-C_4xOv5n.js';
3
3
  import './OverrideState.js';
4
4
  import '../LoadingStatus.js';
5
5
  import '../Common.js';
@@ -1 +1 @@
1
- export{a as DataCaptureEngine}from'../chunks/chunk-WSTE2OZY.js';
1
+ export{a as DataCaptureEngine}from'../chunks/chunk-M6SPJT67.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
2
  import './OverrideState.js';
3
- export { D as DataCaptureLoader, S as DataCaptureLoaderOptions } from '../Camera-DYYZ5vW1.js';
3
+ export { D as DataCaptureLoader, S as DataCaptureLoaderOptions } from '../Camera-C_4xOv5n.js';
4
4
  import '../logger.js';
5
5
  import '../LoadingStatus.js';
6
6
  import '../ScanditIcon.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
2
  import '../Common.js';
3
- export { as as AddNativeOverlayAction, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, aW as CaptureModeDeserializerInstance, ab as CreateContextDataCaptureAction, a2 as DataCaptureActionMessageKey, a1 as DataCaptureCallbackMessage, au as DataCaptureCallbackMessageKeys, aO as DataCaptureContext, aV as DataCaptureContextDeserializer, aU as DataCaptureContextDeserializerResult, aP as DataCaptureImageBufferFrameSource, aS as DataCaptureView, aM as DataCaptureWorker, af as DeleteFrameDataDataCaptureAction, aB as DidTapTrackedBarcode, aj as DisposeDataCaptureAction, aN as EmscriptenClassHandle, a3 as EngineWorkerResponse, an as ExtractCentaurusLicenseDataCaptureAction, a4 as ExtractCentaurusLicenseResponse, ak as FlushAnalyticsDataCaptureAction, Z as GenericHint, aQ as GestureListener, aR as GestureRecognizer, ar as GetOpenSourceSoftwareLicenseInfoAction, a8 as GetOpenSourceSoftwareLicenseInfoResponse, a7 as GetViewfinderInfo, aq as GetViewfinderInfoAction, b8 as GuidanceHint, b6 as GuidanceHintAnchor, b7 as GuidanceHintStyle, aI as HideGuidanceMessage, az as HideHintWorkerMessage, aG as HideToastMessage, b4 as HintAnchor, b2 as HintCornerStyle, a_ as HintFont, b1 as HintHeight, b3 as HintIcon, bc as HintPresenterV2, ap as HintPresenterV2updateAction, b5 as HintStyle, a$ as HintTextAlignment, b0 as HintWidth, ah as IsFeatureSupportedAction, ay as IsFeatureSupportedMessage, a6 as IsFeatureSupportedResponse, aT as JSONParseable, bb as LicensedFeature, aa as LoadLibraryDataCaptureAction, X as Module, a0 as ModuleHandler, aX as ModuleMirrorAxis, aD as OnFrameProcessingFinishedMessage, aC as OnFrameProcessingStartedMessage, aE as OnFrameSkippedMessage, ao as OnTapAction, aL as PayloadForCommand, Y as PerformanceMetrics, aA as PerformanceMetricsReportMessage, bd as PlatformHintPresenter, ad as ProcessFrameDataCaptureAction, at as RemoveNativeOverlayAction, al as ReportCameraPropertiesDataCaptureAction, ae as RequestFrameDataDataCaptureAction, a5 as RequestFrameDataResponse, ac as SetFrameSourceDataCaptureAction, am as SetLogLevelDataCaptureAction, aH as ShowGuidanceMessage, aw as ShowHintWorkerMessage, aF as ShowToastMessage, aJ as StartUpdateTimerMessage, aK as StopUpdateTimerMessage, av as SuccessFeedbackWorkerMessage, ba as ToastHint, b9 as ToastHintStyle, ai as UpdateContextDataCaptureAction, ax as UpdateHintWorkerMessage, aY as Vector, ag as VisibilityChangeAction, aZ as WasmFrameData, a9 as WorkerResponse } from '../Camera-DYYZ5vW1.js';
3
+ export { as as AddNativeOverlayAction, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, aW as CaptureModeDeserializerInstance, ab as CreateContextDataCaptureAction, a2 as DataCaptureActionMessageKey, a1 as DataCaptureCallbackMessage, au as DataCaptureCallbackMessageKeys, aO as DataCaptureContext, aV as DataCaptureContextDeserializer, aU as DataCaptureContextDeserializerResult, aP as DataCaptureImageBufferFrameSource, aS as DataCaptureView, aM as DataCaptureWorker, af as DeleteFrameDataDataCaptureAction, aB as DidTapTrackedBarcode, aj as DisposeDataCaptureAction, aN as EmscriptenClassHandle, a3 as EngineWorkerResponse, an as ExtractCentaurusLicenseDataCaptureAction, a4 as ExtractCentaurusLicenseResponse, ak as FlushAnalyticsDataCaptureAction, Z as GenericHint, aQ as GestureListener, aR as GestureRecognizer, ar as GetOpenSourceSoftwareLicenseInfoAction, a8 as GetOpenSourceSoftwareLicenseInfoResponse, a7 as GetViewfinderInfo, aq as GetViewfinderInfoAction, b8 as GuidanceHint, b6 as GuidanceHintAnchor, b7 as GuidanceHintStyle, aI as HideGuidanceMessage, az as HideHintWorkerMessage, aG as HideToastMessage, b4 as HintAnchor, b2 as HintCornerStyle, a_ as HintFont, b1 as HintHeight, b3 as HintIcon, bc as HintPresenterV2, ap as HintPresenterV2updateAction, b5 as HintStyle, a$ as HintTextAlignment, b0 as HintWidth, ah as IsFeatureSupportedAction, ay as IsFeatureSupportedMessage, a6 as IsFeatureSupportedResponse, aT as JSONParseable, bb as LicensedFeature, aa as LoadLibraryDataCaptureAction, Y as Module, a0 as ModuleHandler, aX as ModuleMirrorAxis, aD as OnFrameProcessingFinishedMessage, aC as OnFrameProcessingStartedMessage, aE as OnFrameSkippedMessage, ao as OnTapAction, aL as PayloadForCommand, W as PerformanceMetrics, aA as PerformanceMetricsReportMessage, bd as PlatformHintPresenter, ad as ProcessFrameDataCaptureAction, at as RemoveNativeOverlayAction, al as ReportCameraPropertiesDataCaptureAction, ae as RequestFrameDataDataCaptureAction, a5 as RequestFrameDataResponse, ac as SetFrameSourceDataCaptureAction, am as SetLogLevelDataCaptureAction, aH as ShowGuidanceMessage, aw as ShowHintWorkerMessage, aF as ShowToastMessage, aJ as StartUpdateTimerMessage, aK as StopUpdateTimerMessage, av as SuccessFeedbackWorkerMessage, ba as ToastHint, b9 as ToastHintStyle, ai as UpdateContextDataCaptureAction, ax as UpdateHintWorkerMessage, aY as Vector, ag as VisibilityChangeAction, aZ as WasmFrameData, a9 as WorkerResponse } from '../Camera-C_4xOv5n.js';
4
4
  import '../LoadingStatus.js';
5
5
  import '../logger.js';
6
6
  import '../private/Serializable.js';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="emscripten" />
2
2
  export { WorkerMain } from './WorkerMain.js';
3
- export { as as AddNativeOverlayAction, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, aW as CaptureModeDeserializerInstance, ab as CreateContextDataCaptureAction, bf as CreateContextParameters, a2 as DataCaptureActionMessageKey, a1 as DataCaptureCallbackMessage, au as DataCaptureCallbackMessageKeys, aO as DataCaptureContext, aV as DataCaptureContextDeserializer, aU as DataCaptureContextDeserializerResult, W as DataCaptureEngine, aP as DataCaptureImageBufferFrameSource, D as DataCaptureLoader, S as DataCaptureLoaderOptions, aS as DataCaptureView, aM as DataCaptureWorker, af as DeleteFrameDataDataCaptureAction, aB as DidTapTrackedBarcode, aj as DisposeDataCaptureAction, aN as EmscriptenClassHandle, a3 as EngineWorkerResponse, an as ExtractCentaurusLicenseDataCaptureAction, a4 as ExtractCentaurusLicenseResponse, ak as FlushAnalyticsDataCaptureAction, Z as GenericHint, aQ as GestureListener, aR as GestureRecognizer, ar as GetOpenSourceSoftwareLicenseInfoAction, a8 as GetOpenSourceSoftwareLicenseInfoResponse, a7 as GetViewfinderInfo, aq as GetViewfinderInfoAction, b8 as GuidanceHint, b6 as GuidanceHintAnchor, b7 as GuidanceHintStyle, aI as HideGuidanceMessage, az as HideHintWorkerMessage, aG as HideToastMessage, b4 as HintAnchor, b2 as HintCornerStyle, a_ as HintFont, b1 as HintHeight, b3 as HintIcon, bc as HintPresenterV2, ap as HintPresenterV2updateAction, b5 as HintStyle, a$ as HintTextAlignment, b0 as HintWidth, ah as IsFeatureSupportedAction, ay as IsFeatureSupportedMessage, a6 as IsFeatureSupportedResponse, aT as JSONParseable, bb as LicensedFeature, aa as LoadLibraryDataCaptureAction, be as LoadLibraryParameters, X as Module, a0 as ModuleHandler, aX as ModuleMirrorAxis, aD as OnFrameProcessingFinishedMessage, aC as OnFrameProcessingStartedMessage, aE as OnFrameSkippedMessage, ao as OnTapAction, aL as PayloadForCommand, Y as PerformanceMetrics, aA as PerformanceMetricsReportMessage, bd as PlatformHintPresenter, ad as ProcessFrameDataCaptureAction, bi as ProcessFrameParameters, at as RemoveNativeOverlayAction, al as ReportCameraPropertiesDataCaptureAction, bj as ReportCameraPropertiesParameters, ae as RequestFrameDataDataCaptureAction, a5 as RequestFrameDataResponse, ac as SetFrameSourceDataCaptureAction, bh as SetFrameSourceParameters, am as SetLogLevelDataCaptureAction, aH as ShowGuidanceMessage, aw as ShowHintWorkerMessage, aF as ShowToastMessage, aJ as StartUpdateTimerMessage, aK as StopUpdateTimerMessage, av as SuccessFeedbackWorkerMessage, ba as ToastHint, b9 as ToastHintStyle, ai as UpdateContextDataCaptureAction, bg as UpdateContextParameters, ax as UpdateHintWorkerMessage, aY as Vector, ag as VisibilityChangeAction, aZ as WasmFrameData, bk as WorkerFunctions, a9 as WorkerResponse } from '../Camera-DYYZ5vW1.js';
3
+ export { as as AddNativeOverlayAction, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, aW as CaptureModeDeserializerInstance, ab as CreateContextDataCaptureAction, bf as CreateContextParameters, a2 as DataCaptureActionMessageKey, a1 as DataCaptureCallbackMessage, au as DataCaptureCallbackMessageKeys, aO as DataCaptureContext, aV as DataCaptureContextDeserializer, aU as DataCaptureContextDeserializerResult, X as DataCaptureEngine, aP as DataCaptureImageBufferFrameSource, D as DataCaptureLoader, S as DataCaptureLoaderOptions, aS as DataCaptureView, aM as DataCaptureWorker, af as DeleteFrameDataDataCaptureAction, aB as DidTapTrackedBarcode, aj as DisposeDataCaptureAction, aN as EmscriptenClassHandle, a3 as EngineWorkerResponse, an as ExtractCentaurusLicenseDataCaptureAction, a4 as ExtractCentaurusLicenseResponse, ak as FlushAnalyticsDataCaptureAction, Z as GenericHint, aQ as GestureListener, aR as GestureRecognizer, ar as GetOpenSourceSoftwareLicenseInfoAction, a8 as GetOpenSourceSoftwareLicenseInfoResponse, a7 as GetViewfinderInfo, aq as GetViewfinderInfoAction, b8 as GuidanceHint, b6 as GuidanceHintAnchor, b7 as GuidanceHintStyle, aI as HideGuidanceMessage, az as HideHintWorkerMessage, aG as HideToastMessage, b4 as HintAnchor, b2 as HintCornerStyle, a_ as HintFont, b1 as HintHeight, b3 as HintIcon, bc as HintPresenterV2, ap as HintPresenterV2updateAction, b5 as HintStyle, a$ as HintTextAlignment, b0 as HintWidth, ah as IsFeatureSupportedAction, ay as IsFeatureSupportedMessage, a6 as IsFeatureSupportedResponse, aT as JSONParseable, bb as LicensedFeature, aa as LoadLibraryDataCaptureAction, be as LoadLibraryParameters, Y as Module, a0 as ModuleHandler, aX as ModuleMirrorAxis, aD as OnFrameProcessingFinishedMessage, aC as OnFrameProcessingStartedMessage, aE as OnFrameSkippedMessage, ao as OnTapAction, aL as PayloadForCommand, W as PerformanceMetrics, aA as PerformanceMetricsReportMessage, bd as PlatformHintPresenter, ad as ProcessFrameDataCaptureAction, bi as ProcessFrameParameters, at as RemoveNativeOverlayAction, al as ReportCameraPropertiesDataCaptureAction, bj as ReportCameraPropertiesParameters, ae as RequestFrameDataDataCaptureAction, a5 as RequestFrameDataResponse, ac as SetFrameSourceDataCaptureAction, bh as SetFrameSourceParameters, am as SetLogLevelDataCaptureAction, aH as ShowGuidanceMessage, aw as ShowHintWorkerMessage, aF as ShowToastMessage, aJ as StartUpdateTimerMessage, aK as StopUpdateTimerMessage, av as SuccessFeedbackWorkerMessage, ba as ToastHint, b9 as ToastHintStyle, ai as UpdateContextDataCaptureAction, bg as UpdateContextParameters, ax as UpdateHintWorkerMessage, aY as Vector, ag as VisibilityChangeAction, aZ as WasmFrameData, bk as WorkerFunctions, a9 as WorkerResponse } from '../Camera-C_4xOv5n.js';
4
4
  import '../private/Serializable.js';
5
5
  import '../Common.js';
6
6
  import '../private/FrameReaders/WatermarkStack.js';
@@ -1 +1 @@
1
- export{a as DataCaptureLoader}from'../chunks/chunk-VGSPU525.js';export{a as WorkerMain}from'../chunks/chunk-BMMGUF55.js';export{a as DataCaptureEngine}from'../chunks/chunk-WSTE2OZY.js';export{h as GuidanceHintAnchor,i as GuidanceHintStyle,g as HintAnchor,e as HintCornerStyle,a as HintFont,d as HintHeight,f as HintIcon,b as HintTextAlignment,c as HintWidth,k as LicensedFeature,j as ToastHintStyle}from'../chunks/chunk-L7TY4UEP.js';
1
+ export{a as DataCaptureLoader}from'../chunks/chunk-VGSPU525.js';export{a as WorkerMain}from'../chunks/chunk-KK47T3R2.js';export{a as DataCaptureEngine}from'../chunks/chunk-M6SPJT67.js';export{h as GuidanceHintAnchor,i as GuidanceHintStyle,g as HintAnchor,e as HintCornerStyle,a as HintFont,d as HintHeight,f as HintIcon,b as HintTextAlignment,c as HintWidth,k as LicensedFeature,j as ToastHintStyle}from'../chunks/chunk-L7TY4UEP.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scandit/web-datacapture-core",
3
- "version": "7.6.0-beta.1",
3
+ "version": "7.6.1",
4
4
  "description": "Scandit Data Capture SDK for the Web",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -1 +0,0 @@
1
- import {b,a as a$1}from'./chunk-77BBIAZE.js';var a=class m extends b{constructor(r,n,i,e,t,h,p,s,c){super(r,n,i,e),this._centerLeft=t,this._topCenter=h,this._centerRight=p,this._bottomCenter=s,this._center=c;}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(r){let{topLeft:n,topRight:i,bottomRight:e,bottomLeft:t,centerLeft:h,topCenter:p,centerRight:s,bottomCenter:c,center:P}=r,b=a$1.fromJSON(n),O=a$1.fromJSON(i),l=a$1.fromJSON(e),y=a$1.fromJSON(t),S=a$1.fromJSON(h),x=a$1.fromJSON(p),J=a$1.fromJSON(s),N=a$1.fromJSON(c),g=a$1.fromJSON(P);return new m(b,O,l,y,S,x,J,N,g)}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 r=[[this.topLeft,this.topRight],[this.topRight,this.bottomRight],[this.bottomRight,this.bottomLeft],[this.bottomLeft,this.topLeft]],n=r.reduce((s,c)=>{let P=new a$1((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),b=new a$1((c[0].x+c[1].x)/2,(c[0].y+c[1].y)/2);return P.y<b.y?s:c},r[0]),i=n[0].x<=n[1].x?n[0]:n[1],e=n[0].x>n[1].x?n[0]:n[1],t=[this.topLeft,this.topRight,this.bottomLeft,this.bottomRight].filter(s=>!s.equals(i)&&!s.equals(e)),h=new m(i,e,t[0],t[1],new a$1((i.x+t[1].x)/2,(i.y+t[1].y)/2),new a$1((i.x+e.x)/2,(i.y+e.y)/2),new a$1((e.x+t[0].x)/2,(e.y+t[0].y)/2),new a$1((t[1].x+t[0].x)/2,(t[1].y+t[0].y)/2),this.center),p=new m(i,e,t[1],t[0],new a$1((i.x+t[0].x)/2,(i.y+t[0].y)/2),new a$1((i.x+e.x)/2,(i.y+e.y)/2),new a$1((e.x+t[1].x)/2,(e.y+t[1].y)/2),new a$1((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),this.center);return this.getArea(h)>=this.getArea(p)?h:p}getArea(r){let n=[r.topLeft,r.topRight,r.bottomRight,r.bottomLeft,r.topLeft],i=0;for(let e=0;e<n.length-1;e++)i+=n[e].x*n[e+1].y-n[e+1].x*n[e].y;return Math.abs(i)/2}};export{a};
@@ -1 +0,0 @@
1
- var r=(e=>(e.Blob="blob",e.MediaDevices="mediaDevices",e.OffscreenCanvas="offscreenCanvas",e.HttpProtocol="httpProtocol",e.SecureContext="secureContext",e.UrlObject="urlObject",e.WebWorkers="webWorkers",e.WebAssembly="webAssembly",e.WebAssemblyErrorFree="webAssemblyErrorFree",e.WebGL="webGL",e.SharedArrayBuffer="sharedArrayBuffer",e.CrossOriginIsolated="crossOriginIsolated",e))(r||{});export{r as a};
@@ -1 +0,0 @@
1
- var u=class e{constructor(t,i){this._x=t,this._y=i;}get x(){return this._x}get y(){return this._y}static mirrorX(t,i){let r=t.x-i.width;return r*=-1,new e(r,t.y)}static fromJSON(t){return new e(t.x,t.y)}toJSONObject(){return {x:this.x,y:this.y}}equals(t){return this.x===t.x&&this.y===t.y}},m=class e{constructor(t,i,r,o){this._topLeft=t,this._topRight=i,this._bottomRight=r,this._bottomLeft=o;}get topLeft(){return this._topLeft}get topRight(){return this._topRight}get bottomRight(){return this._bottomRight}get bottomLeft(){return this._bottomLeft}static fromJSON(t){return new e(u.fromJSON(t.topLeft),u.fromJSON(t.topRight),u.fromJSON(t.bottomRight),u.fromJSON(t.bottomLeft))}toJSONObject(){return {topLeft:this.topLeft.toJSONObject(),topRight:this.topRight.toJSONObject(),bottomLeft:this.bottomLeft.toJSONObject(),bottomRight:this.bottomRight.toJSONObject()}}},W=(i=>(i.Pixel="pixel",i.Fraction="fraction",i))(W||{}),n=class e{constructor(t,i){this._value=t,this._unit=i;}get value(){return this._value}get unit(){return this._unit}static fromJSON(t){return new e(t.value,t.unit)}toJSONObject(){return {unit:this.unit,value:this.value}}},S=class e{constructor(t,i){this._x=t,this._y=i;}static get zero(){return new e(new n(0,"pixel"),new n(0,"pixel"))}get x(){return this._x}get y(){return this._y}static fromJSON(t){return new e(n.fromJSON(t.x),n.fromJSON(t.y))}toJSONObject(){return {x:this.x.toJSONObject(),y:this.y.toJSONObject()}}},g=class{constructor(t,i){this._origin=t,this._size=i;}get origin(){return this._origin}get size(){return this._size}toJSONObject(){return {origin:this.origin.toJSONObject(),size:this.size.toJSONObject()}}},N=class{constructor(t,i){this._origin=t,this._size=i;}get origin(){return this._origin}get size(){return this._size}toJSONObject(){return {origin:this._origin.toJSONObject(),size:this._size.toJSONObject()}}},l=class e{constructor(t,i){this._width=t,this._height=i;}get width(){return this._width}get height(){return this._height}static fromJSON(t){return new e(n.fromJSON(t.width),n.fromJSON(t.height))}isSameAs(t){return JSON.stringify(this.toJSONObject())===JSON.stringify(t.toJSONObject())}toJSONObject(){return {width:this.width.toJSONObject(),height:this.height.toJSONObject()}}},d=class e{constructor(t,i){this._width=t,this._height=i;}get width(){return this._width}get height(){return this._height}static fromJSON(t){return new e(t.width,t.height)}toJSONObject(){return {height:this.height,width:this.width}}},p=class{constructor(t,i){this._size=t,this._aspect=i;}get size(){return this._size}get aspect(){return this._aspect}},f=(o=>(o.WidthAndHeight="widthAndHeight",o.WidthAndAspectRatio="widthAndAspectRatio",o.HeightAndAspectRatio="heightAndAspectRatio",o.ShorterDimensionAndAspectRatio="shorterDimensionAndAspectRatio",o))(f||{}),O=class e{constructor(){this._shorterDimensionAndAspectRatio=null;}get widthAndHeight(){return this._widthAndHeight}get widthAndAspectRatio(){return this._widthAndAspectRatio}get heightAndAspectRatio(){return this._heightAndAspectRatio}get shorterDimensionAndAspectRatio(){return this._shorterDimensionAndAspectRatio}get sizingMode(){return this.widthAndAspectRatio?"widthAndAspectRatio":this.heightAndAspectRatio?"heightAndAspectRatio":this.shorterDimensionAndAspectRatio?"shorterDimensionAndAspectRatio":"widthAndHeight"}static sizeWithWidthAndHeight(t){let i=new e;return i._widthAndHeight=t,i}static sizeWithWidthAndAspectRatio(t,i){let r=new e;return r._widthAndAspectRatio=new p(t,i),r}static sizeWithHeightAndAspectRatio(t,i){let r=new e;return r._heightAndAspectRatio=new p(t,i),r}static sizeWithShorterDimensionAndAspectRatio(t,i){let r=new e;return r._shorterDimensionAndAspectRatio=new p(t,i),r}static fromJSON(t){if(t.width&&t.height)return e.sizeWithWidthAndHeight(new l(n.fromJSON(t.width),n.fromJSON(t.height)));if(t.width&&typeof t.aspect=="number")return e.sizeWithWidthAndAspectRatio(n.fromJSON(t.width),t.aspect);if(t.height&&typeof t.aspect=="number")return e.sizeWithHeightAndAspectRatio(n.fromJSON(t.height),t.aspect);if(t.shorterDimension&&typeof t.aspect=="number")return e.sizeWithShorterDimensionAndAspectRatio(n.fromJSON(t.shorterDimension),t.aspect);throw new Error(`SizeWithUnitAndAspectJSON is malformed: ${JSON.stringify(t)}`)}toJSONObject(){var t,i,r,o,s,c,h,b;switch(this.sizingMode){case "widthAndAspectRatio":return {width:(t=this.widthAndAspectRatio)==null?void 0:t.size.toJSONObject(),aspect:(i=this.widthAndAspectRatio)==null?void 0:i.aspect};case "heightAndAspectRatio":return {height:(r=this.heightAndAspectRatio)==null?void 0:r.size.toJSONObject(),aspect:(o=this.heightAndAspectRatio)==null?void 0:o.aspect};case "shorterDimensionAndAspectRatio":return {shorterDimension:(s=this.shorterDimensionAndAspectRatio)==null?void 0:s.size.toJSONObject(),aspect:(c=this.shorterDimensionAndAspectRatio)==null?void 0:c.aspect};default:return {width:(h=this.widthAndHeight)==null?void 0:h.width.toJSONObject(),height:(b=this.widthAndHeight)==null?void 0:b.height.toJSONObject()}}}},J=class e{constructor(t,i,r,o){this._left=t,this._top=i,this._right=r,this._bottom=o;}static get zero(){return new e(new n(0,"pixel"),new n(0,"pixel"),new n(0,"pixel"),new n(0,"pixel"))}get left(){return this._left}get right(){return this._right}get top(){return this._top}get bottom(){return this._bottom}static fromJSON(t){return new e(n.fromJSON(t.left),n.fromJSON(t.top),n.fromJSON(t.right),n.fromJSON(t.bottom))}toJSONObject(){return {left:this.left.toJSONObject(),right:this.right.toJSONObject(),top:this.top.toJSONObject(),bottom:this.bottom.toJSONObject()}}},A=class e{constructor(t){this.hexadecimalString=t;}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 e.hexToNumber(this.redComponent)}get green(){return e.hexToNumber(this.greenComponent)}get blue(){return e.hexToNumber(this.blueComponent)}get alpha(){return e.hexToNumber(this.alphaComponent)}static fromHex(t){return new e(e.normalizeHex(t))}static fromRGBA(t,i,r,o=1){let s=[t,i,r,e.normalizeAlpha(o)].reduce((c,h)=>c+e.numberToHex(h),"");return new e(s)}static areEquals(t,i){return t==null||i==null?false:t.hexadecimalString===i.hexadecimalString}static hexToNumber(t){return Number.parseInt(t,16)}static fromJSON(t){return e.fromHex(t)}static numberToHex(t){let r=Math.round(t).toString(16);return r.length===1&&(r=`0${r}`),r.toUpperCase()}static normalizeHex(t){let i=t;return i.startsWith("#")&&(i=i.slice(1)),i.length<6&&(i=[...i].map(r=>r+r).join("")),i.length===6&&(i+="FF"),i.toUpperCase()}static normalizeAlpha(t){return t>0&&t<=1?255*t:t}withAlpha(t){let i=this.hexadecimalString.slice(0,6)+e.numberToHex(e.normalizeAlpha(t));return e.fromHex(i)}toJSON(){return this.hexadecimalString}},U=(s=>(s.Unknown="unknown",s.Portrait="portrait",s.PortraitUpsideDown="portraitUpsideDown",s.LandscapeRight="landscapeRight",s.LandscapeLeft="landscapeLeft",s))(U||{}),z=(h=>(h.None="none",h.Horizontal="horizontal",h.LeftToRight="leftToRight",h.RightToLeft="rightToLeft",h.Vertical="vertical",h.TopToBottom="topToBottom",h.BottomToTop="bottomToTop",h))(z||{}),x=(a=>(a.TopLeft="topLeft",a.TopCenter="topCenter",a.TopRight="topRight",a.CenterLeft="centerLeft",a.Center="center",a.CenterRight="centerRight",a.BottomLeft="bottomLeft",a.BottomCenter="bottomCenter",a.BottomRight="bottomRight",a))(x||{});export{u as a,m as b,W as c,n as d,S as e,g as f,N as g,l as h,d as i,p as j,f as k,O as l,J as m,A as n,U as o,z as p,x as q};
@@ -1,2 +0,0 @@
1
- import {b as b$2}from'./chunk-XEBHIXET.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-42THCP2K.js';import {a,b}from'./chunk-TR3NGINC.js';var Ce=a((H,ee)=>{(function(m,w){var B="1.0.40",U="",x="?",E="function",g="undefined",A="object",S="string",k="major",e="model",r="name",i="type",o="vendor",n="version",T="architecture",L="console",l="mobile",u="tablet",y="smarttv",_="wearable",W="embedded",Y=500,j="Amazon",D="Apple",a="ASUS",t="BlackBerry",c="Browser",h="Chrome",O="Edge",N="Firefox",R="Google",le="Huawei",ie="LG",oe="Microsoft",be="Motorola",V="Opera",F="Samsung",ce="Sharp",X="Sony",re="Xiaomi",ne="Zebra",we="Facebook",ue="Chromium OS",de="Mac OS",pe=" Browser",Te=function(d,p){var b={};for(var v in d)p[v]&&p[v].length%2===0?b[v]=p[v].concat(d[v]):b[v]=d[v];return b},Z=function(d){for(var p={},b=0;b<d.length;b++)p[d[b].toUpperCase()]=d[b];return p},fe=function(d,p){return typeof d===S?z(p).indexOf(z(d))!==-1:false},z=function(d){return d.toLowerCase()},_e=function(d){return typeof d===S?d.replace(/[^\d\.]/g,U).split(".")[0]:w},te=function(d,p){if(typeof d===S)return d=d.replace(/^\s\s*/,U),typeof p===g?d:d.substring(0,Y)},G=function(d,p){for(var b=0,v,P,M,f,s,I;b<p.length&&!s;){var ae=p[b],ve=p[b+1];for(v=P=0;v<ae.length&&!s&&ae[v];)if(s=ae[v++].exec(d),s)for(M=0;M<ve.length;M++)I=s[++P],f=ve[M],typeof f===A&&f.length>0?f.length===2?typeof f[1]==E?this[f[0]]=f[1].call(this,I):this[f[0]]=f[1]:f.length===3?typeof f[1]===E&&!(f[1].exec&&f[1].test)?this[f[0]]=I?f[1].call(this,I,f[2]):w:this[f[0]]=I?I.replace(f[1],f[2]):w:f.length===4&&(this[f[0]]=I?f[3].call(this,I.replace(f[1],f[2])):w):this[f]=I||w;b+=2;}},$=function(d,p){for(var b in p)if(typeof p[b]===A&&p[b].length>0){for(var v=0;v<p[b].length;v++)if(fe(p[b][v],d))return b===x?w:b}else if(fe(p[b],d))return b===x?w:b;return p.hasOwnProperty("*")?p["*"]:d},Re={"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],[n,[r,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[r,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[r,n],[/opios[\/ ]+([\w\.]+)/i],[n,[r,V+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[r,V+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[r,V]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[r,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[r,"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],[r,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[r,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[r,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[r,"UC"+c]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[r,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[r,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[r,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[r,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[r,"Smart Lenovo "+c]],[/(avast|avg)\/([\w\.]+)/i],[[r,/(.+)/,"$1 Secure "+c],n],[/\bfocus\/([\w\.]+)/i],[n,[r,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[r,V+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[r,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[r,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[r,V+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[r,"MIUI"+pe]],[/fxios\/([\w\.-]+)/i],[n,[r,N]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[r,"360"]],[/\b(qq)\/([\w\.]+)/i],[[r,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[r,/(.+)/,"$1"+pe],n],[/samsungbrowser\/([\w\.]+)/i],[n,[r,F+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[r,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[r,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[r,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[r],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,r],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[r,we],n],[/(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],[r,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[r,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[r,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[r,h+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[r,h+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[r,"Android "+c]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[r,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[r,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,r],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[r,[n,$,Re]],[/(webkit|khtml)\/([\w\.]+)/i],[r,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[r,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[r,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[r,N+" 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],[r,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[r,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,z]],[/((?: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,z]],[/(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,z]]],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,F],[i,u]],[/\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,F],[i,l]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[e,[o,D],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[e,[o,D],[i,u]],[/(macintosh);/i],[e,[o,D]],[/\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,le],[i,u]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[e,[o,le],[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,u]],[/; (\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,u]],[/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,u]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[e,[o,ie],[i,u]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[e,[o,ie],[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,u]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[e,/_/g," "],[o,"Nokia"],[i,l]],[/(pixel c)\b/i],[e,[o,R],[i,u]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[e,[o,R],[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,X],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[e,"Xperia Tablet"],[o,X],[i,u]],[/ (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,j],[i,u]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[e,/(.+)/g,"Fire Phone $1"],[o,j],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[e,o,[i,u]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[e,[o,t],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[e,[o,a],[i,u]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[e,[o,a],[i,l]],[/(nexus 9)/i],[e,[o,"HTC"],[i,u]],[/(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,u]],[/(itel) ((\w+))/i],[[o,z],e,[i,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[e,[o,"Acer"],[i,u]],[/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,u]],[/(surface duo)/i],[e,[o,oe],[i,u]],[/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,u]],[/\b(venue[\d ]{2,7}) b/i],[e,[o,"Dell"],[i,u]],[/\b(q(?:mv|ta)\w+) b/i],[e,[o,"Verizon"],[i,u]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[e,[o,"Barnes & Noble"],[i,u]],[/\b(tm\d{3}\w+) b/i],[e,[o,"NuVision"],[i,u]],[/\b(k88) b/i],[e,[o,"ZTE"],[i,u]],[/\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,u]],[/\b((zeki)?tb.*\b) b/i],[e,[o,"Zeki"],[i,u]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],e,[i,u]],[/\b(ns-?\w{0,9}) b/i],[e,[o,"Insignia"],[i,u]],[/\b((nxa|next)-?\w{0,9}) b/i],[e,[o,"NextBook"],[i,u]],[/\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,u]],[/\b(trio[-\w\. ]+) b/i],[e,[o,"MachSpeed"],[i,u]],[/\btu_(1491) b/i],[e,[o,"Rotor"],[i,u]],[/(shield[\w ]+) b/i],[e,[o,"Nvidia"],[i,u]],[/(sprint) (\w+)/i],[o,e,[i,l]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[o,oe],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[e,[o,ne],[i,u]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[e,[o,ne],[i,l]],[/smart-tv.+(samsung)/i],[o,[i,y]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[o,F],[i,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,ie],[i,y]],[/(apple) ?tv/i],[o,[e,D+" TV"],[i,y]],[/crkey/i],[[e,h+"cast"],[o,R],[i,y]],[/droid.+aft(\w+)( bui|\))/i],[e,[o,j],[i,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[e,[o,ce],[i,y]],[/(bravia[\w ]+)( bui|\))/i],[e,[o,X],[i,y]],[/(mitv-\w{5}) bui/i],[e,[o,re],[i,y]],[/Hbbtv.*(technisat) (.*);/i],[o,e,[i,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,te],[e,te],[i,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,e,[i,L]],[/droid.+; (shield) bui/i],[e,[o,"Nvidia"],[i,L]],[/(playstation [345portablevi]+)/i],[e,[o,X],[i,L]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[e,[o,oe],[i,L]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[e,[o,F],[i,_]],[/((pebble))app/i],[o,e,[i,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[e,[o,D],[i,_]],[/droid.+; (glass) \d/i],[e,[o,R],[i,_]],[/droid.+; (wt63?0{2,3})\)/i],[e,[o,ne],[i,_]],[/droid.+; (glass) \d/i],[e,[o,R],[i,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,e,[i,_]],[/; (quest( \d| pro)?)/i],[e,[o,we],[i,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[i,W]],[/(aeobc)\b/i],[e,[o,j],[i,W]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[e,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[e,[i,u]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,u]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[e,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[r,O+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[r,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[r,"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],[r,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,r]],os:[[/microsoft (windows) (vista|xp)/i],[r,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[r,[n,$,me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,$,me],[r,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[r,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[r,de],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,r],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[r,n],[/\(bb(10);/i],[n,[r,t]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[r,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[r,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[r,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[r,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[r,h+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[r,ue],n],[/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],[r,n],[/(sunos) ?([\w\.\d]*)/i],[[r,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[r,n]]},C=function(d,p){if(typeof d===A&&(p=d,d=w),!(this instanceof C))return new C(d,p).getResult();var b=typeof m!==g&&m.navigator?m.navigator:w,v=d||(b&&b.userAgent?b.userAgent:U),P=b&&b.userAgentData?b.userAgentData:w,M=p?Te(ge,p):ge,f=b&&b.userAgent==v;return this.getBrowser=function(){var s={};return s[r]=w,s[n]=w,G.call(s,v,M.browser),s[k]=_e(s[n]),f&&b&&b.brave&&typeof b.brave.isBrave==E&&(s[r]="Brave"),s},this.getCPU=function(){var s={};return s[T]=w,G.call(s,v,M.cpu),s},this.getDevice=function(){var s={};return s[o]=w,s[e]=w,s[i]=w,G.call(s,v,M.device),f&&!s[i]&&P&&P.mobile&&(s[i]=l),f&&s[e]=="Macintosh"&&b&&typeof b.standalone!==g&&b.maxTouchPoints&&b.maxTouchPoints>2&&(s[e]="iPad",s[i]=u),s},this.getEngine=function(){var s={};return s[r]=w,s[n]=w,G.call(s,v,M.engine),s},this.getOS=function(){var s={};return s[r]=w,s[n]=w,G.call(s,v,M.os),f&&!s[r]&&P&&P.platform&&P.platform!="Unknown"&&(s[r]=P.platform.replace(/chrome os/i,ue).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===S&&s.length>Y?te(s,Y):s,this},this.setUA(v),this};C.VERSION=B,C.BROWSER=Z([r,n,k]),C.CPU=Z([T]),C.DEVICE=Z([e,o,i,L,l,y,u,_,W]),C.ENGINE=C.OS=Z([r,n]),typeof H!==g?(typeof ee!==g&&ee.exports&&(H=ee.exports=C),H.UAParser=C):typeof define===E&&define.amd?define(function(){return C}):typeof m!==g&&(m.UAParser=C);var q=typeof m!==g&&(m.jQuery||m.Zepto);if(q&&!q.ua){var K=new C;q.ua=K.getResult(),q.ua.get=function(){return K.getUA()},q.ua.set=function(d){K.setUA(d);var p=K.getResult();for(var b in p)q.ua[b]=p[b];};}})(typeof window=="object"?window:H);});function Q(m){for(var w=1;w<arguments.length;w++){var B=arguments[w];for(var U in B)m[U]=B[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 se(m,w){function B(x,E,g){if(!(typeof document>"u")){g=Q({},w,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 A="";for(var S in g)g[S]&&(A+="; "+S,g[S]!==true&&(A+="="+g[S].split(";")[0]));return document.cookie=x+"="+m.write(E,x)+A}}function U(x){if(!(typeof document>"u"||arguments.length&&!x)){for(var E=document.cookie?document.cookie.split("; "):[],g={},A=0;A<E.length;A++){var S=E[A].split("="),k=S.slice(1).join("=");try{var e=decodeURIComponent(S[0]);if(g[e]=m.read(k,e),x===e)break}catch(r){}}return x?g[x]:g}}return Object.create({set:B,get:U,remove:function(x,E){B(x,"",Q({},E,{expires:-1}));},withAttributes:function(x){return se(this.converter,Q({},this.attributes,x))},withConverter:function(x){return se(Q({},this.converter,x),this.attributes)}},{attributes:{value:Object.freeze(w)},converter:{value:Object.freeze(m)}})}var Oe=se(Ie,{path:"/"});var Ae=b(Ce(),1);var Ee;(D=>{let m;function w(){return m==null&&(m=new Ae.default(navigator.userAgent)),m}D.getUserAgentInfo=w;function B(){var c;if("orientation"in window)return false;let a="(any-pointer: coarse)",t=(c=window.matchMedia)==null?void 0:c.call(window,a);return navigator.maxTouchPoints===0||(t==null?void 0:t.media)===a&&!(t!=null&&t.matches)}D.isDesktopDevice=B;function U(){return w().getDevice().model==="iPhone"}D.isIPhone=U;function x(){let a=w().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}D.isIOSDeviceWithExtendedCameraAccess=x;function E(){return "document"in window?window.document.createElement("canvas"):null}D.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 A(){return c()}D.hasSIMDSupport=A;async function S(){return d()}D.hasThreadsSupport=S;function k(a,t,c){let h=a[t[0]];return h==null?false:t.length===1?typeof h===c:(typeof h=="function"||typeof h=="object")&&k(h,t.slice(1),c)}function e$1(){var N;let a=true,t=null,c=null,h=null,O=null;try{if(t=D.getCanvas(),c=D.getCanvas(),h=t==null?void 0:t.getContext("webgl"),O=c==null?void 0:c.getContext("experimental-webgl"),!k(window,["WebGLRenderingContext"],"function")||h==null&&O==null)throw new Error("WebGLRenderingContext is not supported")}catch(R){a=false;}finally{for(let R of [h,O])typeof(R==null?void 0:R.getExtension)=="function"&&((N=R.getExtension("WEBGL_lose_context"))==null||N.loseContext());h=null,O=null,t=null,c=null;}return a}function r(){let a=true,t=true,c=new Set;location.protocol.startsWith("http")||c.add("httpProtocol"),k(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&c.add("secureContext"),!k(navigator,["mediaDevices","getUserMedia"],"function")&&!k(navigator,["enumerateDevices"],"function")&&!k(window,["MediaStreamTrack","getSources"],"function")&&(c.add("mediaDevices"),a=false),k(window,["Worker"],"function")||(c.add("webWorkers"),a=false,t=false),k(window,["WebAssembly"],"object")||(c.add("webAssembly"),a=false,t=false),k(window,["Blob"],"function")||(c.add("blob"),a=false,t=false),k(window,["URL","createObjectURL"],"function")||(c.add("urlObject"),a=false,t=false),k(window,["OffscreenCanvas"],"function")||c.add("offscreenCanvas"),e$1()||c.add("webGL");let h=w().getOS();return g(h)&&(c.add("webAssemblyErrorFree"),a=false,t=false),b$1()||c.add("sharedArrayBuffer"),a$1()||c.add("crossOriginIsolated"),{fullSupport:a,scannerSupport:t,missingFeatures:[...c]}}D.checkBrowserCompatibility=r;async function i(){return e()}D.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 c=new Uint8Array(20);return crypto.getRandomValues(c),t=[...c].map(h=>{let O=h.toString(16);return O.length===1?`0${O}`:O}).join(""),b$2.setItem(a,t),t}D.getDeviceId=o;function n(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}D.isValidHTMLElement=n;function T(){var h,O;let a=w().getOS();if(a.name!=="iOS")return true;let[t,c]=(O=(h=a.version)==null?void 0:h.split(".").map(Number))!=null?O:[];return t>14||t===14&&c>=6}D.isSupportedIOSVersion=T;function L(){var a,t;return (t=(a=w().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?t:false}D.isSafari=L;function l(){var t,c;return /iphone|ipod|ipad/.test((c=(t=w().getDevice().model)==null?void 0:t.toLowerCase())!=null?c:"")&&!L()}D.isIosWebView=l;async function u(){var t;return ((t=w().getOS().name)==null?void 0:t.toLowerCase())!=="android"?false:w().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([c])=>c.toLowerCase()==="x-requested-with")}D.isAndroidWebView=u;function y(){return w().getOS().name==="Windows"}D.isWindows=y;function _(){return w().getBrowser().name==="Firefox"}D.isFirefox=_;function W(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}D.getSupportedVibrationMethod=W;function Y(){return W()!=null&&!B()&&!y()&&!_()}D.isVibrationAvailable=Y;function j(){return w().getOS().name==="iOS"}D.isIOS=j;})(Ee||(Ee={}));
2
- export{Ee as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-BMMGUF55.js';var t=new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function l(e){}export{t as a,l as b};
@@ -1 +0,0 @@
1
- var A={CONTAINER_CLASS_NAME:"scandit-container",PAINTBOARDS_CONTAINER_CLASS_NAME:"scandit-paintboards",PAINTBOARD_CLASS_NAME:"scandit-paintboard",PAINTBOARD_CLASS_NAME_STATE_ON:"scandit-paintboard--camera-on",CONTROLS_CLASS_NAME:"scandit-controls",CONTROL_WIDGET_CLASS_NAME:"scandit-control-widget",MIRRORED_CLASS_NAME:"scandit-mirrored",CAMERA_RECOVERY_CLASS_NAME:"scandit-camera-recovery",ERROR_CLASS_NAME:"scandit-error",HINT_CONTAINER_CLASS_NAME:"scandit-hint-container",HINT_CLASS_NAME:"scandit-hint",SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME:"scandit-single-image-uploader-container",CANVAS_VIDEO_PREVIEW_CLASS_NAME:"scandit-canvas-video-preview",TORCH_SWITCH_CONTROL_CLASS_NAME:"torch",CAMERA_SWITCH_CONTROL_CLASS_NAME:"camera",CAMERA_FOV_SWITCH_CONTROL_CLASS_NAME:"camera-fov",SHUTTER_BUTTON_CONTROL_CLASS_NAME:"shutter",FROZEN_FRAME:"frozen-frame"};export{A as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-NMX4VHW2.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';function E(){let e=a$1`@keyframes scandit-rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.${a.CONTAINER_CLASS_NAME}{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.${a.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$1`.${a.PAINTBOARDS_CONTAINER_CLASS_NAME}{height:inherit;position:relative;width:100%}.${a.PAINTBOARD_CLASS_NAME}{aspect-ratio:16/9;background-color:#000;height:100%;min-height:1px;min-width:1px;position:relative;width:100%}.${a.PAINTBOARD_CLASS_NAME}.${a.PAINTBOARD_CLASS_NAME_STATE_ON}{aspect-ratio:auto}.${a.PAINTBOARD_CLASS_NAME} video{display:block;height:100%;object-fit:cover;transition:opacity .3s;width:100%}.${a.PAINTBOARD_CLASS_NAME} .${a.MIRRORED_CLASS_NAME}{transform:scaleX(-1)}.${a.PAINTBOARD_CLASS_NAME} .${a.CAMERA_RECOVERY_CLASS_NAME}{background-color:#000;cursor:pointer;z-index:5}.${a.PAINTBOARD_CLASS_NAME} .${a.CAMERA_RECOVERY_CLASS_NAME},.${a.PAINTBOARD_CLASS_NAME} .${a.ERROR_CLASS_NAME}{align-items:center;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.${a.PAINTBOARD_CLASS_NAME} .${a.ERROR_CLASS_NAME}{background-color:#00000080;text-align:center;z-index:6}.${a.PAINTBOARD_CLASS_NAME} .${a.HINT_CONTAINER_CLASS_NAME}{bottom:5vh;display:grid;pointer-events:none;position:absolute;top:5vh;width:100%}.${a.PAINTBOARD_CLASS_NAME} .${a.HINT_CLASS_NAME}{background-color:#fff;color:#000;padding:10px;width:fit-content}.${a.CAMERA_RECOVERY_CLASS_NAME}[hidden],.${a.ERROR_CLASS_NAME}[hidden],.${a.HINT_CLASS_NAME}[hidden]{display:none}.${a.PAINTBOARD_CLASS_NAME} canvas{height:100%;left:0;object-fit:cover;pointer-events:none;position:absolute;top:0;transition:opacity .3s;width:100%}`,i=a$1`.${a.PAINTBOARD_CLASS_NAME} .${a.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.PAINTBOARD_CLASS_NAME} .${a.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.${a.PAINTBOARD_CLASS_NAME} .${a.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label input[type=file]{position:absolute;top:-9999px}.${a.PAINTBOARD_CLASS_NAME}.${a.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label button{pointer-events:none}`,n=a$1`.${a.PAINTBOARD_CLASS_NAME} .${a.CONTROLS_CLASS_NAME}{display:flex;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.${a.PAINTBOARD_CLASS_NAME} .${a.CONTROL_WIDGET_CLASS_NAME}-${a.TORCH_SWITCH_CONTROL_CLASS_NAME}{left:16px;top:24px}.${a.PAINTBOARD_CLASS_NAME} .${a.CONTROL_WIDGET_CLASS_NAME}-${a.CAMERA_SWITCH_CONTROL_CLASS_NAME}{right:16px;top:24px}.${a.PAINTBOARD_CLASS_NAME} .${a.CONTROL_WIDGET_CLASS_NAME}-${a.CAMERA_FOV_SWITCH_CONTROL_CLASS_NAME}{bottom:24px;right:24px}.${a.CONTROL_WIDGET_CLASS_NAME}{background-color:initial;background-repeat:no-repeat;border:none;cursor:pointer;height:32px;pointer-events:all;position:absolute;width:32px}.${a.CONTROL_WIDGET_CLASS_NAME}+.${a.CONTROL_WIDGET_CLASS_NAME}{margin-left:16px}`,_=a$1`.${a.FROZEN_FRAME}{height:100%;left:0;object-fit:cover;opacity:1;position:absolute;top:0;width:100%}.${a.FROZEN_FRAME}[hidden]{opacity:0;pointer-events:none;visibility:hidden}`;return [e,o,n,i,_]}export{E as a};
@@ -1,5 +0,0 @@
1
- import {b as b$2}from'./chunk-ZC7QACB2.js';import {a as a$7}from'./chunk-ZF7CDMAC.js';import {b as b$1,a as a$6}from'./chunk-5S537AFM.js';import {a as a$3}from'./chunk-MU6SADSF.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';import {a as a$2}from'./chunk-R6E4CT22.js';var a="--view-finder-top",s="--view-finder-bottom",c="--hint-anchor-offset",b="--max-width-fraction",w="--horizontal-margin",h="--max-width-ratio-adjust",$=(l=>(l.Update="hintpresenterupdate",l))($||{});function d(p,l=100){return typeof p=="string"?p.slice(0,l):""}var o=class o extends a$1{constructor(){super();this.onDidToastHideHandler=this.onDidToastHide.bind(this);this.orientationObserver=new b$1;this.onOrientationChangeHandler=a$2(this.onOrientationChange.bind(this),200);let t=this.attachShadow({mode:"open"});t.innerHTML=a$3`
2
- <div id="root">
3
- <slot></slot>
4
- </div>
5
- `,t.append(o.createStyleElement().cloneNode(true)),this.root=t.querySelector("#root");}static createStyleElement(){return a$4`:host{pointer-events:none}:host #root{inset:0;position:absolute;width:100%;${a}:0;${s}:0;${h}:1;z-index:1}::slotted(${b$2.tag}){left:50%;max-width:calc(var(${b})*var(${h})*100% - var(${w}));position:absolute;transform:translate3d(-50%,0,0);width:100%}::slotted(${b$2.tag}.${"aboveViewFinder"}){transform:translate3d(-50%,calc(-100% + var(${a}) - var(${c})),0)}::slotted(${b$2.tag}.${"belowViewFinder"}){transform:translate3d(-50%,calc(var(${s}) + var(${c})),0)}::slotted(${b$2.tag}.${"top"}){top:calc(var(${c}))}::slotted(${b$2.tag}.fitToText){width:fit-content}`}static register(){a$5({[o.tag]:o});}static create(){return o.register(),document.createElement(o.tag)}connectedCallback(){this.orientationObserver.addEventListener(a$6,this.onOrientationChangeHandler),this.orientationObserver.register(),this.addEventListener("didhide",this.onDidToastHideHandler),this._viewFinderRect==null&&(this.root.style.setProperty(a,`${this.root.clientHeight/2}px`),this.root.style.setProperty(s,`${this.root.clientHeight/2+1}px`));}disconnectedCallback(){this.removeEventListener("didhide",this.onDidToastHideHandler);}setViewFinderRect(t){if(t===null){this.root.style.removeProperty(a),this.root.style.removeProperty(s);return}this._viewFinderRect=t;let{origin:{y:e},size:{height:i}}=this._viewFinderRect;this.root.style.setProperty(a,`${e}px`),this.root.style.setProperty(s,`${e+i}px`);}handleMessage(t){let{type:e}=t;switch(e){case "showToast":{this.showToast(t.payload);break}case "hideToast":{this.hideToast(t.payload);break}case "showGuidance":{this.showGuidance(t.payload);break}case "hideGuidance":{this.hideGuidance(t.payload);break}case "startUpdateTimer":{this.startUpdateTimer(t.payload.duration.value);break}case "stopUpdateTimer":{this.stopUpdateTimer();break}}}setHintStyleToToast(t,e){t.textContent=e.text,t.hintStyle=e.hintStyle,t.className="",t.style.setProperty(c,`${t.hintStyle.hintAnchorOffset/16}rem`),t.style.setProperty(b,e.hintStyle.maxWidthFraction.toString()),t.style.setProperty(w,`${e.hintStyle.horizontalMargin/16}rem`),t.classList.add(e.hintStyle.hintAnchor),t.classList.toggle("fitToText",e.hintStyle.fitToText);}onDidToastHide(t){t.stopPropagation(),t.detail.target.remove();}async showToast(t){let e=this.idFromHint(t),i=this.querySelector(`#${e}`);if(i||(i=b$2.create(),i.id=e,this.append(i)),this.setHintStyleToToast(i,t),t.tag==="MoveCloserGuidance"){let r=a$7.create();r.setAttribute("slot","first-child"),i.append(r),i.setAttribute("direction","column");}return i.show()}showToastWithCustomIcon(t,e){let i=this.idFromHint(t),r=this.querySelector(`#${i}`);return r||(r=b$2.create(),r.id=i,this.append(r)),r.customIcon=e,this.setHintStyleToToast(r,t),r.show()}async hideToast(t){let e=this.querySelector(`#${this.idFromHint(t)}`);if(e!=null)return e.hide()}async showGuidance(t){return this.showToast(t)}async hideGuidance(t){return this.hideToast(t)}startUpdateTimer(t){this.intervalId=setInterval(()=>{this.dispatchEvent(new CustomEvent("hintpresenterupdate"));},t);}stopUpdateTimer(){clearInterval(this.intervalId);}idFromHint(t){var e;return btoa([d(t.hintStyle.textColor),d(t.hintStyle.backgroundColor),d(t.hintStyle.hintAnchor),d((e=t.tag)!=null?e:""),d(t.hintStyle.textAlignment)].join("-")).split("+").join("-").split("/").join("_").replace(/=+$/,"")}onOrientationChange(t){let e=1;e=t.detail.value==="landscapeLeft"||t.detail.value==="landscapeRight"?window.innerHeight/window.innerWidth:1,this.root.style.setProperty(h,e.toString()),this._viewFinderRect==null&&(this.root.style.setProperty(a,`${this.root.clientHeight/2}px`),this.root.style.setProperty(s,`${this.root.clientHeight/2+1}px`));}};o.tag="scandit-hints";var S=o;export{$ as a,S as b};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-JKL2W65E.js';var S={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,CONTROLS_CLASS_NAME:a.CONTROLS_CLASS_NAME,CONTROL_WIDGET_CLASS_NAME:a.CONTROL_WIDGET_CLASS_NAME,MIRRORED_CLASS_NAME:a.MIRRORED_CLASS_NAME,CAMERA_RECOVERY_CLASS_NAME:a.CAMERA_RECOVERY_CLASS_NAME,ERROR_CLASS_NAME:a.ERROR_CLASS_NAME,HINT_CONTAINER_CLASS_NAME:a.HINT_CONTAINER_CLASS_NAME,HINT_CLASS_NAME:a.HINT_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,TORCH_SWITCH_CONTROL_CLASS_NAME:a.TORCH_SWITCH_CONTROL_CLASS_NAME,CAMERA_SWITCH_CONTROL_CLASS_NAME:a.CAMERA_SWITCH_CONTROL_CLASS_NAME,CAMERA_FOV_SWITCH_CONTROL_CLASS_NAME:a.CAMERA_FOV_SWITCH_CONTROL_CLASS_NAME,SHUTTER_BUTTON_CONTROL_CLASS_NAME:a.SHUTTER_BUTTON_CONTROL_CLASS_NAME,FROZEN_FRAME:a.FROZEN_FRAME};export{S as a};