@scandit/web-datacapture-core 8.2.1 → 8.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/electron/common.cjs +1 -1
- package/build/electron/constants.cjs +1 -1
- package/build/electron/main.cjs +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/js/{Camera-DhGjpcjv.d.ts → Camera-BnPnXqAt.d.ts} +1 -1
- package/build/js/Camera.d.ts +1 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraRelated.d.ts +1 -1
- package/build/js/{DataCaptureContext-Dvdr7st4.d.ts → DataCaptureContext-LM_Re1B4.d.ts} +42 -4
- package/build/js/DataCaptureContext.d.ts +4 -2
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +5 -3
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +5 -3
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +4 -2
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +4 -2
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +4 -2
- package/build/js/NotificationPresenter/private/presets.d.ts +4 -2
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.d.ts +10 -0
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-UQVVJP5Z.js → chunk-2OCDIZIS.js} +1 -1
- package/build/js/chunks/{chunk-QFSNPY5Y.js → chunk-2SGKGZ6F.js} +1 -1
- package/build/js/chunks/{chunk-O7EM4VIM.js → chunk-33ZWDLU7.js} +1 -1
- package/build/js/chunks/{chunk-3MKSI2DV.js → chunk-6IM6NGGI.js} +1 -1
- package/build/js/chunks/{chunk-WVVNJRUA.js → chunk-7EGT56UE.js} +1 -1
- package/build/js/chunks/chunk-7JVAQ2A3.js +1 -0
- package/build/js/chunks/{chunk-HQKKXJJY.js → chunk-7ZU6DPLL.js} +1 -1
- package/build/js/chunks/{chunk-7HYFN4JO.js → chunk-A3ZT7PJA.js} +1 -1
- package/build/js/chunks/chunk-A5G2NHT2.js +1 -0
- package/build/js/chunks/{chunk-DGIQ3GF7.js → chunk-ARODHCN7.js} +1 -1
- package/build/js/chunks/chunk-BQO4QYI6.js +1 -0
- package/build/js/chunks/{chunk-QUWP3ILW.js → chunk-BSX3V75N.js} +1 -1
- package/build/js/chunks/chunk-BV63CXZF.js +1 -0
- package/build/js/chunks/{chunk-5OF76LWH.js → chunk-DQ5X7FNV.js} +1 -1
- package/build/js/chunks/chunk-DZE2EYSZ.js +1 -0
- package/build/js/chunks/{chunk-SYGWA3T6.js → chunk-E7IMQECS.js} +1 -1
- package/build/js/chunks/{chunk-VSROWPI6.js → chunk-FCXZZH3O.js} +1 -1
- package/build/js/chunks/{chunk-O4HDBWKK.js → chunk-FMOB7R2T.js} +1 -1
- package/build/js/chunks/{chunk-U7ETOWGJ.js → chunk-GS7VZDY5.js} +1 -1
- package/build/js/chunks/{chunk-6JHZVRXK.js → chunk-H7FKC2FI.js} +1 -1
- package/build/js/chunks/{chunk-NXAYIU7F.js → chunk-IASACVTH.js} +1 -1
- package/build/js/chunks/chunk-IVQL2BYY.js +1 -0
- package/build/js/chunks/chunk-KUAZYGPM.js +1 -0
- package/build/js/chunks/{chunk-DTREAYZQ.js → chunk-KVRNF3VA.js} +1 -1
- package/build/js/chunks/{chunk-UERKPMRV.js → chunk-L66S4DN2.js} +1 -1
- package/build/js/chunks/chunk-M2ZQCUEL.js +1 -0
- package/build/js/chunks/{chunk-YE2GYNRP.js → chunk-NMXQDQYI.js} +1 -1
- package/build/js/chunks/{chunk-BBOKPRKO.js → chunk-O5D4KVS5.js} +1 -1
- package/build/js/chunks/{chunk-GLSB4QTY.js → chunk-OCKYBUXO.js} +1 -1
- package/build/js/chunks/{chunk-XYZYNUX3.js → chunk-RXDVYEE5.js} +1 -1
- package/build/js/chunks/{chunk-QUBJJDLC.js → chunk-RYXKMXTY.js} +1 -1
- package/build/js/chunks/{chunk-RP4YFAF2.js → chunk-SSTFVERQ.js} +1 -1
- package/build/js/chunks/{chunk-7OFC24NE.js → chunk-SX5ZLP2O.js} +1 -1
- package/build/js/chunks/{chunk-V2OKMBZD.js → chunk-UJYGOVXB.js} +1 -1
- package/build/js/chunks/chunk-W3X3ZRQZ.js +1 -0
- package/build/js/chunks/chunk-WBYBTOBZ.js +1 -0
- package/build/js/chunks/{chunk-JCP7NQPV.js → chunk-WFKB322J.js} +1 -1
- package/build/js/chunks/{chunk-VJ7ZYB4V.js → chunk-WJOT37ST.js} +1 -1
- package/build/js/chunks/{chunk-I4F6XB6S.js → chunk-XVH5A2QH.js} +1 -1
- package/build/js/chunks/{chunk-4J3Y5IIL.js → chunk-XW3Z6KKS.js} +1 -1
- package/build/js/chunks/{chunk-QPR2YHD4.js → chunk-YJNJGCAN.js} +1 -1
- package/build/js/chunks/chunk-YMM2PV73.js +6 -0
- package/build/js/chunks/chunk-YONR3EGV.js +2 -0
- package/build/js/chunks/{chunk-6EEMWSEO.js → chunk-YP53ND2Q.js} +1 -1
- package/build/js/chunks/{chunk-NT5WI2PS.js → chunk-YUZDO2PC.js} +1 -1
- package/build/js/chunks/{chunk-NY2HBST4.js → chunk-YXXMWHFX.js} +1 -1
- package/build/js/controls/CameraFOVSwitchControl.d.ts +4 -2
- package/build/js/controls/CameraFOVSwitchControl.js +1 -1
- package/build/js/controls/CameraSwitchControl.d.ts +4 -2
- package/build/js/controls/CameraSwitchControl.js +1 -1
- package/build/js/controls/TorchSwitchControl.d.ts +4 -2
- package/build/js/controls/TorchSwitchControl.js +1 -1
- package/build/js/controls/common.d.ts +4 -2
- package/build/js/controls/index.d.ts +4 -2
- package/build/js/controls/index.js +1 -1
- package/build/js/defaults/DefaultsCamera.d.ts +4 -2
- package/build/js/defaults/DefaultsCameraSettings.d.ts +1 -1
- package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
- package/build/js/index.d.ts +5 -3
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +4 -2
- package/build/js/private/AdditionalLayerPosition.d.ts +6 -0
- package/build/js/private/AdditionalLayerPosition.js +1 -0
- package/build/js/private/BatteryInterface.d.ts +81 -0
- package/build/js/private/BatteryInterface.js +1 -0
- package/build/js/private/CameraAccess.d.ts +1 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +5 -3
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +4 -2
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +4 -2
- package/build/js/private/FrameReaders/FrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +4 -2
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +4 -2
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/SingleImageUploaderView.d.ts +4 -2
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +4 -2
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -2
- package/build/js/private/customHowler.d.ts +27 -0
- package/build/js/private/customHowler.js +1 -0
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +4 -2
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +4 -2
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +4 -2
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/ImageConverterForwarder.d.ts +4 -2
- package/build/js/worker/ViewInfoHelper.d.ts +4 -2
- package/build/js/worker/WorkerMain.d.ts +4 -2
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -2
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +4 -2
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +4 -2
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -2
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/index.d.ts +4 -2
- package/build/js/worker/index.js +1 -1
- package/package.json +6 -6
- package/build/js/chunks/chunk-A225YZFY.js +0 -2
- package/build/js/chunks/chunk-LH2NI5UL.js +0 -2
- package/build/js/chunks/chunk-Q5WJX5JB.js +0 -1
- package/build/js/chunks/chunk-RVAHEVSC.js +0 -1
- package/build/js/chunks/chunk-TR5HATUD.js +0 -1
- package/build/js/chunks/chunk-TTMLHWYT.js +0 -6
- package/build/js/chunks/chunk-UOQFOEG6.js +0 -1
- package/build/js/chunks/chunk-VQYVIA64.js +0 -1
- package/build/js/chunks/chunk-ZDROGZFO.js +0 -1
- /package/build/js/chunks/{chunk-TU2LKPHV.js → chunk-FHNMZZV2.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LoadingOverlay}from'../../../chunks/chunk-
|
|
1
|
+
export{a as LoadingOverlay}from'../../../chunks/chunk-ARODHCN7.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { T as TorchState } from '../../../Camera-
|
|
2
|
+
import { T as TorchState } from '../../../Camera-BnPnXqAt.js';
|
|
3
3
|
import { GestureRecognizerListener } from '../../GestureRecognizer/GestureRecognizer.js';
|
|
4
4
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
5
5
|
import '../../../commons/Rect.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {c}from'../../../chunks/chunk-74GO72VC.js';import {a as a$3}from'../../../chunks/chunk-NMXQDQYI.js';import {a as a$2}from'../../../chunks/chunk-SX5ZLP2O.js';import {a as a$7}from'../../../chunks/chunk-XIAF6V7E.js';import {a as a$6}from'../../../chunks/chunk-SGL5J2CI.js';import {a as a$1}from'../../../chunks/chunk-UWBNF47P.js';import {a}from'../../../chunks/chunk-EV4OEANA.js';import {a as a$4}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$5}from'../../../chunks/chunk-LSZZVJ6B.js';var s=class s extends a{constructor(){super();this._size=32;this._shadow=false;this._ariaLabel="Toggle torch";this._useCustomImages=false;let t=this.attachShadow({mode:"open"});t.innerHTML=a$1`<button><slot></slot></button>`,t.append(s.createStyleElement().cloneNode(true));}get button(){var t,e;return (e=(t=this.shadowRoot)==null?void 0:t.querySelector("button"))!=null?e:void 0}get onIcon(){var t;return (t=this.querySelector(a$2.tag))!=null?t:void 0}get offIcon(){var t;return (t=this.querySelector(a$3.tag))!=null?t:void 0}set size(t){this._size=t;let e=this.onIcon,o=this.offIcon;e&&(e.size=this._size),o&&(o.size=this._size);}get size(){return this._size}set shadow(t){this._shadow=t;let e=this.onIcon,o=this.offIcon;e&&e.toggleAttribute("shadow",this._shadow),o&&o.toggleAttribute("shadow",this._shadow);}get shadow(){return this._shadow}get state(){var t;return (t=this.getAttribute("state"))!=null?t:"off"}set state(t){this.setAttribute("state",t),this.setAttribute("aria-pressed",t==="on"?"true":"false");}get ariaLabel(){return this._ariaLabel}set ariaLabel(t){this._ariaLabel=t,this.setAttribute("aria-label",t);}set useCustomImages(t){this._useCustomImages=t,t?this.setAttribute("data-use-custom-images","true"):this.removeAttribute("data-use-custom-images");}setCustomImages(t){let e=this.style,o=t.on.idle?`url(${JSON.stringify(t.on.idle)})`:"none",i=t.on.pressed?`url(${JSON.stringify(t.on.pressed)})`:"none",n=t.off.idle?`url(${JSON.stringify(t.off.idle)})`:"none",b=t.off.pressed?`url(${JSON.stringify(t.off.pressed)})`:"none";e.setProperty("--torch-on-idle",o),e.setProperty("--torch-on-pressed",i),e.setProperty("--torch-off-idle",n),e.setProperty("--torch-off-pressed",b),this.useCustomImages=true;}static create(){return document.createElement(s.tag)}static register(){a$4({[s.tag]:s});}static createStyleElement(){return a$5`:host{display:inline-block;--button-size:32px;--torch-on-idle:none;--torch-on-pressed:none;--torch-off-idle:none;--torch-off-pressed:none}:host[hidden]{display:none}:host button{align-items:center;background:none;background-position:50%;background-repeat:no-repeat;background-size:contain;border:none;cursor:pointer;display:flex;height:var(--button-size);justify-content:center;margin:0;opacity:1;outline:none;padding:0;width:var(--button-size);-webkit-tap-highlight-color:transparent;transform-origin:center;transition:outline .2s ease-in-out,opacity .2s ease-in-out,transform .1s ease-in-out}:host([state=off]) button{opacity:.5}button[data-pressed=true]{transform:scale(.95)}button[data-pressed=false]{transform:scale(1)}:host button:focus-visible{outline:2px solid #06c;outline-offset:2px}:host([data-use-custom-images=true]) ::slotted(*){display:none!important}:host([data-use-custom-images=true][state=on]) button{background-image:var(--torch-on-idle)}:host([data-use-custom-images=true][state=on]) button[data-pressed=true]{background-image:var(--torch-on-pressed)}:host([data-use-custom-images=true][state=off]) button{background-image:var(--torch-off-idle)}:host([data-use-custom-images=true][state=off]) button[data-pressed=true]{background-image:var(--torch-off-pressed)}`}connectedCallback(){if(!this.button)return;if(a$2.register(),a$3.register(),!this.onIcon||!this.offIcon){let o=a$6.fromHex("#FFFFFF"),i=a$2.create(),n=a$3.create();i.toggleAttribute("shadow",this._shadow),n.toggleAttribute("shadow",this._shadow),i.size=this._size,n.size=this._size,n.fill=`#${o.toJSON()}`,i.fill=`#${o.toJSON()}`,this.appendChild(i),this.appendChild(n);}let t="off";(this.getAttribute("state")==="on"||this.getAttribute("state")==="off")&&(t=this.getAttribute("state")),this.state=t;let e=this.button;!this._gestureRecognizer&&e&&(this._gestureRecognizer=new a$7(e),this._gestureRecognizer.addListener(this)),this.setAttribute("aria-label",this._ariaLabel),this.setAttribute("aria-pressed",t==="on"?"true":"false");}attributeChangedCallback(t,e,o){t==="state"&&this.render(o);}render(t){let e=this.onIcon,o=this.offIcon;t==="on"?(o!=null&&(o.style.display="none"),e!=null&&(e.style.display="flex")):(e!=null&&(e.style.display="none"),o!=null&&(o.style.display="flex"));}disconnectedCallback(){this._gestureRecognizer&&(this._gestureRecognizer.removeAllListeners(),this._gestureRecognizer=void 0);}onTap(){this.dispatchEvent(new c({currentState:this.state}));}onPress(){let t=this.button;t&&t.setAttribute("data-pressed","true");}onRelease(){let t=this.button;t&&t.setAttribute("data-pressed","false");}};s.tag="scandit-torch-switch-icon-button",s.observedAttributes=["state"];var g=s;export{g as TorchSwitchIconButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
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{b as safeAwaitAnimation,a as safeCancelAnimation}from'../../chunks/chunk-EQ6V4W5K.js';export{a as domIdFromValues}from'../../chunks/chunk-2LSO6JEZ.js';export{a as html,b as renderIf}from'../../chunks/chunk-UWBNF47P.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 AsyncStateMachine}from'../../chunks/chunk-LXOZUOZU.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 css}from'../../chunks/chunk-LSZZVJ6B.js';export{a as fromEntries}from'../../chunks/chunk-RG272MAJ.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';export{b as cancelSafeRequestAnimationFrame,a as safeRequestAnimationFrame}from'../../chunks/chunk-CX2R2XQK.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as loadPolyfills}from'../../chunks/chunk-
|
|
1
|
+
export{a as loadPolyfills}from'../../chunks/chunk-O5D4KVS5.js';
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { Size } from '../../commons/Size.js';
|
|
3
3
|
import { Optional } from '../../tsHelper.js';
|
|
4
4
|
import '../../ScanditIcon.js';
|
|
5
|
-
import '../../DataCaptureContext-
|
|
5
|
+
import '../../DataCaptureContext-LM_Re1B4.js';
|
|
6
6
|
import '../Serializable.js';
|
|
7
7
|
import '../../commons/Color.js';
|
|
8
8
|
import './ScanditHTMLElement.js';
|
|
9
|
-
import '../../Camera-
|
|
9
|
+
import '../../Camera-BnPnXqAt.js';
|
|
10
10
|
import '../../commons/Rect.js';
|
|
11
11
|
import '../../commons/Point.js';
|
|
12
12
|
import '../privateAccess.js';
|
|
@@ -27,9 +27,11 @@ import '../CustomLocationsView.js';
|
|
|
27
27
|
import '../View.js';
|
|
28
28
|
import '../AnchorPositions.js';
|
|
29
29
|
import '../nativeHandle.js';
|
|
30
|
+
import '../AdditionalLayerPosition.js';
|
|
30
31
|
import '../../license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
32
|
import '../../logger.js';
|
|
32
33
|
import '../FrameReaders/ColorType.js';
|
|
34
|
+
import '../BatteryInterface.js';
|
|
33
35
|
import '../../LoadingStatus.js';
|
|
34
36
|
import '../djinni-types/index.js';
|
|
35
37
|
import '../HtmlElementState.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {b}from'../../chunks/chunk-
|
|
1
|
+
import {b}from'../../chunks/chunk-YONR3EGV.js';import {a as a$1}from'../../chunks/chunk-XR65N6EG.js';async function a(){let[{missingFeatures:t},i]=await Promise.all([b.checkBrowserCompatibility(),b.checkMultithreadingSupport()]);i||(a$1.warn("Multithreading is not supported."),t.includes("crossOriginIsolated")&&a$1.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$1.warn("SharedArrayBuffer not supported. Check the requirements here: https://docs.scandit.com/system-requirements#web-sdk"));}
|
|
2
2
|
export{a as warnMultithreadingUnavailable};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ImageConverterInstance, ImageBuffer, BitmapWithFormat } from '../private/djinni-types/index.js';
|
|
3
|
-
import { W as WorkerFunctions } from '../DataCaptureContext-
|
|
4
|
-
import '../Camera-
|
|
3
|
+
import { W as WorkerFunctions } from '../DataCaptureContext-LM_Re1B4.js';
|
|
4
|
+
import '../Camera-BnPnXqAt.js';
|
|
5
5
|
import '../commons/Rect.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
7
7
|
import '../commons/Point.js';
|
|
@@ -27,9 +27,11 @@ import '../private/CustomLocationsView.js';
|
|
|
27
27
|
import '../private/View.js';
|
|
28
28
|
import '../private/AnchorPositions.js';
|
|
29
29
|
import '../private/nativeHandle.js';
|
|
30
|
+
import '../private/AdditionalLayerPosition.js';
|
|
30
31
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
32
|
import '../logger.js';
|
|
32
33
|
import '../private/FrameReaders/ColorType.js';
|
|
34
|
+
import '../private/BatteryInterface.js';
|
|
33
35
|
import '../LoadingStatus.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
35
37
|
import '../commons/SizeWithUnit.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { V as ViewInfo } from '../DataCaptureContext-
|
|
3
|
-
import '../Camera-
|
|
2
|
+
import { V as ViewInfo } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
|
+
import '../Camera-BnPnXqAt.js';
|
|
4
4
|
import '../commons/Rect.js';
|
|
5
5
|
import '../private/Serializable.js';
|
|
6
6
|
import '../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { K as DataCaptureEngine, L as Module, Q as AnyDataCaptureActionMessage, R as AugmentedWorker, S as ModuleHandler, T as DataCaptureCallbackMessage, U as DataCaptureActionMessageKey, X as EngineWorkerResponse } from '../DataCaptureContext-
|
|
3
|
-
import '../Camera-
|
|
2
|
+
import { K as DataCaptureEngine, L as Module, Q as AnyDataCaptureActionMessage, R as AugmentedWorker, S as ModuleHandler, T as DataCaptureCallbackMessage, U as DataCaptureActionMessageKey, X as EngineWorkerResponse } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
|
+
import '../Camera-BnPnXqAt.js';
|
|
4
4
|
import '../commons/Rect.js';
|
|
5
5
|
import '../private/Serializable.js';
|
|
6
6
|
import '../commons/Point.js';
|
|
@@ -26,9 +26,11 @@ import '../private/CustomLocationsView.js';
|
|
|
26
26
|
import '../private/View.js';
|
|
27
27
|
import '../private/AnchorPositions.js';
|
|
28
28
|
import '../private/nativeHandle.js';
|
|
29
|
+
import '../private/AdditionalLayerPosition.js';
|
|
29
30
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
31
|
import '../logger.js';
|
|
31
32
|
import '../private/FrameReaders/ColorType.js';
|
|
33
|
+
import '../private/BatteryInterface.js';
|
|
32
34
|
import '../LoadingStatus.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-YXXMWHFX.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { K as DataCaptureEngine, L as Module } from '../DataCaptureContext-
|
|
2
|
+
import { K as DataCaptureEngine, L as Module } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
3
|
import { WorkerMain } from './WorkerMain.js';
|
|
4
|
-
import '../Camera-
|
|
4
|
+
import '../Camera-BnPnXqAt.js';
|
|
5
5
|
import '../commons/Rect.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
7
7
|
import '../commons/Point.js';
|
|
@@ -27,9 +27,11 @@ import '../private/CustomLocationsView.js';
|
|
|
27
27
|
import '../private/View.js';
|
|
28
28
|
import '../private/AnchorPositions.js';
|
|
29
29
|
import '../private/nativeHandle.js';
|
|
30
|
+
import '../private/AdditionalLayerPosition.js';
|
|
30
31
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
32
|
import '../logger.js';
|
|
32
33
|
import '../private/FrameReaders/ColorType.js';
|
|
34
|
+
import '../private/BatteryInterface.js';
|
|
33
35
|
import '../LoadingStatus.js';
|
|
34
36
|
import '../private/djinni-types/index.js';
|
|
35
37
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-
|
|
1
|
+
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-WBYBTOBZ.js';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
+
import '../private/BatteryInterface.js';
|
|
2
3
|
import '../LoadingStatus.js';
|
|
3
4
|
import '../commons/Point.js';
|
|
4
5
|
import '../commons/Orientation.js';
|
|
5
|
-
export {
|
|
6
|
+
export { a1 as CreateContextParameters, K as DataCaptureEngine, aJ as LoadLibraryParameters, aT as ProcessFrameParameters, aW as ReportCameraPropertiesParameters, a_ as SetFrameSourceParameters, ba as UpdateContextParameters, W as WorkerFunctions } from '../DataCaptureContext-LM_Re1B4.js';
|
|
6
7
|
import '../ScanditIcon.js';
|
|
7
8
|
import '../private/FrameReaders/ColorType.js';
|
|
8
9
|
import '../private/djinni-types/index.js';
|
|
9
10
|
import '../private/Serializable.js';
|
|
10
|
-
import '../Camera-
|
|
11
|
+
import '../Camera-BnPnXqAt.js';
|
|
11
12
|
import '../commons/Rect.js';
|
|
12
13
|
import '../commons/Size.js';
|
|
13
14
|
import '../private/privateAccess.js';
|
|
@@ -29,6 +30,7 @@ import '../private/CustomLocationsView.js';
|
|
|
29
30
|
import '../private/View.js';
|
|
30
31
|
import '../private/AnchorPositions.js';
|
|
31
32
|
import '../private/nativeHandle.js';
|
|
33
|
+
import '../private/AdditionalLayerPosition.js';
|
|
32
34
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
33
35
|
import '../logger.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-M2ZQCUEL.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export {
|
|
2
|
+
export { k as DataCaptureLoader, l as DataCaptureLoaderOptions } from '../DataCaptureContext-LM_Re1B4.js';
|
|
3
3
|
import '../LoadingStatus.js';
|
|
4
4
|
import '../logger.js';
|
|
5
5
|
import '../ScanditIcon.js';
|
|
6
|
-
import '../Camera-
|
|
6
|
+
import '../Camera-BnPnXqAt.js';
|
|
7
7
|
import '../commons/Rect.js';
|
|
8
8
|
import '../private/Serializable.js';
|
|
9
9
|
import '../commons/Point.js';
|
|
@@ -28,8 +28,10 @@ import '../private/CustomLocationsView.js';
|
|
|
28
28
|
import '../private/View.js';
|
|
29
29
|
import '../private/AnchorPositions.js';
|
|
30
30
|
import '../private/nativeHandle.js';
|
|
31
|
+
import '../private/AdditionalLayerPosition.js';
|
|
31
32
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
32
33
|
import '../private/FrameReaders/ColorType.js';
|
|
34
|
+
import '../private/BatteryInterface.js';
|
|
33
35
|
import '../private/djinni-types/index.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
35
37
|
import '../commons/SizeWithUnit.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureLoader}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-YJNJGCAN.js';
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import '../commons/Orientation.js';
|
|
3
3
|
import '../commons/Point.js';
|
|
4
4
|
import '../commons/Rect.js';
|
|
5
|
-
export {
|
|
5
|
+
export { Y as AddNativeOverlayAction, Q as AnyDataCaptureActionMessage, R as AugmentedWorker, Z as BatteryData, _ as CaptureModeDeserializerInstance, $ as ConvertToJPEGResultDataCaptureAction, a0 as CreateContextDataCaptureAction, U as DataCaptureActionMessageKey, T as DataCaptureCallbackMessage, a2 as DataCaptureCallbackMessageKeys, a3 as DataCaptureContext, a4 as DataCaptureContextDeserializer, a5 as DataCaptureContextDeserializerResult, a6 as DataCaptureImageBufferFrameSource, a7 as DataCaptureView, a8 as DataCaptureWorker, a9 as DeleteFrameDataDataCaptureAction, aa as DeviceInterfaceInstance, ab as DidTapTrackedBarcode, ac as DisposeDataCaptureAction, ad as EmscriptenClassHandle, X as EngineWorkerResponse, ae as ExtractCentaurusLicenseDataCaptureAction, af as ExtractCentaurusLicenseResponse, ag as FlushAnalyticsDataCaptureAction, N as GenericHint, ah as GestureListener, ai as GestureRecognizer, aj as GetOpenSourceSoftwareLicenseInfoAction, ak as GetOpenSourceSoftwareLicenseInfoResponse, al as GetViewfinderInfoAction, am as GetViewfinderInfoResponse, an as GuidanceHint, ao as GuidanceHintAnchor, ap as GuidanceHintStyle, aq as HideGuidanceMessage, ar as HideHintWorkerMessage, as as HideToastMessage, at as HintAnchor, au as HintCornerStyle, av as HintFont, aw as HintHeight, ax as HintIcon, ay as HintPresenterV2, az as HintPresenterV2updateAction, aA as HintStyle, aB as HintTextAlignment, aC as HintWidth, aD as IsFeatureSupportedAction, aE as IsFeatureSupportedMessage, aF as IsFeatureSupportedResponse, aG as JSONParseable, aH as LicensedFeature, aI as LoadLibraryDataCaptureAction, L as Module, S as ModuleHandler, aK as ModuleMirrorAxis, aL as OnFrameProcessingFinishedMessage, aM as OnFrameProcessingStartedMessage, aN as OnFrameSkippedMessage, aO as OnTapAction, aP as PayloadForCommand, I as PerformanceMetrics, aQ as PerformanceMetricsReportMessage, aR as PlatformHintPresenter, aS as ProcessFrameDataCaptureAction, aU as RemoveNativeOverlayAction, aV as ReportCameraPropertiesDataCaptureAction, aX as RequestFrameDataDataCaptureAction, aY as RequestFrameDataResponse, aZ as SetFrameSourceDataCaptureAction, a$ as SetLogLevelDataCaptureAction, b0 as ShowGuidanceMessage, b1 as ShowHintWorkerMessage, b2 as ShowToastMessage, b3 as StartUpdateTimerMessage, b4 as StopUpdateTimerMessage, b5 as SuccessFeedbackWorkerMessage, b6 as ToastHint, b7 as ToastHintStyle, b8 as UpdateBatteryInfoDataCaptureAction, b9 as UpdateContextDataCaptureAction, bb as UpdateHintWorkerMessage, bc as Vector, V as ViewInfo, bd as ViewSizeChangedMessage, be as VisibilityChangeAction, bf as WasmFrameData, bg as WorkerResponse } from '../DataCaptureContext-LM_Re1B4.js';
|
|
6
6
|
import '../LoadingStatus.js';
|
|
7
7
|
import '../logger.js';
|
|
8
|
+
import '../private/BatteryInterface.js';
|
|
8
9
|
import '../private/FrameReaders/ColorType.js';
|
|
9
10
|
import '../private/djinni-types/index.js';
|
|
10
11
|
import '../private/Serializable.js';
|
|
11
12
|
import '../commons/Size.js';
|
|
12
|
-
import '../Camera-
|
|
13
|
+
import '../Camera-BnPnXqAt.js';
|
|
13
14
|
import '../private/privateAccess.js';
|
|
14
15
|
import '../DataCaptureContextSettings.js';
|
|
15
16
|
import '../commons/JSONType.js';
|
|
@@ -30,6 +31,7 @@ import '../private/CustomLocationsView.js';
|
|
|
30
31
|
import '../private/View.js';
|
|
31
32
|
import '../private/AnchorPositions.js';
|
|
32
33
|
import '../private/nativeHandle.js';
|
|
34
|
+
import '../private/AdditionalLayerPosition.js';
|
|
33
35
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
34
36
|
import '../private/HtmlElementState.js';
|
|
35
37
|
import '../commons/SizeWithUnit.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-WFKB322J.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
export { WorkerMain } from './WorkerMain.js';
|
|
3
|
-
export {
|
|
4
|
-
import '../Camera-
|
|
3
|
+
export { Y as AddNativeOverlayAction, Q as AnyDataCaptureActionMessage, R as AugmentedWorker, Z as BatteryData, _ as CaptureModeDeserializerInstance, $ as ConvertToJPEGResultDataCaptureAction, a0 as CreateContextDataCaptureAction, a1 as CreateContextParameters, U as DataCaptureActionMessageKey, T as DataCaptureCallbackMessage, a2 as DataCaptureCallbackMessageKeys, a3 as DataCaptureContext, a4 as DataCaptureContextDeserializer, a5 as DataCaptureContextDeserializerResult, K as DataCaptureEngine, a6 as DataCaptureImageBufferFrameSource, k as DataCaptureLoader, l as DataCaptureLoaderOptions, a7 as DataCaptureView, a8 as DataCaptureWorker, a9 as DeleteFrameDataDataCaptureAction, aa as DeviceInterfaceInstance, ab as DidTapTrackedBarcode, ac as DisposeDataCaptureAction, ad as EmscriptenClassHandle, X as EngineWorkerResponse, ae as ExtractCentaurusLicenseDataCaptureAction, af as ExtractCentaurusLicenseResponse, ag as FlushAnalyticsDataCaptureAction, N as GenericHint, ah as GestureListener, ai as GestureRecognizer, aj as GetOpenSourceSoftwareLicenseInfoAction, ak as GetOpenSourceSoftwareLicenseInfoResponse, al as GetViewfinderInfoAction, am as GetViewfinderInfoResponse, an as GuidanceHint, ao as GuidanceHintAnchor, ap as GuidanceHintStyle, aq as HideGuidanceMessage, ar as HideHintWorkerMessage, as as HideToastMessage, at as HintAnchor, au as HintCornerStyle, av as HintFont, aw as HintHeight, ax as HintIcon, ay as HintPresenterV2, az as HintPresenterV2updateAction, aA as HintStyle, aB as HintTextAlignment, aC as HintWidth, aD as IsFeatureSupportedAction, aE as IsFeatureSupportedMessage, aF as IsFeatureSupportedResponse, aG as JSONParseable, aH as LicensedFeature, aI as LoadLibraryDataCaptureAction, aJ as LoadLibraryParameters, L as Module, S as ModuleHandler, aK as ModuleMirrorAxis, aL as OnFrameProcessingFinishedMessage, aM as OnFrameProcessingStartedMessage, aN as OnFrameSkippedMessage, aO as OnTapAction, aP as PayloadForCommand, I as PerformanceMetrics, aQ as PerformanceMetricsReportMessage, aR as PlatformHintPresenter, aS as ProcessFrameDataCaptureAction, aT as ProcessFrameParameters, aU as RemoveNativeOverlayAction, aV as ReportCameraPropertiesDataCaptureAction, aW as ReportCameraPropertiesParameters, aX as RequestFrameDataDataCaptureAction, aY as RequestFrameDataResponse, aZ as SetFrameSourceDataCaptureAction, a_ as SetFrameSourceParameters, a$ as SetLogLevelDataCaptureAction, b0 as ShowGuidanceMessage, b1 as ShowHintWorkerMessage, b2 as ShowToastMessage, b3 as StartUpdateTimerMessage, b4 as StopUpdateTimerMessage, b5 as SuccessFeedbackWorkerMessage, b6 as ToastHint, b7 as ToastHintStyle, b8 as UpdateBatteryInfoDataCaptureAction, b9 as UpdateContextDataCaptureAction, ba as UpdateContextParameters, bb as UpdateHintWorkerMessage, bc as Vector, V as ViewInfo, bd as ViewSizeChangedMessage, be as VisibilityChangeAction, bf as WasmFrameData, W as WorkerFunctions, bg as WorkerResponse } from '../DataCaptureContext-LM_Re1B4.js';
|
|
4
|
+
import '../Camera-BnPnXqAt.js';
|
|
5
5
|
import '../commons/Rect.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
7
7
|
import '../commons/Point.js';
|
|
@@ -27,9 +27,11 @@ import '../private/CustomLocationsView.js';
|
|
|
27
27
|
import '../private/View.js';
|
|
28
28
|
import '../private/AnchorPositions.js';
|
|
29
29
|
import '../private/nativeHandle.js';
|
|
30
|
+
import '../private/AdditionalLayerPosition.js';
|
|
30
31
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
32
|
import '../logger.js';
|
|
32
33
|
import '../private/FrameReaders/ColorType.js';
|
|
34
|
+
import '../private/BatteryInterface.js';
|
|
33
35
|
import '../LoadingStatus.js';
|
|
34
36
|
import '../private/djinni-types/index.js';
|
|
35
37
|
import '../private/HtmlElementState.js';
|
package/build/js/worker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureLoader}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-YJNJGCAN.js';export{a as WorkerMain}from'../chunks/chunk-YXXMWHFX.js';export{a as DataCaptureEngine}from'../chunks/chunk-M2ZQCUEL.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-WFKB322J.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scandit/web-datacapture-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0-beta.1",
|
|
4
4
|
"description": "Scandit Data Capture SDK for the Web",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -117,9 +117,11 @@
|
|
|
117
117
|
"postbuild-coverage": "tsx --tsconfig tsconfig.node.json postbuild.ts",
|
|
118
118
|
"postbuild-dev": "tsx --tsconfig tsconfig.node.json postbuild.ts",
|
|
119
119
|
"clean": "rm -rf build/* coverage/* .nyc_output/*",
|
|
120
|
-
"test": "
|
|
121
|
-
"test-ci": "
|
|
122
|
-
"test-ci-coverage": "
|
|
120
|
+
"test": "vitest run",
|
|
121
|
+
"test-ci": "vitest run",
|
|
122
|
+
"test-ci-coverage": "vitest run --coverage",
|
|
123
|
+
"check": "biome check .",
|
|
124
|
+
"check-ci": "biome ci --diagnostic-level=error ."
|
|
123
125
|
},
|
|
124
126
|
"peerDependencies": {
|
|
125
127
|
"electron": ">= 28"
|
|
@@ -133,11 +135,9 @@
|
|
|
133
135
|
},
|
|
134
136
|
"dependencies": {
|
|
135
137
|
"@types/emscripten": "1.40.1",
|
|
136
|
-
"@types/howler": "2.2.12",
|
|
137
138
|
"@types/offscreencanvas": "2019.7.3",
|
|
138
139
|
"@types/ua-parser-js": "0.7.39",
|
|
139
140
|
"csstype": "3.1.3",
|
|
140
|
-
"howler": "2.2.4",
|
|
141
141
|
"ua-parser-js": "1.0.40",
|
|
142
142
|
"wasm-feature-detect": "1.8.0"
|
|
143
143
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-KXAJHLEO.js';import {a as a$3}from'./chunk-AAEQZ45T.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-SBC5K7IT.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((J,le)=>{(function(O,w){var be="1.0.40",V="",_="?",q="function",M="undefined",Q="object",K="string",ee="major",i="model",t="name",e="type",o="vendor",n="version",A="architecture",W="console",b="mobile",u="tablet",k="smarttv",E="wearable",ie="embedded",Y=500,z="Amazon",I="Apple",ce="ASUS",ue="BlackBerry",F="Browser",X="Chrome",pe="Edge",G="Firefox",j="Google",$="Huawei",a="LG",s="Microsoft",r="Motorola",d="Opera",g="Samsung",h="Sharp",x="Sony",y="Xiaomi",B="Zebra",oe="Facebook",P="Chromium OS",L="Mac OS",te=" Browser",ne=function(p,m){var c={};for(var v in p)m[v]&&m[v].length%2===0?c[v]=m[v].concat(p[v]):c[v]=p[v];return c},N=function(p){for(var m={},c=0;c<p.length;c++)m[p[c].toUpperCase()]=p[c];return m},D=function(p,m){return typeof p===K?R(m).indexOf(R(p))!==-1:false},R=function(p){return p.toLowerCase()},re=function(p){return typeof p===K?p.replace(/[^\d\.]/g,V).split(".")[0]:w},we=function(p,m){if(typeof p===K)return p=p.replace(/^\s\s*/,V),typeof m===M?p:p.substring(0,Y)},Z=function(p,m){for(var c=0,v,U,C,f,l,T;c<m.length&&!l;){var de=m[c],ge=m[c+1];for(v=U=0;v<de.length&&!l&&de[v];)if(l=de[v++].exec(p),l)for(C=0;C<ge.length;C++)T=l[++U],f=ge[C],typeof f===Q&&f.length>0?f.length===2?typeof f[1]==q?this[f[0]]=f[1].call(this,T):this[f[0]]=f[1]:f.length===3?typeof f[1]===q&&!(f[1].exec&&f[1].test)?this[f[0]]=T?f[1].call(this,T,f[2]):w:this[f[0]]=T?T.replace(f[1],f[2]):w:f.length===4&&(this[f[0]]=T?f[3].call(this,T.replace(f[1],f[2])):w):this[f]=T||w;c+=2;}},ae=function(p,m){for(var c in m)if(typeof m[c]===Q&&m[c].length>0){for(var v=0;v<m[c].length;v++)if(D(m[c][v],p))return c===_?w:c}else if(D(m[c],p))return c===_?w:c;return m.hasOwnProperty("*")?m["*"]:p},Te={"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"},fe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[t,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[t,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[t,n],[/opios[\/ ]+([\w\.]+)/i],[n,[t,d+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[t,d+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[t,d]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[t,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[t,"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],[t,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[t,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[t,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[t,"UC"+F]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[t,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[t,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[t,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[t,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[t,"Smart Lenovo "+F]],[/(avast|avg)\/([\w\.]+)/i],[[t,/(.+)/,"$1 Secure "+F],n],[/\bfocus\/([\w\.]+)/i],[n,[t,G+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[t,d+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[t,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[t,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[t,d+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[t,"MIUI"+te]],[/fxios\/([\w\.-]+)/i],[n,[t,G]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[t,"360"]],[/\b(qq)\/([\w\.]+)/i],[[t,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[t,/(.+)/,"$1"+te],n],[/samsungbrowser\/([\w\.]+)/i],[n,[t,g+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[t,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[t,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[t,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[t],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,t],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[t,oe],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],[t,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[t,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[t,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[t,X+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[t,X+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[t,"Android "+F]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[t,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[t,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,t],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[t,[n,ae,Te]],[/(webkit|khtml)\/([\w\.]+)/i],[t,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[t,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[t,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[t,G+" 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],[t,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[t,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,R]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,V,R]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,R]]],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],[i,[o,g],[e,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],[i,[o,g],[e,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[o,I],[e,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[o,I],[e,u]],[/(macintosh);/i],[i,[o,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[o,h],[e,b]],[/(?:honor)([-\w ]+)[;\)]/i],[i,[o,"Honor"],[e,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[o,$],[e,u]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[i,[o,$],[e,b]],[/\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],[[i,/_/g," "],[o,y],[e,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[i,/_/g," "],[o,y],[e,u]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[o,"OPPO"],[e,b]],[/\b(opd2\d{3}a?) bui/i],[i,[o,"OPPO"],[e,u]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[o,"Vivo"],[e,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[i,[o,"Realme"],[e,b]],[/\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],[i,[o,r],[e,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[o,r],[e,u]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[o,a],[e,u]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[i,[o,a],[e,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[i,[o,"Lenovo"],[e,u]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[i,/_/g," "],[o,"Nokia"],[e,b]],[/(pixel c)\b/i],[i,[o,j],[e,u]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[o,j],[e,b]],[/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],[i,[o,x],[e,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,"Xperia Tablet"],[o,x],[e,u]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[o,"OnePlus"],[e,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[o,z],[e,u]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,"Fire Phone $1"],[o,z],[e,b]],[/(playbook);[-\w\),; ]+(rim)/i],[i,o,[e,u]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[o,ue],[e,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[o,ce],[e,u]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[o,ce],[e,b]],[/(nexus 9)/i],[i,[o,"HTC"],[e,u]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[i,/_/g," "],[e,b]],[/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],[i,[o,"TCL"],[e,u]],[/(itel) ((\w+))/i],[[o,R],i,[e,ae,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[o,"Acer"],[e,u]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[o,"Meizu"],[e,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[i,[o,"Ulefone"],[e,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[i,[o,"Energizer"],[e,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[i,[o,"Cat"],[e,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[i,[o,"Smartfren"],[e,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[i,[o,"Nothing"],[e,b]],[/(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,i,[e,b]],[/(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,i,[e,u]],[/(surface duo)/i],[i,[o,s],[e,u]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[i,[o,"Fairphone"],[e,b]],[/(u304aa)/i],[i,[o,"AT&T"],[e,b]],[/\bsie-(\w*)/i],[i,[o,"Siemens"],[e,b]],[/\b(rct\w+) b/i],[i,[o,"RCA"],[e,u]],[/\b(venue[\d ]{2,7}) b/i],[i,[o,"Dell"],[e,u]],[/\b(q(?:mv|ta)\w+) b/i],[i,[o,"Verizon"],[e,u]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[i,[o,"Barnes & Noble"],[e,u]],[/\b(tm\d{3}\w+) b/i],[i,[o,"NuVision"],[e,u]],[/\b(k88) b/i],[i,[o,"ZTE"],[e,u]],[/\b(nx\d{3}j) b/i],[i,[o,"ZTE"],[e,b]],[/\b(gen\d{3}) b.+49h/i],[i,[o,"Swiss"],[e,b]],[/\b(zur\d{3}) b/i],[i,[o,"Swiss"],[e,u]],[/\b((zeki)?tb.*\b) b/i],[i,[o,"Zeki"],[e,u]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],i,[e,u]],[/\b(ns-?\w{0,9}) b/i],[i,[o,"Insignia"],[e,u]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[o,"NextBook"],[e,u]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],i,[e,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],i,[e,b]],[/\b(ph-1) /i],[i,[o,"Essential"],[e,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[o,"Envizen"],[e,u]],[/\b(trio[-\w\. ]+) b/i],[i,[o,"MachSpeed"],[e,u]],[/\btu_(1491) b/i],[i,[o,"Rotor"],[e,u]],[/(shield[\w ]+) b/i],[i,[o,"Nvidia"],[e,u]],[/(sprint) (\w+)/i],[o,i,[e,b]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[o,s],[e,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[o,B],[e,u]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[o,B],[e,b]],[/smart-tv.+(samsung)/i],[o,[e,k]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[o,g],[e,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,a],[e,k]],[/(apple) ?tv/i],[o,[i,I+" TV"],[e,k]],[/crkey/i],[[i,X+"cast"],[o,j],[e,k]],[/droid.+aft(\w+)( bui|\))/i],[i,[o,z],[e,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[o,h],[e,k]],[/(bravia[\w ]+)( bui|\))/i],[i,[o,x],[e,k]],[/(mitv-\w{5}) bui/i],[i,[o,y],[e,k]],[/Hbbtv.*(technisat) (.*);/i],[o,i,[e,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,we],[i,we],[e,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[e,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,i,[e,W]],[/droid.+; (shield) bui/i],[i,[o,"Nvidia"],[e,W]],[/(playstation [345portablevi]+)/i],[i,[o,x],[e,W]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[i,[o,s],[e,W]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[i,[o,g],[e,E]],[/((pebble))app/i],[o,i,[e,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[i,[o,I],[e,E]],[/droid.+; (glass) \d/i],[i,[o,j],[e,E]],[/droid.+; (wt63?0{2,3})\)/i],[i,[o,B],[e,E]],[/droid.+; (glass) \d/i],[i,[o,j],[e,E]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,i,[e,E]],[/; (quest( \d| pro)?)/i],[i,[o,oe],[e,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[e,ie]],[/(aeobc)\b/i],[i,[o,z],[e,ie]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[i,[e,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[e,u]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,u]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[e,b]],[/(android[-\w\. ]{0,9});.+buil/i],[i,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[t,pe+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[t,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[t,"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],[t,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,t]],os:[[/microsoft (windows) (vista|xp)/i],[t,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[t,[n,ae,me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,ae,me],[t,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[t,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[t,L],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,t],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[t,n],[/\(bb(10);/i],[n,[t,ue]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[t,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[t,G+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[t,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[t,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[t,X+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[t,P],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],[t,n],[/(sunos) ?([\w\.\d]*)/i],[[t,"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],[t,n]]},S=function(p,m){if(typeof p===Q&&(m=p,p=w),!(this instanceof S))return new S(p,m).getResult();var c=typeof O!==M&&O.navigator?O.navigator:w,v=p||(c&&c.userAgent?c.userAgent:V),U=c&&c.userAgentData?c.userAgentData:w,C=m?ne(fe,m):fe,f=c&&c.userAgent==v;return this.getBrowser=function(){var l={};return l[t]=w,l[n]=w,Z.call(l,v,C.browser),l[ee]=re(l[n]),f&&c&&c.brave&&typeof c.brave.isBrave==q&&(l[t]="Brave"),l},this.getCPU=function(){var l={};return l[A]=w,Z.call(l,v,C.cpu),l},this.getDevice=function(){var l={};return l[o]=w,l[i]=w,l[e]=w,Z.call(l,v,C.device),f&&!l[e]&&U&&U.mobile&&(l[e]=b),f&&l[i]=="Macintosh"&&c&&typeof c.standalone!==M&&c.maxTouchPoints&&c.maxTouchPoints>2&&(l[i]="iPad",l[e]=u),l},this.getEngine=function(){var l={};return l[t]=w,l[n]=w,Z.call(l,v,C.engine),l},this.getOS=function(){var l={};return l[t]=w,l[n]=w,Z.call(l,v,C.os),f&&!l[t]&&U&&U.platform&&U.platform!="Unknown"&&(l[t]=U.platform.replace(/chrome os/i,P).replace(/macos/i,L)),l},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(l){return v=typeof l===K&&l.length>Y?we(l,Y):l,this},this.setUA(v),this};S.VERSION=be,S.BROWSER=N([t,n,ee]),S.CPU=N([A]),S.DEVICE=N([i,o,e,W,b,k,u,E,ie]),S.ENGINE=S.OS=N([t,n]),typeof J!==M?(typeof le!==M&&le.exports&&(J=le.exports=S),J.UAParser=S):typeof define===q&&define.amd?define(function(){return S}):typeof O!==M&&(O.UAParser=S);var H=typeof O!==M&&(O.jQuery||O.Zepto);if(H&&!H.ua){var se=new S;H.ua=se.getResult(),H.ua.get=function(){return se.getUA()},H.ua.set=function(p){se.setUA(p);var m=se.getResult();for(var c in m)H.ua[c]=m[c];};}})(typeof window=="object"?window:J);});var Ce=b(Ae(),1);var Re=(_=>(_.Standalone="standalone",_.Fullscreen="fullscreen",_.MinimalUI="minimal-ui",_.Browser="browser",_))(Re||{}),Ee;($=>{let O;function w(){return O==null&&(O=new Ce.default(navigator.userAgent)),O}$.getUserAgentInfo=w;function be(){var r;if("orientation"in window)return false;let a="(any-pointer: coarse)",s=(r=window.matchMedia)==null?void 0:r.call(window,a);return navigator.maxTouchPoints===0||(s==null?void 0:s.media)===a&&!(s!=null&&s.matches)}$.isDesktopDevice=be;function V(){return w().getDevice().model==="iPhone"}$.isIPhone=V;function _(){var h,x,y,B;let a=w(),s=(x=(h=a.getOS().name)==null?void 0:h.toLowerCase())!=null?x:"",r=a.getDevice(),d=(B=(y=r.model)==null?void 0:y.toLowerCase())!=null?B:"",g=r.type;return s.includes("ios")&&(g==="tablet"||d.includes("ipad"))}$.isIPad=_;function q(){var g,h,x,y;let a=(h=(g=w().getOS().name)==null?void 0:g.toLowerCase())!=null?h:"",s=w().getDevice(),r=s.type,d=(y=(x=s.model)==null?void 0:x.toLowerCase())!=null?y:"";return a.includes("mac")&&(r==="laptop"||d.includes("macintosh"))}$.isMacBook=q;function M(){return V()||_()||q()}$.isAppleDevice=M;function Q(){let a=w().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}$.isIOSDeviceWithExtendedCameraAccess=Q;function K(){return "document"in window?window.document.createElement("canvas"):null}$.getCanvas=K;function ee(a){return a.name==="iOS"&&a.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(a.version)}async function i(){return c()}$.hasSIMDSupport=i;async function t(){return d()}$.hasThreadsSupport=t;function e$1(a,s,r){let d=a[s[0]];return d==null?false:s.length===1?typeof d===r:(typeof d=="function"||typeof d=="object")&&e$1(d,s.slice(1),r)}function o(){var h;let a=true,s=null,r=null,d=null,g=null;try{if(s=$.getCanvas(),r=$.getCanvas(),d=s==null?void 0:s.getContext("webgl"),g=r==null?void 0:r.getContext("experimental-webgl"),!e$1(window,["WebGLRenderingContext"],"function")||d==null&&g==null)throw new Error("WebGLRenderingContext is not supported")}catch{a=false;}finally{for(let x of [d,g])typeof(x==null?void 0:x.getExtension)=="function"&&((h=x.getExtension("WEBGL_lose_context"))==null||h.loseContext());d=null,g=null,s=null,r=null;}return a}function n(){let a=true,s=true,r=new Set;location.protocol.startsWith("http")||r.add("httpProtocol"),e$1(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&r.add("secureContext"),!e$1(navigator,["mediaDevices","getUserMedia"],"function")&&!e$1(navigator,["enumerateDevices"],"function")&&!e$1(window,["MediaStreamTrack","getSources"],"function")&&(r.add("mediaDevices"),a=false),e$1(window,["Worker"],"function")||(r.add("webWorkers"),a=false,s=false),e$1(window,["WebAssembly"],"object")||(r.add("webAssembly"),a=false,s=false),e$1(window,["Blob"],"function")||(r.add("blob"),a=false,s=false),e$1(window,["URL","createObjectURL"],"function")||(r.add("urlObject"),a=false,s=false),e$1(window,["OffscreenCanvas"],"function")||r.add("offscreenCanvas"),o()||r.add("webGL");let d=w().getOS();return ee(d)&&(r.add("webAssemblyErrorFree"),a=false,s=false),b$1()||r.add("sharedArrayBuffer"),a$1()||r.add("crossOriginIsolated"),F()||r.add("animationApi"),{fullSupport:a,scannerSupport:s,missingFeatures:[...r]}}$.checkBrowserCompatibility=n;async function A(){return e()}$.checkMultithreadingSupport=A;async function W(){let a="scandit-device-id",s=a$2.getInstanceFor("localStorage"),r=s.getItem(a);if(r!=null&&r!=="")return r;let g=await a$3().get(a);if(r=g==null?void 0:g.value,r!=null&&r!=="")return s.setItem(a,r),r;let h=new Uint8Array(20);return crypto.getRandomValues(h),r=[...h].map(x=>{let y=x.toString(16);return y.length===1?`0${y}`:y}).join(""),s.setItem(a,r),r}$.getDeviceId=W;function b(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}$.isValidHTMLElement=b;function u(){var d,g;let a=w().getOS();if(a.name!=="iOS")return true;let[s,r]=(g=(d=a.version)==null?void 0:d.split(".").map(Number))!=null?g:[];return s>14||s===14&&r>=6}$.isSupportedIOSVersion=u;function k(){var a,s;return (s=(a=w().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?s:false}$.isSafari=k;function E(){var s,r;return /iphone|ipod|ipad/.test((r=(s=w().getDevice().model)==null?void 0:s.toLowerCase())!=null?r:"")&&!k()}$.isIosWebView=E;async function ie(){var s;return ((s=w().getOS().name)==null?void 0:s.toLowerCase())!=="android"?false:w().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([r])=>r.toLowerCase()==="x-requested-with")}$.isAndroidWebView=ie;function Y(){return w().getOS().name==="Windows"}$.isWindows=Y;function z(){return w().getBrowser().name==="Firefox"}$.isFirefox=z;function I(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}$.getSupportedVibrationMethod=I;function ce(){return I()!=null&&!be()&&!Y()&&!z()}$.isVibrationAvailable=ce;function ue(){return w().getOS().name==="iOS"}$.isIOS=ue;function F(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}$.isAnimationApiSupported=F;function X(){return "virtualKeyboard"in navigator}$.hasVirtualKeyboardSupport=X;function pe(a){var d;let s=`(display-mode: ${a})`,r=(d=globalThis.matchMedia)==null?void 0:d.call(globalThis,s);return (r==null?void 0:r.matches)===true?true:a==="standalone"&&typeof navigator=="object"&&"standalone"in navigator&&typeof navigator.standalone=="boolean"?navigator.standalone===true:false}$.isPwaDisplayMode=pe;function G(a,s,r){let d=P=>P.split(".").map(L=>Number.parseInt(L,10)||0),g=d(a),h=d(s),x=d(r),y=(P,L)=>{var ne,N;let te=Math.max(P.length,L.length);for(let D=0;D<te;D++){let R=(ne=P[D])!=null?ne:0,re=(N=L[D])!=null?N:0;if(R>re)return 1;if(R<re)return -1}return 0},B=y(g,h)>=0,oe=y(g,x)<0;return B&&oe}function j(){let s="26.3";if(M()){let r=w(),d=r.getOS(),g=r.getBrowser(),h=k()?g.version:d.version;return h?G(h,"26",s):false}return false}$.isFixedMemoryRequired=j;})(Ee||(Ee={}));
|
|
2
|
-
export{Re as a,Ee as b};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-XR65N6EG.js';import {a,b as b$1}from'./chunk-TR3NGINC.js';var F=a(k=>{(function(){var g=function(){this.init();};g.prototype={init:function(){var e=this||r;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=false,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator=typeof window<"u"&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=false,e.usingWebAudio=true,e.autoSuspend=true,e.ctx=null,e.autoUnlock=true,e._setup(),e},volume:function(e){var t=this||r;if(e=parseFloat(e),t.ctx||A(),typeof e<"u"&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,r.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var o=t._howls[n]._getSoundIds(),l=0;l<o.length;l++){var s=t._howls[n]._soundById(o[l]);s&&s._node&&(s._node.volume=s._volume*e);}return t}return t._volume},mute:function(e){var t=this||r;t.ctx||A(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,r.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var o=t._howls[n]._getSoundIds(),l=0;l<o.length;l++){var s=t._howls[n]._soundById(o[l]);s&&s._node&&(s._node.muted=e?true:s._muted);}return t},stop:function(){for(var e=this||r,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||r,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,A()),e},codecs:function(e){return (this||r)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||r;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var t=new Audio;typeof t.oncanplaythrough>"u"&&(e._canPlayEvent="canplay");}catch{e.noAudio=true;}else e.noAudio=true;try{var t=new Audio;t.muted&&(e.noAudio=true);}catch{}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||r,t=null;try{t=typeof Audio<"u"?new Audio:null;}catch{return e}if(!t||typeof t.canPlayType!="function")return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),o=e._navigator?e._navigator.userAgent:"",l=o.match(/OPR\/(\d+)/g),s=l&&parseInt(l[0].split("/")[1],10)<33,a=o.indexOf("Safari")!==-1&&o.indexOf("Chrome")===-1,d=o.match(/Version\/(.*?) /),m=a&&d&&parseInt(d[1],10)<15;return e._codecs={mp3:!!(!s&&(n||t.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!m&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!m&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||r;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=false,e.autoUnlock=false,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=true,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var o=new Audio;o._unlocked=true,e._releaseHtml5Audio(o);}catch{e.noAudio=true;break}for(var l=0;l<e._howls.length;l++)if(!e._howls[l]._webAudio)for(var s=e._howls[l]._getSoundIds(),a=0;a<s.length;a++){var d=e._howls[l]._soundById(s[a]);d&&d._node&&!d._node._unlocked&&(d._node._unlocked=true,d._node.load());}e._autoResume();var m=e.ctx.createBufferSource();m.buffer=e._scratchBuffer,m.connect(e.ctx.destination),typeof m.start>"u"?m.noteOn(0):m.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),m.onended=function(){m.disconnect(0),e._audioUnlocked=true,document.removeEventListener("touchstart",t,true),document.removeEventListener("touchend",t,true),document.removeEventListener("click",t,true),document.removeEventListener("keydown",t,true);for(var y=0;y<e._howls.length;y++)e._howls[y]._emit("unlock");};};return document.addEventListener("touchstart",t,true),document.addEventListener("touchend",t,true),document.addEventListener("click",t,true),document.addEventListener("keydown",t,true),e}},_obtainHtml5Audio:function(){var e=this||r;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=new Audio().play();return t&&typeof Promise<"u"&&(t instanceof Promise||typeof t.then=="function")&&t.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.");}),new Audio},_releaseHtml5Audio:function(e){var t=this||r;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||typeof e.ctx.suspend>"u"||!r.usingWebAudio)){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio){for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var o=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume());};e.ctx.suspend().then(o,o);}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||typeof e.ctx.resume>"u"||!r.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume");}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):e.state==="suspending"&&(e._resumeAfterSuspend=true),e}};var r=new g,u=function(e){var t=this;if(!e.src||e.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}t.init(e);};u.prototype={init:function(e){var t=this;return r.ctx||A(),t._autoplay=e.autoplay||false,t._format=typeof e.format!="string"?e.format:[e.format],t._html5=e.html5||false,t._muted=e.mute||false,t._loop=e.loop||false,t._pool=e.pool||5,t._preload=typeof e.preload=="boolean"||e.preload==="metadata"?e.preload:true,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src=typeof e.src!="string"?e.src:[e.src],t._volume=e.volume!==void 0?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:false},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=false,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=r.usingWebAudio&&!t._html5,typeof r.ctx<"u"&&r.ctx&&r.autoUnlock&&r._unlockAudio(),r._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play();}}),t._preload&&t._preload!=="none"&&t.load(),t},load:function(){var e=this,t=null;if(r.noAudio){e._emit("loaderror",null,"No audio support.");return}typeof e._src=="string"&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var o,l;if(e._format&&e._format[n])o=e._format[n];else {if(l=e._src[n],typeof l!="string"){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}o=/^data:audio\/([^;,]+);/i.exec(l),o||(o=/\.([^.]+)$/.exec(l.split("?",1)[0])),o&&(o=o[1].toLowerCase());}if(o||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),o&&r.codecs(o)){t=e._src[n];break}}if(!t){e._emit("loaderror",null,"No codec support for selected audio sources.");return}return e._src=t,e._state="loading",window.location.protocol==="https:"&&t.slice(0,5)==="http:"&&(e._html5=true,e._webAudio=false),new i(e),e._webAudio&&_(e),e},play:function(e,t){var n=this,o=null;if(typeof e=="number")o=e,e=null;else {if(typeof e=="string"&&n._state==="loaded"&&!n._sprite[e])return null;if(typeof e>"u"&&(e="__default",!n._playLock)){for(var l=0,s=0;s<n._sounds.length;s++)n._sounds[s]._paused&&!n._sounds[s]._ended&&(l++,o=n._sounds[s]._id);l===1?e=null:o=null;}}var a=o?n._soundById(o):n._inactiveSound();if(!a)return null;if(o&&!e&&(e=a._sprite||"__default"),n._state!=="loaded"){a._sprite=e,a._ended=false;var d=a._id;return n._queue.push({event:"play",action:function(){n.play(d);}}),d}if(o&&!a._paused)return t||n._loadQueue("play"),a._id;n._webAudio&&r._autoResume();var m=Math.max(0,a._seek>0?a._seek:n._sprite[e][0]/1e3),y=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-m),w=y*1e3/Math.abs(a._rate),T=n._sprite[e][0]/1e3,S=(n._sprite[e][0]+n._sprite[e][1])/1e3;a._sprite=e,a._ended=false;var I=function(){a._paused=false,a._seek=m,a._start=T,a._stop=S,a._loop=!!(a._loop||n._sprite[e][2]);};if(m>=S){n._ended(a);return}var v=a._node;if(n._webAudio){var O=function(){n._playLock=false,I(),n._refreshBuffer(a);var x=a._muted||n._muted?0:a._volume;v.gain.setValueAtTime(x,r.ctx.currentTime),a._playStart=r.ctx.currentTime,typeof v.bufferSource.start>"u"?a._loop?v.bufferSource.noteGrainOn(0,m,86400):v.bufferSource.noteGrainOn(0,m,y):a._loop?v.bufferSource.start(0,m,86400):v.bufferSource.start(0,m,y),w!==1/0&&(n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),w)),t||setTimeout(function(){n._emit("play",a._id),n._loadQueue();},0);};r.state==="running"&&r.ctx.state!=="interrupted"?O():(n._playLock=true,n.once("resume",O),n._clearTimer(a._id));}else {var H=function(){v.currentTime=m,v.muted=a._muted||n._muted||r._muted||v.muted,v.volume=a._volume*r.volume(),v.playbackRate=a._rate;try{var x=v.play();if(x&&typeof Promise<"u"&&(x instanceof Promise||typeof x.then=="function")?(n._playLock=true,I(),x.then(function(){n._playLock=false,v._unlocked=true,t?n._loadQueue():n._emit("play",a._id);}).catch(function(){n._playLock=false,n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),a._ended=true,a._paused=true;})):t||(n._playLock=false,I(),n._emit("play",a._id)),v.playbackRate=a._rate,v.paused){n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||a._loop?n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),w):(n._endTimers[a._id]=function(){n._ended(a),v.removeEventListener("ended",n._endTimers[a._id],false);},v.addEventListener("ended",n._endTimers[a._id],false));}catch(E){n._emit("playerror",a._id,E);}};v.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(v.src=n._src,v.load());var D=window&&window.ejecta||!v.readyState&&r._navigator.isCocoonJS;if(v.readyState>=3||D)H();else {n._playLock=true,n._state="loading";var P=function(){n._state="loaded",H(),v.removeEventListener(r._canPlayEvent,P,false);};v.addEventListener(r._canPlayEvent,P,false),n._clearTimer(a._id);}}return a._id},pause:function(e){var t=this;if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e);}}),t;for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var l=t._soundById(n[o]);if(l&&!l._paused&&(l._seek=t.seek(n[o]),l._rateSeek=0,l._paused=true,t._stopFade(n[o]),l._node))if(t._webAudio){if(!l._node.bufferSource)continue;typeof l._node.bufferSource.stop>"u"?l._node.bufferSource.noteOff(0):l._node.bufferSource.stop(0),t._cleanBuffer(l._node);}else (!isNaN(l._node.duration)||l._node.duration===1/0)&&l._node.pause();arguments[1]||t._emit("pause",l?l._id:null);}return t},stop:function(e,t){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e);}}),n;for(var o=n._getSoundIds(e),l=0;l<o.length;l++){n._clearTimer(o[l]);var s=n._soundById(o[l]);s&&(s._seek=s._start||0,s._rateSeek=0,s._paused=true,s._ended=true,n._stopFade(o[l]),s._node&&(n._webAudio?s._node.bufferSource&&(typeof s._node.bufferSource.stop>"u"?s._node.bufferSource.noteOff(0):s._node.bufferSource.stop(0),n._cleanBuffer(s._node)):(!isNaN(s._node.duration)||s._node.duration===1/0)&&(s._node.currentTime=s._start||0,s._node.pause(),s._node.duration===1/0&&n._clearSound(s._node))),t||n._emit("stop",s._id));}return n},mute:function(e,t){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t);}}),n;if(typeof t>"u")if(typeof e=="boolean")n._muted=e;else return n._muted;for(var o=n._getSoundIds(t),l=0;l<o.length;l++){var s=n._soundById(o[l]);s&&(s._muted=e,s._interval&&n._stopFade(s._id),n._webAudio&&s._node?s._node.gain.setValueAtTime(e?0:s._volume,r.ctx.currentTime):s._node&&(s._node.muted=r._muted?true:e),n._emit("mute",s._id));}return n},volume:function(){var e=this,t=arguments,n,o;if(t.length===0)return e._volume;if(t.length===1||t.length===2&&typeof t[1]>"u"){var l=e._getSoundIds(),s=l.indexOf(t[0]);s>=0?o=parseInt(t[0],10):n=parseFloat(t[0]);}else t.length>=2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));var a;if(typeof n<"u"&&n>=0&&n<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,t);}}),e;typeof o>"u"&&(e._volume=n),o=e._getSoundIds(o);for(var d=0;d<o.length;d++)a=e._soundById(o[d]),a&&(a._volume=n,t[2]||e._stopFade(o[d]),e._webAudio&&a._node&&!a._muted?a._node.gain.setValueAtTime(n,r.ctx.currentTime):a._node&&!a._muted&&(a._node.volume=n*r.volume()),e._emit("volume",a._id));}else return a=o?e._soundById(o):e._sounds[0],a?a._volume:0;return e},fade:function(e,t,n,o){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"fade",action:function(){l.fade(e,t,n,o);}}),l;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),l.volume(e,o);for(var s=l._getSoundIds(o),a=0;a<s.length;a++){var d=l._soundById(s[a]);if(d){if(o||l._stopFade(s[a]),l._webAudio&&!d._muted){var m=r.ctx.currentTime,y=m+n/1e3;d._volume=e,d._node.gain.setValueAtTime(e,m),d._node.gain.linearRampToValueAtTime(t,y);}l._startFadeInterval(d,e,t,n,s[a],typeof o>"u");}}return l},_startFadeInterval:function(e,t,n,o,l,s){var a=this,d=t,m=n-t,y=Math.abs(m/.01),w=Math.max(4,y>0?o/y:o),T=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var S=(Date.now()-T)/o;T=Date.now(),d+=m*S,d=Math.round(d*100)/100,m<0?d=Math.max(n,d):d=Math.min(n,d),a._webAudio?e._volume=d:a.volume(d,e._id,true),s&&(a._volume=d),(n<t&&d<=n||n>t&&d>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id));},w);},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e=this,t=arguments,n,o,l;if(t.length===0)return e._loop;if(t.length===1)if(typeof t[0]=="boolean")n=t[0],e._loop=n;else return l=e._soundById(parseInt(t[0],10)),l?l._loop:false;else t.length===2&&(n=t[0],o=parseInt(t[1],10));for(var s=e._getSoundIds(o),a=0;a<s.length;a++)l=e._soundById(s[a]),l&&(l._loop=n,e._webAudio&&l._node&&l._node.bufferSource&&(l._node.bufferSource.loop=n,n&&(l._node.bufferSource.loopStart=l._start||0,l._node.bufferSource.loopEnd=l._stop,e.playing(s[a])&&(e.pause(s[a],true),e.play(s[a],true)))));return e},rate:function(){var e=this,t=arguments,n,o;if(t.length===0)o=e._sounds[0]._id;else if(t.length===1){var l=e._getSoundIds(),s=l.indexOf(t[0]);s>=0?o=parseInt(t[0],10):n=parseFloat(t[0]);}else t.length===2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));var a;if(typeof n=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,t);}}),e;typeof o>"u"&&(e._rate=n),o=e._getSoundIds(o);for(var d=0;d<o.length;d++)if(a=e._soundById(o[d]),a){e.playing(o[d])&&(a._rateSeek=e.seek(o[d]),a._playStart=e._webAudio?r.ctx.currentTime:a._playStart),a._rate=n,e._webAudio&&a._node&&a._node.bufferSource?a._node.bufferSource.playbackRate.setValueAtTime(n,r.ctx.currentTime):a._node&&(a._node.playbackRate=n);var m=e.seek(o[d]),y=(e._sprite[a._sprite][0]+e._sprite[a._sprite][1])/1e3-m,w=y*1e3/Math.abs(a._rate);(e._endTimers[o[d]]||!a._paused)&&(e._clearTimer(o[d]),e._endTimers[o[d]]=setTimeout(e._ended.bind(e,a),w)),e._emit("rate",a._id);}}else return a=e._soundById(o),a?a._rate:e._rate;return e},seek:function(){var e=this,t=arguments,n,o;if(t.length===0)e._sounds.length&&(o=e._sounds[0]._id);else if(t.length===1){var l=e._getSoundIds(),s=l.indexOf(t[0]);s>=0?o=parseInt(t[0],10):e._sounds.length&&(o=e._sounds[0]._id,n=parseFloat(t[0]));}else t.length===2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));if(typeof o>"u")return 0;if(typeof n=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,t);}}),e;var a=e._soundById(o);if(a)if(typeof n=="number"&&n>=0){var d=e.playing(o);d&&e.pause(o,true),a._seek=n,a._ended=false,e._clearTimer(o),!e._webAudio&&a._node&&!isNaN(a._node.duration)&&(a._node.currentTime=n);var m=function(){d&&e.play(o,true),e._emit("seek",o);};if(d&&!e._webAudio){var y=function(){e._playLock?setTimeout(y,0):m();};setTimeout(y,0);}else m();}else if(e._webAudio){var w=e.playing(o)?r.ctx.currentTime-a._playStart:0,T=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(T+w*Math.abs(a._rate))}else return a._node.currentTime;return e},playing:function(e){var t=this;if(typeof e=="number"){var n=t._soundById(e);return n?!n._paused:false}for(var o=0;o<t._sounds.length;o++)if(!t._sounds[o]._paused)return true;return false},duration:function(e){var t=this,n=t._duration,o=t._soundById(e);return o&&(n=t._sprite[o._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,false),t[n]._node.removeEventListener(r._canPlayEvent,t[n]._loadFn,false),t[n]._node.removeEventListener("ended",t[n]._endFn,false),r._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var o=r._howls.indexOf(e);o>=0&&r._howls.splice(o,1);var l=true;for(n=0;n<r._howls.length;n++)if(r._howls[n]._src===e._src||e._src.indexOf(r._howls[n]._src)>=0){l=false;break}return c&&l&&delete c[e._src],r.noAudio=false,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,o){var l=this,s=l["_on"+e];return typeof t=="function"&&s.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),l},off:function(e,t,n){var o=this,l=o["_on"+e],s=0;if(typeof t=="number"&&(n=t,t=null),t||n)for(s=0;s<l.length;s++){var a=n===l[s].id;if(t===l[s].fn&&a||!t&&a){l.splice(s,1);break}}else if(e)o["_on"+e]=[];else {var d=Object.keys(o);for(s=0;s<d.length;s++)d[s].indexOf("_on")===0&&Array.isArray(o[d[s]])&&(o[d[s]]=[]);}return o},once:function(e,t,n){var o=this;return o.on(e,t,n,1),o},_emit:function(e,t,n){for(var o=this,l=o["_on"+e],s=l.length-1;s>=0;s--)(!l[s].id||l[s].id===t||e==="load")&&(setTimeout((function(a){a.call(this,t,n);}).bind(o,l[s].fn),0),l[s].once&&o.off(e,l[s].fn,l[s].id));return o._loadQueue(e),o},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action();}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var o=!!(e._loop||t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&o&&t.stop(e._id,true).play(e._id),t._webAudio&&o){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=r.ctx.currentTime;var l=(e._stop-e._start)*1e3/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),l);}return t._webAudio&&!o&&(e._paused=true,e._ended=true,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),r._autoSuspend()),!t._webAudio&&!o&&t.stop(e._id,true),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if(typeof t._endTimers[e]!="function")clearTimeout(t._endTimers[e]);else {var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],false);}delete t._endTimers[e];}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;o>=0;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--);}}},_getSoundIds:function(e){var t=this;if(typeof e>"u"){for(var n=[],o=0;o<t._sounds.length;o++)n.push(t._sounds[o]._id);return n}else return [e]},_refreshBuffer:function(e){var t=this;return e._node.bufferSource=r.ctx.createBufferSource(),e._node.bufferSource.buffer=c[t._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,r.ctx.currentTime),t},_cleanBuffer:function(e){var t=this,n=r._navigator&&r._navigator.vendor.indexOf("Apple")>=0;if(!e.bufferSource)return t;if(r._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=r._scratchBuffer;}catch{}return e.bufferSource=null,t},_clearSound:function(e){var t=/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent);t||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA");}};var i=function(e){this._parent=e,this.init();};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=true,e._ended=true,e._sprite="__default",e._id=++r._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=r._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),e._node.gain.setValueAtTime(n,r.ctx.currentTime),e._node.paused=true,e._node.connect(r.masterGain)):r.noAudio||(e._node=r._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,false),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(r._canPlayEvent,e._loadFn,false),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,false),e._node.src=t._src,e._node.preload=t._preload===true?"auto":t._preload,e._node.volume=n*r.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=true,e._ended=true,e._sprite="__default",e._id=++r._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,false);},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(e._node.duration*10)/10,Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!=="loaded"&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(r._canPlayEvent,e._loadFn,false);},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(e._node.duration*10)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=t._duration*1e3),t._ended(e)),e._node.removeEventListener("ended",e._endFn,false);}};var c={},_=function(e){var t=e._src;if(c[t]){e._duration=c[t].duration,f(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),l=0;l<n.length;++l)o[l]=n.charCodeAt(l);p(o.buffer,e);}else {var s=new XMLHttpRequest;s.open(e._xhr.method,t,true),s.withCredentials=e._xhr.withCredentials,s.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(a){s.setRequestHeader(a,e._xhr.headers[a]);}),s.onload=function(){var a=(s.status+"")[0];if(a!=="0"&&a!=="2"&&a!=="3"){e._emit("loaderror",null,"Failed loading audio file with status: "+s.status+".");return}p(s.response,e);},s.onerror=function(){e._webAudio&&(e._html5=true,e._webAudio=false,e._sounds=[],delete c[t],e.load());},h(s);}},h=function(e){try{e.send();}catch{e.onerror();}},p=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.");},o=function(l){l&&t._sounds.length>0?(c[t._src]=l,f(t,l)):n();};typeof Promise<"u"&&r.ctx.decodeAudioData.length===1?r.ctx.decodeAudioData(e).then(o).catch(n):r.ctx.decodeAudioData(e,o,n);},f=function(e,t){t&&!e._duration&&(e._duration=t.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue());},A=function(){if(r.usingWebAudio){try{typeof AudioContext<"u"?r.ctx=new AudioContext:typeof webkitAudioContext<"u"?r.ctx=new webkitAudioContext:r.usingWebAudio=false;}catch{r.usingWebAudio=false;}r.ctx||(r.usingWebAudio=false);var e=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),t=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var o=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!o&&(r.usingWebAudio=false);}r.usingWebAudio&&(r.masterGain=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup();}};typeof define=="function"&&define.amd&&define([],function(){return {Howler:r,Howl:u}}),typeof k<"u"&&(k.Howler=r,k.Howl=u),typeof global<"u"?(global.HowlerGlobal=g,global.Howler=r,global.Howl=u,global.Sound=i):typeof window<"u"&&(window.HowlerGlobal=g,window.Howler=r,window.Howl=u,window.Sound=i);})();(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(r){var u=this;if(!u.ctx||!u.ctx.listener)return u;for(var i=u._howls.length-1;i>=0;i--)u._howls[i].stereo(r);return u},HowlerGlobal.prototype.pos=function(r,u,i){var c=this;if(!c.ctx||!c.ctx.listener)return c;if(u=typeof u!="number"?c._pos[1]:u,i=typeof i!="number"?c._pos[2]:i,typeof r=="number")c._pos=[r,u,i],typeof c.ctx.listener.positionX<"u"?(c.ctx.listener.positionX.setTargetAtTime(c._pos[0],Howler.ctx.currentTime,.1),c.ctx.listener.positionY.setTargetAtTime(c._pos[1],Howler.ctx.currentTime,.1),c.ctx.listener.positionZ.setTargetAtTime(c._pos[2],Howler.ctx.currentTime,.1)):c.ctx.listener.setPosition(c._pos[0],c._pos[1],c._pos[2]);else return c._pos;return c},HowlerGlobal.prototype.orientation=function(r,u,i,c,_,h){var p=this;if(!p.ctx||!p.ctx.listener)return p;var f=p._orientation;if(u=typeof u!="number"?f[1]:u,i=typeof i!="number"?f[2]:i,c=typeof c!="number"?f[3]:c,_=typeof _!="number"?f[4]:_,h=typeof h!="number"?f[5]:h,typeof r=="number")p._orientation=[r,u,i,c,_,h],typeof p.ctx.listener.forwardX<"u"?(p.ctx.listener.forwardX.setTargetAtTime(r,Howler.ctx.currentTime,.1),p.ctx.listener.forwardY.setTargetAtTime(u,Howler.ctx.currentTime,.1),p.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),p.ctx.listener.upX.setTargetAtTime(c,Howler.ctx.currentTime,.1),p.ctx.listener.upY.setTargetAtTime(_,Howler.ctx.currentTime,.1),p.ctx.listener.upZ.setTargetAtTime(h,Howler.ctx.currentTime,.1)):p.ctx.listener.setOrientation(r,u,i,c,_,h);else return f;return p},Howl.prototype.init=(function(r){return function(u){var i=this;return i._orientation=u.orientation||[1,0,0],i._stereo=u.stereo||null,i._pos=u.pos||null,i._pannerAttr={coneInnerAngle:typeof u.coneInnerAngle<"u"?u.coneInnerAngle:360,coneOuterAngle:typeof u.coneOuterAngle<"u"?u.coneOuterAngle:360,coneOuterGain:typeof u.coneOuterGain<"u"?u.coneOuterGain:0,distanceModel:typeof u.distanceModel<"u"?u.distanceModel:"inverse",maxDistance:typeof u.maxDistance<"u"?u.maxDistance:1e4,panningModel:typeof u.panningModel<"u"?u.panningModel:"HRTF",refDistance:typeof u.refDistance<"u"?u.refDistance:1,rolloffFactor:typeof u.rolloffFactor<"u"?u.rolloffFactor:1},i._onstereo=u.onstereo?[{fn:u.onstereo}]:[],i._onpos=u.onpos?[{fn:u.onpos}]:[],i._onorientation=u.onorientation?[{fn:u.onorientation}]:[],r.call(this,u)}})(Howl.prototype.init),Howl.prototype.stereo=function(r,u){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(r,u);}}),i;var c=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof u>"u")if(typeof r=="number")i._stereo=r,i._pos=[r,0,0];else return i._stereo;for(var _=i._getSoundIds(u),h=0;h<_.length;h++){var p=i._soundById(_[h]);if(p)if(typeof r=="number")p._stereo=r,p._pos=[r,0,0],p._node&&(p._pannerAttr.panningModel="equalpower",(!p._panner||!p._panner.pan)&&g(p,c),c==="spatial"?typeof p._panner.positionX<"u"?(p._panner.positionX.setValueAtTime(r,Howler.ctx.currentTime),p._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),p._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):p._panner.setPosition(r,0,0):p._panner.pan.setValueAtTime(r,Howler.ctx.currentTime)),i._emit("stereo",p._id);else return p._stereo}return i},Howl.prototype.pos=function(r,u,i,c){var _=this;if(!_._webAudio)return _;if(_._state!=="loaded")return _._queue.push({event:"pos",action:function(){_.pos(r,u,i,c);}}),_;if(u=typeof u!="number"?0:u,i=typeof i!="number"?-0.5:i,typeof c>"u")if(typeof r=="number")_._pos=[r,u,i];else return _._pos;for(var h=_._getSoundIds(c),p=0;p<h.length;p++){var f=_._soundById(h[p]);if(f)if(typeof r=="number")f._pos=[r,u,i],f._node&&((!f._panner||f._panner.pan)&&g(f,"spatial"),typeof f._panner.positionX<"u"?(f._panner.positionX.setValueAtTime(r,Howler.ctx.currentTime),f._panner.positionY.setValueAtTime(u,Howler.ctx.currentTime),f._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):f._panner.setPosition(r,u,i)),_._emit("pos",f._id);else return f._pos}return _},Howl.prototype.orientation=function(r,u,i,c){var _=this;if(!_._webAudio)return _;if(_._state!=="loaded")return _._queue.push({event:"orientation",action:function(){_.orientation(r,u,i,c);}}),_;if(u=typeof u!="number"?_._orientation[1]:u,i=typeof i!="number"?_._orientation[2]:i,typeof c>"u")if(typeof r=="number")_._orientation=[r,u,i];else return _._orientation;for(var h=_._getSoundIds(c),p=0;p<h.length;p++){var f=_._soundById(h[p]);if(f)if(typeof r=="number")f._orientation=[r,u,i],f._node&&(f._panner||(f._pos||(f._pos=_._pos||[0,0,-0.5]),g(f,"spatial")),typeof f._panner.orientationX<"u"?(f._panner.orientationX.setValueAtTime(r,Howler.ctx.currentTime),f._panner.orientationY.setValueAtTime(u,Howler.ctx.currentTime),f._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):f._panner.setOrientation(r,u,i)),_._emit("orientation",f._id);else return f._orientation}return _},Howl.prototype.pannerAttr=function(){var r=this,u=arguments,i,c,_;if(!r._webAudio)return r;if(u.length===0)return r._pannerAttr;if(u.length===1)if(typeof u[0]=="object")i=u[0],typeof c>"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),r._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:r._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:r._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:r._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:r._panningModel});else return _=r._soundById(parseInt(u[0],10)),_?_._pannerAttr:r._pannerAttr;else u.length===2&&(i=u[0],c=parseInt(u[1],10));for(var h=r._getSoundIds(c),p=0;p<h.length;p++)if(_=r._soundById(h[p]),_){var f=_._pannerAttr;f={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:f.coneInnerAngle,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:f.coneOuterAngle,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:f.coneOuterGain,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:f.distanceModel,maxDistance:typeof i.maxDistance<"u"?i.maxDistance:f.maxDistance,refDistance:typeof i.refDistance<"u"?i.refDistance:f.refDistance,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:f.rolloffFactor,panningModel:typeof i.panningModel<"u"?i.panningModel:f.panningModel};var A=_._panner;A||(_._pos||(_._pos=r._pos||[0,0,-0.5]),g(_,"spatial"),A=_._panner),A.coneInnerAngle=f.coneInnerAngle,A.coneOuterAngle=f.coneOuterAngle,A.coneOuterGain=f.coneOuterGain,A.distanceModel=f.distanceModel,A.maxDistance=f.maxDistance,A.refDistance=f.refDistance,A.rolloffFactor=f.rolloffFactor,A.panningModel=f.panningModel;}return r},Sound.prototype.init=(function(r){return function(){var u=this,i=u._parent;u._orientation=i._orientation,u._stereo=i._stereo,u._pos=i._pos,u._pannerAttr=i._pannerAttr,r.call(this),u._stereo?i.stereo(u._stereo):u._pos&&i.pos(u._pos[0],u._pos[1],u._pos[2],u._id);}})(Sound.prototype.init),Sound.prototype.reset=(function(r){return function(){var u=this,i=u._parent;return u._orientation=i._orientation,u._stereo=i._stereo,u._pos=i._pos,u._pannerAttr=i._pannerAttr,u._stereo?i.stereo(u._stereo):u._pos?i.pos(u._pos[0],u._pos[1],u._pos[2],u._id):u._panner&&(u._panner.disconnect(0),u._panner=void 0,i._refreshBuffer(u)),r.call(this)}})(Sound.prototype.reset);var g=function(r,u){u=u||"spatial",u==="spatial"?(r._panner=Howler.ctx.createPanner(),r._panner.coneInnerAngle=r._pannerAttr.coneInnerAngle,r._panner.coneOuterAngle=r._pannerAttr.coneOuterAngle,r._panner.coneOuterGain=r._pannerAttr.coneOuterGain,r._panner.distanceModel=r._pannerAttr.distanceModel,r._panner.maxDistance=r._pannerAttr.maxDistance,r._panner.refDistance=r._pannerAttr.refDistance,r._panner.rolloffFactor=r._pannerAttr.rolloffFactor,r._panner.panningModel=r._pannerAttr.panningModel,typeof r._panner.positionX<"u"?(r._panner.positionX.setValueAtTime(r._pos[0],Howler.ctx.currentTime),r._panner.positionY.setValueAtTime(r._pos[1],Howler.ctx.currentTime),r._panner.positionZ.setValueAtTime(r._pos[2],Howler.ctx.currentTime)):r._panner.setPosition(r._pos[0],r._pos[1],r._pos[2]),typeof r._panner.orientationX<"u"?(r._panner.orientationX.setValueAtTime(r._orientation[0],Howler.ctx.currentTime),r._panner.orientationY.setValueAtTime(r._orientation[1],Howler.ctx.currentTime),r._panner.orientationZ.setValueAtTime(r._orientation[2],Howler.ctx.currentTime)):r._panner.setOrientation(r._orientation[0],r._orientation[1],r._orientation[2])):(r._panner=Howler.ctx.createStereoPanner(),r._panner.pan.setValueAtTime(r._stereo,Howler.ctx.currentTime)),r._panner.connect(r._node),r._paused||r._parent.pause(r._id,true).play(r._id,true);};})();});var B=b$1(F(),1),G=new Map;G.set("default",()=>import('../assets/beepSound.js'));var b=class b{constructor(r){this.resource=null;this.resource=r;}static get defaultSound(){return b._defaultSound instanceof b||(b._defaultSound=new b("default")),b._defaultSound}toJSONObject(){return this.resource!==null?{resource:this.resource}:{}}async play(){var r,u,i;if(this.resource==null||this.resource===""){a$1.warn("Sound resource is null or empty string. Cannot be played.");return}if(!this.audio){let c=await((i=(u=(r=G.get(this.resource))==null?void 0:r())==null?void 0:u.then(_=>(_==null?void 0:_.beepSound)||this.resource))!=null?i:Promise.resolve(this.resource));this.audio=new B.Howl({src:c,html5:true});}this.audio.play();}};b._defaultSound=null;var L=b;
|
|
2
|
-
export{L as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-NY2HBST4.js';var t=new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function l(e){}export{t as a,l as b};
|