@scandit/web-datacapture-core 7.0.0-beta.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +1 -1
  2. package/build/js/Camera.js +1 -1
  3. package/build/js/CameraAccess.js +1 -1
  4. package/build/js/DataCaptureContext.js +1 -1
  5. package/build/js/DataCaptureVersion.js +1 -1
  6. package/build/js/DataCaptureView.js +1 -1
  7. package/build/js/ImageFrameSource.js +1 -1
  8. package/build/js/chunks/{chunk-HNFNB37O.js → chunk-2WN7BGOB.js} +2 -2
  9. package/build/js/chunks/{chunk-EYIDRFHC.js → chunk-34FEFSCI.js} +1 -1
  10. package/build/js/chunks/{chunk-CREAZBG7.js → chunk-3TNNUKVW.js} +1 -1
  11. package/build/js/chunks/{chunk-HZY2EBWP.js → chunk-46WJFV3I.js} +1 -1
  12. package/build/js/chunks/{chunk-SJE4IFCX.js → chunk-4MKLNRV3.js} +3 -3
  13. package/build/js/chunks/{chunk-J25IZC7J.js → chunk-B5JOQVFY.js} +1 -1
  14. package/build/js/chunks/{chunk-QR4TEDGM.js → chunk-DMOXDUF6.js} +1 -1
  15. package/build/js/chunks/chunk-DWX2KHSS.js +3 -0
  16. package/build/js/chunks/{chunk-EC4DRTKR.js → chunk-EQEB3JUS.js} +1 -1
  17. package/build/js/chunks/{chunk-HRS63RFH.js → chunk-ERQILEGU.js} +5 -5
  18. package/build/js/chunks/{chunk-ZTM7LWVE.js → chunk-HEBLZ3EE.js} +2 -2
  19. package/build/js/chunks/chunk-KCNXUTBL.js +7 -0
  20. package/build/js/chunks/{chunk-2NZR6P45.js → chunk-KWL7KLMR.js} +6 -6
  21. package/build/js/chunks/{chunk-7NUUZ7LP.js → chunk-MM6VVG46.js} +1 -1
  22. package/build/js/chunks/{chunk-DEQ72K2Q.js → chunk-MOF3P7VK.js} +1 -1
  23. package/build/js/chunks/{chunk-EMHHC6NB.js → chunk-NMROJLGQ.js} +1 -1
  24. package/build/js/chunks/{chunk-VRVSELOR.js → chunk-Q7NDC6TJ.js} +1 -1
  25. package/build/js/chunks/{chunk-SZ672BOB.js → chunk-SK6L34IF.js} +1 -1
  26. package/build/js/chunks/{chunk-BKSPXD6N.js → chunk-SXOL25UA.js} +1 -1
  27. package/build/js/chunks/{chunk-6XT4BUUR.js → chunk-XM4ZH4L3.js} +3 -3
  28. package/build/js/chunks/chunk-XR65N6EG.js +3 -0
  29. package/build/js/chunks/{chunk-D4YDSS77.js → chunk-YGFWA4WG.js} +2 -2
  30. package/build/js/chunks/{chunk-IZLMNXTH.js → chunk-YGNHN5OT.js} +1 -1
  31. package/build/js/chunks/{chunk-CQ5KZRRX.js → chunk-YXQ44PG2.js} +5 -5
  32. package/build/js/chunks/{chunk-OTI45AJG.js → chunk-ZR62555L.js} +4 -4
  33. package/build/js/index.js +13 -13
  34. package/build/js/logger.d.ts +5 -1
  35. package/build/js/logger.js +1 -1
  36. package/build/js/private/CameraAccess.js +1 -1
  37. package/build/js/private/CameraManager.js +1 -1
  38. package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
  39. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +3 -1
  40. package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
  41. package/build/js/private/FrameReaders/FrameReader.js +1 -1
  42. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  43. package/build/js/private/FrameReaders/index.js +2 -2
  44. package/build/js/private/FrameReaders/webglUtilities.js +1 -1
  45. package/build/js/private/SingleImageUploaderView.js +1 -1
  46. package/build/js/private/ViewControls+related.js +1 -1
  47. package/build/js/sdk.d.ts +1 -0
  48. package/build/js/sdk.js +1 -1
  49. package/build/js/worker/WorkerMain.js +1 -1
  50. package/build/js/worker/dataCapture.inlineWorker.js +1 -1
  51. package/build/js/worker/dataCaptureEngine.js +1 -1
  52. package/build/js/worker/dataCaptureLoader.js +1 -1
  53. package/build/js/worker/helper.js +1 -1
  54. package/build/js/worker/helperFetch.js +1 -1
  55. package/build/js/worker/helperFs.js +1 -1
  56. package/build/js/worker/importWasmScript.js +1 -1
  57. package/build/js/worker/index.js +3 -3
  58. package/package.json +1 -1
  59. package/sdc-lib/license/web-core-license.txt +27 -0
  60. package/build/js/chunks/chunk-D2EQRTOA.js +0 -6
  61. package/build/js/chunks/chunk-SP3HSP4K.js +0 -3
  62. package/build/js/chunks/chunk-YRSVOTNR.js +0 -3
package/README.md CHANGED
@@ -3,4 +3,4 @@
3
3
  Builds the foundation of all data capture related functionality offered by the Scandit Data Capture SDK.
4
4
  It contains classes and interfaces shared between the data capture modules.
5
5
 
6
- Learn more with the [official documentation](https://docs.scandit.com/) or get started with [our samples](https://github.com/Scandit/datacapture-web-samples)
6
+ Learn more with the [official documentation](https://docs.scandit.com/) or get started with [our samples](https://github.com/Scandit/datacapture-web-samples)
@@ -1 +1 @@
1
- export { a as Camera } from './chunks/chunk-SJE4IFCX.js';
1
+ export { a as Camera } from './chunks/chunk-4MKLNRV3.js';
@@ -1 +1 @@
1
- export { a as CameraAccess } from './chunks/chunk-7NUUZ7LP.js';
1
+ export { a as CameraAccess } from './chunks/chunk-MM6VVG46.js';
@@ -1 +1 @@
1
- export { a as DataCaptureContext } from './chunks/chunk-CQ5KZRRX.js';
1
+ export { a as DataCaptureContext } from './chunks/chunk-YXQ44PG2.js';
@@ -1 +1 @@
1
- export { a as DataCaptureVersion } from './chunks/chunk-YRSVOTNR.js';
1
+ export { a as DataCaptureVersion } from './chunks/chunk-DWX2KHSS.js';
@@ -1 +1 @@
1
- export { a as DataCaptureView } from './chunks/chunk-HRS63RFH.js';
1
+ export { a as DataCaptureView } from './chunks/chunk-ERQILEGU.js';
@@ -1 +1 @@
1
- export { a as ImageFrameSource } from './chunks/chunk-VRVSELOR.js';
1
+ export { a as ImageFrameSource } from './chunks/chunk-Q7NDC6TJ.js';
@@ -1,5 +1,5 @@
1
- import { f } from './chunk-J25IZC7J.js';
2
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { f } from './chunk-B5JOQVFY.js';
2
+ import { a } from './chunk-XR65N6EG.js';
3
3
 
4
4
  function p({wasmURI:e,expectedHash:t,verifyResponseHash:i,progressCallback:s,successCallback:a$1,importObject:l,referredOrigin:m}){async function b(r){try{let o=await f({wasmURI:e,expectedHash:t,verifyResponseHash:i,onProgress:s,referredOrigin:m}),y=await(r!=null?r:o).arrayBuffer(),g=await globalThis.WebAssembly.instantiate(y,l);a$1(g.instance,g.module);}catch(o){a.log(a.Level.Error,o),a.log(a.Level.Error,`Couldn't instantiate Scandit SDK DataCapture library at ${e}, did you configure the path for it correctly?`);}}async function u(){let r;try{r=await f({wasmURI:e,expectedHash:t,verifyResponseHash:i,onProgress:s,referredOrigin:m});let o=await globalThis.WebAssembly.instantiateStreaming(r,l);a$1(o.instance,o.module);}catch(o){a.log(a.Level.Warn,o),a.log(a.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),b((r==null?void 0:r.bodyUsed)===!0?void 0:r);}}typeof globalThis.WebAssembly.instantiateStreaming=="function"?u():b();}async function h(e,t,i,s){return new Promise((a,l)=>{e().then(a).catch(m=>{let b=t*2;if(b>i){l(m);return}s(m),globalThis.setTimeout(()=>{h(e,b,i,s).then(a).catch(l);},t);});})}function v(e){var i,s;let t="";if((i=e.href)!=null&&i.startsWith("blob:null/"))t="localhost";else {let a=((s=e.pathname)==null?void 0:s.length)>1&&!e.pathname.startsWith("/");t=new URL(a?e.pathname:e.origin).hostname;}return t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1)),t}
5
5
 
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { a } from './chunk-XR65N6EG.js';
2
2
  import { a as a$1 } from './chunk-QCZSSQAQ.js';
3
3
 
4
4
  var y=Promise.resolve(),p=!1,h=!1,d,b={writableDataPathPreload:"",writableDataPath:"",preloading:!1};async function T(){let t="FILE_DATA",o,s,e,r,a$2;function n(){clearTimeout(a$2),e.result.close(),r.result.close(),o(0);}function I(){try{let l=[],f=e.result.transaction(t,"readonly");f.addEventListener("error",n),f.addEventListener("abort",n);let m=f.objectStore(t).openCursor();m.onsuccess=()=>{let i=m.result;if(i==null)try{let c=0,u=r.result.transaction(t,"readwrite"),P=u.objectStore(t);u.addEventListener("error",n),u.addEventListener("abort",n),u.oncomplete=()=>{clearTimeout(a$2),e.result.close(),r.result.close(),o(c);};for(let D of l){let g=P.count(D.primaryKey);g.onsuccess=()=>{g.result===0&&(++c,P.add(D.value,D.primaryKey));},clearTimeout(a$2),a$2=globalThis.setTimeout(()=>{a.log(a.Level.Warn,"IndexedDB database is blocked! Resetting Scandit Data Capture library..."),s(new a$1({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}));},500);}}catch(c){n.call({error:c});}else {let{writableDataPathPreload:c,writableDataPath:u}=b;l.push({value:i.value,primaryKey:i.primaryKey.toString().replace(`${c}/`,`${u}/`)}),i.continue();}},m.onerror=n;}catch(l){n.call({error:l});}}return new Promise((l,f)=>{let{writableDataPathPreload:m,writableDataPath:i}=b;o=l,s=f,e=indexedDB.open(m),e.onupgradeneeded=()=>{try{e.result.createObjectStore(t);}catch(c){}},e.onsuccess=()=>{if(!Array.from(e.result.objectStoreNames).includes(t)){l(0);return}r=indexedDB.open(i),r.onupgradeneeded=()=>{try{r.result.createObjectStore(t);}catch(c){}},r.onsuccess=()=>{I();},r.onblocked=r.onerror=n;},e.onblocked=e.onerror=n;})}async function B(t,o){let{preloading:s}=b;if(d!=null){if(p=!0,!s&&t){let e=await T();if(!o&&e===0){p=!1;return}}await new Promise((e,r)=>{d==null||d(t,a=>{if(p=!1,a!=null){r(a);return}e();});});}}async function w(t,o=!1,s=!1){return (!h||s)&&(p?(h=!0,y=y.then(async()=>(h=!1,B(t,o)))):y=B(t,o)),y}async function O(t){b=t,d=FS.syncfs,FS.syncfs=(o,s)=>{let e=s,r=a=>{e(a);};w(o).then(r).catch(r);};try{FS.mkdir(b.writableDataPath);}catch(o){if(o.code!=="EEXIST")throw d=void 0,o}return FS.mount(IDBFS,{},b.writableDataPath),w(!0,!0)}
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { a } from './chunk-XR65N6EG.js';
2
2
 
3
3
  var n=class{constructor(e){this.overrideThreadsSupport="auto";this.overrideSimdSupport="auto";this.workerCommandId=1;this.workerTasks=new Map;this.workerListeners=[];var r,a;this.libraryLocation=e.libraryLocation,this.isPreloadEngine=(r=e.preloadEngine)!=null?r:!1,this.workerMessageListener=this.onWorkerMessage.bind(this),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),this.overrideThreadsSupport=e.overrideThreadsSupport,this.overrideSimdSupport=e.overrideSimdSupport,this.verifyResponseHash=e.verifyResponseHash,this.highEndBlurryRecognition=(a=e.highEndBlurryRecognition)!=null?a:!1,typeof e.loadProgressNotifier=="function"&&this.addWorkerListener(o=>{var i;o.type==="loadLibraryProgress"&&((i=e.loadProgressNotifier)==null||i.call(e,o.payload));});}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=(void 0)),this._dataCaptureWorker}get name(){return "CoreLoader"}static async create(e){var a$1;let r=new this(e);return await r.workerCommand("setLogLevel",{level:(a$1=e.logLevel)!=null?a$1:a.Level.Debug}),await r.load(),r}async load(){var e;try{await this.workerCommand("loadLibrary",{libraryLocation:this.libraryLocation,locationPath:window.location.pathname,referredOrigin:window.location.origin,preloadEngine:this.isPreloadEngine,writableDataPathOverride:(e=localStorage.getItem("scanditWritableDataPathOverride"))!=null?e:void 0,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash});}catch(r){if(r!=null&&typeof r=="object"&&typeof r.error=="string"&&r.error.includes("BlockedIndexedDB"))return await this.terminateDataCaptureWorker(!1),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),localStorage.setItem("scanditWritableDataPathOverride",`/scandit_sync_folder_${[...crypto.getRandomValues(new Uint32Array(2))].map(a=>a.toString(32)).join("")}`),this.load();throw r}}async workerCommand(e,r,a){return new Promise((o,i)=>{let t=this.workerCommandId++;this.workerTasks.set(t,{resolve:o,reject:i,command:e});let d={...r,command:e,id:t};this.dataCaptureWorker.postMessage(d,a);})}async terminateDataCaptureWorker(e=!0){var r,a;e&&await this.workerCommand("dispose",{}),(r=this._dataCaptureWorker)==null||r.removeEventListener("message",this.workerMessageListener),(a=this._dataCaptureWorker)==null||a.terminate(),this._dataCaptureWorker=void 0;}addWorkerListener(e){this.workerListeners.push(e);}removeWorkerListener(e){this.workerListeners.includes(e)&&this.workerListeners.splice(this.workerListeners.indexOf(e),1);}getOptions(){return {libraryLocation:this.libraryLocation,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash}}onWorkerMessage(e){let r=e.data;if(r.type==="workerTaskId"&&typeof r.id=="number"){let{id:a,error:o,payload:i}=r,t=this.workerTasks.get(a);o==null?t==null||t.resolve(i):t==null||t.reject(r),this.workerTasks.delete(a);}else for(let a of this.workerListeners)a(r);}};
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { c, a, b } from './chunk-JFRSUCMO.js';
2
2
  import { a as a$2 } from './chunk-EQRBQJYM.js';
3
3
  import { a as a$1 } from './chunk-7XQ3GHYH.js';
4
- import { a as a$3 } from './chunk-SP3HSP4K.js';
4
+ import { a as a$3 } from './chunk-XR65N6EG.js';
5
5
 
6
6
  var s=class s{constructor(e){this.canUploadFile=!1;this._mounted=!1;this._loading=!1;this._htmlRoot=void 0;this._canvas=void 0;this._onInputCheck=void 0;this._onBeforeFileRead=void 0;this._onImageLoadError=void 0;this._onFileReaderError=void 0;this._onCaptureReady=void 0;this._resizedImageSizeLimit=1440;this._inputElement=void 0;this._buttonElement=void 0;this._chooseImageText="";this._settings=e;}get canvas(){return this._canvas||(this._canvas=document.createElement("canvas")),this._canvas}get canvasContext(){return this._canvasContext||(this._canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0})),this._canvasContext}mount(e){var E;if(this._mounted)return;if(!document.head.querySelector(`[data-component=${s.componentName}]`)){let o=document.createElement("style");o.dataset.component=s.componentName,o.textContent=c,document.head.append(o);}let t=document.createElement("div");t.className=a.SINGLE_IMAGE_UPLOADER_CONTAINER,Object.assign(t.style,b.SINGLE_IMAGE_UPLOADER_CONTAINER_STYLE,this._settings.containerStyle),e.append(t);let{iconElement:n,iconStyle:d,informationElement:i,informationStyle:u,buttonElement:r,buttonStyle:p,onlyCameraCapture:b$1}=this._settings;Object.assign(n.style,b.SINGLE_IMAGE_UPLOADER_ICON_STYLE,d,{maxWidth:"100px",maxHeight:"100px"}),t.append(n),i.hasAttribute(s.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(i.style,b.SINGLE_IMAGE_UPLOADER_INFORMATION_STYLE,u),i.textContent=a$1.getInstance().get("core.singleImageUploader.title")),t.append(i);let a$3=document.createElement("input");a$3.type="file",a$3.accept="image/*",b$1&&(a$3.capture="environment",a$3.dataset.onlyCaptureOnMobile="environment"),a$3.addEventListener("change",o=>{this.onFileUpload(o);}),a$3.addEventListener("click",o=>{var l;(l=this._onInputCheck)==null||l.call(this,o);}),a$3.addEventListener("keydown",o=>{var l;(l=this._onInputCheck)==null||l.call(this,o);});let c$1=document.createElement("label");c$1.append(a$3),r.hasAttribute(s.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(r.style,b.SINGLE_IMAGE_UPLOADER_BUTTON_STYLE,p),r.textContent=a$1.getInstance().get("core.singleImageUploader.button")),c$1.append(r),t.append(c$1);let v=document.createRange().createContextualFragment(atob(a$2)).firstElementChild;Object.assign(v.style,{position:"absolute",bottom:"1em",right:"1em",width:"10em"}),t.append(v),this._htmlRoot=t,this._mounted=!0,this._inputElement=a$3,this._buttonElement=r,this._chooseImageText=(E=r.textContent)!=null?E:"";}unmount(){var e,t;this._mounted&&((e=this._htmlRoot)==null||e.remove(),(t=document.head.querySelector(`[data-component=${s.componentName}]`))==null||t.remove(),this._mounted=!1);}setButtonState(e){this._inputElement&&(this._inputElement.disabled=e==="disabled");}getButtonState(){return this._inputElement?this._inputElement.disabled?"disabled":"enabled":"disabled"}onInputCheck(e){this._onInputCheck=e;}onBeforeFileRead(e){this._onBeforeFileRead=e;}onImageLoadError(e){this._onImageLoadError=e;}onFileReaderError(e){this._onFileReaderError=e;}onCaptureReady(e){this._onCaptureReady=e;}onAfterImageProcessed(){this.setLoading(!1);}setLoading(e){this._buttonElement&&(this.setButtonState(e?"disabled":"enabled"),this._buttonElement.textContent=e?"...":this._chooseImageText,this._loading=e);}getResizedImageDimensions(e,t){return e<=this._resizedImageSizeLimit&&t<=this._resizedImageSizeLimit?{width:e,height:t}:e>t?{width:this._resizedImageSizeLimit,height:Math.round(t/e*this._resizedImageSizeLimit)}:{width:Math.round(e/t*this._resizedImageSizeLimit),height:this._resizedImageSizeLimit}}onImageLoad(e){var i;let{height:t,width:n}=this.getResizedImageDimensions(e.naturalWidth,e.naturalHeight);this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=t,this.canvasContext.drawImage(e,0,0,n,t);let d={data:this.canvasContext.getImageData(0,0,n,t).data,width:n,height:t};(i=this._onCaptureReady)==null||i.call(this,d);}onFileReaderLoad(e,t,n){e.value="",t.result!=null&&(n.addEventListener("load",()=>{this.onImageLoad(n);},{once:!0}),n.addEventListener("error",d=>{var i;(i=this._onImageLoadError)==null||i.call(this,d),this.setLoading(!1);},{once:!0}),n.src=t.result);}onFileUpload(e){var u;this.setLoading(!0);let t=e.currentTarget,{files:n}=t;if(n==null||n.length===0){this.setLoading(!1);return}if((u=this._onBeforeFileRead)==null||u.call(this,e),!this.canUploadFile){t.value="",a$3.log(a$3.Level.Warn,"Can't upload file, no capture mode enabled."),this.setLoading(!1);return}let d=new Image,i=new FileReader;i.addEventListener("load",()=>{this.onFileReaderLoad(t,i,d);}),i.addEventListener("error",r=>{var p;(p=this._onFileReaderError)==null||p.call(this,r),this.setLoading(!1);}),i.readAsDataURL(n[0]);}};s.componentName="SingleImageUploaderView",s.DEFAULT_DOM_ATTRIBUTE="data-scandit-default";var I=s;
7
7
 
@@ -1,6 +1,6 @@
1
- import { a as a$1 } from './chunk-7NUUZ7LP.js';
2
- import { d } from './chunk-OTI45AJG.js';
3
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { a as a$1 } from './chunk-MM6VVG46.js';
2
+ import { d } from './chunk-ZR62555L.js';
3
+ import { a } from './chunk-XR65N6EG.js';
4
4
  import { a as a$2 } from './chunk-4FJRDG6T.js';
5
5
  import { g as g$1 } from './chunk-W7LJM2QO.js';
6
6
  import { d as d$1 } from './chunk-UPUPKPEP.js';
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { a } from './chunk-XR65N6EG.js';
2
2
  import { e, d as d$1, c } from './chunk-2Q5FZVGV.js';
3
3
 
4
4
  var b={};function T(e){return [...new Uint8Array(e)].map(r=>{let n=r.toString(16);return n.length===1?`0${n}`:n}).join("")}function I(e){return d$1(this,null,function*(){let r=e.getReader();try{for(;;){let{done:n,value:t}=yield new c(r.read());if(n)return;yield t;}}finally{r.releaseLock();}})}async function L(e$1){let r=[],n=0,t=0;try{for(var s=e(I(e$1)),f,o,l;f=!(o=await s.next()).done;f=!1){let c=o.value;r.push(c),n+=c.length;}}catch(o){l=[o];}finally{try{f&&(o=s.return)&&await o.call(s);}finally{if(l)throw l[0]}}let a=new Uint8Array(n);for(let c of r)a.set(c,t),t+=c.length;return a.buffer}var S=(t=>(t.VALID="VALID",t.INVALID="INVALID",t.NOT_VERIFIABLE="NOT_VERIFIABLE",t))(S||{});async function R(e,r,n){if(typeof crypto.subtle.digest!="function")return a.log(a.Level.Warn,`Insecure context (see https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts): The hash of the Scandit Data Capture library WASM file found at ${n} could not be verified`),"NOT_VERIFIABLE";try{let t=e instanceof Promise?await e:e,a$1=await crypto.subtle.digest("SHA-256",t),s=T(a$1);return r==null?(a.log(a.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):s===r?(a.log(a.Level.Debug,`Data Capture library WASM integrity found at ${n} has been verified correctly.`),"VALID"):(a.log(a.Level.Warn,`The Scandit Data Capture library WASM file found at ${n} seems invalid: expected file hash doesn't match (received: ${s}, expected: ${r}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(t){return a.log(a.Level.Warn,"Wasm response could not be verified",t),"NOT_VERIFIABLE"}}var d=new Map([["br",4.4],["gzip",2.9],["none",1]]);function w(e){var t;let r="content-encoding";if(e==null||e.get(r)==null)return d.get("none");let n=new Set(((t=e.get(r))!=null?t:"").split(",").map(a=>a.trim()));for(let[a,s]of d)if(n.has(a))return s;return d.get("none")}function B(e){var t,a;if(e==null)return 0;let r=(t=w(e))!=null?t:1,n=Number.parseInt((a=e.get("content-length"))!=null?a:"0",10);return Number.isNaN(n)?0:Math.floor(n*r*100)/100}function x(e){let{pathname:r}=new URL(e);for(let[n,t]of Object.entries(b))if(r.endsWith(n))return t.bytes;return 0}function V(e){b=e;}var N=(e,r)=>{let n=B(r);return n===0?x(e):n};function W(e,r,n,{onProgress:t,onError:a,onComplete:s}){if(!r.body)return [r];let f=N(e,r.headers),o=0,l=0,[c,A]=n?r.body.tee():[r.body],v=c.pipeThrough(new TransformStream({async transform(u,y){try{o+=u.length,l=Number((o/f*100).toFixed(2)),f>0&&u.length>0&&l<100?t==null||t({percentage:l,loadedBytes:o,privateUri:e}):f===0&&u.length>0&&(t==null||t({percentage:null,loadedBytes:o,privateUri:e})),y.enqueue(u);}catch(m){y.error(m),a==null||a({error:m});}},flush(u){t==null||t({percentage:100,loadedBytes:o,privateUri:e}),s==null||s({percentage:100,loadedBytes:o,privateUri:e}),u.terminate();}}));return [new Response(v,{headers:new Headers(r.headers),status:r.status,statusText:r.statusText}),A]}async function D({wasmURI:e,expectedHash:r,verifyResponseHash:n,onProgress:t,onComplete:a,onError:s,referredOrigin:f}){let o=await fetch(e,{referrerPolicy:"origin",referrer:f!=null?f:""});if(!o.ok)throw new Error(`HTTP status code is not ok: ${o.status}, ${o.statusText}`);let[l,c]=W(e,o,n,{onProgress:t,onError:s,onComplete:a});return c!=null&&R(L(c),r,e),l}
@@ -1,5 +1,5 @@
1
1
  import { b } from './chunk-457L5N2F.js';
2
- import { a } from './chunk-SP3HSP4K.js';
2
+ import { a } from './chunk-XR65N6EG.js';
3
3
 
4
4
  var d={processedFramesCount:{text:"Frames processed by engine",valueSuffix:"/sec"},frameDataPoolSize:{text:"Frame data pool size",valueSuffix:""},redrawRequestsCount:{text:"Engine redraw requests",valueSuffix:"/sec"},actualRedrawsCount:{text:"Actual redraws",valueSuffix:"/sec"},FPS:{text:"Overlay FPS ",valueSuffix:"/sec"}},p=class extends b{constructor(e){var r;super(e);this.drawPerformanceTimer=null;this.drawPerformanceFPSCounter=0;this.lastDrawPerformanceFPSCounter=0;this.performanceCanvasLayer=document.createElement("canvas"),(r=e.parentElement)==null||r.insertBefore(this.performanceCanvasLayer,e);}get performanceLayerContext(){if(!this._performanceLayerContext&&(this._performanceLayerContext=this.performanceCanvasLayer.getContext("2d"),!this._performanceLayerContext))throw new TypeError("CanvasRenderingContext cannot be retrieved.");return this._performanceLayerContext}setupPerformanceLayer(){}setPerformanceMetrics(e){this.performanceMetrics=e,this.drawPerformanceMetrics();}updateCanvasSizeAttributes(e,r,t=window.devicePixelRatio){super.updateCanvasSizeAttributes(e,r,t),this.performanceCanvasLayer.width=this.canvas.width,this.performanceCanvasLayer.height=this.canvas.height,this.performanceLayerContext.scale(t,t);}doDraw(){super.doDraw();}drawPerformanceMetrics(){this.drawPerformanceTimer==null&&(a.log(a.Level.Debug,"Drawing performance monitoring enabled, FPS will be drawn into canvas"),this.drawPerformanceTimer=setInterval(()=>{this.lastDrawPerformanceFPSCounter=this.drawPerformanceFPSCounter,this.drawPerformanceFPSCounter=0;},1e3)),this.drawPerformanceFPSCounter++,this.drawFullPerformanceMetrics();}drawFullPerformanceMetrics(){let e={...this.performanceMetrics,FPS:this.lastDrawPerformanceFPSCounter};this.performanceLayerContext.lineWidth=1,this.performanceLayerContext.fillStyle="white",this.performanceLayerContext.strokeStyle="black";let r=Math.min(Math.max(window.innerWidth/35,13),20),t=1.5*r,s=1.5;this.performanceLayerContext.font=`bold ${r}px sans-serif`;let l=0,n=0,i=[];for(let[a,u]of Object.entries(e)){let c=d[a],f=`${c.text}: ${u}${c.valueSuffix}`;n=Math.max(this.performanceLayerContext.measureText(f).width,n),i.push([f,t,t+r*s*l++]);}this.performanceLayerContext.clearRect(t,t-r,n,Object.values(e).length*r*s);for(let a of i)this.performanceLayerContext.fillText(...a),this.performanceLayerContext.strokeText(...a);}};
5
5
 
@@ -0,0 +1,3 @@
1
+ var e;(o=>{function i(){let r="7.0.0";return r}o.sdkVersion=i;})(e||(e={}));
2
+
3
+ export { e as a };
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ZTM7LWVE.js';
1
+ import { a } from './chunk-HEBLZ3EE.js';
2
2
 
3
3
  var t=new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function l(e){}
4
4
 
@@ -1,23 +1,23 @@
1
1
  import { b as b$3 } from './chunk-E2VUMNY4.js';
2
2
  import { a as a$6 } from './chunk-GWI2ZHMO.js';
3
- import { d as d$2, c, b as b$4 } from './chunk-6XT4BUUR.js';
3
+ import { d as d$2, c, b as b$4 } from './chunk-XM4ZH4L3.js';
4
4
  import { a as a$e } from './chunk-WSG6WSZN.js';
5
5
  import { a as a$2 } from './chunk-N5YZEC56.js';
6
6
  import { a as a$a } from './chunk-44B7Z6ZZ.js';
7
7
  import { b, a as a$3 } from './chunk-5S537AFM.js';
8
- import { a as a$c } from './chunk-HZY2EBWP.js';
8
+ import { a as a$c } from './chunk-46WJFV3I.js';
9
9
  import { a as a$7 } from './chunk-PXXUQXGB.js';
10
10
  import { a as a$b } from './chunk-XVLYCDJL.js';
11
11
  import { a as a$8 } from './chunk-KYNYQBNF.js';
12
12
  import { a as a$h } from './chunk-ZKROZLQ4.js';
13
13
  import { a as a$5 } from './chunk-N5F43TUJ.js';
14
- import { a as a$f } from './chunk-QR4TEDGM.js';
14
+ import { a as a$f } from './chunk-DMOXDUF6.js';
15
15
  import { b as b$1 } from './chunk-457L5N2F.js';
16
16
  import { a as a$1 } from './chunk-VJB527QZ.js';
17
17
  import { a as a$9 } from './chunk-NMX4VHW2.js';
18
18
  import { a } from './chunk-7XQ3GHYH.js';
19
- import { d as d$1 } from './chunk-OTI45AJG.js';
20
- import { a as a$d } from './chunk-SP3HSP4K.js';
19
+ import { d as d$1 } from './chunk-ZR62555L.js';
20
+ import { a as a$d } from './chunk-XR65N6EG.js';
21
21
  import { d } from './chunk-UPUPKPEP.js';
22
22
  import { a as a$4, b as b$2, i, f } from './chunk-N4NOODAT.js';
23
23
  import { a as a$g } from './chunk-WUHKODFA.js';
@@ -1,9 +1,9 @@
1
- import { a } from './chunk-2NZR6P45.js';
1
+ import { a } from './chunk-KWL7KLMR.js';
2
2
  import { b } from './chunk-FTD535WI.js';
3
3
  import { a as a$4 } from './chunk-AIRWHLJH.js';
4
4
  import { a as a$3 } from './chunk-FGO2SSRS.js';
5
5
  import { a as a$1 } from './chunk-QCRFVRSS.js';
6
- import { a as a$2 } from './chunk-SP3HSP4K.js';
6
+ import { a as a$2 } from './chunk-XR65N6EG.js';
7
7
 
8
8
  var h=class{constructor(a$2,e){this.onMessageListener=this.onMessage.bind(this);this.workerSelf=a$2,this.dataCaptureInstance=new a(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),a$1(a$2)&&this.listenToMessages();}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",a=>{a$2.log(a$2.Level.Error,a);}),this.workerSelf.addEventListener("messageerror",a=>{a$2.log(a$2.Level.Error,a);});}postMessage(a,e){this.workerSelf.postMessage(a,e!=null?e:[]);}getOffscreenCanvas(){if(typeof this.workerSelf.OffscreenCanvas=="function")return new this.workerSelf.OffscreenCanvas(32,32)}hasPayload(a){return a$3(a)&&"payload"in a}hasTransferables(a){return a$3(a)&&Array.isArray(a.transferables)}async respondWith(a,e,u){let r=null,t;try{t=u(),t instanceof Promise&&(t=await t);}catch(l){t=void 0,r=a$4(l);}let i={type:"workerTaskId",command:a,id:e,payload:this.hasPayload(t)?t.payload:void 0};r!=null&&(i.error=r),this.postMessage(i,this.hasTransferables(t)?t.transferables:[]);}onMessage(a){switch(a.data.command){case"loadLibrary":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,preloadEngine:e.preloadEngine,writableDataPathOverride:e.writableDataPathOverride,overrideThreadsSupport:e.overrideThreadsSupport,overrideSimdSupport:e.overrideSimdSupport,verifyResponseHash:e.verifyResponseHash}));}break}case"onTap":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point);});}break}case"hintPresenterV2update":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update();});}break}case"createContext":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain}));}break}case"setFrameSource":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource));}break}case"processFrame":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,width:e.width,height:e.height,colorType:e.colorType}));}break}case"requestFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId));}break}case"deleteFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId);});}break}case"updateContext":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e));}break}case"dispose":{this.respondWith(a.data.command,a.data.id,()=>this.dataCaptureInstance.dispose());break}case"flushAnalytics":{this.respondWith(a.data.command,a.data.id,()=>{this.dataCaptureInstance.flushAnalytics();});break}case"reportCameraProperties":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e));}break}case"setLogLevel":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{a$2.setLevel(e.level);});}break}case"extractCentaurusLicense":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey));}break}case"documentVisibility":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state);});}break}case"isFeatureSupported":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature));}break}case"getViewfinderInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo());}break}case"getOpenSourceSoftwareLicenseInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo());}break}default:return b(a.data),!1}return !0}};
9
9
 
@@ -0,0 +1,7 @@
1
+ import { a } from './chunk-NMROJLGQ.js';
2
+ import { a as a$1 } from './chunk-XR65N6EG.js';
3
+
4
+ var s=class{constructor(t=a,e=a$1,r=globalThis.fetch.bind(globalThis)){this.sdk=t,this.logger=e,this.fetch=r;}get workerCommand(){var t;return (t=this.sdk.mainDataCaptureLoader)==null?void 0:t.workerCommand.bind(this.sdk.mainDataCaptureLoader)}async getLicenseText(){var o,i;if(this.sdk.configurePhase!=="done")return this.logger.warn('You must call "configure" before retrieving open source license text info.'),"";let t=new URL(`${((o=this.sdk.libraryLocation)!=null?o:"").replace(/\/$/,"")}/license/web-core-license.txt`),[e,r]=await Promise.all([(i=this.workerCommand)==null?void 0:i.call(this,"getOpenSourceSoftwareLicenseInfo",{}),this.fetchWebLicenseText(t.toString())]);return [e==null?void 0:e.licenseText,r].filter(l=>l!=null).join(`
5
+ `)}async fetchWebLicenseText(t){return this.fetch(t,{mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"}}).then(async e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.text()}).catch(e=>(this.logger.warn(`Failed to fetch license from ${t}: ${e.toString()}`),null))}};
6
+
7
+ export { s as a };
@@ -1,11 +1,11 @@
1
- import { a as a$4 } from './chunk-EYIDRFHC.js';
2
- import { a as a$5 } from './chunk-D4YDSS77.js';
3
- import { c as c$1, a as a$6 } from './chunk-HNFNB37O.js';
4
- import { c } from './chunk-J25IZC7J.js';
1
+ import { a as a$5 } from './chunk-YGFWA4WG.js';
2
+ import { c as c$1, a as a$6 } from './chunk-2WN7BGOB.js';
3
+ import { c } from './chunk-B5JOQVFY.js';
4
+ import { a as a$4 } from './chunk-34FEFSCI.js';
5
5
  import { d } from './chunk-RQQK6Z5F.js';
6
- import { a as a$2 } from './chunk-YRSVOTNR.js';
6
+ import { a as a$2 } from './chunk-DWX2KHSS.js';
7
7
  import { a as a$1 } from './chunk-O7TZTIHO.js';
8
- import { a } from './chunk-SP3HSP4K.js';
8
+ import { a } from './chunk-XR65N6EG.js';
9
9
  import { a as a$3 } from './chunk-QCZSSQAQ.js';
10
10
  import { c as c$2, e } from './chunk-H4TH4342.js';
11
11
 
@@ -1,4 +1,4 @@
1
- import { d } from './chunk-BKSPXD6N.js';
1
+ import { d } from './chunk-SXOL25UA.js';
2
2
 
3
3
  var i;(m=>{async function n(o,t){return d.getCameras(o!=null?o:!1,t!=null?t:!1)}m.getCameras=n;})(i||(i={}));
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { a } from './chunk-EK2IIDFY.js';
2
2
  import { a as a$2 } from './chunk-76GU6PXK.js';
3
- import { a as a$1 } from './chunk-SP3HSP4K.js';
3
+ import { a as a$1 } from './chunk-XR65N6EG.js';
4
4
 
5
5
  var s=(e=>(e.RGBA="RGBA",e.GRAYSCALE="GRAYSCALE",e))(s||{}),n=class extends a{constructor(){super(...arguments);this.colorType="RGBA";}get _initialized(){return this._texture!=null&&this._framebuffer!=null}readFromSource(e){this._initialized||this.setup(),this.updateFrameSizeIfNeeded();let i=this._framePool.pop();return this._contextWebGL.texImage2D(this._contextWebGL.TEXTURE_2D,0,this._contextWebGL.RGBA,this._contextWebGL.RGBA,this._contextWebGL.UNSIGNED_BYTE,e),this._contextWebGL.readPixels(0,0,this._contextWebGL.drawingBufferWidth,this._contextWebGL.drawingBufferHeight,this._contextWebGL.RGBA,this._contextWebGL.UNSIGNED_BYTE,i),{width:this._contextWebGL.drawingBufferWidth,height:this._contextWebGL.drawingBufferHeight,data:i,colorType:this.colorType}}setup(){this._texture=this._contextWebGL.createTexture(),this._texture==null&&a$1.log(a$1.Level.Warn,"Could not create texture from WebGLRenderingContext"),this._contextWebGL.bindTexture(this._contextWebGL.TEXTURE_2D,this._texture),this._framebuffer=this._contextWebGL.createFramebuffer(),this._framebuffer==null&&a$1.log(a$1.Level.Warn,"Could not create frameBuffer from WebGLRenderingContext"),this._contextWebGL.bindFramebuffer(this._contextWebGL.FRAMEBUFFER,this._framebuffer),this._contextWebGL.framebufferTexture2D(this._contextWebGL.FRAMEBUFFER,this._contextWebGL.COLOR_ATTACHMENT0,this._contextWebGL.TEXTURE_2D,this._texture,0),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_WRAP_S,this._contextWebGL.CLAMP_TO_EDGE),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_WRAP_T,this._contextWebGL.CLAMP_TO_EDGE),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_MIN_FILTER,this._contextWebGL.NEAREST),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_MAG_FILTER,this._contextWebGL.NEAREST);}dispose(){var e;this._texture!=null&&(this._contextWebGL.deleteTexture(this._texture),this._texture=null),this._framebuffer!=null&&(this._contextWebGL.deleteFramebuffer(this._framebuffer),this._framebuffer=null),(e=this._framePool)==null||e.empty();}updateFrameSizeIfNeeded(){var o;let{drawingBufferWidth:e,drawingBufferHeight:i}=this._contextWebGL,r=e*i*4;this._frameSize!==r&&(this._frameSize=r,(o=this._framePool)==null||o.empty(),this._framePool=new a$2({capacity:this._maxPoolCapacity,lowWaterMark:this._minPoolCapacity,createItem:()=>new Uint8ClampedArray(this._frameSize)}));}};
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { b } from './chunk-6H6FKGVE.js';
2
2
 
3
- var r={configurePhase:"unconfigured",configurePromise:void 0,userLicenseKey:void 0,mainDataCaptureLoader:void 0,dataCaptureLoaders:void 0,loadingStatus:b};
3
+ var r={configurePhase:"unconfigured",configurePromise:void 0,userLicenseKey:void 0,mainDataCaptureLoader:void 0,dataCaptureLoaders:void 0,loadingStatus:b,libraryLocation:void 0};
4
4
 
5
5
  export { r as a };
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from './chunk-SP3HSP4K.js';
1
+ import { a as a$1 } from './chunk-XR65N6EG.js';
2
2
  import { a } from './chunk-QCZSSQAQ.js';
3
3
 
4
4
  var s=class i{constructor(){this.type="imageFrameSource";this._listeners=new Set;this._currentState="off";this._desiredState="off";this._context=null;this._imageData=null;}get desiredState(){return this._desiredState}get context(){return this._context}set context(e){this._context=e;}get currentState(){return this._currentState}static async fromFile(e){let t=URL.createObjectURL(e),r=new Image;r.src=t;try{await r.decode();}catch(a$1){throw new a({name:"InvalidImageError",message:"Submitted file is not an image"})}finally{URL.revokeObjectURL(t);}return i.fromImage(r)}static async fromImage(e){let t=new i;try{await e.decode();}catch(a$1){throw new a({name:"InvalidImageError",message:"Submitted image cannot be decoded"})}let r=t.getCanvasAndContext(e.width,e.height);return r.drawImage(e,0,0),t._imageData=r.getImageData(0,0,e.width,e.height,{colorSpace:"srgb"}),t}static async fromImageData(e){let t=new i,r=t.getCanvasAndContext(e.width,e.height);try{r.putImageData(e,0,0);}catch(a$1){throw new a({name:"InvalidImageError",message:`Submitted image data does not seem valid (details: ${a$1})`})}return t._imageData=e,t}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on")return}else if(this.currentState==="off")return;return this._desiredState=e,this._imageData==null?(a$1.log(a$1.Level.Warn,"No image data to process."),this.processSubmittedImage({data:new Uint8ClampedArray(0),width:0,height:0,colorSpace:"srgb"})):this.processSubmittedImage(this._imageData)}addListener(e){e!=null&&this._listeners.add(e);}removeListener(e){e!=null&&this._listeners.delete(e);}toJSONObject(){return {type:this.type}}getCurrentState(){return this._currentState}getCanvasAndContext(e,t){let r=document.createElement("canvas");r.width=e,r.height=t;let a$1=r.getContext("2d");if(a$1==null)throw new a({name:"ImageFrameSourceError",message:"Could not generate a canvas context to get image data"});return a$1}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this._listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processSubmittedImage(e){var t;await this.setCurrentState("on"),await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),await this.setCurrentState("off");}};
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { a } from './chunk-XR65N6EG.js';
2
2
 
3
3
  function d(r,o,t){let e=r.createProgram();if(!e)throw new Error("Cannot create webgl program");return r.attachShader(e,o),r.attachShader(e,t),r.linkProgram(e),r.getProgramParameter(e,r.LINK_STATUS)?e:(a.log(a.Level.Error,"Program linking error:",r.getProgramInfoLog(e)),r.deleteProgram(e),null)}function h(r,o,t){let e=r.createShader(o);if(!e)throw new Error("Cannot create a shader");return r.shaderSource(e,t),r.compileShader(e),r.getShaderParameter(e,r.COMPILE_STATUS)?e:(a.log(a.Level.Error,"Shader compilation error:",r.getShaderInfoLog(e)),r.deleteShader(e),null)}
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { a as a$1 } from './chunk-GPJEB376.js';
2
- import { a as a$2 } from './chunk-SP3HSP4K.js';
2
+ import { a as a$2 } from './chunk-XR65N6EG.js';
3
3
  import { a as a$3 } from './chunk-QCZSSQAQ.js';
4
4
  import { a } from './chunk-4FJRDG6T.js';
5
5
 
@@ -1,6 +1,6 @@
1
- import { a as a$1 } from './chunk-SJE4IFCX.js';
2
- import { d as d$1 } from './chunk-BKSPXD6N.js';
3
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { a as a$1 } from './chunk-4MKLNRV3.js';
2
+ import { d as d$1 } from './chunk-SXOL25UA.js';
3
+ import { a } from './chunk-XR65N6EG.js';
4
4
  import { a as a$2 } from './chunk-4FJRDG6T.js';
5
5
  import { f as f$1, g as g$1 } from './chunk-W7LJM2QO.js';
6
6
 
@@ -0,0 +1,3 @@
1
+ var v;(t=>{(n=>(n.Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Quiet="quiet"))(t.Level||(t.Level={}));let u=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),l="debug";function c(e){l=e;}t.setLevel=c;function o(e,...r){if(!(u.get(l)>u.get(e)))switch(e){case"debug":{console.debug(...r);break}case"info":{console.log(...r);break}case"warn":{console.warn(...r);break}case"error":{console.error(...r);break}}}t.log=o;function b(...e){o("warn",...e);}t.warn=b;function a(...e){o("debug",...e);}t.debug=a;function f(...e){o("info",...e);}t.info=f;function L(...e){o("error",...e);}t.error=L;})(v||(v={}));
2
+
3
+ export { v as a };
@@ -1,5 +1,5 @@
1
- import { b } from './chunk-HNFNB37O.js';
2
- import { a } from './chunk-SP3HSP4K.js';
1
+ import { b } from './chunk-2WN7BGOB.js';
2
+ import { a } from './chunk-XR65N6EG.js';
3
3
 
4
4
  async function s(e,o){async function a$1(){return importScripts(e)}try{await b(a$1,250,4e3,n=>{a.log(a.Level.Warn,n),a.log(a.Level.Warn,`Couldn't retrieve Scandit Data Capture library at ${e}, retrying...`);}),self.Module.mainScriptUrlOrBlob=e;let t=globalThis.SDC_WASM_JS_VERSION;return t!==o&&a.log(a.Level.Warn,`The Scandit Data Capture library JS file found at ${e} seems invalid: expected version doesn't match (received: ${t}, expected: ${o}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(t){return a.log(a.Level.Error,t),!1}}
5
5
 
@@ -1,4 +1,4 @@
1
- import { b, a as a$2 } from './chunk-SZ672BOB.js';
1
+ import { b, a as a$2 } from './chunk-SK6L34IF.js';
2
2
  import { a } from './chunk-EK2IIDFY.js';
3
3
  import { a as a$1 } from './chunk-76GU6PXK.js';
4
4
 
@@ -1,11 +1,11 @@
1
- import { a as a$5, b as b$1 } from './chunk-IH7SHTFM.js';
2
1
  import { a as a$4 } from './chunk-JS3T7K2Z.js';
3
- import { a as a$1 } from './chunk-D2EQRTOA.js';
4
- import { a as a$3 } from './chunk-EMHHC6NB.js';
2
+ import { a as a$5, b as b$1 } from './chunk-IH7SHTFM.js';
3
+ import { a as a$1 } from './chunk-KCNXUTBL.js';
4
+ import { a as a$3 } from './chunk-NMROJLGQ.js';
5
5
  import { a as a$2 } from './chunk-7SW2PEHB.js';
6
6
  import { a as a$6 } from './chunk-FGO2SSRS.js';
7
- import { d } from './chunk-OTI45AJG.js';
8
- import { a as a$7 } from './chunk-SP3HSP4K.js';
7
+ import { d } from './chunk-ZR62555L.js';
8
+ import { a as a$7 } from './chunk-XR65N6EG.js';
9
9
  import { a } from './chunk-4FJRDG6T.js';
10
10
  import { f } from './chunk-W7LJM2QO.js';
11
11
  import { a as a$8 } from './chunk-WUHKODFA.js';
@@ -1,9 +1,9 @@
1
1
  import { a as a$1 } from './chunk-R6E4CT22.js';
2
- import { a as a$4 } from './chunk-IZLMNXTH.js';
3
- import { b } from './chunk-DEQ72K2Q.js';
2
+ import { a as a$4 } from './chunk-YGNHN5OT.js';
3
+ import { b } from './chunk-MOF3P7VK.js';
4
4
  import { a } from './chunk-JKL2W65E.js';
5
- import { d } from './chunk-BKSPXD6N.js';
6
- import { a as a$3 } from './chunk-SP3HSP4K.js';
5
+ import { d } from './chunk-SXOL25UA.js';
6
+ import { a as a$3 } from './chunk-XR65N6EG.js';
7
7
  import { a as a$5 } from './chunk-QCZSSQAQ.js';
8
8
  import { a as a$2 } from './chunk-4FJRDG6T.js';
9
9
 
package/build/js/index.js CHANGED
@@ -1,17 +1,17 @@
1
- export { a as DataCaptureLoader } from './chunks/chunk-CREAZBG7.js';
2
- export { a as WorkerMain } from './chunks/chunk-ZTM7LWVE.js';
1
+ export { a as DataCaptureLoader } from './chunks/chunk-3TNNUKVW.js';
2
+ export { a as WorkerMain } from './chunks/chunk-HEBLZ3EE.js';
3
3
  export { a as OverrideState } from './chunks/chunk-6W7FX6LD.js';
4
4
  import { a as a$3 } from './chunks/chunk-RQQK6Z5F.js';
5
5
  export { c as CameraFOVSwitchControl, b as CameraSwitchControl, a as TorchSwitchControl } from './chunks/chunk-T5EUB6UG.js';
6
6
  export { a as NoViewfinder } from './chunks/chunk-4ZMCJXZS.js';
7
7
  export { a as convertToPublicFrameData } from './chunks/chunk-UHFABUTI.js';
8
- export { a as ImageFrameSource } from './chunks/chunk-VRVSELOR.js';
8
+ export { a as ImageFrameSource } from './chunks/chunk-Q7NDC6TJ.js';
9
9
  export { a as PrivateNoneLocationSelection, b as RadiusLocationSelection, c as RectangularLocationSelection } from './chunks/chunk-KW3YSGJX.js';
10
10
  export { a as RectangularViewfinder } from './chunks/chunk-2WQHYCZC.js';
11
11
  export { a as SingleImageUploader } from './chunks/chunk-ZSYUKWWL.js';
12
12
  export { a as SingleImageUploaderSettings } from './chunks/chunk-KAZWF3JC.js';
13
- export { a as DataCaptureVersion } from './chunks/chunk-YRSVOTNR.js';
14
- export { a as DataCaptureView } from './chunks/chunk-HRS63RFH.js';
13
+ export { a as DataCaptureVersion } from './chunks/chunk-DWX2KHSS.js';
14
+ export { a as DataCaptureView } from './chunks/chunk-ERQILEGU.js';
15
15
  import { a as a$5 } from './chunks/chunk-N5YZEC56.js';
16
16
  export { a as AnchorPositions } from './chunks/chunk-N5F43TUJ.js';
17
17
  import { a as a$2 } from './chunks/chunk-VJB527QZ.js';
@@ -23,17 +23,17 @@ export { a as Sound } from './chunks/chunk-GSJH2EXJ.js';
23
23
  export { a as Vibration } from './chunks/chunk-UA3E3GGM.js';
24
24
  export { a as AimerViewfinder } from './chunks/chunk-TVDFY6ME.js';
25
25
  export { a as Brush } from './chunks/chunk-MKHBE7BB.js';
26
- export { a as Camera } from './chunks/chunk-SJE4IFCX.js';
27
- export { a as CameraAccess } from './chunks/chunk-7NUUZ7LP.js';
28
- export { a as DataCaptureContext } from './chunks/chunk-CQ5KZRRX.js';
26
+ export { a as Camera } from './chunks/chunk-4MKLNRV3.js';
27
+ export { a as CameraAccess } from './chunks/chunk-MM6VVG46.js';
28
+ export { a as DataCaptureContext } from './chunks/chunk-YXQ44PG2.js';
29
29
  import { a as a$6, c } from './chunks/chunk-IH7SHTFM.js';
30
- import { a } from './chunks/chunk-EMHHC6NB.js';
30
+ import { a } from './chunks/chunk-NMROJLGQ.js';
31
31
  import { b } from './chunks/chunk-6H6FKGVE.js';
32
32
  export { b as loadingStatus } from './chunks/chunk-6H6FKGVE.js';
33
33
  export { a as DataCaptureContextSettings } from './chunks/chunk-7SW2PEHB.js';
34
34
  import { a as a$9 } from './chunks/chunk-GPJEB376.js';
35
- import { a as a$4 } from './chunks/chunk-SP3HSP4K.js';
36
- export { a as Logger } from './chunks/chunk-SP3HSP4K.js';
35
+ import { a as a$4 } from './chunks/chunk-XR65N6EG.js';
36
+ export { a as Logger } from './chunks/chunk-XR65N6EG.js';
37
37
  import { a as a$7 } from './chunks/chunk-QCZSSQAQ.js';
38
38
  export { a as DataCaptureError } from './chunks/chunk-QCZSSQAQ.js';
39
39
  import { a as a$8 } from './chunks/chunk-4FJRDG6T.js';
@@ -45,8 +45,8 @@ export { a as LogoStyle, c as SwipeToZoom, b as TapToFocus } from './chunks/chun
45
45
  export { q as Anchor, n as Color, p as Direction, m as MarginsWithUnit, c as MeasureUnit, d as NumberWithUnit, o as Orientation, a as Point, e as PointWithUnit, b as Quadrilateral, f as Rect, g as RectWithUnit, i as Size, j as SizeWithAspect, h as SizeWithUnit, l as SizeWithUnitAndAspect, k as SizingMode } from './chunks/chunk-N4NOODAT.js';
46
46
  export { a as ContextStatus, b as PrivateMirrorAxis } from './chunks/chunk-WUHKODFA.js';
47
47
 
48
- var p=a;async function S(){var e;a.configurePhase="unconfigured",(e=p.mainDataCaptureLoader)!=null&&e.terminateDataCaptureWorker&&await p.mainDataCaptureLoader.terminateDataCaptureWorker(!0);}function l({percentage:e}){for(let r of a$5.values())r.setProgressBarPercentage(e);}function D(){var o,u;function e(v){return ["auto","off","on"].includes(v)}let r=new URLSearchParams(window.location.search),[t="auto",i="auto"]=[(o=r.get("pthreads"))==null?void 0:o.toLowerCase(),(u=r.get("simd"))==null?void 0:u.toLowerCase()];return {overrideThreadsSupport:e(t)?t:"auto",overrideSimdSupport:e(i)?i:"auto"}}async function O(e){if(a$6()&&typeof e.licenseDataPath!="string")throw new a$7({name:"MisconfigurationError",message:'"licenseDataPath" string is missing or not valid'});if(a$6()&&typeof e.licenseDataPath=="string"){let t=await c({licenseDataPath:e.licenseDataPath});if(t==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=t.licenseKey;}if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$7({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$7({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$7({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let r=e.moduleLoaders.map(t=>t.moduleName);if(!["BarcodeCapture","IdCapture"].includes(r[0]))throw new a$7({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}async function M(e,r){let t=new Map,i=new Map;for(let o of e)i.set(o.moduleName,o.load(r));await Promise.all(i.values());for(let[o,u]of i)t.set(o,await u);return t}async function Ue(e){var i;if(p.configurePhase!=="unconfigured"&&p.configurePromise!=null)return p.configurePromise;a$1.getInstance().updateIfMissing(a$2),await O(e);let r={...D(),...e,libraryLocation:a$3(e.libraryLocation),logLevel:(i=e.logLevel)!=null?i:a$4.Level.Debug,verifyResponseHash:!0,loadProgressNotifier:b.notify.bind(b)};a.userLicenseKey=r.licenseKey,a$4.setLevel(r.logLevel);async function t(){a.configurePhase="started",b.subscribe(l);let o=a$8.checkBrowserCompatibility();if(!o.fullSupport&&!o.scannerSupport)throw new a$9(o);a$8.isSupportedIOSVersion()||a$4.log(a$4.Level.Warn,`Warning: Minimum supported iOS version is 14.6.
48
+ var p=a;async function S(){var e;a.configurePhase="unconfigured",(e=p.mainDataCaptureLoader)!=null&&e.terminateDataCaptureWorker&&await p.mainDataCaptureLoader.terminateDataCaptureWorker(!0);}function l({percentage:e}){for(let r of a$5.values())r.setProgressBarPercentage(e);}function D(){var o,u;function e(v){return ["auto","off","on"].includes(v)}let r=new URLSearchParams(window.location.search),[a="auto",i="auto"]=[(o=r.get("pthreads"))==null?void 0:o.toLowerCase(),(u=r.get("simd"))==null?void 0:u.toLowerCase()];return {overrideThreadsSupport:e(a)?a:"auto",overrideSimdSupport:e(i)?i:"auto"}}async function O(e){if(a$6()&&typeof e.licenseDataPath!="string")throw new a$7({name:"MisconfigurationError",message:'"licenseDataPath" string is missing or not valid'});if(a$6()&&typeof e.licenseDataPath=="string"){let a=await c({licenseDataPath:e.licenseDataPath});if(a==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=a.licenseKey;}if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$7({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$7({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$7({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let r=e.moduleLoaders.map(a=>a.moduleName);if(!["BarcodeCapture","IdCapture"].includes(r[0]))throw new a$7({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}async function M(e,r){let a=new Map,i=new Map;for(let o of e)i.set(o.moduleName,o.load(r));await Promise.all(i.values());for(let[o,u]of i)a.set(o,await u);return a}async function Ue(e){var i;if(p.configurePhase!=="unconfigured"&&p.configurePromise!=null)return p.configurePromise;a$1.getInstance().updateIfMissing(a$2),await O(e);let r={...D(),...e,libraryLocation:a$3(e.libraryLocation),logLevel:(i=e.logLevel)!=null?i:a$4.Level.Debug,verifyResponseHash:!0,loadProgressNotifier:b.notify.bind(b)};a.userLicenseKey=r.licenseKey,a.libraryLocation=r.libraryLocation,a$4.setLevel(r.logLevel);async function a$5(){a.configurePhase="started",b.subscribe(l);let o=a$8.checkBrowserCompatibility();if(!o.fullSupport&&!o.scannerSupport)throw new a$9(o);a$8.isSupportedIOSVersion()||a$4.log(a$4.Level.Warn,`Warning: Minimum supported iOS version is 14.6.
49
49
  Please check the minimum system requirements here:
50
- https://docs.scandit.com/system-requirements#web-sdk`),a.dataCaptureLoaders=await M(r.moduleLoaders,r),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],a.configurePhase="done",b.unsubscribe(l);}return a.configurePromise=t().catch(o=>{throw S(),b.unsubscribe(l),o}),a.configurePromise}function Qe(e){a.mainDataCaptureLoader=e;}
50
+ https://docs.scandit.com/system-requirements#web-sdk`),a.dataCaptureLoaders=await M(r.moduleLoaders,r),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],a.configurePhase="done",b.unsubscribe(l);}return a.configurePromise=a$5().catch(o=>{throw S(),b.unsubscribe(l),o}),a.configurePromise}function Qe(e){a.mainDataCaptureLoader=e;}
51
51
 
52
52
  export { Ue as configure, S as resetConfigure, Qe as setMainDataCaptureLoader };
@@ -20,7 +20,11 @@ declare namespace Logger {
20
20
  * @param level The log level.
21
21
  * @param data The log contents.
22
22
  */
23
- function log(level: Exclude<Level, Level.Quiet>, ...data: any[]): void;
23
+ function log(level: Exclude<Level, Level.Quiet>, ...data: unknown[]): void;
24
+ function warn(...data: unknown[]): void;
25
+ function debug(...data: unknown[]): void;
26
+ function info(...data: unknown[]): void;
27
+ function error(...data: unknown[]): void;
24
28
  }
25
29
 
26
30
  export { Logger };
@@ -1 +1 @@
1
- export { a as Logger } from './chunks/chunk-SP3HSP4K.js';
1
+ export { a as Logger } from './chunks/chunk-XR65N6EG.js';
@@ -1 +1 @@
1
- export { c as AspectRatio, d as CameraAccess, a as CameraPosition, b as CameraResolutionConstraint } from '../chunks/chunk-BKSPXD6N.js';
1
+ export { c as AspectRatio, d as CameraAccess, a as CameraPosition, b as CameraResolutionConstraint } from '../chunks/chunk-SXOL25UA.js';
@@ -1 +1 @@
1
- export { d as CameraManager, c as CameraManagerEvent, b as CameraResolutionConstraint, a as MeteringMode } from '../chunks/chunk-OTI45AJG.js';
1
+ export { d as CameraManager, c as CameraManagerEvent, b as CameraResolutionConstraint, a as MeteringMode } from '../chunks/chunk-ZR62555L.js';
@@ -1 +1 @@
1
- export { a as PrivateCanvasDrawerWithMetrics } from '../chunks/chunk-QR4TEDGM.js';
1
+ export { a as PrivateCanvasDrawerWithMetrics } from '../chunks/chunk-DMOXDUF6.js';
@@ -21,9 +21,11 @@ import '../LoadingStatus.js';
21
21
  declare class CoreModuleLicenseTextProvider implements ModuleLicenseTextProvider {
22
22
  private sdk;
23
23
  private logger;
24
- constructor(sdk?: PartialSDKGlobals, logger?: typeof Logger);
24
+ private fetch;
25
+ constructor(sdk?: PartialSDKGlobals, logger?: typeof Logger, fetch?: typeof globalThis.fetch);
25
26
  private get workerCommand();
26
27
  getLicenseText(): Promise<string>;
28
+ private fetchWebLicenseText;
27
29
  }
28
30
 
29
31
  export { CoreModuleLicenseTextProvider };
@@ -1 +1 @@
1
- export { a as CoreModuleLicenseTextProvider } from '../chunks/chunk-D2EQRTOA.js';
1
+ export { a as CoreModuleLicenseTextProvider } from '../chunks/chunk-KCNXUTBL.js';
@@ -1 +1 @@
1
- export { a as ColorType, b as FrameReader } from '../../chunks/chunk-DEQ72K2Q.js';
1
+ export { a as ColorType, b as FrameReader } from '../../chunks/chunk-MOF3P7VK.js';
@@ -1 +1 @@
1
- export { a as GrayScaleFrameReader } from '../../chunks/chunk-IZLMNXTH.js';
1
+ export { a as GrayScaleFrameReader } from '../../chunks/chunk-YGNHN5OT.js';
@@ -1,2 +1,2 @@
1
- export { a as GrayScaleFrameReader } from '../../chunks/chunk-IZLMNXTH.js';
2
- export { b as FrameReader, a as FrameReaderType } from '../../chunks/chunk-DEQ72K2Q.js';
1
+ export { a as GrayScaleFrameReader } from '../../chunks/chunk-YGNHN5OT.js';
2
+ export { b as FrameReader, a as FrameReaderType } from '../../chunks/chunk-MOF3P7VK.js';
@@ -1 +1 @@
1
- export { a as createProgram, b as createShader } from '../../chunks/chunk-SZ672BOB.js';
1
+ export { a as createProgram, b as createShader } from '../../chunks/chunk-SK6L34IF.js';
@@ -1 +1 @@
1
- export { a as SingleImageUploaderView } from '../chunks/chunk-HZY2EBWP.js';
1
+ export { a as SingleImageUploaderView } from '../chunks/chunk-46WJFV3I.js';
@@ -1 +1 @@
1
- export { a as ButtonState, c as CameraSwitchControlWidget, d as PrivateCameraFOVSwitchControlWidget, b as PrivateTorchControlWidget } from '../chunks/chunk-6XT4BUUR.js';
1
+ export { a as ButtonState, c as CameraSwitchControlWidget, d as PrivateCameraFOVSwitchControlWidget, b as PrivateTorchControlWidget } from '../chunks/chunk-XM4ZH4L3.js';
package/build/js/sdk.d.ts CHANGED
@@ -23,6 +23,7 @@ interface SDKGlobals {
23
23
  mainDataCaptureLoader: DataCaptureLoader;
24
24
  dataCaptureLoaders: Map<string, DataCaptureLoader>;
25
25
  loadingStatus: LoadingStatus;
26
+ libraryLocation: string | undefined;
26
27
  }
27
28
  type PartialSDKGlobals = Partial<SDKGlobals>;
28
29
  declare const sdk: SDKGlobals;
package/build/js/sdk.js CHANGED
@@ -1 +1 @@
1
- export { a as sdk } from './chunks/chunk-EMHHC6NB.js';
1
+ export { a as sdk } from './chunks/chunk-NMROJLGQ.js';
@@ -1 +1 @@
1
- export { a as WorkerMain } from '../chunks/chunk-ZTM7LWVE.js';
1
+ export { a as WorkerMain } from '../chunks/chunk-HEBLZ3EE.js';
@@ -1 +1 @@
1
- export { b as InlineWorker, a as workerInstance } from '../chunks/chunk-EC4DRTKR.js';
1
+ export { b as InlineWorker, a as workerInstance } from '../chunks/chunk-EQEB3JUS.js';
@@ -1 +1 @@
1
- export { a as DataCaptureEngine } from '../chunks/chunk-2NZR6P45.js';
1
+ export { a as DataCaptureEngine } from '../chunks/chunk-KWL7KLMR.js';
@@ -1 +1 @@
1
- export { a as DataCaptureLoader } from '../chunks/chunk-CREAZBG7.js';
1
+ export { a as DataCaptureLoader } from '../chunks/chunk-3TNNUKVW.js';
@@ -1 +1 @@
1
- export { c as getDomain, a as instantiateWebAssembly, b as retryWithExponentialBackoff } from '../chunks/chunk-HNFNB37O.js';
1
+ export { c as getDomain, a as instantiateWebAssembly, b as retryWithExponentialBackoff } from '../chunks/chunk-2WN7BGOB.js';
@@ -1 +1 @@
1
- export { a as ResponseValidity, e as createResponseWithProgress, f as fetchWasm, d as getTotalInBytes, c as setWasmMetadata, b as verifyResponseData } from '../chunks/chunk-J25IZC7J.js';
1
+ export { a as ResponseValidity, e as createResponseWithProgress, f as fetchWasm, d as getTotalInBytes, c as setWasmMetadata, b as verifyResponseData } from '../chunks/chunk-B5JOQVFY.js';
@@ -1 +1 @@
1
- export { a as setupFS } from '../chunks/chunk-EYIDRFHC.js';
1
+ export { a as setupFS } from '../chunks/chunk-34FEFSCI.js';
@@ -1 +1 @@
1
- export { a as importWasmScript } from '../chunks/chunk-D4YDSS77.js';
1
+ export { a as importWasmScript } from '../chunks/chunk-YGFWA4WG.js';
@@ -1,4 +1,4 @@
1
- export { a as DataCaptureLoader } from '../chunks/chunk-CREAZBG7.js';
2
- export { a as WorkerMain } from '../chunks/chunk-ZTM7LWVE.js';
3
- export { a as DataCaptureEngine } from '../chunks/chunk-2NZR6P45.js';
1
+ export { a as DataCaptureLoader } from '../chunks/chunk-3TNNUKVW.js';
2
+ export { a as WorkerMain } from '../chunks/chunk-HEBLZ3EE.js';
3
+ export { a as DataCaptureEngine } from '../chunks/chunk-KWL7KLMR.js';
4
4
  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-3FDT22IX.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scandit/web-datacapture-core",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0",
4
4
  "description": "Scandit Data Capture SDK for the Web",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2014 Arnout Kazemier
2
+ Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors
3
+ Copyright (c) 2013-2020 James Simpson and GoldFire Studios, Inc.
4
+ Copyright (c) 2012-2024 Faisal Salman <f@faisalman.com>
5
+ Copyright (c) 2017-2018 Fredrik Nicol
6
+ Copyright (c) 2005-2014 Rich Felker, et al.
7
+ Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
8
+
9
+ Permission is hereby granted, free of charge, to any person
10
+ obtaining a copy of this software and associated documentation
11
+ files (the "Software"), to deal in the Software without
12
+ restriction, including without limitation the rights to use, copy,
13
+ modify, merge, publish, distribute, sublicense, and/or sell copies
14
+ of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be
18
+ included in all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
24
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
@@ -1,6 +0,0 @@
1
- import { a } from './chunk-EMHHC6NB.js';
2
- import { a as a$1 } from './chunk-SP3HSP4K.js';
3
-
4
- var i=class{constructor(e=a,r=a$1){this.sdk=e,this.logger=r;}get workerCommand(){var e;return this.sdk.configurePhase!=="done"&&this.logger.log(this.logger.Level.Warn,'You must call "configure" before retrieving open source license text info.'),(e=this.sdk.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.sdk.mainDataCaptureLoader)}async getLicenseText(){var r,o;let e=await((r=this.workerCommand)==null?void 0:r.call(this,"getOpenSourceSoftwareLicenseInfo",{}));return (o=e==null?void 0:e.licenseText)!=null?o:""}};
5
-
6
- export { i as a };
@@ -1,3 +0,0 @@
1
- var t;(u=>{(e=>(e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Quiet="quiet"))(u.Level||(u.Level={}));let n=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),l="debug";function a(r){l=r;}u.setLevel=a;function v(r,...o){if(!(n.get(l)>n.get(r)))switch(r){case"debug":console.debug(...o);break;case"info":console.log(...o);break;case"warn":console.warn(...o);break;case"error":console.error(...o);break;}}u.log=v;})(t||(t={}));
2
-
3
- export { t as a };
@@ -1,3 +0,0 @@
1
- var e;(o=>{function i(){let r="7.0.0-beta.1";return r}o.sdkVersion=i;})(e||(e={}));
2
-
3
- export { e as a };