@scandit/web-datacapture-barcode 8.3.0-beta.1 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/js/{BarcodeArMode-BME9pF28.d.ts → BarcodeArMode-BSS2kfBv.d.ts} +1 -0
  2. package/build/js/ar/BarcodeAr.js +1 -1
  3. package/build/js/ar/BarcodeArFeedback.js +1 -1
  4. package/build/js/ar/BarcodeArPresenter.js +1 -1
  5. package/build/js/ar/BarcodeArView.js +1 -1
  6. package/build/js/chunks/{chunk-YK7BXRK5.js → chunk-2AKUWJW7.js} +1 -1
  7. package/build/js/chunks/{chunk-NPCLEL34.js → chunk-2C5FYNVC.js} +1 -1
  8. package/build/js/chunks/chunk-32CJYODR.js +1 -0
  9. package/build/js/chunks/{chunk-BUQOBHB5.js → chunk-3MEAY6PU.js} +1 -1
  10. package/build/js/chunks/{chunk-WJAB26TJ.js → chunk-4UNEYE55.js} +1 -1
  11. package/build/js/chunks/{chunk-QDIBZVNH.js → chunk-5JT5U4EK.js} +1 -1
  12. package/build/js/chunks/{chunk-R3MQ2GAV.js → chunk-AKBHAMGH.js} +1 -1
  13. package/build/js/chunks/chunk-EQ2LJAHI.js +2 -0
  14. package/build/js/chunks/{chunk-MTJ3TGSI.js → chunk-EWBTYHV5.js} +1 -1
  15. package/build/js/chunks/{chunk-SJMJPI54.js → chunk-IRRLM7ZZ.js} +1 -1
  16. package/build/js/chunks/{chunk-BPJ5UL4U.js → chunk-JZQPLDGE.js} +1 -1
  17. package/build/js/chunks/{chunk-HK2533MO.js → chunk-L7F6BIBX.js} +1 -1
  18. package/build/js/chunks/chunk-MZI3LJ62.js +1 -0
  19. package/build/js/chunks/chunk-NURJBECA.js +1 -0
  20. package/build/js/chunks/{chunk-ZQMDYAZS.js → chunk-QXULNTBU.js} +1 -1
  21. package/build/js/chunks/chunk-RLWDCJ7V.js +1 -0
  22. package/build/js/chunks/{chunk-54FK6OJS.js → chunk-TYWXGGDK.js} +1 -1
  23. package/build/js/find/BarcodeFind.js +1 -1
  24. package/build/js/find/BarcodeFindView.js +1 -1
  25. package/build/js/find/index.js +1 -1
  26. package/build/js/index.js +1 -1
  27. package/build/js/moduleLoader.js +1 -1
  28. package/build/js/spark/SparkScanOverlay.d.ts +1 -0
  29. package/build/js/spark/SparkScanOverlay.js +1 -1
  30. package/build/js/spark/index.js +1 -1
  31. package/build/js/spark/ui/SparkScanView.js +1 -1
  32. package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -1
  33. package/build/js/spark/ui/SparkScanViewPresenter.js +1 -1
  34. package/build/js/spark/ui/SparkScanViewToolbar.js +1 -1
  35. package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
  36. package/build/js/spark/ui/index.js +1 -1
  37. package/build/js/worker/BarcodeArMode.d.ts +1 -1
  38. package/build/js/worker/BarcodeBatchMode.d.ts +1 -1
  39. package/build/js/worker/BarcodeCaptureMode.d.ts +1 -1
  40. package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
  41. package/build/js/worker/BarcodeFindMode.d.ts +1 -1
  42. package/build/js/worker/SparkScanMode.d.ts +1 -1
  43. package/build/js/worker/SparkScanMode.js +1 -1
  44. package/build/js/worker/WorkerMain.d.ts +1 -1
  45. package/build/js/worker/WorkerMain.js +1 -1
  46. package/build/js/worker/barcodeCapture.inlineWorker.js +1 -1
  47. package/build/js/worker/dataCaptureEngine.d.ts +1 -1
  48. package/build/js/worker/dataCaptureEngine.js +1 -1
  49. package/build/js/worker/dataCaptureWorkerRelated.d.ts +7 -3
  50. package/build/js/worker/index.d.ts +1 -1
  51. package/package.json +2 -2
  52. package/sdc-lib/resources/models/via_id_template_database.578ae388d1d7.model +0 -0
  53. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.js +1 -1
  54. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.wasm +0 -0
  55. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.js +1 -1
  56. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.wasm +0 -0
  57. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.js +1 -1
  58. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.wasm +0 -0
  59. package/sdc-lib/scandit-datacapture-sdk-barcode.js +1 -1
  60. package/sdc-lib/scandit-datacapture-sdk-barcode.wasm +0 -0
  61. package/build/js/chunks/chunk-6E42EK3T.js +0 -1
  62. package/build/js/chunks/chunk-GUADOWCN.js +0 -2
  63. package/build/js/chunks/chunk-QTKRK537.js +0 -1
  64. package/build/js/chunks/chunk-V2WRHFW3.js +0 -1
  65. package/build/js/chunks/chunk-VQXEZP3B.js +0 -1
  66. package/sdc-lib/resources/models/via_id_template_database.a1a557cc0045.model +0 -1
  67. /package/build/js/chunks/{chunk-WIHMN2DS.js → chunk-KHHN2PZL.js} +0 -0
@@ -1 +0,0 @@
1
- import {b as b$1,a as a$2}from'./chunk-4PYZSS3H.js';import {h,i}from'./chunk-DVHTYKDX.js';import {a}from'./chunk-5Q3AHWJL.js';import {d,c,k,l,m,e,b}from'./chunk-4JEIREAU.js';import {a as a$1,c as c$1}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,defineCustomElements,renderIf,html}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var S=class S extends ScanditHTMLElement{constructor(){super(...arguments);this.targetModeButtonTapListener=this.onTargetModeButtonTap.bind(this);this.scanningBehaviorButtonTapListener=this.onScanningBehaviorButtonTap.bind(this);this.barcodeFindButtonTapListener=this.onBarcodeFindButtonTap.bind(this);this.labelCaptureButtonTapListener=this.onLabelCaptureButtonTap.bind(this);this.cameraSwitchButtonTapListener=this.onCameraSwitchButtonTap.bind(this);this.computedStyle=getComputedStyle(this);}get[d](){return this.hasAttribute(d)}set[d](t){this.toggleAttribute(d,t);}get[c](){return this.hasAttribute(c)}set[c](t){this.toggleAttribute(c,t);}get[k](){return this.hasAttribute(k)}set[k](t){this.toggleAttribute(k,t);}get[l](){return this.hasAttribute(l)}set[l](t){this.toggleAttribute(l,t);}get[m](){return this.hasAttribute(m)}set[m](t){this.toggleAttribute(m,t);}get[e](){return this.hasAttribute(e)}set[e](t){this.toggleAttribute(e,t),this.targetModeButtonIcon&&(this.targetModeButtonIcon.fill=t?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}get[b](){var t;return (t=this.getAttribute(b))!=null?t:"single"}set[b](t){this.setAttribute(b,t),this.scanningBehaviorButtonIcon&&(this.scanningBehaviorButtonIcon.fill=t==="continuous"?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}get visibleButtonCount(){return [c,d,m].filter(t=>this[t]===true).length}get visibleModeButtonCount(){return [k,l].filter(t=>this[t]===true).length}get allVisibleButtonsCount(){return this.visibleButtonCount+this.visibleModeButtonCount}static create(){return defineCustomElements({[c$1]:S,[a$1]:a}),document.createElement(c$1)}enableCameraSwitchButton(t){this.cameraSwitchButtonIcon&&(this.cameraSwitchButtonIcon.fill=t?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i));}render(){var T,w,y,C,E,f,k$1,L;let t=this[e]?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i),p=this[b]==="continuous"?this.computedStyle.getPropertyValue(h):this.computedStyle.getPropertyValue(i),h$1=renderIf(this[k],html`<button id="barcodeFindButton" class="${c$1}__button ${c$1}__button--mode"><spark-scan-view-icon icon="find" fill="#3D4852" size="21.6"></spark-scan-view-icon></button>`),b$1=renderIf(this[l],html`<button id="labelCaptureButton" class="${c$1}__button ${c$1}__button--mode"><spark-scan-view-icon icon="label" fill="#3D4852" size="21.6"></spark-scan-view-icon></button>`),m$1=renderIf(this.visibleButtonCount>0&&this.visibleModeButtonCount>0,html`<div class="${c$1}__separator"></div>`),A=renderIf(this[d],html`<button id="targetModeButton" class="${c$1}__button"><spark-scan-view-icon icon="aimer" fill="${t}" size="18"></spark-scan-view-icon></button>`),I=renderIf(this[m],html`<button id="cameraSwitchButton" class="${c$1}__button"><spark-scan-view-icon icon="camera" fill="white" size="24.08"></spark-scan-view-icon></button>`),_=renderIf(this[c],html`<button id="scanningBehaviorButton" class="${c$1}__button"><spark-scan-view-icon icon="continuous" fill="${p}" size="24"></spark-scan-view-icon></button>`),x=this.visibleModeButtonCount===0&&this.allVisibleButtonsCount<=3?"center":"flex-start";this.innerHTML=html`<div class="container"><div class="${c$1}">${h$1} ${b$1} ${m$1} ${A} ${I} ${_}</div></div><style>.${c$1}{position:relative;display:flex;justify-content:${x};align-items:center;box-sizing:border-box;width:100%;height:48px;padding:6.75px 12px;gap:12px}${c$1} .container{border-bottom-left-radius:16px;border-bottom-right-radius:16px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.${c$1}::-webkit-scrollbar{display:none}.${c$1}__button{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:40px;height:40px;border:none;background:0 0;cursor:pointer}.${c$1}__separator{width:1px;height:32px;flex-shrink:0;background:var(${i})}.${c$1}__button--mode{background:#f1f5f8;border-radius:50%}</style>`,this.targetModeButton=this.querySelector("#targetModeButton"),(T=this.targetModeButton)==null||T.addEventListener("pointerup",this.targetModeButtonTapListener),this.targetModeButtonIcon=(w=this.targetModeButton)==null?void 0:w.querySelector(a$1),this.scanningBehaviorButton=this.querySelector("#scanningBehaviorButton"),(y=this.scanningBehaviorButton)==null||y.addEventListener("pointerup",this.scanningBehaviorButtonTapListener),this.scanningBehaviorButtonIcon=(C=this.scanningBehaviorButton)==null?void 0:C.querySelector(a$1),this.barcodeFindButton=this.querySelector("#barcodeFindButton"),(E=this.barcodeFindButton)==null||E.addEventListener("pointerup",this.barcodeFindButtonTapListener),this.labelCaptureButton=this.querySelector("#labelCaptureButton"),(f=this.labelCaptureButton)==null||f.addEventListener("pointerup",this.labelCaptureButtonTapListener),this.cameraSwitchButton=this.querySelector("#cameraSwitchButton"),(k$1=this.cameraSwitchButton)==null||k$1.addEventListener("pointerup",this.cameraSwitchButtonTapListener),this.cameraSwitchButtonIcon=(L=this.cameraSwitchButton)==null?void 0:L.querySelector(a$1);}connectedCallback(){this[d]=true,this[m]=true,this.render();}disconnectedCallback(){var t,p,h,b,m;(t=this.targetModeButton)==null||t.removeEventListener("pointerup",this.targetModeButtonTapListener),(p=this.scanningBehaviorButton)==null||p.removeEventListener("pointerup",this.scanningBehaviorButtonTapListener),(h=this.barcodeFindButton)==null||h.removeEventListener("pointerup",this.barcodeFindButtonTapListener),(b=this.labelCaptureButton)==null||b.removeEventListener("pointerup",this.labelCaptureButtonTapListener),(m=this.cameraSwitchButton)==null||m.removeEventListener("pointerup",this.cameraSwitchButtonTapListener);}attributeChangedCallback(t,p,h){if(h!==p){this.render();let b=this.hidden;this.hidden=this.visibleModeButtonCount+this.allVisibleButtonsCount===0,this.hidden!==b&&this.dispatchEvent(new CustomEvent(b$1));}}onTargetModeButtonTap(t){t.stopPropagation(),this[e]=!this[e],this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"targetModeButton",enabled:this[e]}}));}onScanningBehaviorButtonTap(t){t.stopPropagation(),this[b]=this[b]==="continuous"?"single":"continuous",this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"scanningBehaviorButton",enabled:this[b]==="continuous"}}));}onBarcodeFindButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"barcodeFindButton"}}));}onLabelCaptureButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"labelCaptureButton"}}));}onCameraSwitchButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(a$2,{bubbles:true,detail:{tapped:"cameraSwitchButton"}}));}};S.observedAttributes=[d,c,k,l,m];var $=S;export{$ as a};
@@ -1,2 +0,0 @@
1
- import {DataCaptureLoader,Logger}from'@scandit/web-datacapture-core';function d(r){let n=URL.createObjectURL(new Blob(['"use strict";(()=>{var u={"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:8225377},"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:8116647},"scandit-datacapture-sdk-barcode.wasm":{bytes:8088927},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:7979742}};function C(t){return typeof t=="object"&&t!=null}function k(t){if(typeof t=="string")return t;if(C(t)){if(typeof t.message=="string")return t.message}else if(typeof(t==null?void 0:t.toString)=="function")return t.toString();return"unknown error"}var d;(t=>{(l=>(l.Debug="debug",l.Info="info",l.Warn="warn",l.Error="error",l.Quiet="quiet"))(t.Level||(t.Level={}));let e=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),r="debug";function a(l){r=l}t.setLevel=a;function i(l,...h){if(!(e.get(r)>e.get(l)))switch(l){case"debug":{console.debug(...h);break}case"info":{console.log(...h);break}case"warn":{console.warn(...h);break}case"error":{console.error(...h);break}}}t.log=i;function n(...l){i("warn",...l)}t.warn=n;function o(...l){i("debug",...l)}t.debug=o;function s(...l){i("info",...l)}t.info=s;function c(...l){i("error",...l)}t.error=c})(d||(d={}));var Re=class{constructor(t){if(typeof t!="function")throw new TypeError("FinalizationRegistry callback must be a function")}register(t,e,r){}unregister(t){return!1}};function ae(t){typeof t.FinalizationRegistry>"u"&&(t.FinalizationRegistry=Re)}function ie(t,e,r){let a=e*r,i=new Uint8ClampedArray(a*4),n=new Uint32Array(i.buffer);for(let o=0;o<a;o++){let s=t[o];n[o]=4278190080|s<<16|s<<8|s}return i}var x=class ne extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,ne.prototype),this.name=e.name}toString(){return`${this.name}: ${this.message}`}};var D=Promise.resolve(),q=!1,G=!1,T=!1,v,Y=1500,j="";async function se(t){if(v==null)return;q=!0;let e;try{let r=new Promise((i,n)=>{e=setTimeout(()=>{d.debug(`IndexedDB database is blocked (timed out after ${Y}ms). If you are running a Debug wasm build, things are slower and the timeout can be configured via IndexedDBBlockedTimeoutMs in localStorage (requires page reload).`),n(new x({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}))},Y)}),a=new Promise((i,n)=>{v==null||v(t,o=>{o!=null?n(o):i()})});await Promise.race([a,r])}finally{e!==void 0&&clearTimeout(e),q=!1}}async function oe(t){return G?(T=t,D):(q?(G=!0,T=t,D=D.then(async()=>(G=!1,se(T)))):(T=t,D=se(t)),D)}function Ee(){FS.syncfs=((t,e)=>{oe(t).then(()=>e(),r=>e(r))})}async function de(t){if(j=t.writableDataPath,Y=t.indexedDBTimeoutMs,v=FS.syncfs,v==null)throw new Error("FS.syncfs is not available");Ee();try{FS.mkdir(j)}catch(e){if(e.code!=="EEXIST")throw v=void 0,e}try{FS.mount(IDBFS,{},j)}catch(e){throw v=void 0,e}return oe(!0)}var ce={};function Le(t){return[...new Uint8Array(t)].map(e=>{let r=e.toString(16);return r.length===1?`0${r}`:r}).join("")}async function*We(t){let e=t.getReader();try{for(;;){let{done:r,value:a}=await e.read();if(r)return;yield a}}finally{e.releaseLock()}}async function Ne(t){let e=[],r=0,a=0;for await(let n of We(t))e.push(n),r+=n.length;let i=new Uint8Array(r);for(let n of e)i.set(n,a),a+=n.length;return i.buffer}var He=(t=>(t.VALID="VALID",t.INVALID="INVALID",t.NOT_VERIFIABLE="NOT_VERIFIABLE",t))(He||{});async function _e(t,e,r){if(typeof crypto.subtle.digest!="function")return d.log(d.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 ${r} could not be verified`),"NOT_VERIFIABLE";try{let a=t instanceof Promise?await t:t,i=await crypto.subtle.digest("SHA-256",a),n=Le(i);return e==null?(d.log(d.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):n===e?(d.log(d.Level.Debug,`Data Capture library WASM integrity found at ${r} has been verified correctly.`),"VALID"):(d.log(d.Level.Warn,`The Scandit Data Capture library WASM file found at ${r} seems invalid: expected file hash doesn\'t match (received: ${n}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(a){return d.log(d.Level.Warn,"Wasm response could not be verified",a),"NOT_VERIFIABLE"}}var X=new Map([["br",4.4],["gzip",2.9],["none",1]]);function ze(t){var e;let r="content-encoding";if(t==null||t.get(r)==null)return X.get("none");let a=new Set(((e=t.get(r))!=null?e:"").split(",").map(i=>i.trim()));for(let[i,n]of X)if(a.has(i))return n;return X.get("none")}function Ve(t){var e,r;if(t==null)return 0;let a=(e=ze(t))!=null?e:1,i=Number.parseInt((r=t.get("content-length"))!=null?r:"0",10);return Number.isNaN(i)?0:Math.floor(i*a*100)/100}function Je(t){let{pathname:e}=new URL(t);for(let[r,a]of Object.entries(ce))if(e.endsWith(r))return a.bytes;return 0}function le(t){ce=t}var Ue=(t,e)=>{let r=Ve(e);return r===0?Je(t):r};function $e(t,e,r,{onProgress:a,onError:i,onComplete:n}){if(!e.body)return[e];let o=Ue(t,e.headers),s=0,c=0;if(typeof TransformStream>"u")return d.warn("TransformStream is not supported in this environment. Progress tracking will be disabled."),[e];let[l,h]=r?e.body.tee():[e.body],m=l.pipeThrough(new TransformStream({async transform(g,f){try{s+=g.length,c=Number((s/o*100).toFixed(2)),o>0&&g.length>0&&c<100?a==null||a({percentage:c,loadedBytes:s,privateUri:t}):o===0&&g.length>0&&(a==null||a({percentage:null,loadedBytes:s,privateUri:t})),f.enqueue(g)}catch(b){f.error(b),i==null||i({error:b})}},flush(g){a==null||a({percentage:100,loadedBytes:s,privateUri:t}),n==null||n({percentage:100,loadedBytes:s,privateUri:t}),g.terminate()}}));return[new Response(m,{headers:new Headers(e.headers),status:e.status,statusText:e.statusText}),h]}async function K({wasmURI:t,expectedHash:e,verifyResponseHash:r,onProgress:a,onComplete:i,onError:n,referredOrigin:o}){let s=await fetch(t,{referrerPolicy:"origin",referrer:o!=null?o:""});if(!s.ok)throw new Error(`HTTP status code is not ok: ${s.status}, ${s.statusText}`);let[c,l]=$e(t,s,r,{onProgress:a,onError:n,onComplete:i});return l!=null&&_e(Ne(l),e,t),c}function ue({wasmURI:t,expectedHash:e,verifyResponseHash:r,progressCallback:a,successCallback:i,errorCallback:n,importObject:o,referredOrigin:s}){async function c(h){try{let m=await K({wasmURI:t,expectedHash:e,verifyResponseHash:r,onProgress:a,referredOrigin:s}),g=await(h!=null?h:m).arrayBuffer(),f=await self.WebAssembly.instantiate(g,o);i(f.instance,f.module)}catch(m){d.log(d.Level.Error,m),d.log(d.Level.Error,`Couldn\'t instantiate Scandit SDK DataCapture library at ${t}, did you configure the path for it correctly?`),n==null||n(m)}}async function l(){let h;try{h=await K({wasmURI:t,expectedHash:e,verifyResponseHash:r,onProgress:a,referredOrigin:s});let m=await self.WebAssembly.instantiateStreaming(h,o);i(m.instance,m.module)}catch(m){d.log(d.Level.Warn,m),d.log(d.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),c((h==null?void 0:h.bodyUsed)===!0?void 0:h)}}typeof self.WebAssembly.instantiateStreaming=="function"?l():c()}async function Z(t,e,r,a){return new Promise((i,n)=>{t().then(i).catch(o=>{let s=e*2;if(s>r){n(o);return}a(o),self.setTimeout(()=>{Z(t,s,r,a).then(i).catch(n)},e)})})}function Q(t){var e,r;let a="unknown";if((e=t.href)!=null&&e.startsWith("blob:null/"))a="localhost";else{let i=((r=t.pathname)==null?void 0:r.length)>1&&!t.pathname.startsWith("/");a=new URL(i?t.pathname:t.origin).hostname}return a.startsWith("[")&&a.endsWith("]")?(a=a.slice(1,-1),a):(/^(\\d{1,3}\\.){3}\\d{1,3}$/.test(a)&&(a=a.split(".").map(i=>Number.parseInt(i,10).toString()).join(".")),a)}async function pe(t,e){async function r(){return importScripts(t)}try{await Z(r,250,4e3,i=>{d.log(d.Level.Warn,i),d.log(d.Level.Warn,`Couldn\'t retrieve Scandit Data Capture library at ${t}, retrying...`)}),self.Module.mainScriptUrlOrBlob=t;let a=self.SDC_WASM_JS_VERSION;return a!==e&&d.log(d.Level.Warn,`The Scandit Data Capture library JS file found at ${t} seems invalid: expected version doesn\'t match (received: ${a}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(a){return d.log(d.Level.Error,a),!1}}var A=class{constructor(){this.promise=new Promise((t,e)=>{this.reject=e,this.resolve=t})}};var ee=class{constructor(t,e){this.workerFunctions=t,this.options=e,this.imageIdCounter=0,this.conversions=new Map}convertToJpeg(t,e){let r=this.imageIdCounter++,a=new A;this.conversions.set(r,a);let i=t.toBitmap();return this.workerFunctions.postMessage({type:"convertToJPEG",imageId:r,width:t.getWidth(),height:t.getHeight(),data:i,planes:t.getPlanes(),orientation:e,quality:this.options.quality},Array.from(new Set([i.buffer]))),a.promise}convertToBitmap(t){return{data:t.toBitmap(),byteOrder:1}}onConvertToJPEGResult(t,e){let r=this.conversions.get(t);r?(r.resolve(e),this.conversions.delete(t)):d.warn(`ImageConverterForwarder: Conversion for imageId ${t} not found in Map`)}};var O=class{constructor(t){this.options=t}get quality(){return this.options.quality}async convertToJpeg(t,e){try{let{width:r,height:a,planes:i}=this.validateAndExtractImageData(t);this.prepareCanvas(r,a);let n=this.processImageData(t,i,r,a);return await this.convertToJpegBytes(n,e)}catch(r){throw d.warn(`Failed to convert image to JPEG: ${r}`),r instanceof Error?r:new Error("Failed to convert image to JPEG")}}convertToBitmap(t){return{data:t.toBitmap(),byteOrder:1}}validateAndExtractImageData(t){let e=t.getWidth(),r=t.getHeight(),a=t.getPlanes();if(e<=0||r<=0)throw d.warn(`Invalid image dimensions: ${e}x${r}`),new Error(`Invalid image dimensions: ${e}x${r}`);if(!a||a.length===0)throw d.warn("ImageBuffer has no planes"),new Error("ImageBuffer has no planes");return{width:e,height:r,planes:a}}prepareCanvas(t,e){if(!this.ensureCanvas(t,e))throw new Error("Failed to create OffscreenCanvas");if(!this.canvas||!this.context)throw new Error("Canvas or context not properly initialized")}processImageData(t,e,r,a){let i=this.createImageDataFromBuffer(t,e,r,a);if(i===null)throw new Error("Failed to create ImageData");return this.validateImageData(i,r,a),i}validateImageData(t,e,r){var a;if(t.width!==e||t.height!==r)throw d.warn(`ImageData dimensions mismatch: expected ${e}x${r}, got ${t.width}x${t.height}`),new Error("ImageData dimensions mismatch");if(!t.data||t.data.length!==e*r*4)throw d.warn(`ImageData has invalid data length: expected ${e*r*4}, got ${((a=t.data)==null?void 0:a.length)||0}`),new Error("ImageData has invalid data length")}async convertToJpegBytes(t,e){if(!this.context||!this.canvas)throw new Error("Canvas or context not available");try{this.context.putImageData(t,0,0)}catch(n){throw d.warn(`Failed to put image data on canvas: ${n}`),new Error(`Failed to put image data on canvas: ${n}`)}let r=e!==0?this.applyRotation(this.canvas,e):this.canvas,a;try{a=await this.canvasToBlob(r)}catch(n){throw d.warn(`Failed to convert canvas to blob: ${n}`),new Error(`Failed to convert canvas to blob: ${n}`)}if(!a||a.size===0)throw d.warn("Canvas convertToBlob returned empty or null blob"),new Error("Failed to create JPEG blob");let i;try{i=await a.arrayBuffer()}catch(n){throw d.warn(`Failed to get array buffer from blob: ${n}`),new Error(`Failed to get array buffer from blob: ${n}`)}if(!i||i.byteLength===0)throw d.warn("Blob arrayBuffer returned empty or null buffer"),new Error("Failed to get array buffer from blob");return new Uint8Array(i)}ensureCanvas(t,e){try{return(!this.canvas||this.canvas.width!==t||this.canvas.height!==e)&&(this.canvas=this.getNewCanvas(t,e),this.context=this.canvas.getContext("2d")),this.context!==null}catch(r){return d.warn("Failed to create HTMLCanvasElement",r),!1}}createImageDataFromBuffer(t,e,r,a){let i=new Set(e.map(n=>n.channel));try{if(this.isYUVFormat(i)){let s=t.toBitmap();return!s||s.length!==r*a*4?(d.warn(`Invalid bitmap data from toBitmap(): expected ${r*a*4} bytes, got ${(s==null?void 0:s.length)||0}`),null):new ImageData(new Uint8ClampedArray(s),r,a)}if(this.isRGBAFormat(i))return this.createImageDataFromRGBAPlanes(e,r,a);if(this.isRGBFormat(i))return this.createImageDataFromRGBPlanes(e,r,a);if(this.isGrayscaleFormat(i))return this.createImageDataFromGrayscalePlanes(e,r,a);d.warn(`Unknown image format with channels: ${Array.from(i).join(", ")}, falling back to toBitmap()`);let n=t.toBitmap();if(!n||n.length===0)return d.warn("toBitmap() returned empty or null data"),null;let o=n.length/(r*a);return o===4?new ImageData(new Uint8ClampedArray(n),r,a):(d.warn(`Unsupported format: ${o} bytes per pixel`),null)}catch(n){return d.warn(`Failed to create ImageData: ${n}`),null}}isYUVFormat(t){return t.has(0)&&t.has(1)&&t.has(2)}isRGBAFormat(t){return t.has(3)&&t.has(4)&&t.has(5)&&t.has(6)}isRGBFormat(t){return t.has(3)&&t.has(4)&&t.has(5)&&!t.has(6)}isGrayscaleFormat(t){return t.has(0)&&!t.has(1)&&!t.has(2)}createImageDataFromRGBAPlanes(t,e,r){let a=t.find(c=>c.channel===3),i=t.find(c=>c.channel===4),n=t.find(c=>c.channel===5),o=t.find(c=>c.channel===6);if(!a||!i||!n||!o)return d.warn("Missing RGBA planes"),null;let s=new Uint8ClampedArray(e*r*4);for(let c=0;c<r;c++)for(let l=0;l<e;l++){let h=(c*e+l)*4;s[h]=this.getPixelFromPlane(a,l,c),s[h+1]=this.getPixelFromPlane(i,l,c),s[h+2]=this.getPixelFromPlane(n,l,c),s[h+3]=this.getPixelFromPlane(o,l,c)}return new ImageData(s,e,r)}createImageDataFromRGBPlanes(t,e,r){let a=t.find(s=>s.channel===3),i=t.find(s=>s.channel===4),n=t.find(s=>s.channel===5);if(!a||!i||!n)return d.warn("Missing RGB planes"),null;let o=new Uint8ClampedArray(e*r*4);for(let s=0;s<r;s++)for(let c=0;c<e;c++){let l=(s*e+c)*4;o[l]=this.getPixelFromPlane(a,c,s),o[l+1]=this.getPixelFromPlane(i,c,s),o[l+2]=this.getPixelFromPlane(n,c,s),o[l+3]=255}return new ImageData(o,e,r)}createImageDataFromGrayscalePlanes(t,e,r){let a=t.find(n=>n.channel===0);if(!a)return d.warn("Missing Y plane for grayscale"),null;let i=new Uint8ClampedArray(e*r*4);for(let n=0;n<r;n++)for(let o=0;o<e;o++){let s=(n*e+o)*4,c=this.getPixelFromPlane(a,o,n);i[s]=c,i[s+1]=c,i[s+2]=c,i[s+3]=255}return new ImageData(i,e,r)}getPixelFromPlane(t,e,r){let a=Math.floor(e/(t.subsamplingX||1)),i=Math.floor(r/(t.subsamplingY||1)),n=t.rowStride,o=t.pixelStride,s=i*n+a*o,c=t.data;return s<c.length?c[s]:0}applyRotation(t,e){let r=e*Math.PI/180,a=e===90||e===270||e===-90||e===-270,i=a?t.height:t.width,n=a?t.width:t.height,o=this.getNewCanvas(i,n),s=o.getContext("2d");if(!s)throw new Error("Failed to get 2D context for rotated canvas");return s.translate(i/2,n/2),s.rotate(r),s.translate(-t.width/2,-t.height/2),s.drawImage(t,0,0),o}};O.JPEG_IMAGE_MIME_TYPE="image/jpeg";var he=class extends O{getNewCanvas(t,e){return new OffscreenCanvas(t,e)}canvasToBlob(t){return t.convertToBlob({type:O.JPEG_IMAGE_MIME_TYPE,quality:this.options.quality})}};var me=class{constructor(t){this.viewInfo=null,this.viewInfo=this.cloneViewInfo(t)}isSame(t){return this.viewInfo==null&&t==null?!0:this.viewInfo==null&&t!=null||this.viewInfo!=null&&t==null?!1:this.viewInfo.width===t.width&&this.viewInfo.height===t.height&&this.viewInfo.orientation===t.orientation&&this.viewInfo.viewFinderRect.origin.x===t.viewFinderRect.origin.x&&this.viewInfo.viewFinderRect.origin.y===t.viewFinderRect.origin.y&&this.viewInfo.viewFinderRect.size.width===t.viewFinderRect.size.width&&this.viewInfo.viewFinderRect.size.height===t.viewFinderRect.size.height}update(t){this.viewInfo=this.cloneViewInfo(t)}cloneViewInfo(t){return t?{...t,viewFinderRect:{origin:{...t.viewFinderRect.origin},size:{...t.viewFinderRect.size}}}:null}};var R;(t=>{function e(){return"8.3.0-beta.1"}t.sdkVersion=e})(R||(R={}));function Ge(t){return/^https?:\\/\\/(?:[^./]*\\.)*cdn.jsdelivr.net\\//.test(t)?{result:!0,cdnBaseURL:"https://cdn.jsdelivr.net/npm/"}:/^https?:\\/\\/(?:[^./]*\\.)*unpkg.com\\//.test(t)?{result:!0,cdnBaseURL:"https://unpkg.com/"}:{result:!1,cdnBaseURL:""}}function je(t){let e=/@scandit\\/web-datacapture-[a-z]+/i.exec(t);return e?e[0]:null}function ge(t,e,r){let a=e,i=Ge(a);if(i.result){let o=je(a);o!=null&&(a=`${i.cdnBaseURL}${o}@${t}/sdc-lib/`)}let n=r.replace(".wasm","");return i.result?{jsURI:`${a}${n}.js`,wasmURI:`${a}${n}.wasm`}:{jsURI:`${a}${n}.js?v=${t}`,wasmURI:`${a}${n}.wasm?v=${t}`}}var fe=class be{constructor(e,r){this.hintPresenterV2=null,this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL=5,this.redrawInterval=1e3/30,this.redrawRequests=[],this._isDrawLoopRunning=!1,this.frameDataPool=new Map,this.lastFrameColorType="RGBA",this.lastFrameId=null,this.poorMansBenchmarkLogs=!1,this.writableDataPathStandard="/scandit_sync_folder",this.resourceFilesSubfolder="resources",this.performanceMetricsReporterTimer=void 0,this.lastMetricsReportTime=0,this.metricsReportInterval=1e3,this.performanceMetrics={frameDataPoolSize:0,cameraOutputFrames:0,redrawRequestsCount:0,actualRedrawsCount:0,frameProcessingStartedCount:0,frameProcessedCount:0,frameSkippedCount:0},this.frameProcessingStartedCount=0,this.frameProcessingFinishedCount=0,this.gestureListener=null,this.webPlatformHintPresenter=null,this.deviceInstance=null,this.deviceInfo=null,this.lastViewInfo=new me(null),this.lastFrameProcessingStartedCount=0,this.lastFrameProcessingFinishedCount=0,this.moduleHandler=e,this.workerFunctions=r,this._loadProgressCallback=this._loadProgressCallback.bind(this),le(this.getWasmMetadata())}get Module(){return this.moduleHandler.get()}set isDrawLoopRunning(e){this._isDrawLoopRunning=e,!e&&typeof this.loopTimeoutId=="number"&&(clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0)}get isDrawLoopRunning(){return this._isDrawLoopRunning}prepareFrameForListener(e){let r=this.lastFrameId;if(this.frameDataPool.size>=this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL){let o=this.frameDataPool.keys().next().value;o!=null&&this.frameDataPool.delete(o)}let a=e.getFrameData(),i=new Uint8ClampedArray(a);this.frameDataPool.set(r,{data:i,colorType:this.lastFrameColorType,frameId:r,width:e.getWidth(),height:e.getHeight()});let n=this.lastUsedModuleMirrorAxis==null?!1:this.lastUsedModuleMirrorAxis!==this.Module.Axis.None;return{frameId:r,width:e.getWidth(),height:e.getHeight(),isFrameSourceMirrored:n,colorType:this.lastFrameColorType}}createContext(e){var r,a,i,n,o;let s=this.getModeDeserializers(),c=Q(location);(c==="localhost"||c==="127.0.0.1")&&navigator.userAgent.includes("Electron")&&e.appName!=null&&(c+=`-${e.appName}`),this.parentDomain=e.parentDomain,this.contextDeserializer=new this.Module.DataCaptureContextDeserializer(this.writableDataPath,e.deviceId,e.context.deviceModelName,c,this.parentDomain,s,e.delayedRegistration,e.highEndBlurryRecognition,this.resourcePath);let l=this.contextDeserializer.contextFromJson(JSON.stringify(e.context));if(l==null){let p=this.contextDeserializer.getLastError();throw new Error(`Could not create the context: ${p}`)}let h=l.getView();this.context=l.getContext(),l.delete(),this.setupDeviceInterface(e.isTablet,e.batteryInfo);let m=this.Module.DataCaptureContextListener.extend("DataCaptureContextListener",{didChangeStatus:(p,y)=>{this.contextDidChangeStatus(JSON.parse(y.toJson())),p.delete()},didStartObservingContext:p=>{this.didStartObservingContext(),p.delete()},didStopObservingContext:p=>{p.delete()}}),g=this.Module.DataCaptureContextFrameListener.extend("DataCaptureContextFrameListener",{onObservationStarted:p=>{p.delete()},onObservationStopped:p=>{p.delete()},onFrameProcessingStarted:(p,y)=>{this.workerFunctions.postMessage({type:"onFrameProcessingStarted"}),y.delete(),p.delete()},onFrameProcessingFinished:(p,y)=>{this.workerFunctions.postMessage({type:"onFrameProcessingFinished"}),y.delete(),p.delete()},onFrameSkipped:(p,y)=>{this.workerFunctions.postMessage({type:"onFrameSkipped"}),y.delete(),p.delete()}}),f=this.Module.GestureRecognizer.extend("GestureRecognizer",{setGestureListener:(p,y)=>{var F;(F=this.gestureListener)==null||F.delete(),this.gestureListener=p.clone(),p.delete()}});(r=this.gestureRecognizer)==null||r.delete(),this.gestureRecognizer=new f;let b=new m;this.context.addListener(b),b.delete();let P=new g;this.context.addFrameListener(P),P.delete(),this.setView(h),(a=this.view)==null||a.setGestureRecognizer(this.gestureRecognizer);let M=this.Module.PlatformHintPresenter.extend("PlatformHintPresenter",{setHintPresenter:p=>{p.delete()},showToast:p=>{this.workerFunctions.postMessage({type:"showToast",payload:JSON.parse(p)})},hideToast:p=>{this.workerFunctions.postMessage({type:"hideToast",payload:JSON.parse(p)})},showGuidance:p=>{this.workerFunctions.postMessage({type:"showGuidance",payload:JSON.parse(p)})},hideGuidance:p=>{this.workerFunctions.postMessage({type:"hideGuidance",payload:JSON.parse(p)})},startUpdateTimer:p=>{this.workerFunctions.postMessage({type:"startUpdateTimer",payload:{duration:{unit:"ms",value:p}}})},stopUpdateTimer:()=>{this.workerFunctions.postMessage({type:"stopUpdateTimer"})}});(i=this.hintPresenterV2)==null||i.delete(),this.hintPresenterV2=null,(n=this.webPlatformHintPresenter)==null||n.delete(),this.webPlatformHintPresenter=null,this.webPlatformHintPresenter=new M,this.view&&(this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter),(o=this.view)==null||o.setHintPresenterV2(this.hintPresenterV2)),this.webImageConverterInstance=this.getImageConverterInstance({quality:1}),this.Module.ImageConverter.setInstance(this.webImageConverterInstance)}convertToJPEGResult(e,r){this.webImageConverterInstance instanceof ee&&this.webImageConverterInstance.onConvertToJPEGResult(e,r)}getImageConverterInstance(e){return this.workerFunctions.getOffscreenCanvas()!=null?new he(e):new ee(this.workerFunctions,e)}onTap(e){var r;(r=this.gestureListener)==null||r.onTap(JSON.stringify(e))}hintPresenterV2Update(){var e;(e=this.hintPresenterV2)==null||e.update()}startReportingPerformanceMetrics(){this.performanceMetricsReporterTimer==null&&(this.lastMetricsReportTime=performance.now(),this.scheduleMetricsReporting())}scheduleMetricsReporting(){this.performanceMetricsReporterTimer=setTimeout(()=>{this.checkAndReportMetrics()},100)}checkAndReportMetrics(){let e=performance.now();e-this.lastMetricsReportTime>=this.metricsReportInterval&&(this.reportPerformanceMetrics(),this.performanceMetrics.cameraOutputFrames=0,this.performanceMetrics.redrawRequestsCount=0,this.performanceMetrics.actualRedrawsCount=0,this.lastMetricsReportTime=e),this._isDrawLoopRunning&&this.scheduleMetricsReporting()}async reportPerformanceMetrics(){let e=this.frameProcessingStartedCount-this.lastFrameProcessingStartedCount,r=this.frameProcessingFinishedCount-this.lastFrameProcessingFinishedCount;this.lastFrameProcessingStartedCount=this.frameProcessingStartedCount,this.lastFrameProcessingFinishedCount=this.frameProcessingFinishedCount;let a={cameraOutputFrames:this.performanceMetrics.cameraOutputFrames,redrawRequestsCount:this.performanceMetrics.redrawRequestsCount,actualRedrawsCount:this.performanceMetrics.actualRedrawsCount,frameDataPoolSize:this.performanceMetrics.frameDataPoolSize,frameProcessingStartedCount:e,frameProcessedCount:r,frameSkippedCount:this.performanceMetrics.frameSkippedCount};this.workerFunctions.postMessage({type:"performanceMetricsReport",payload:a})}deleteFrameData(e){this.frameDataPool.delete(e)}dispose(){var e,r,a,i,n;this.context.dispose(),this.frameDataPool.clear(),this.isDrawLoopRunning=!1,this.cleanupMetricsReporting(),(e=this.gestureRecognizer)==null||e.delete(),this.gestureRecognizer=null,(r=this.gestureListener)==null||r.delete(),this.gestureListener=null,(a=this.hintPresenterV2)==null||a.delete(),this.hintPresenterV2=null,(i=this.webPlatformHintPresenter)==null||i.delete(),this.webPlatformHintPresenter=null,(n=this.deviceInstance)==null||n.delete(),this.deviceInstance=null,this.deviceInfo=null}cleanupMetricsReporting(){this.performanceMetricsReporterTimer!=null&&(typeof this.performanceMetricsReporterTimer=="number"?cancelAnimationFrame(this.performanceMetricsReporterTimer):clearTimeout(this.performanceMetricsReporterTimer),this.performanceMetricsReporterTimer=void 0)}flushAnalytics(){this.context.flushAnalytics()}extractCentaurusLicense(e){return{payload:{centaurus:{licenseKey:this.Module.LicenseUtils[be.get3dPartyLicenseKeyMethodName](e)}}}}getModeDeserializers(){return new this.Module.VectorDataCaptureModeDeserializer}loadLibrary(e){return this.libraryLoadingPromise!=null?this.libraryLoadingPromise:(this.libraryLoadingPromise=this.setup(e),this.libraryLoadingPromise)}processFrame(e){var r;if(this.context==null)return d.debug("[processFrame] Context is null, returning frame without processing"),{payload:e,transferables:[e.data.buffer]};this.lastFrameId=e.frameId;let a=e.data,i=e.colorType==="GRAYSCALE"?this.Module.ImageBufferFormat.Grayscale8:this.Module.ImageBufferFormat.Rgba8888;this.lastFrameColorType=e.colorType==="GRAYSCALE"?"GRAYSCALE":"RGBA";let n=this.Module.allocateUint8Array(a.byteLength);return this.Module.HEAPU8.set(a,n),(r=this.imageFrameSource)==null||r.outputFrame(n,e.width,e.height,i),{payload:e,transferables:[e.data.buffer]}}reportCameraProperties(e){this.context.setCameraProperties(e.deviceId,e.isFrontFacing,e.hasAutofocus)}requestFrameData(e){let r=this.frameDataPool.get(e);if(r==null)return{payload:{data:null,frameId:null,colorType:null}};if(r.data.buffer.byteLength===0)return this.frameDataPool.delete(e),{payload:{data:null,frameId:null,colorType:null}};let a=r.data;r.colorType==="GRAYSCALE"&&(a=ie(r.data,r.width,r.height));let i={payload:{data:a,frameId:r.frameId,colorType:r.colorType},transferables:[a.buffer]};return this.frameDataPool.delete(e),i}scheduleRedraw(e,r){this.addRedrawRequest(r),this.isDrawLoopRunning||this.startDrawLoop(e)}sendViewRefreshCommands(e){this.workerFunctions.postMessage({type:"draw",payload:e},[e.buffer])}setFrameSource(e,r){var a;this.lastUsedModuleMirrorAxis=this.mapMirrorAxisOnModule(e),(a=this.imageFrameSource)==null||a.delete(),this.imageFrameSource=new this.Module.ImageBufferFrameSource(this.lastUsedModuleMirrorAxis,r,0),this.context.setFrameSource(this.imageFrameSource)}startDrawLoop(e){this.isDrawLoopRunning=!0;let r=n=>this.redrawRequests.length>0&&this.redrawRequests[0]<=n,a=n=>{for(;this.redrawRequests.length>0&&this.redrawRequests[0]<=n;)this.redrawRequests.shift()},i=()=>{this.loopTimeoutId=setTimeout(()=>{if(!this.isDrawLoopRunning)return;let n=performance.now();if(r(n)){a(n),e.draw();let o=e.getDrawCommands();this.sendViewRefreshCommands(new Uint8Array(o))}i()},this.redrawInterval)};i()}updateContext(e){if(this.context!=null&&this.contextDeserializer!=null){e.view!=null&&!e.view.visible&&this.context.flushAnalytics();let r=this.onBeforeUpdateContextHook(e),a=this.contextDeserializer.updateContextFromJson(this.context,this.view,JSON.stringify(r.context));if(a==null){let n=this.contextDeserializer.getLastError();throw new Error(`Could not update the context: ${n}`)}this.context.delete(),this.context=a.getContext();let i=a.getView();a.delete(),i!=null&&r.view!=null&&(i.setViewSize(r.view.width,r.view.height,r.view.orientation),i.draw()),!this.hintPresenterV2&&this.webPlatformHintPresenter&&(this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter)),i!=null&&this.hintPresenterV2&&i.setHintPresenterV2(this.hintPresenterV2),this.gestureRecognizer!=null&&(i==null||i.setGestureRecognizer(this.gestureRecognizer)),this.setView(i),this.notifyMainThreadOnViewInfoChanged(i),d.debug("context updated",r)}}notifyMainThreadOnViewInfoChanged(e){let r=this.getViewInfo(e);this.lastViewInfo.isSame(r)||(this.lastViewInfo.update(r),this.workerFunctions.postMessage({type:"viewSizeChanged",payload:r}))}getViewInfo(e){if(e!=null)try{let r=JSON.parse(e.getViewInfo());if(r!=null){let a=this.getOrientationFromNumber(r.orientation);return{...r,orientation:a}}}catch(r){d.error("Failed to get view size",r)}return null}getOrientationFromNumber(e){switch(e){case 90:return"landscapeRight";case 180:return"portraitUpsideDown";case 270:return"landscapeLeft";default:return"portrait"}}onBeforeUpdateContextHook(e){return e}onDocumentVisibilityChange(e){e==="hidden"&&this.context.flushAnalytics()}isFeatureSupported(e){return{payload:{supported:this.context.isFeatureSupported(e)}}}getViewfinderInfo(){var e,r;return{payload:{isDisplayingViewfinder:(r=(e=this.view)==null?void 0:e.isDisplayingViewfinder())!=null?r:!1,rect:JSON.parse(this.view.getViewfinderRect())}}}getOpenSourceSoftwareLicenseInfo(){return{payload:{licenseText:this.Module.OpenSourceSoftwareLicenseInfo.getLicenseText()}}}getWasmDynamicLibraries(e){return this.getWasmSideModuleFileName()==null?[]:[`${e.replace(/\\/[^/]*$/,"/")}${this.getWasmSideModuleFileName()}`]}getWasmCoreExpectedHash(e,r){return r?e?"85dc3552838b61f5c0c3a20b03ab3d6ec0ac34536bc3c8ff09ba7943d4cd7dc6":"91e683aec80d2fb4c4f9d7bb123ffca731a534cf8d953c4492a5f84bb9194c01":e?"64914911045cd522d294d10b3d28c425edf22f939eda121165aeb66f9ffe7308":""}getWasmCoreFileName(e,r){return r?e?"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":"scandit-datacapture-sdk-barcode-pthreads.wasm":e?"scandit-datacapture-sdk-barcode-simd.wasm":""}getWasmMetadata(){return u}getWasmSideModuleFileName(){return""}_loadProgressCallback(e){this.workerFunctions.postMessage({type:"loadLibraryProgress",payload:e})}addRedrawRequest(e){this.redrawRequests.push(Math.round(performance.now())+e),this.redrawRequests.sort((r,a)=>r-a)}contextDidChangeStatus(e){e.code===260?e.message=e.message.replace("domain name",`domain name (${Q(location)})`):e.code===265&&(e.message=e.message.replace("domain name",`domain name (${this.parentDomain})`)),this.workerFunctions.postMessage({type:"contextDidChangeStatus",payload:e})}didStartObservingContext(){this.workerFunctions.postMessage({type:"didStartObservingContext"})}mapMirrorAxisOnModule(e){switch(e){case"None":return this.Module.Axis.None;case"X":return this.Module.Axis.X;case"Y":return this.Module.Axis.Y;default:return this.Module.Axis.None}}setView(e){this.view=e,this.setViewRefreshHandler(e),e==null&&(this.isDrawLoopRunning=!1,this.sendViewRefreshCommands(new Uint8Array([])))}addNativeOverlay(e){d.warn("addNativeOverlay has not been implemented for this module",e)}removeNativeOverlay(e){d.warn("removeNativeOverlay has not been implemented for this module",e)}setViewRefreshHandler(e){if(e==null||e.isViewRefreshHandlerSet)return;let r=this.Module.NeedsRedrawDelegate.extend("NeedsRedrawDelegate",{setNeedsRedrawIn:this.scheduleRedraw.bind(this,e)}),a=new r;e.setNeedsRedrawDelegate(a),e.isViewRefreshHandlerSet=!0}setupDataDecoding(){let e=this.moduleHandler.get(),r=e.DataDecoding.extend("DataDecoding",{decode(a,i){try{let n=JSON.parse(i),o=[];for(let s of n){let c=new TextDecoder(s.ianaName,{fatal:!0});o.push(c.decode(a.slice(s.startIndex,s.endIndex)))}return o.join("")}catch{return""}}});e.setDataDecoding(new r)}getBatteryData(){var e,r;let a=(r=(e=this.deviceInfo)==null?void 0:e.batteryInfo)==null?void 0:r.percentage;if(a!=null)return{percentage:a}}isTablet(){var e,r;return(r=(e=this.deviceInfo)==null?void 0:e.isTablet)!=null?r:!1}setupDeviceInterface(e,r){this.deviceInfo={isTablet:e,batteryInfo:r};let a=this.moduleHandler.get(),i=a.DeviceInterface.extend("DeviceInterface",{getBatteryData:this.getBatteryData.bind(this),isTablet:this.isTablet.bind(this)});this.deviceInstance=new i,a.DeviceHolder.setCurrentDevice(this.deviceInstance)}updateBatteryInfo(e){this.deviceInfo&&(this.deviceInfo.batteryInfo=e)}start(e,r,a){e&&r&&(this.setupDataDecoding(),this.moduleHandler.get().callMain(),this.moduleHandler.get().__emscripten_proxy_main!==void 0||a())}getWritableDataPath(e){return e!=null?(d.debug(`IndexedDB database name override in use to recover from blocked standard database: ${e}`),e):this.writableDataPathStandard}numOfMBToPages(e){return Math.ceil(1024*e*1024/64/1024)}async setup({libraryLocation:e,locationPath:r,writableDataPathOverride:a,indexedDBTimeoutMs:i,verifyResponseHash:n,referredOrigin:o,fixedWasmMemory:s,simdSupport:c,threadsSupport:l}){var h;let m=!1,g=!1;this.writableDataPath=this.getWritableDataPath(a),this.resourcePath=`${e}${this.resourceFilesSubfolder}/`,self.path=r;let{resolve:f,reject:b,promise:P}=new A,M=R.sdkVersion();if(M==="")throw new x({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let p=this.getWasmCoreFileName(c,l),y=ge(M,e,p),{jsURI:F,wasmURI:re}=y,xe={instantiateWasm:(S,Te)=>(ue({importObject:S,wasmURI:re,expectedHash:this.getWasmCoreExpectedHash(c,l),verifyResponseHash:n,successCallback:Te,progressCallback:this._loadProgressCallback,errorCallback:Ae=>{b(Ae)},referredOrigin:o}),{})},B=s===null?null:new WebAssembly.Memory({initial:this.numOfMBToPages(s),maximum:this.numOfMBToPages(300),shared:l});return B!==null&&d.log(d.Level.Debug,"Fixed wasmMemory set",B),this.moduleHandler.set({...B?{wasmMemory:B}:{},mainScriptUrlOrBlob:F,canvas:(h=this.workerFunctions.getOffscreenCanvas())!=null?h:{getContext:()=>null},...xe,dynamicLibraries:this.getWasmDynamicLibraries(re),locateFile:S=>e+S,noInitialRun:!0,preRun:[async()=>{try{await de({writableDataPath:this.writableDataPath,indexedDBTimeoutMs:i})}catch(S){if(S.name==="BlockedIndexedDB"){b(S.toString());return}d.log(d.Level.Debug,"No IndexedDB support, some data will not be persisted:",S)}g=!0,this.start(g,m,f)}],onMainComplete:()=>{if([m,g].includes(!1)){d.log(d.Level.Warn,{runtimeLoaded:m,fileSystemSynced:g},"Both runtimeLoaded and fileSystemSynced should be true when calling onMainComplete"),b("onMainComplete has been called but runtime or file system was not ready.");return}f()},onRuntimeInitialized:()=>{m=!0,this.start(g,m,f)},print:S=>{d.info(S)}}),await pe(F,M)||b(`Couldn\'t retrieve Scandit Data Capture library at ${F}, did you configure the path for it correctly?`),P}};fe.get3dPartyLicenseKeyMethodName=atob("Z2V0QmxpbmtJZExpY2Vuc2VLZXk=");var I=fe;function ye(t){return typeof t=="object"&&t!=null&&t.document==null&&"addEventListener"in t&&typeof t.importScripts=="function"}function Se(t){console.warn("Reached unexpected case",t)}var te=class{constructor(t,e){this.onMessageListener=this.onMessage.bind(this),this.workerSelf=t,this.dataCaptureInstance=new I(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),ye(t)&&(ae(t),this.listenToMessages())}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",t=>{d.log(d.Level.Error,t)}),this.workerSelf.addEventListener("messageerror",t=>{d.log(d.Level.Error,t)})}postMessage(t,e){this.workerSelf.postMessage(t,e!=null?e:[])}getOffscreenCanvas(){if(this.isOffscreenCanvasSupported())return new this.workerSelf.OffscreenCanvas(32,32)}isOffscreenCanvasSupported(){return typeof this.workerSelf.OffscreenCanvas=="function"}hasPayload(t){return C(t)&&"payload"in t}hasTransferables(t){return C(t)&&Array.isArray(t.transferables)}async respondWith(t,e,r){let a=null,i;try{i=r(),i instanceof Promise&&(i=await i)}catch(o){i=void 0,a=k(o)}let n={type:"workerTaskId",command:t,id:e,payload:this.hasPayload(i)?i.payload:void 0};a!=null&&(n.error=a),this.postMessage(n,this.hasTransferables(i)?i.transferables:[])}onMessage(t){switch(t.data.command){case"loadLibrary":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,writableDataPathOverride:e.writableDataPathOverride,threadsSupport:e.threadsSupport,simdSupport:e.simdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory,indexedDBTimeoutMs:e.indexedDBTimeoutMs}))}break}case"onTap":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point)})}break}case"hintPresenterV2update":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update()})}break}case"createContext":{{let{data:e}=t;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,isTablet:e.isTablet,batteryInfo:e.batteryInfo}))}break}case"setFrameSource":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource))}break}case"processFrame":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,frameId:e.frameId,width:e.width,height:e.height,colorType:e.colorType}))}break}case"requestFrameData":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId))}break}case"deleteFrameData":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId)})}break}case"updateContext":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e))}break}case"dispose":{this.respondWith(t.data.command,t.data.id,()=>this.dataCaptureInstance.dispose());break}case"flushAnalytics":{this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.flushAnalytics()});break}case"reportCameraProperties":{{let{data:e}=t;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e))}break}case"setLogLevel":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{d.setLevel(e.level)})}break}case"updateBatteryInfo":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.updateBatteryInfo(e.batteryInfo)})}break}case"extractCentaurusLicense":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey))}break}case"documentVisibility":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state)})}break}case"isFeatureSupported":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature))}break}case"getViewfinderInfo":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo())}break}case"getOpenSourceSoftwareLicenseInfo":{{let{data:e}=t;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo())}break}case"addNativeOverlay":this.dataCaptureInstance.addNativeOverlay(t);break;case"removeNativeOverlay":this.dataCaptureInstance.removeNativeOverlay(t);break;case"convertToJPEGResult":{{let{data:e}=t;this.dataCaptureInstance.convertToJPEGResult(e.imageId,e.result)}break}default:return Se(t.data),!1}return!0}};var we=(t=>(t.Body="body",t.Footnote="footnote",t))(we||{}),E=(t=>(t.Start="start",t.Center="center",t.End="end",t))(E||{}),ve=(t=>(t.Normal="normal",t.Wider="wider",t.FitText="fitText",t))(ve||{}),Fe=(t=>(t.Normal="normal",t.Taller="taller",t))(Fe||{}),Me=(t=>(t.Square="square",t.Rounded="rounded",t))(Me||{}),L=(t=>(t.None="none",t.Check="check",t.ExclamationMark="exclamationMark",t))(L||{}),W=(t=>(t.Top="top",t.Center="center",t.AboveViewFinder="aboveViewFinder",t.BelowViewFinder="belowViewFinder",t))(W||{}),Ce=(t=>(t.AboveViewFinder="aboveViewFinder",t.BelowViewFinder="belowViewFinder",t))(Ce||{}),ke=(t=>(t.BlackOnWhite="blackOnWhite",t.WhiteOnBlack="whiteOnBlack",t.Transparent="transparent",t))(ke||{}),De=(t=>(t.Success="success",t.Error="error",t.Warning="warning",t.Info="info",t.Notification="notification",t))(De||{}),Ie=(t=>(t[t.Ocr=0]="Ocr",t[t.HideLogo=1]="HideLogo",t[t.ShowTestLicenseMessage=2]="ShowTestLicenseMessage",t[t.AugmentedReality=5]="AugmentedReality",t[t.ActivityPingStatsAddon=8]="ActivityPingStatsAddon",t[t.ActivityPing=9]="ActivityPing",t[t.Registration=10]="Registration",t[t.Parser=11]="Parser",t[t.BarcodeCapture=14]="BarcodeCapture",t[t.Analytics=17]="Analytics",t[t.AnalyticsBatchMode=18]="AnalyticsBatchMode",t[t.AnalyticsScanContent=19]="AnalyticsScanContent",t[t.AnalyticsOnlineVerification=20]="AnalyticsOnlineVerification",t[t.SparkScan=21]="SparkScan",t[t.AamvaIdBarcodeVerification=22]="AamvaIdBarcodeVerification",t[t.MappingForTracking=23]="MappingForTracking",t[t.BarcodeFind=24]="BarcodeFind",t[t.MandatoryRegistration=25]="MandatoryRegistration",t[t.FeatureTracking=26]="FeatureTracking",t[t.IdCaptureViz=27]="IdCaptureViz",t[t.IdCaptureMrz=28]="IdCaptureMrz",t[t.IdCaptureBarcode=29]="IdCaptureBarcode",t[t.BarcodeSelectionAimToScan=30]="BarcodeSelectionAimToScan",t[t.BarcodeSelectionTapToScan=31]="BarcodeSelectionTapToScan",t[t.BarcodeCount=32]="BarcodeCount",t[t.BarcodePick=33]="BarcodePick",t[t.IdVerificationDataComparison=34]="IdVerificationDataComparison",t[t.SmartLabelBarcode=35]="SmartLabelBarcode",t[t.SmartLabelText=36]="SmartLabelText",t[t.VoidedIdDetection=37]="VoidedIdDetection",t[t.BarcodeArFull=38]="BarcodeArFull",t[t.BarcodeSequence=39]="BarcodeSequence",t))(Ie||{});var N=class{constructor(e,r,a){this.barcodeAr=null;this.coreEngine=e,this.Module=r,this.workerFunctions=a}async forSettings(e){var a;(a=this.barcodeAr)==null||a.delete(),this.barcodeAr=new this.Module.BarcodeAr(this.coreEngine.context,JSON.stringify(e));let r=this.Module.BarcodeArListener.extend("BarcodeArListener",{didUpdateSession:(i,n,o)=>{let s=this.coreEngine.prepareFrameForListener(o);this.workerFunctions.postMessage({type:"barcodeArDidUpdateSession",payload:{session:JSON.parse(n.toJson()),frameData:s}}),i.delete(),n.delete(),o.delete()}});this.barcodeAr.addListener(new r,1),this.Module.addBarcodeArToContext(this.coreEngine.context,this.barcodeAr)}start(){var e;(e=this.barcodeAr)==null||e.start()}pause(){var e;(e=this.barcodeAr)==null||e.pause()}stop(){var e;(e=this.barcodeAr)==null||e.stop()}setEnabled(e){var r;(r=this.barcodeAr)==null||r.setEnabled(e)}async removeMode(){this.barcodeAr!=null&&this.Module.removeBarcodeArFromContext(this.coreEngine.context,this.barcodeAr)}applySettings(e){var r;(r=this.barcodeAr)==null||r.applySettings(JSON.stringify(e))}};var H=class{constructor(e,r,a){this.trackingListenerSet=!1;this.coreEngine=e,this.Module=r,this.workerFunctions=a,this.setup()}barcodeBatchDidUpdateSession(e){this.workerFunctions.postMessage({type:"barcodeBatchDidUpdateSession",payload:JSON.parse(e.toJson())})}getBatchDeserializer(){return this.barcodeBatchDeserializer}setup(){let e=this.Module.BarcodeBatchListener.extend("BarcodeTrackingListener",{didUpdateSession:(a,i,n)=>{this.barcodeBatchDidUpdateSession(i),a.delete(),i.delete(),n.delete()},onTrackedBarcodeTapped:(a,i)=>{this.onTrackedBarcodeTapped(i),a.delete(),i.delete()}}),r=this.Module.BarcodeBatchDeserializerListener.extend("BarcodeTrackingDeserializerListener",{onModeDeserializationFinished:(a,i,n)=>{this.trackingListenerSet||(i.addListener(new e,1),this.trackingListenerSet=!0),a.delete(),i.delete(),n.delete()},onModeDeserializationStarted(a,i,n){a.delete(),i.delete(),n.delete()},onSettingsDeserializationStarted(a,i,n){a.delete(),i.delete(),n.delete()},onSettingsDeserializationFinished(a,i,n){a.delete(),i.delete(),n.delete()}});this.barcodeBatchDeserializer=new this.Module.BarcodeBatchDeserializer,this.barcodeBatchDeserializer.setListener(new r)}onTrackedBarcodeTapped(e){this.workerFunctions.postMessage({type:"didTapTrackedBarcode",payload:JSON.parse(e.toJson())})}};var _=class{constructor(e,r,a){this.captureListenerSet=!1;this.coreEngine=e,this.Module=r,this.workerFunctions=a,this.setup()}barcodeCaptureDidUpdateSession(e){this.workerFunctions.postMessage({type:"barcodeCaptureDidUpdateSession",payload:JSON.parse(e.toJson())})}barcodeBatchDidUpdateSession(e){this.workerFunctions.postMessage({type:"barcodeBatchDidUpdateSession",payload:JSON.parse(e.toJson())})}getCaptureDeserializer(){return this.barcodeCaptureDeserializer}getTrackingDeserializer(){return this.barcodeBatchDeserializer}setup(){let e=this.Module.BarcodeCaptureListener.extend("BarcodeCaptureListener",{didScan:(o,s,c)=>{this.barcodeCaptureDidScan(s,c),o.delete(),c.delete(),s.delete()},didUpdateSession:(o,s,c)=>{this.barcodeCaptureDidUpdateSession(s),o.delete(),c.delete(),s.delete()}}),r=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback()}}),a=new e,i=new r,n=this.Module.BarcodeCaptureDeserializerListener.extend("BarcodeCaptureDeserializerListener",{onModeDeserializationFinished:(o,s,c)=>{s.addListener(a,1),s.setSuccessFeedback(i),o.delete(),s.delete(),c.delete()},onModeDeserializationStarted(o,s,c){o.delete(),s.delete(),c.delete()},onSettingsDeserializationStarted(o,s,c){o.delete(),s.delete(),c.delete()},onSettingsDeserializationFinished(o,s,c){o.delete(),s.delete(),c.delete()}});this.barcodeCaptureDeserializer=new this.Module.BarcodeCaptureDeserializer,this.barcodeCaptureDeserializer.setListener(new n)}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"})}barcodeCaptureDidScan(e,r){let a=this.coreEngine.prepareFrameForListener(r);this.workerFunctions.postMessage({type:"barcodeCaptureDidScan",payload:{session:JSON.parse(e.toJson()),frameData:a}})}};function qe(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Pe(t){return t}var z=class{constructor(e,r,a){this.barcodeFind=null;this.basicOverlay=null;this.transparentGuidanceHintStyle={backgroundColor:"00000000",cornerRadius:4,fitToText:!1,isAnimatedToView:!1,textAlignment:E.Center,hintIcon:L.None,hintAnchor:W.Center,hintAnchorOffset:0,horizontalMargin:0,iconColor:"00000000",lineHeight:-1,maxLines:1,maxWidthFraction:.8,textColor:"ffffffff",textSize:15,textWeight:600};this.customerTransformation=Pe;this.coreEngine=e,this.Module=r,this.workerFunctions=a}async forSettings(e){var o;(o=this.barcodeFind)==null||o.delete(),this.barcodeFind=new this.Module.BarcodeFind(this.coreEngine.context,JSON.stringify(e));let r=this.Module.Feedback.extend("Feedback",{emit:()=>{this.listUpdatedFeedback()}}),a=this.Module.Feedback.extend("Feedback",{emit:()=>{this.barcodeFindFeedback()}}),i=this.Module.BarcodeFindTransformer.extend("BarcodeFindTransformer",{transformBarcodeData:s=>this.customerTransformation(s)}),n=this.Module.BarcodeFindListener.extend("BarcodeFindListener",{didUpdateSession:(s,c,l)=>{let h=this.coreEngine.prepareFrameForListener(l);this.workerFunctions.postMessage({type:"barcodeFindDidUpdateSession",payload:{session:JSON.parse(c.toJson()),frameData:h}}),s.delete(),c.delete(),l.delete()},onSearchPaused:s=>{let c=[];for(let l=0;l<s.size();l++)c.push(s.get(l));this.workerFunctions.postMessage({type:"barcodeFindSearchPaused",payload:{foundItems:c}})},onSearchStopped:s=>{let c=[];for(let l=0;l<s.size();l++)c.push(s.get(l));this.workerFunctions.postMessage({type:"barcodeFindSearchStopped",payload:{foundItems:c}})},onSearchStarted:()=>{this.workerFunctions.postMessage({type:"barcodeFindSearchStarted",payload:{}})}});this.barcodeFind.setBarcodeFindTransformer(new i),this.barcodeFind.addListener(new n,1),this.barcodeFind.setItemListUpdatedFeedback(new r),this.barcodeFind.setFeedback(new a),this.Module.addBarcodeFindToContext(this.coreEngine.context,this.barcodeFind)}barcodeFindFeedback(){this.workerFunctions.postMessage({type:"barcodeFindFeedback",payload:{}})}start(){var e;(e=this.barcodeFind)==null||e.start()}stop(){var e;(e=this.barcodeFind)==null||e.stop()}pause(){var e;(e=this.barcodeFind)==null||e.pause()}setEnabled(e){var r;(r=this.barcodeFind)==null||r.setEnabled(e)}setItemList(e){var r;(r=this.barcodeFind)==null||r.setItemList(JSON.stringify(e))}async removeMode(){this.barcodeFind!=null&&this.Module.removeBarcodeFindFromContext(this.coreEngine.context,this.barcodeFind)}addBasicOverlay(){var e;(e=this.basicOverlay)==null||e.delete(),this.basicOverlay=null,this.barcodeFind!=null&&(this.basicOverlay=new this.Module.BarcodeFindBasicOverlay(this.barcodeFind)),this.coreEngine.view!=null&&this.basicOverlay!=null&&(this.basicOverlay.setGuidanceHandler(this.createWebFindGuidanceHandler()),this.Module.addBarcodeFindBasicOverlayToView(this.coreEngine.view,this.basicOverlay))}removeBasicOverlay(){this.coreEngine.view!=null&&this.basicOverlay!=null&&this.Module.removeBarcodeFindBasicOverlayFromView(this.coreEngine.view,this.basicOverlay)}async applySettings(e){var r;(r=this.barcodeFind)==null||r.applySettings(JSON.stringify(e))}updateBasicOverlay(e){let r=Object.entries(e).filter(([a,i])=>a!=="type");for(let[a,i]of r){let n=`set${qe(a)}`;this.basicOverlay!=null&&typeof this.basicOverlay[n]=="function"&&i!=null&&this.basicOverlay[n](i)}}setTransformerFunction(e){this.customerTransformation=e!=null?e:Pe}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"})}listUpdatedFeedback(){this.workerFunctions.postMessage({type:"barcodeFindListUpdatedFeedback",payload:{}})}setToast(e,r){let a=this.coreEngine.hintPresenterV2;e?a==null||a.showToast(JSON.stringify(r)):a==null||a.hideToast(r.tag)}setGuidance(e,r,a){let i={tag:a,text:r,hintStyle:this.transparentGuidanceHintStyle};this.workerFunctions.postMessage({type:e?"showGuidance":"hideGuidance",payload:i})}createWebFindGuidanceHandler(){let e=this.Module.BarcodeFindGuidanceHandler.extend("BarcodeFindGuidanceHandler",{setInitialGuidance:(r,a)=>{this.setGuidance(r,a,"InitialGuidance")},setMoveCloserGuidance:(r,a)=>{this.setGuidance(!1,a,"InitialGuidance"),this.setGuidance(r,a,"MoveCloserGuidance")},setTapShutterToPause:(r,a)=>{this.setGuidance(!1,a,"InitialGuidance"),this.setGuidance(r,a,"TapShutterToPause")},setTapShutterToResume:(r,a)=>{this.setGuidance(!1,a,"InitialGuidance"),this.setGuidance(r,a,"TapShutterResume")}});return new e}};var w=class{constructor(e){this.subscribers=new Set;this.property={key:e,value:null}}addSubscriber(e){var r;this.subscribers.add(e),(r=e.onPropertyChanged)==null||r.call(e,this.property)}removeSubscriber(e){this.subscribers.delete(e)}setProperty(e){var r;if(this.property.value!==e.value){this.property={key:this.property.key,value:e.value};for(let a of this.subscribers)(r=a.onPropertyChanged)==null||r.call(a,this.property)}}};var Ye={torch_state:new w("torch_state"),scanning_mode:new w("scanning_mode"),sound_enabled:new w("sound_enabled"),haptic_enabled:new w("haptic_enabled"),session_stop_reason:new w("session_stop_reason"),camera_position:new w("camera_position")},V=class{getBehaviorSubject(e){return Ye[e]}};var J=class{constructor(e,r,a){this.captureListenerSet=!1;this.propertyPushSource=new V;this.coreEngine=e,this.Module=r,this.workerFunctions=a,this.setup()}sparkScanDidUpdateSession(e){this.workerFunctions.postMessage({type:"sparkScanDidUpdateSession",payload:JSON.parse(e.toJson())})}getSparkScanDeserializer(){return this.sparkScanDeserializer}setup(){let e=this.Module.SparkScanListener.extend("SparkScanListener",{didScan:(i,n,o)=>{this.sparkScanDidScan(n,o),i.delete(),n.delete(),o.delete()},didUpdateSession:(i,n,o)=>{this.sparkScanDidUpdateSession(n),i.delete(),n.delete(),o.delete()}}),r=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback()}}),a=this.Module.SparkScanDeserializerListener.extend("SparkScanDeserializerListener",{onModeDeserializationFinished:(i,n,o)=>{if(!this.captureListenerSet){n.addListener(new e,1),n.setSuccessFeedback(new r),n.setPropertyPushSource(this.propertyPushSource);let s=this.Module.SparkScanViewHandlerDelegate.extend("SparkScanViewHandlerDelegate",{onSwitchedAwayFromSmartScanSelection:()=>{this.workerFunctions.postMessage({type:"sparkScanSwitchedAwayFromSmartScanSelection"})},onSwitchedToSmartScanSelection:()=>{this.workerFunctions.postMessage({type:"sparkScanSwitchedToSmartScanSelection"})},enableHapticWhenOverlapping:()=>{},onStateTransition:()=>{},resetAllTimers:()=>{}}),c=new s,l=n.getStateMachine();l.setViewHandlerDelegate(c),c.delete(),l.delete(),this.sparkScan=n.clone(),this.captureListenerSet=!0}i.delete(),o.delete(),n.delete()},onModeDeserializationStarted(i,n,o){i.delete(),n.delete(),o.delete()},onSettingsDeserializationStarted(i,n,o){i.delete(),n.delete(),o.delete()},onSettingsDeserializationFinished(i,n,o){i.delete(),n.delete(),o.delete()},onOverlayDeserializationStarted(i,n,o){i.delete(),n.delete(),o.delete()},onOverlayDeserializationFinished:(i,n,o)=>{var s;(s=this.sparkScanOverlay)==null||s.delete(),this.sparkScanOverlay=n,i.delete(),o.delete()}});this.sparkScanDeserializer=new this.Module.SparkScanDeserializer,this.sparkScanDeserializer.setListener(new a)}emitErrorFeedback(e){var r;(r=this.sparkScanOverlay)==null||r.onErrorFeedbackEmitted(e)}overlayReadyForDraw(){var e;(e=this.sparkScanOverlay)==null||e.onReadyForNewData()}analyticsManagerPropertyChanged(e){this.propertyPushSource.getBehaviorSubject(e.key).setProperty(e)}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"})}selectItemWithSmartScanSelection(){var e;(e=this.sparkScan)==null||e.selectItemWithSmartScanSelectionAsync()}async removeMode(){var e,r;this.captureListenerSet=!1,(e=this.sparkScan)==null||e.delete(),this.sparkScan=void 0,(r=this.sparkScanOverlay)==null||r.delete(),this.sparkScanOverlay=void 0}sparkScanDidScan(e,r){let a=this.coreEngine.prepareFrameForListener(r);this.workerFunctions.postMessage({type:"sparkScanDidScan",payload:{session:JSON.parse(e.toJson()),frameData:a}})}};var U=class extends I{constructor(e,r){super(e,r)}getModeDeserializers(){this.barcodeCaptureMode=new _(this,this.Module,this.workerFunctions),this.barcodeBatchMode=new H(this,this.Module,this.workerFunctions),this.sparkScanMode=new J(this,this.Module,this.workerFunctions),this.barcodeFindMode=new z(this,this.Module,this.workerFunctions),this.barcodeArMode=new N(this,this.Module,this.workerFunctions);let e=super.getModeDeserializers();return e.push_back(this.barcodeCaptureMode.getCaptureDeserializer()),e.push_back(this.barcodeBatchMode.getBatchDeserializer()),e.push_back(this.sparkScanMode.getSparkScanDeserializer()),e}getWasmSideModuleFileName(){return""}getWasmCoreFileName(e,r){return r?e?"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":"scandit-datacapture-sdk-barcode-pthreads.wasm":e?"scandit-datacapture-sdk-barcode-simd.wasm":"scandit-datacapture-sdk-barcode.wasm"}getWasmCoreExpectedHash(e,r){return r?e?"85dc3552838b61f5c0c3a20b03ab3d6ec0ac34536bc3c8ff09ba7943d4cd7dc6":"91e683aec80d2fb4c4f9d7bb123ffca731a534cf8d953c4492a5f84bb9194c01":e?"64914911045cd522d294d10b3d28c425edf22f939eda121165aeb66f9ffe7308":"484c4590bc04b0ce0fc0e0987cd61df91b799f4f4bc782ea0e8a0d7ce0d1a809"}getWasmMetadata(){return u}};function Xe(t){return(r=>/^[$A-Z_a-z][\\w$]*\\s*\\(.*\\)\\s*\\{/.test(r)&&!r.startsWith("function"))(t)?`function ${t}`:t}var Ke=["fetch","XMLHttpRequest","eval","Function","self","globalThis","Module","importScripts","this","console","window","document","import","Worker","ServiceWorker"];function Ze(t){return Ke.map(r=>new RegExp(`\\\\b${r}\\\\b`,"g")).some(r=>r.test(t))}function Be(t){if(t==null)return null;let e=Xe(t);if(Ze(e))throw new Error("Function should be pure. Shouldn\'t introduce side effects, or rely on global scope");let r=`\'use strict\';\n return (${e});`;try{return new Function(r)()}catch{return null}}var $=class extends te{constructor(e,r){super(e,r),this.dataCaptureInstance=new U(r,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)})}async respondWith(e,r,a){let i=null,n;try{n=a(),n instanceof Promise&&(n=await n)}catch(s){n=void 0,i=k(s)}let o={type:"workerTaskId",command:e,id:r,payload:this.hasPayload(n)?n.payload:void 0};i!=null&&(o.error=i),this.postMessage(o,this.hasTransferables(n)?n.transferables:[])}onMessage(e){switch(e.data.command){case"sparkScanEmitErrorFeedback":{let{data:r}=e;return this.respondWith(r.command,r.id,()=>{this.dataCaptureInstance.sparkScanMode.emitErrorFeedback(r.shouldRemoveBrush)}),!0}case"sparkScanOverlayReadyForDraw":{let{data:r}=e;return this.respondWith(r.command,r.id,()=>{this.dataCaptureInstance.sparkScanMode.overlayReadyForDraw()}),!0}case"sparkScanAnalyticsManagerPropertyChanged":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.sparkScanMode.analyticsManagerPropertyChanged(r.property)}),!0}case"sparkScanSelectItemWithSmartScanSelection":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.sparkScanMode.selectItemWithSmartScanSelection()}),!0}case"sparkScanModeRemove":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.sparkScanMode.removeMode()),!0}case"barcodeFindForSettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeFindMode.forSettings(r.settings)),!0}case"barcodeFindModeRemove":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeFindMode.removeMode()),!0}case"barcodeFindSearchStart":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.start()}),!0;case"barcodeFindSearchPause":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.pause()}),!0;case"barcodeFindSearchStop":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.stop()}),!0;case"barcodeFindSetItemList":{let{data:r}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setItemList(r.itemList)}),!0}case"barcodeFindSetEnabled":{let{data:r}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setEnabled(r.enabled)}),!0}case"barcodeFindApplySettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeFindMode.applySettings(r.settings)),!0}case"barcodeFindAddBasicOverlay":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeFindMode.addBasicOverlay()}),!0}case"barcodeFindRemoveBasicOverlay":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeFindMode.removeBasicOverlay()}),!0}case"barcodeFindUpdateBasicOverlay":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeFindMode.updateBasicOverlay(r.jsonOverlay)}),!0}case"barcodeFindSetTransformerFunction":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{let a=Be(r.functionAsString);this.dataCaptureInstance.barcodeFindMode.setTransformerFunction(a)}),!0}case"barcodeArForSettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeArMode.forSettings(r.settings)),!0}case"barcodeArModeRemove":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>this.dataCaptureInstance.barcodeArMode.removeMode()),!0}case"barcodeArSearchStart":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.start()}),!0;case"barcodeArSearchPause":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.pause()}),!0;case"barcodeArSearchStop":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.stop()}),!0;case"barcodeArSetEnabled":{let{data:r}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeArMode.setEnabled(r.enabled)}),!0}case"barcodeArApplySettings":{let{data:r}=e;return this.respondWith(r.command,r.id,async()=>{this.dataCaptureInstance.barcodeArMode.applySettings(r.settings)}),!0}default:return super.onMessage(e)}}};var Sa=new $(self,{get:()=>self.Module,set:t=>{self.Module=t}});function wa(t){}})();\n'],{type:"application/javascript"})),e=new Worker(n,r);return URL.revokeObjectURL(n),e}var l=class r extends DataCaptureLoader{constructor(){super(...arguments);this._name="BarcodeCapture";}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=d({name:this.name})),this._dataCaptureWorker}get name(){return this._name}static async create(e){var a;let t=new r(e);return await t.workerCommand("setLogLevel",{level:(a=e.logLevel)!=null?a:Logger.Level.Debug}),await t.load(),t}async workerCommand(e,t,a){return new Promise((c,o)=>{let i=this.workerCommandId++;this.workerTasks.set(i,{resolve:c,reject:o,command:e});let s={...t,command:e,id:i};this.dataCaptureWorker.postMessage(s,a);})}};
2
- export{l as a};
@@ -1 +0,0 @@
1
- import {b}from'./chunk-67E6BCDR.js';var p=class{constructor(a,i,s){this.captureListenerSet=false;this.propertyPushSource=new b;this.coreEngine=a,this.Module=i,this.workerFunctions=s,this.setup();}sparkScanDidUpdateSession(a){this.workerFunctions.postMessage({type:"sparkScanDidUpdateSession",payload:JSON.parse(a.toJson())});}getSparkScanDeserializer(){return this.sparkScanDeserializer}setup(){let a=this.Module.SparkScanListener.extend("SparkScanListener",{didScan:(r,e,t)=>{this.sparkScanDidScan(e,t),r.delete(),e.delete(),t.delete();},didUpdateSession:(r,e,t)=>{this.sparkScanDidUpdateSession(e),r.delete(),e.delete(),t.delete();}}),i=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback();}}),s=this.Module.SparkScanDeserializerListener.extend("SparkScanDeserializerListener",{onModeDeserializationFinished:(r,e,t)=>{if(!this.captureListenerSet){e.addListener(new a,1),e.setSuccessFeedback(new i),e.setPropertyPushSource(this.propertyPushSource);let n=this.Module.SparkScanViewHandlerDelegate.extend("SparkScanViewHandlerDelegate",{onSwitchedAwayFromSmartScanSelection:()=>{this.workerFunctions.postMessage({type:"sparkScanSwitchedAwayFromSmartScanSelection"});},onSwitchedToSmartScanSelection:()=>{this.workerFunctions.postMessage({type:"sparkScanSwitchedToSmartScanSelection"});},enableHapticWhenOverlapping:()=>{},onStateTransition:()=>{},resetAllTimers:()=>{}}),o=new n,c=e.getStateMachine();c.setViewHandlerDelegate(o),o.delete(),c.delete(),this.sparkScan=e.clone(),this.captureListenerSet=true;}r.delete(),t.delete(),e.delete();},onModeDeserializationStarted(r,e,t){r.delete(),e.delete(),t.delete();},onSettingsDeserializationStarted(r,e,t){r.delete(),e.delete(),t.delete();},onSettingsDeserializationFinished(r,e,t){r.delete(),e.delete(),t.delete();},onOverlayDeserializationStarted(r,e,t){r.delete(),e.delete(),t.delete();},onOverlayDeserializationFinished:(r,e,t)=>{var n;(n=this.sparkScanOverlay)==null||n.delete(),this.sparkScanOverlay=e,r.delete(),t.delete();}});this.sparkScanDeserializer=new this.Module.SparkScanDeserializer,this.sparkScanDeserializer.setListener(new s);}emitErrorFeedback(a){var i;(i=this.sparkScanOverlay)==null||i.onErrorFeedbackEmitted(a);}overlayReadyForDraw(){var a;(a=this.sparkScanOverlay)==null||a.onReadyForNewData();}analyticsManagerPropertyChanged(a){this.propertyPushSource.getBehaviorSubject(a.key).setProperty(a);}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}selectItemWithSmartScanSelection(){var a;(a=this.sparkScan)==null||a.selectItemWithSmartScanSelectionAsync();}async removeMode(){var a,i;this.captureListenerSet=false,(a=this.sparkScan)==null||a.delete(),this.sparkScan=void 0,(i=this.sparkScanOverlay)==null||i.delete(),this.sparkScanOverlay=void 0;}sparkScanDidScan(a,i){let s=this.coreEngine.prepareFrameForListener(i);this.workerFunctions.postMessage({type:"sparkScanDidScan",payload:{session:JSON.parse(a.toJson()),frameData:s}});}};export{p as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-MUK52FJN.js';import {a}from'./chunk-HDODW33D.js';var s=class o{constructor(){this.type="sparkScan";this._shouldShowScanAreaGuides=false;this._shouldRemoveLocationsAfterScan=true;this._shouldDrawViewfinder=false;this._style=a.SparkScanOverlay.defaultStyle;this._viewfinder=new a$1;}get style(){return this._style}static async withSparkScanForView(r,e){let a$1=new o;return a$1.sparkScan=r,await a$1.setBrush(a.SparkScanOverlay.DefaultBrush.clone()),e&&await e.addOverlay(a$1),a$1}setRadius(r){this._viewfinder.radius=r;}getBrush(){return this._brush}async setBrush(r){this._brush=r,await this.sparkScan.notifyContext();}async overlayReadyForDraw(){await this.sparkScan.workerCommand("sparkScanOverlayReadyForDraw",{});}async setErrorBrush(r){this._errorBrush=r,await this.sparkScan.notifyContext();}getErrorBrush(){var r;return (r=this._errorBrush)!=null?r:this._brush}async setShouldShowScanAreaGuides(r){this._shouldShowScanAreaGuides=r,await this.sparkScan.notifyContext();}async setShouldRemoveLocationsAfterScan(r){this._shouldRemoveLocationsAfterScan=r,await this.sparkScan.notifyContext();}async setShouldDrawViewfinder(r){this._shouldDrawViewfinder=r,await this.sparkScan.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var r,e;return {type:this.type,brush:this._brush.toJSONObject(),errorBrush:(e=(r=this._errorBrush)==null?void 0:r.toJSONObject())!=null?e:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:this._viewfinder.toJSONObject(),style:this.style,shouldDrawViewfinder:this._shouldDrawViewfinder}}};export{s as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-YK7BXRK5.js';import {a as a$1}from'./chunk-TRITJ43A.js';import {unknownErrorToString}from'@scandit/web-datacapture-core/build/js/private/utils/unknownErrorToString.js';import {WorkerMain}from'@scandit/web-datacapture-core/build/js/worker/index.js';var i=class extends WorkerMain{constructor(t,a$1){super(t,a$1),this.dataCaptureInstance=new a(a$1,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)});}async respondWith(t,a,r){let d=null,e;try{e=r(),e instanceof Promise&&(e=await e);}catch(c){e=void 0,d=unknownErrorToString(c);}let s={type:"workerTaskId",command:t,id:a,payload:this.hasPayload(e)?e.payload:void 0};d!=null&&(s.error=d),this.postMessage(s,this.hasTransferables(e)?e.transferables:[]);}onMessage(t){switch(t.data.command){case "sparkScanEmitErrorFeedback":{let{data:a}=t;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.emitErrorFeedback(a.shouldRemoveBrush);}),true}case "sparkScanOverlayReadyForDraw":{let{data:a}=t;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.overlayReadyForDraw();}),true}case "sparkScanAnalyticsManagerPropertyChanged":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.sparkScanMode.analyticsManagerPropertyChanged(a.property);}),true}case "sparkScanSelectItemWithSmartScanSelection":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.sparkScanMode.selectItemWithSmartScanSelection();}),true}case "sparkScanModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.sparkScanMode.removeMode()),true}case "barcodeFindForSettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.forSettings(a.settings)),true}case "barcodeFindModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.removeMode()),true}case "barcodeFindSearchStart":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.start();}),true;case "barcodeFindSearchPause":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.pause();}),true;case "barcodeFindSearchStop":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.stop();}),true;case "barcodeFindSetItemList":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setItemList(a.itemList);}),true}case "barcodeFindSetEnabled":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setEnabled(a.enabled);}),true}case "barcodeFindApplySettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.applySettings(a.settings)),true}case "barcodeFindAddBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.addBasicOverlay();}),true}case "barcodeFindRemoveBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.removeBasicOverlay();}),true}case "barcodeFindUpdateBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.updateBasicOverlay(a.jsonOverlay);}),true}case "barcodeFindSetTransformerFunction":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{let r=a$1(a.functionAsString);this.dataCaptureInstance.barcodeFindMode.setTransformerFunction(r);}),true}case "barcodeArForSettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeArMode.forSettings(a.settings)),true}case "barcodeArModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeArMode.removeMode()),true}case "barcodeArSearchStart":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.start();}),true;case "barcodeArSearchPause":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.pause();}),true;case "barcodeArSearchStop":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.stop();}),true;case "barcodeArSetEnabled":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.setEnabled(a.enabled);}),true}case "barcodeArApplySettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeArMode.applySettings(a.settings);}),true}default:return super.onMessage(t)}}};export{i as a};
@@ -1 +0,0 @@
1
- [{"name": "driver_license:AUS:ACT:0:front", "aspect_ratio": 1.586, "text_fields": [{"name": "fixed:document_type", "box": [[0.197, 0.034], [0.612, 0.093]], "data": "DRIVER LICENSE"}, {"name": "fixed:other_#0", "box": [[0.879, 0.068], [0.976, 0.132]], "data": "ACT"}, {"name": "fixed:issuing_country", "box": [[0.089, 0.145], [0.72, 0.191]], "data": "AUSTRALIAN CAPITAL TERRITORY"}, {"name": "fixed:other_#1", "box": [[0.879, 0.14], [0.976, 0.166]], "data": "Govemment"}, {"name": "value:full_name", "box": [[0.027, 0.251], [0.289, 0.289]], "required": true}, {"name": "value:address_#0", "box": [[0.027, 0.328], [0.51, 0.366]]}, {"name": "value:address_#1", "box": [[0.027, 0.387], [0.356, 0.426]]}, {"name": "value:address_#2", "box": [[0.027, 0.443], [0.311, 0.485]]}, {"name": "id:date_of_birth", "box": [[0.024, 0.537], [0.159, 0.567]], "data": "Date of Birth"}, {"name": "value:date_of_birth", "box": [[0.173, 0.524], [0.357, 0.562]], "date_format": "%d%b%Y;locale=en", "required": true}, {"name": "id:date_of_expiry", "box": [[0.395, 0.55], [0.568, 0.584]], "data": "Licence Expires"}, {"name": "id:document_number", "box": [[0.024, 0.614], [0.154, 0.644]], "data": "Licence No."}, {"name": "value:document_number", "box": [[0.176, 0.601], [0.354, 0.639]], "required": true}, {"name": "value:date_of_expiry", "box": [[0.392, 0.601], [0.568, 0.639]], "date_format": "%d%b%Y;locale=en", "required": true}, {"name": "value:driver_license_detailed_info.vehicle_class", "box": [[0.173, 0.678], [0.23, 0.725]]}, {"name": "id:driver_license_detailed_info.vehicle_class", "box": [[0.024, 0.691], [0.084, 0.721]], "data": "Class"}, {"name": "id:driver_license_detailed_info.conditions", "box": [[0.022, 0.772], [0.141, 0.802]], "data": "Conditions"}, {"name": "value:driver_license_detailed_info.conditions", "box": [[0.173, 0.759], [0.195, 0.798]]}, {"name": "value:document_additional_number", "box": [[0.657, 0.631], [0.688, 0.961]]}], "image_fields": [{"name": "portrait", "box": [[0.694, 0.362], [0.975, 0.952]]}, {"name": "signature", "box": [[0.179, 0.819], [0.485, 0.956]]}]}, {"name": "driver_license:CHE:0:back", "aspect_ratio": 1.582, "text_fields": [{"name": "fixed:other_#0", "box": [[0.322, 0.07], [0.354, 0.117]], "data": "9."}, {"name": "fixed:other_#1", "box": [[0.499, 0.067], [0.548, 0.12]], "data": "10."}, {"name": "fixed:other_#2", "box": [[0.668, 0.067], [0.715, 0.12]], "data": "11."}, {"name": "fixed:other_#3", "box": [[0.84, 0.067], [0.889, 0.12]], "data": "12."}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#0", "box": [[0.321, 0.132], [0.351, 0.185]], "data": "A"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#0", "box": [[0.497, 0.13], [0.649, 0.19]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#1", "box": [[0.322, 0.2], [0.348, 0.25]], "data": "B"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#1", "box": [[0.499, 0.195], [0.649, 0.254]]}, {"name": "fixed:other_#4", "box": [[0.837, 0.197], [0.889, 0.25]], "data": "121"}, {"name": "id:last_name", "box": [[0.014, 0.245], [0.101, 0.282]], "data": "1.Name"}, {"name": "id:first_name", "box": [[0.013, 0.277], [0.128, 0.319]], "data": "2.Vorname"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#2", "box": [[0.321, 0.262], [0.351, 0.314]], "data": "C"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#2", "box": [[0.499, 0.262], [0.646, 0.314]]}, {"name": "id:date_of_birth", "box": [[0.013, 0.307], [0.175, 0.352]], "data": "3.Geburtsdatum"}, {"name": "id:date_of_issue", "box": [[0.013, 0.342], [0.174, 0.382]], "data": "4a.Ausstelldatum"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#3", "box": [[0.321, 0.324], [0.367, 0.382]], "data": "D1"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#3", "box": [[0.499, 0.324], [0.649, 0.384]]}, {"name": "fixed:other_#5", "box": [[0.837, 0.327], [0.893, 0.379]], "data": "106"}, {"name": "id:date_of_entry", "box": [[0.016, 0.379], [0.16, 0.414]], "data": "4b.Ablaufdatum"}, {"name": "id:municipality_of_registration", "box": [[0.016, 0.409], [0.19, 0.447]], "data": "4c.Ausstellbehorde"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#4", "box": [[0.321, 0.392], [0.37, 0.447]], "data": "BE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#4", "box": [[0.501, 0.392], [0.648, 0.447]]}, {"name": "id:document_number", "box": [[0.014, 0.442], [0.254, 0.479]], "data": "5.Nummer des Ausweises"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class", "box": [[0.013, 0.477], [0.134, 0.517]], "data": "9.Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#5", "box": [[0.321, 0.457], [0.37, 0.514]], "data": "CE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#5", "box": [[0.498, 0.457], [0.646, 0.512]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].effective_date", "box": [[0.016, 0.509], [0.299, 0.549]], "data": "10.Erteilungsdatumje Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].expiry_date", "box": [[0.016, 0.544], [0.266, 0.582]], "data": "11.Ablaufdatumje Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#6", "box": [[0.324, 0.524], [0.389, 0.579]], "data": "D1E"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#6", "box": [[0.501, 0.524], [0.648, 0.577]]}, {"name": "fixed:other_#6", "box": [[0.016, 0.577], [0.177, 0.614]], "data": "12.Zusatzangaben"}, {"name": "value:mrz_line_#0", "box": [[0.038, 0.689], [0.311, 0.754]]}, {"name": "fixed:other_#7", "box": [[0.928, 0.704], [0.963, 0.749]], "data": "OF"}, {"name": "value:mrz_line_#1", "box": [[0.04, 0.767], [0.942, 0.834]]}, {"name": "value:mrz_line_#2", "box": [[0.041, 0.847], [0.941, 0.912]]}, {"name": "id:place_of_birth", "box": [[0.179, 0.312], [0.267, 0.352]], "data": "Heimatort"}], "image_fields": []}, {"name": "driver_license:CHE:0:front", "aspect_ratio": 1.541, "text_fields": [{"name": "fixed:document_type_0", "box": [[0.164, 0.037], [0.815, 0.085]], "data": "Führerausweis-Permis de conduire"}, {"name": "fixed:document_type_1", "box": [[0.164, 0.094], [0.815, 0.143]], "data": "Licenza di condurre. - Permiss da"}, {"name": "fixed:issuing_country", "box": [[0.868, 0.079], [0.954, 0.167]], "data": "CH"}, {"name": "id:last_name", "box": [[0.325, 0.277], [0.347, 0.316]], "data": "1."}, {"name": "value:last_name", "box": [[0.382, 0.267], [0.522, 0.318]], "required": true}, {"name": "id:first_name", "box": [[0.324, 0.34], [0.347, 0.379]], "data": "2."}, {"name": "value:first_name", "box": [[0.382, 0.333], [0.511, 0.392]], "required": true}, {"name": "id:date_of_birth", "box": [[0.324, 0.403], [0.347, 0.442]], "data": "3."}, {"name": "value:date_of_birth", "box": [[0.383, 0.404], [0.539, 0.443]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:place_of_birth", "box": [[0.383, 0.467], [0.453, 0.506]]}, {"name": "id:date_of_issue", "box": [[0.324, 0.532], [0.365, 0.569]], "data": "4a."}, {"name": "value:date_of_issue", "box": [[0.384, 0.531], [0.539, 0.57]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:issuing_authority", "box": [[0.841, 0.535], [0.937, 0.572]]}, {"name": "id:document_number", "box": [[0.324, 0.596], [0.348, 0.632]], "data": "5."}, {"name": "value:document_number", "box": [[0.384, 0.596], [0.645, 0.634]], "required": true}, {"name": "id:signature", "box": [[0.324, 0.722], [0.348, 0.762]], "data": "7."}, {"name": "id:driver_license_detailed_info.vehicle_classes_info", "box": [[0.324, 0.859], [0.348, 0.895]], "data": "9."}, {"name": "value:driver_license_detailed_info.vehicle_classes_info", "box": [[0.376, 0.859], [0.704, 0.899]]}, {"name": "fixed:document_type_2", "box": [[0.164, 0.15], [0.678, 0.199]], "data": "manischar - Driving Licence"}, {"name": "id:issuing_authority", "box": [[0.789, 0.534], [0.829, 0.571]], "data": "4c."}, {"name": "id:date_of_expiry", "box": [[0.558, 0.533], [0.601, 0.57]], "data": "4b."}, {"name": "value:date_of_expiry", "box": [[0.612, 0.531], [0.772, 0.556]], "date_format": "%d.%m.%Y"}], "image_fields": [{"name": "portrait", "box": [[0.024, 0.25], [0.318, 0.822]]}]}, {"name": "driver_license:CHE:1:back", "aspect_ratio": 1.59, "text_fields": [{"name": "fixed:other_#0", "box": [[0.41, 0.009], [0.445, 0.062]], "data": "9."}, {"name": "fixed:other_#1", "box": [[0.533, 0.01], [0.58, 0.059]], "data": "10."}, {"name": "fixed:other_#2", "box": [[0.7, 0.01], [0.748, 0.063]], "data": "11."}, {"name": "fixed:other_#3", "box": [[0.875, 0.011], [0.92, 0.064]], "data": "12."}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#0", "box": [[0.41, 0.084], [0.441, 0.133]], "data": "A"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#0", "box": [[0.478, 0.081], [0.632, 0.138]]}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#1", "box": [[0.479, 0.141], [0.632, 0.19]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#2", "box": [[0.41, 0.194], [0.441, 0.246]], "data": "C"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#2", "box": [[0.479, 0.198], [0.63, 0.247]]}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#3", "box": [[0.479, 0.25], [0.63, 0.303]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#4", "box": [[0.41, 0.306], [0.46, 0.359]], "data": "BE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#4", "box": [[0.477, 0.307], [0.633, 0.36]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#5", "box": [[0.411, 0.363], [0.46, 0.416]], "data": "CE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#5", "box": [[0.479, 0.367], [0.633, 0.42]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#6", "box": [[0.418, 0.419], [0.472, 0.472]], "data": "D1E"}, {"name": "fixed:other_#4", "box": [[0.025, 0.618], [0.056, 0.649]], "data": "1."}, {"name": "id:last_name", "box": [[0.049, 0.618], [0.103, 0.652]], "data": "Name"}, {"name": "fixed:other_#5", "box": [[0.023, 0.671], [0.047, 0.705]], "data": "3."}, {"name": "id:date_of_birth", "box": [[0.049, 0.667], [0.168, 0.705]], "data": "Geburtsdatum,"}, {"name": "id:first_name", "box": [[0.051, 0.641], [0.127, 0.679]], "data": "Vomame"}, {"name": "id:place_of_birth", "box": [[0.051, 0.694], [0.132, 0.732]], "data": "Heimatort"}, {"name": "fixed:other_#6", "box": [[0.873, 0.142], [0.918, 0.195]], "data": "121"}, {"name": "fixed:other_#7", "box": [[0.873, 0.255], [0.918, 0.308]], "data": "106"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#1", "box": [[0.412, 0.141], [0.443, 0.19]], "data": "B"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#3", "box": [[0.415, 0.246], [0.455, 0.303]], "data": "D1"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#6", "box": [[0.479, 0.42], [0.633, 0.473]]}, {"name": "id:date_of_issue", "box": [[0.025, 0.728], [0.168, 0.758]], "data": "4a.Ausstelldatum"}, {"name": "id:date_of_entry", "box": [[0.026, 0.754], [0.154, 0.781]], "data": "4b.Ablaufdatum"}, {"name": "id:municipality_of_registration", "box": [[0.026, 0.781], [0.222, 0.811]], "data": "4c.Ausstellbehorde"}, {"name": "id:document_number", "box": [[0.026, 0.807], [0.284, 0.833]], "data": "5.Nummer des Ausweises"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class", "box": [[0.023, 0.83], [0.13, 0.86]], "data": "9.Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].effective_date", "box": [[0.026, 0.86], [0.27, 0.886]], "data": "10.Erteilungsdatumje Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].expiry_date", "box": [[0.026, 0.882], [0.249, 0.916]], "data": "11.Ablaufdatumje Kategorie"}, {"name": "fixed:other_#8", "box": [[0.028, 0.912], [0.171, 0.943]], "data": "12.Zusatzangaben"}], "image_fields": []}, {"name": "driver_license:CHE:1:front", "aspect_ratio": 1.589, "text_fields": [{"name": "fixed:issuing_country", "box": [[0.073, 0.082], [0.158, 0.183]], "data": "CH"}, {"name": "fixed:document_type_0", "box": [[0.262, 0.071], [0.82, 0.123]], "data": "FUHRERAUSWEIS PERMIS DE CONDUIRE"}, {"name": "fixed:document_type_1", "box": [[0.203, 0.15], [0.882, 0.191]], "data": "LICENZA DI CONDURRE PERMISS DA MANISCHAR"}, {"name": "fixed:document_type_2", "box": [[0.382, 0.217], [0.62, 0.262]], "data": "DRIVING LICENCE"}, {"name": "id:last_name", "box": [[0.318, 0.385], [0.344, 0.427]], "data": "1."}, {"name": "value:last_name", "box": [[0.372, 0.374], [0.521, 0.43]], "required": true}, {"name": "id:first_name", "box": [[0.316, 0.445], [0.344, 0.487]], "data": "2."}, {"name": "value:first_name", "box": [[0.375, 0.434], [0.512, 0.49]], "required": true}, {"name": "id:date_of_birth", "box": [[0.318, 0.505], [0.347, 0.55]], "data": "3."}, {"name": "value:date_of_birth", "box": [[0.372, 0.505], [0.537, 0.55]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:place_of_birth", "box": [[0.372, 0.565], [0.495, 0.61]]}, {"name": "id:date_of_issue", "box": [[0.318, 0.625], [0.361, 0.666]], "data": "4a."}, {"name": "value:date_of_issue", "box": [[0.375, 0.621], [0.537, 0.666]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:issuing_authority", "box": [[0.804, 0.625], [0.905, 0.666]]}, {"name": "id:document_number", "box": [[0.318, 0.681], [0.344, 0.726]], "data": "5."}, {"name": "value:document_number", "box": [[0.375, 0.681], [0.594, 0.722]], "required": true}, {"name": "value:document_additional_number", "box": [[0.627, 0.73], [0.761, 0.79]]}, {"name": "id:signature", "box": [[0.318, 0.756], [0.347, 0.797]], "data": "7."}, {"name": "value:driver_license_detailed_info.vehicle_classes_info", "box": [[0.08, 0.898], [0.427, 0.936]]}, {"name": "fixed:other_#6", "box": [[0.038, 0.898], [0.064, 0.936]], "data": "9."}, {"name": "id:issuing_authority", "box": [[0.747, 0.625], [0.792, 0.666]], "data": "4c."}, {"name": "id:date_of_expiry", "box": [[0.556, 0.625], [0.601, 0.662]], "data": "4b."}, {"name": "value:date_of_expiry", "box": [[0.608, 0.617], [0.74, 0.666]]}], "image_fields": [{"name": "portrait", "box": [[0.021, 0.269], [0.281, 0.801]]}, {"name": "signature", "box": [[0.375, 0.737], [0.578, 0.853]]}]}, {"name": "driver_license:USA:PA:0:front", "aspect_ratio": 1.585, "text_fields": [{"name": "fixed:issuing_country_#0", "box": [[0.035, 0.053], [0.458, 0.201]], "data": "Pennsylvania"}, {"name": "fixed:issuing_country_#1", "box": [[0.403, 0.193], [0.447, 0.218]], "data": "USA"}, {"name": "fixed:document_type_0", "box": [[0.511, 0.06], [0.894, 0.105]], "data": "DRIVER'S LICENSE"}, {"name": "id:document_number", "box": [[0.336, 0.248], [0.411, 0.273]], "data": "4d DLN:"}, {"name": "value:document_number", "box": [[0.43, 0.232], [0.614, 0.275]], "required": true}, {"name": "value:date_of_birth", "box": [[0.43, 0.278], [0.614, 0.323]], "date_format": "%m/%d/%Y", "required": true}, {"name": "id:driver_license_detailed_info.vehicle_class", "box": [[0.347, 0.723], [0.438, 0.751]], "data": "9 CLASS:"}, {"name": "value:last_name", "box": [[0.355, 0.34], [0.474, 0.375]], "required": true}, {"name": "fixed:other_#0", "box": [[0.337, 0.387], [0.348, 0.413]], "data": "2"}, {"name": "value:first_name", "box": [[0.354, 0.381], [0.591, 0.416]], "required": true}, {"name": "fixed:other_#1", "box": [[0.337, 0.428], [0.35, 0.455]], "data": "8"}, {"name": "value:address_#0", "box": [[0.355, 0.425], [0.57, 0.456]]}, {"name": "value:address_#2", "box": [[0.354, 0.494], [0.707, 0.522]]}, {"name": "id:date_of_issue", "box": [[0.336, 0.608], [0.402, 0.634]], "data": "4a ISS:"}, {"name": "value:date_of_issue", "box": [[0.421, 0.593], [0.606, 0.635]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:date_of_expiry", "box": [[0.421, 0.532], [0.606, 0.576]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:document_additional_number", "box": [[0.491, 0.89], [0.639, 0.918]]}, {"name": "id:sex", "box": [[0.338, 0.651], [0.41, 0.676]], "data": "15 SEX:"}, {"name": "id:driver_license_detailed_info.endorsements", "box": [[0.337, 0.762], [0.413, 0.787]], "data": "9a END:"}, {"name": "fixed:other_#2", "box": [[0.338, 0.688], [0.409, 0.714]], "data": "16 HGT:"}, {"name": "id:driver_license_detailed_info.restrictions", "box": [[0.337, 0.798], [0.437, 0.823]], "data": "12 RESTR:"}, {"name": "value:driver_license_detailed_info.restrictions", "box": [[0.445, 0.792], [0.516, 0.822]]}, {"name": "id:eye_colour", "box": [[0.457, 0.651], [0.545, 0.676]], "data": "18 EYES:"}, {"name": "id:document_additional_number", "box": [[0.437, 0.894], [0.49, 0.919]], "data": "5DD:"}, {"name": "id:date_of_birth", "box": [[0.336, 0.296], [0.415, 0.323]], "data": "3 DOB:"}, {"name": "value:driver_license_detailed_info.vehicle_class", "box": [[0.445, 0.72], [0.463, 0.749]]}, {"name": "id:date_of_expiry", "box": [[0.336, 0.549], [0.41, 0.576]], "data": "4b EXP:"}, {"name": "value:driver_license_detailed_info.endorsements", "box": [[0.422, 0.757], [0.491, 0.786]]}, {"name": "value:sex", "box": [[0.42, 0.648], [0.439, 0.676]], "required": true}, {"name": "value:eye_colour", "box": [[0.551, 0.646], [0.606, 0.677]]}, {"name": "value:height", "box": [[0.42, 0.684], [0.485, 0.713]]}, {"name": "fixed:other_#3", "box": [[0.337, 0.348], [0.346, 0.372]], "data": "1"}, {"name": "fixed:other_#4", "box": [[0.266, 0.191], [0.376, 0.218]], "data": "visitPA.com"}, {"name": "value:address_#1", "box": [[0.353, 0.461], [0.426, 0.491]]}, {"name": "value:document_additional_number_#1", "box": [[0.491, 0.92], [0.628, 0.945]]}, {"name": "fixed:document_type_1", "box": [[0.624, 0.781], [0.698, 0.849]], "data": "DL"}, {"name": "fixed:other_#5", "box": [[0.711, 0.248], [0.773, 0.274]], "data": "DUPS:"}, {"name": "value:other_#0", "box": [[0.781, 0.23], [0.819, 0.276]]}, {"name": "value:other_#1", "box": [[0.759, 0.901], [0.953, 0.934]]}], "image_fields": [{"name": "portrait", "box": [[0.049, 0.229], [0.327, 0.813]]}, {"name": "signature", "box": [[0.05, 0.828], [0.388, 0.931]]}]}, {"name": "driver_license:USA:TX:0:front", "aspect_ratio": 1.586, "text_fields": [{"name": "fixed:issuing_country_#0", "box": [[0.028, 0.07], [0.326, 0.19]], "data": "TEXAS"}, {"name": "fixed:issuing_country_#1", "box": [[0.326, 0.077], [0.354, 0.095]], "data": "USA"}, {"name": "fixed:document_type", "box": [[0.473, 0.123], [0.698, 0.17]], "data": "DRIVER LICENSE"}, {"name": "value:other_#0", "box": [[0.044, 0.223], [0.099, 0.249]]}, {"name": "id:document_number", "box": [[0.308, 0.275], [0.354, 0.299]], "data": "4d DL"}, {"name": "value:document_number", "box": [[0.36, 0.263], [0.488, 0.302]], "required": true}, {"name": "value:date_of_birth", "box": [[0.585, 0.263], [0.733, 0.303]], "date_format": "%m/%d/%Y", "required": true}, {"name": "id:driver_license_detailed_info.vehicle_class", "box": [[0.857, 0.275], [0.906, 0.301]], "data": "9 Class"}, {"name": "value:last_name", "box": [[0.329, 0.327], [0.416, 0.363]], "required": true}, {"name": "id:first_name", "box": [[0.309, 0.39], [0.319, 0.416]], "data": "2"}, {"name": "value:first_name", "box": [[0.328, 0.382], [0.385, 0.415]], "required": true}, {"name": "id:address", "box": [[0.309, 0.429], [0.319, 0.452]], "data": "8"}, {"name": "value:address_#0", "box": [[0.33, 0.431], [0.484, 0.454]]}, {"name": "value:address_#1", "box": [[0.328, 0.46], [0.507, 0.485]]}, {"name": "id:date_of_issue", "box": [[0.308, 0.517], [0.353, 0.542]], "data": "4a Iss"}, {"name": "value:date_of_issue", "box": [[0.365, 0.506], [0.495, 0.541]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:date_of_expiry", "box": [[0.366, 0.555], [0.496, 0.591]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:document_additional_number", "box": [[0.778, 0.589], [0.826, 0.791]]}, {"name": "id:sex", "box": [[0.31, 0.617], [0.362, 0.644]], "data": "15 Sex"}, {"name": "id:driver_license_detailed_info.endorsements", "box": [[0.506, 0.618], [0.559, 0.645]], "data": "9a End"}, {"name": "id:height", "box": [[0.309, 0.656], [0.361, 0.686]], "data": "16 Hgt "}, {"name": "id:driver_license_detailed_info.restrictions", "box": [[0.507, 0.657], [0.563, 0.684]], "data": "12 Rest"}, {"name": "value:driver_license_detailed_info.restrictions", "box": [[0.569, 0.654], [0.622, 0.684]]}, {"name": "id:eye_colour", "box": [[0.31, 0.697], [0.367, 0.726]], "data": "18 Eyes"}, {"name": "id:document_additional_number_#1", "box": [[0.308, 0.752], [0.348, 0.776]], "data": "5DD"}, {"name": "value:document_additional_number", "box": [[0.355, 0.751], [0.561, 0.778]]}, {"name": "id:date_of_birth", "box": [[0.534, 0.276], [0.58, 0.301]], "data": "3 DOB"}, {"name": "value:driver_license_detailed_info.vehicle_class", "box": [[0.914, 0.265], [0.933, 0.303]]}, {"name": "id:date_of_expiry", "box": [[0.308, 0.564], [0.361, 0.595]], "data": "4b Exp"}, {"name": "value:driver_license_detailed_info.endorsements", "box": [[0.57, 0.613], [0.623, 0.642]]}, {"name": "value:sex", "box": [[0.37, 0.614], [0.38, 0.644]], "required": true}, {"name": "value:eye_colour", "box": [[0.37, 0.69], [0.409, 0.721]]}, {"name": "value:height", "box": [[0.368, 0.652], [0.427, 0.683]]}, {"name": "id:last_name", "box": [[0.309, 0.338], [0.317, 0.363]], "data": "1"}], "image_fields": [{"name": "portrait", "box": [[0.043, 0.249], [0.301, 0.796]]}, {"name": "signature", "box": [[0.027, 0.808], [0.301, 0.95]]}]}, {"name": "id:DEU:0:front", "aspect_ratio": 1.595, "text_fields": [{"name": "fixed:issuing_country_1", "box": [[0.196, 0.05], [0.64, 0.081]], "data": "BUNDESREPUBLIK DEUTSCHLAND"}, {"name": "value:document_number", "box": [[0.715, 0.047], [0.952, 0.093]], "required": true}, {"name": "fixed:issuing_country_0", "box": [[0.087, 0.095], [0.119, 0.126]], "data": "DE"}, {"name": "fixed:issuing_country_2", "box": [[0.196, 0.089], [0.637, 0.103]], "data": "FEDERAL REPUBLIC OF GERMANY | REPUBLIQUE FEDERALE D'ALLEMAGNE"}, {"name": "fixed:document_type_0", "box": [[0.196, 0.119], [0.439, 0.148]], "data": "PERSONALAUSWEIS"}, {"name": "fixed:document_type_1", "box": [[0.196, 0.156], [0.404, 0.17]], "data": "IDENTITY CARD / CARTE D'IDENTITE"}, {"name": "id:last_name", "box": [[0.438, 0.199], [0.626, 0.218]], "data": "[a] Name/Surname/Nom"}, {"name": "id:additional_name_info", "box": [[0.438, 0.225], [0.825, 0.245]], "data": "[b] Geburtsname/Name at birth/Nom de naissance"}, {"name": "value:last_name", "box": [[0.465, 0.267], [0.657, 0.304]], "required": true}, {"name": "value:additional_name_info", "box": [[0.465, 0.332], [0.579, 0.37]]}, {"name": "id:first_name", "box": [[0.438, 0.39], [0.695, 0.409]], "data": "Vornamen/Given names/Prenoms"}, {"name": "value:first_name", "box": [[0.447, 0.43], [0.541, 0.467]], "required": true}, {"name": "id:date_of_birth_0", "box": [[0.438, 0.507], [0.632, 0.526]], "data": "Geburtstag/Date of birth/"}, {"name": "id:nationality_0", "box": [[0.66, 0.507], [0.908, 0.528]], "data": "Staatsangehörigkeit/Nationality/"}, {"name": "id:date_of_birth_1", "box": [[0.439, 0.531], [0.578, 0.55]], "data": "Date de naissance"}, {"name": "id:nationality_1", "box": [[0.66, 0.531], [0.741, 0.55]], "data": "Nationalité"}, {"name": "value:date_of_birth", "box": [[0.448, 0.567], [0.637, 0.605]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:nationality", "box": [[0.664, 0.566], [0.798, 0.604]], "required": true}, {"name": "id:place_of_birth", "box": [[0.438, 0.619], [0.772, 0.638]], "data": "Geburtsort/place of birth/Lieu de naissance"}, {"name": "value:place_of_birth", "box": [[0.446, 0.656], [0.56, 0.692]]}, {"name": "id:date_of_expiry_0", "box": [[0.437, 0.734], [0.631, 0.757]], "data": "Gültig bis/Date of expiry/"}, {"name": "id:date_of_expiry_1", "box": [[0.438, 0.76], [0.568, 0.781]], "data": "Date d'expiration"}, {"name": "value:document_additional_number", "box": [[0.78, 0.761], [0.944, 0.811]]}, {"name": "value:date_of_expiry", "box": [[0.442, 0.79], [0.632, 0.827]], "date_format": "%d.%m.%Y", "required": true}, {"name": "id:additional_name_info", "box": [[0.438, 0.338], [0.461, 0.365]], "data": "[b]"}, {"name": "id:last_name", "box": [[0.439, 0.274], [0.461, 0.302]], "data": "[a]"}], "image_fields": [{"name": "portrait", "box": [[0.051, 0.21], [0.414, 0.953]]}, {"name": "signature", "box": [[0.484, 0.834], [0.745, 0.967]]}]}, {"name": "id:DEU:1:front", "aspect_ratio": 1.579, "text_fields": [{"name": "fixed:issuing_country_1", "box": [[0.04, 0.038], [0.605, 0.071]], "data": "BUNDESREPUBLIK DEUTSCHLAND"}, {"name": "value:document_number", "box": [[0.713, 0.038], [0.951, 0.087]], "required": true}, {"name": "fixed:issuing_country_2", "box": [[0.049, 0.075], [0.606, 0.095]], "data": "FEDERAL REPUBLIC OF GERMANY | REPUBLIQUE FEDERALE D'ALLEMAGNE"}, {"name": "fixed:document_type_0", "box": [[0.041, 0.107], [0.276, 0.136]], "data": "PERSONALAUSWEIS"}, {"name": "fixed:document_type_1", "box": [[0.049, 0.142], [0.311, 0.16]], "data": "IDENTITY CARD / CARTE D'IDENTITE"}, {"name": "id:last_name", "box": [[0.457, 0.122], [0.614, 0.143]], "data": "Name/Surname/Nom"}, {"name": "value:last_name", "box": [[0.463, 0.161], [0.652, 0.199]], "required": true}, {"name": "value:additional_name_info", "box": [[0.463, 0.226], [0.675, 0.264]]}, {"name": "id:first_name", "box": [[0.457, 0.287], [0.709, 0.307]], "data": "Vornamen/Given names/Prenoms"}, {"name": "value:first_name", "box": [[0.464, 0.328], [0.557, 0.364]], "required": true}, {"name": "id:date_of_birth_0", "box": [[0.457, 0.404], [0.649, 0.42]], "data": "Geburtstag/Date of birth/"}, {"name": "id:nationality_0", "box": [[0.678, 0.402], [0.916, 0.423]], "data": "Staatsangehörigkeit/Nationality/"}, {"name": "id:date_of_birth_1", "box": [[0.457, 0.425], [0.594, 0.443]], "data": "Date de naissance"}, {"name": "id:nationality_1", "box": [[0.679, 0.425], [0.758, 0.443]], "data": "Nationalité"}, {"name": "value:date_of_birth", "box": [[0.466, 0.464], [0.652, 0.501]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:nationality", "box": [[0.685, 0.464], [0.815, 0.501]], "required": true}, {"name": "id:place_of_birth", "box": [[0.457, 0.538], [0.786, 0.56]], "data": "Geburtsort/place of birth/Lieu de naissance"}, {"name": "value:place_of_birth", "box": [[0.464, 0.578], [0.575, 0.616]]}, {"name": "id:date_of_expiry_0", "box": [[0.457, 0.654], [0.648, 0.675]], "data": "Gültig bis/Date of expiry/"}, {"name": "id:date_of_expiry_1", "box": [[0.457, 0.675], [0.585, 0.693]], "data": "Date d'expiration"}, {"name": "value:document_additional_number", "box": [[0.766, 0.681], [0.937, 0.732]]}, {"name": "value:date_of_expiry", "box": [[0.463, 0.707], [0.653, 0.746]], "date_format": "%d.%m.%Y", "required": true}, {"name": "id:signature", "box": [[0.456, 0.761], [0.749, 0.779]], "data": "Unterschrift der Inhaberin/desInhabers"}, {"name": "id:signature_2", "box": [[0.456, 0.781], [0.878, 0.801]], "data": "Signature of bearer - Signature de la titulaire/du titulaire"}], "image_fields": [{"name": "portrait", "box": [[0.049, 0.196], [0.416, 0.951]]}, {"name": "signature", "box": [[0.449, 0.807], [0.766, 0.967]]}]}, {"name": "id:ESP:0:back", "aspect_ratio": 1.586, "text_fields": [{"name": "id:address", "box": [[0.283, 0.05], [0.359, 0.071]], "data": "DOMICILIO"}, {"name": "value:address_#0", "box": [[0.283, 0.081], [0.594, 0.113]]}, {"name": "value:address_#1", "box": [[0.284, 0.126], [0.386, 0.157]]}, {"name": "value:document_additional_number", "box": [[0.124, 0.164], [0.225, 0.203]]}, {"name": "value:address_#2", "box": [[0.284, 0.172], [0.385, 0.202]]}, {"name": "id:place_of_birth", "box": [[0.283, 0.317], [0.449, 0.339]], "data": "LUGAR DE NACIMIENTO"}, {"name": "value:place_of_birth", "box": [[0.283, 0.353], [0.385, 0.384]]}, {"name": "value:place_of_birth_#1", "box": [[0.283, 0.4], [0.384, 0.431]]}, {"name": "fixed:other", "box": [[0.015, 0.418], [0.038, 0.514]], "data": "EQUIPO"}, {"name": "id:fathers_name", "box": [[0.282, 0.498], [0.349, 0.521]], "data": "HIJO/A DE"}, {"name": "value:fathers_name", "box": [[0.283, 0.534], [0.349, 0.567]]}, {"name": "value:mothers_name", "box": [[0.405, 0.534], [0.506, 0.567]]}, {"name": "value:mrz_line_#0", "box": [[0.052, 0.683], [0.93, 0.734]]}, {"name": "value:mrz_line_#1", "box": [[0.048, 0.758], [0.93, 0.811]]}, {"name": "value:mrz_line_#2", "box": [[0.049, 0.84], [0.929, 0.89]]}, {"name": "value:document_optional_additional_number", "box": [[0.041, 0.289], [0.064, 0.54]]}, {"name": "fixed:other", "box": [[0.37, 0.533], [0.383, 0.568]], "data": "/"}], "image_fields": []}, {"name": "id:ESP:0:front", "aspect_ratio": 1.581, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.328, 0.031], [0.774, 0.106]], "data": "REINO DE ESPAÑA"}, {"name": "fixed:issuing_country_1", "box": [[0.071, 0.079], [0.11, 0.121]], "data": "ES"}, {"name": "fixed:document_type_0", "box": [[0.326, 0.113], [0.769, 0.144]], "data": "DOCUMENTO'NACIONAL DEI IDENTIDAD"}, {"name": "value:personal_id_number", "box": [[0.445, 0.178], [0.742, 0.237]], "required": true}, {"name": "value:document_additional_number", "box": [[0.782, 0.169], [0.876, 0.199]]}, {"name": "value:personal_id_number_1", "box": [[0.017, 0.199], [0.145, 0.236]]}, {"name": "id:personal_id_number", "box": [[0.395, 0.206], [0.432, 0.234]], "data": "DNI"}, {"name": "id:last_name", "box": [[0.394, 0.264], [0.474, 0.285]], "data": "APELLIDOS"}, {"name": "value:last_name", "box": [[0.395, 0.296], [0.532, 0.332]], "required": true}, {"name": "value:additional_name_info", "box": [[0.395, 0.343], [0.533, 0.378]]}, {"name": "id:first_name", "box": [[0.394, 0.402], [0.457, 0.423]], "data": "NOMBRE"}, {"name": "value:first_name", "box": [[0.394, 0.438], [0.496, 0.47]], "required": true}, {"name": "id:sex", "box": [[0.394, 0.492], [0.433, 0.515]], "data": "SEXO"}, {"name": "id:nationality", "box": [[0.508, 0.494], [0.618, 0.516]], "data": "NACIONALIDAD"}, {"name": "id:date_of_birth", "box": [[0.871, 0.497], [0.961, 0.519]], "data": "NACIMIENTO"}, {"name": "value:sex", "box": [[0.395, 0.529], [0.408, 0.56]], "required": true}, {"name": "value:nationality", "box": [[0.511, 0.53], [0.562, 0.562]], "required": true}, {"name": "value:date_of_birth", "box": [[0.792, 0.532], [0.963, 0.565]], "date_format": "%d %m %Y", "required": true}, {"name": "id:date_of_issue", "box": [[0.394, 0.582], [0.455, 0.607]], "data": "EMISION"}, {"name": "id:date_of_expiry", "box": [[0.589, 0.586], [0.651, 0.608]], "data": "VALIDEZ"}, {"name": "value:date_of_issue", "box": [[0.394, 0.621], [0.565, 0.653]], "date_format": "%d %m %Y", "required": true}, {"name": "id:document_additional_number", "box": [[0.394, 0.676], [0.499, 0.697]], "data": "NUM SOPORTE"}, {"name": "value:document_additional_number_1", "box": [[0.395, 0.71], [0.548, 0.743]]}, {"name": "value:document_number", "box": [[0.794, 0.838], [0.962, 0.891]]}, {"name": "fixed:document_type_1", "box": [[0.393, 0.93], [0.942, 0.958]], "data": "NATIONAL IDENTITY CARD/DOCUMENTO NACIONAL IDENTIDAD"}, {"name": "value:date_of_expiry", "box": [[0.59, 0.621], [0.761, 0.653]], "date_format": "%d %m %Y", "required": true}], "image_fields": [{"name": "portrait", "box": [[0.016, 0.247], [0.371, 0.951]]}, {"name": "signature", "box": [[0.398, 0.767], [0.766, 0.911]]}]}, {"name": "id:FRA:0:front", "aspect_ratio": 1.586, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.209, 0.049], [0.783, 0.105]], "data": "REPUBLIQUE FRANCAISE"}, {"name": "fixed:issuing_country_1", "box": [[0.877, 0.082], [0.912, 0.115]], "data": "FR"}, {"name": "fixed:document_type", "box": [[0.211, 0.126], [0.784, 0.155]], "data": "CARTE NATIONALE D'IDENTITE / IDENTITY CARD"}, {"name": "id:last_name", "box": [[0.39, 0.176], [0.496, 0.203]], "data": "NOM / Surname"}, {"name": "value:last_name", "box": [[0.392, 0.209], [0.74, 0.254]], "required": true}, {"name": "id:first_name", "box": [[0.39, 0.321], [0.546, 0.349]], "data": "Prénoms / Given names"}, {"name": "value:first_name", "box": [[0.393, 0.358], [0.826, 0.404]], "required": true}, {"name": "id:nationality", "box": [[0.493, 0.463], [0.7, 0.495]], "data": "NATIONALITE / Nationality"}, {"name": "id:date_of_birth", "box": [[0.734, 0.467], [0.974, 0.493]], "data": "DATE DE NAISS / Date of birth"}, {"name": "value:sex", "box": [[0.391, 0.505], [0.408, 0.541]], "required": true}, {"name": "value:nationality", "box": [[0.494, 0.504], [0.553, 0.543]], "required": true}, {"name": "value:date_of_birth", "box": [[0.734, 0.509], [0.903, 0.546]], "date_format": "%d %m %Y", "required": true}, {"name": "id:place_of_birth", "box": [[0.389, 0.555], [0.67, 0.58]], "data": "LIEU DE NAISSANCE / Place of birth"}, {"name": "value:place_of_birth", "box": [[0.392, 0.593], [0.557, 0.631]]}, {"name": "id:additional_name_info", "box": [[0.389, 0.645], [0.638, 0.671]], "data": "NOM D'USAGE / Altemate name"}, {"name": "value:additional_name_info", "box": [[0.391, 0.682], [0.807, 0.722]]}, {"name": "id:document_number", "box": [[0.389, 0.736], [0.662, 0.761]], "data": "N° DU DOCUMENT / Document No."}, {"name": "id:date_of_expiry", "box": [[0.733, 0.737], [0.945, 0.765]], "data": "DATE D'EXPIR. / Expiry date"}, {"name": "value:document_number", "box": [[0.393, 0.769], [0.674, 0.82]], "required": true}, {"name": "value:date_of_expiry", "box": [[0.734, 0.779], [0.902, 0.815]], "date_format": "%d %m %Y", "required": true}, {"name": "value:document_additional_number", "box": [[0.735, 0.866], [0.926, 0.923]]}, {"name": "id:sex", "box": [[0.39, 0.466], [0.475, 0.492]], "data": "SEXE / Sex"}], "image_fields": [{"name": "portrait", "box": [[0.02, 0.178], [0.368, 0.954]]}, {"name": "signature", "box": [[0.382, 0.829], [0.694, 0.971]]}]}, {"name": "id:KWT:0:back", "aspect_ratio": 1.589, "text_fields": [{"name": "id:document_additional_number_0", "box": [[0.345, 0.507], [0.488, 0.57]], "data": "Serial No:"}, {"name": "value:document_additional_number", "box": [[0.52, 0.514], [0.74, 0.583]]}, {"name": "value:mrz_line_#0", "box": [[0.06, 0.701], [0.918, 0.774]]}, {"name": "value:mrz_line_#1", "box": [[0.059, 0.787], [0.918, 0.859]]}, {"name": "value:mrz_line_#2", "box": [[0.059, 0.854], [0.917, 0.926]]}, {"name": "id:document_additional_number_1", "box": [[0.811, 0.498], [0.953, 0.582]], "data": ":المسلسل"}, {"name": "id:blood_type", "box": [[0.329, 0.02], [0.472, 0.097]], "data": ":فصيلة الدم"}, {"name": "id:additional_address_information_0", "box": [[0.405, 0.226], [0.5, 0.302]], "data": ":القطعة"}, {"name": "value:personal_id_number", "box": [[0.53, 0.03], [0.799, 0.099]]}, {"name": "id:personal_id_number", "box": [[0.803, 0.031], [0.954, 0.097]], "data": ":الرقم المدني"}, {"name": "value:additional_address_information", "box": [[0.377, 0.233], [0.406, 0.296]]}, {"name": "value:profession", "box": [[0.565, 0.097], [0.86, 0.164]]}, {"name": "value:blood_type", "box": [[0.273, 0.023], [0.331, 0.094]]}, {"name": "value:additional_address_information_2", "box": [[0.486, 0.352], [0.621, 0.424]]}, {"name": "id:address", "box": [[0.865, 0.236], [0.963, 0.292]], "data": ":العنوان"}, {"name": "value:additional_address_information_4", "box": [[0.814, 0.364], [0.857, 0.413]]}, {"name": "id:additional_address_information_4", "box": [[0.866, 0.363], [0.95, 0.421]], "data": ":المبنى"}, {"name": "value:additional_address_information_5", "box": [[0.804, 0.424], [0.852, 0.479]]}, {"name": "id:additional_address_information_5", "box": [[0.863, 0.432], [0.963, 0.488]], "data": ":الدور"}, {"name": "value:additional_address_information_3", "box": [[0.423, 0.419], [0.601, 0.493]]}, {"name": "id:additional_address_information_3", "box": [[0.602, 0.423], [0.736, 0.494]], "data": ":الرقم الآلي"}, {"name": "value:additional_address_information_1", "box": [[0.312, 0.351], [0.393, 0.421]]}, {"name": "id:additional_address_information_2", "box": [[0.623, 0.356], [0.717, 0.423]], "data": ":الوحدة"}, {"name": "value:address_#0", "box": [[0.765, 0.234], [0.853, 0.291]]}, {"name": "id:profession", "box": [[0.868, 0.099], [0.953, 0.162]], "data": ":المهنة"}, {"name": "value:address_#1", "box": [[0.821, 0.292], [0.959, 0.353]]}, {"name": "id:additional_address_information_1", "box": [[0.393, 0.353], [0.47, 0.425]], "data": ":الرقم"}, {"name": "id:sponsor", "box": [[0.74, 0.171], [0.954, 0.23]], "data": "كفيل حامل البطاقة"}], "image_fields": []}, {"name": "id:KWT:0:front", "aspect_ratio": 1.584, "text_fields": [{"name": "fixed:issuing_country", "box": [[0.186, 0.176], [0.54, 0.228]], "data": "STATE OF KUWAIT"}, {"name": "id:personal_id_number_#0", "box": [[0.262, 0.239], [0.406, 0.291]], "data": "Civil ID No"}, {"name": "value:personal_id_number", "box": [[0.462, 0.24], [0.736, 0.298]], "required": true}, {"name": "fixed:other", "box": [[0.41, 0.461], [0.719, 0.54]], "data": "SPECIMEN"}, {"name": "id:full_name_#1", "box": [[0.262, 0.52], [0.766, 0.585]], "data": "Name CIVIL ID Card Holder Name"}, {"name": "value:document_number", "box": [[0.537, 0.661], [0.688, 0.715]]}, {"name": "value:nationality", "box": [[0.446, 0.719], [0.527, 0.779]], "required": true}, {"name": "value:sex", "box": [[0.447, 0.773], [0.508, 0.829]], "required": true}, {"name": "value:date_of_birth", "box": [[0.486, 0.832], [0.676, 0.898]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_expiry_#0", "box": [[0.271, 0.893], [0.432, 0.943]], "data": "Expiry Date"}, {"name": "value:date_of_expiry", "box": [[0.488, 0.894], [0.679, 0.964]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_birth_#0", "box": [[0.271, 0.832], [0.411, 0.885]], "data": "Birth Date"}, {"name": "id:sex_#0", "box": [[0.27, 0.768], [0.327, 0.824]], "data": "Sex"}, {"name": "id:nationality_#0", "box": [[0.275, 0.716], [0.426, 0.77]], "data": "Nationality"}, {"name": "id:document_number_#0", "box": [[0.276, 0.654], [0.447, 0.708]], "data": "Passport No"}, {"name": "id:personal_id_number_#1", "box": [[0.818, 0.234], [0.977, 0.292]], "data": "لرقم المدني"}, {"name": "value:full_name", "box": [[0.373, 0.293], [0.741, 0.374]], "required": true}, {"name": "id:full_name_#0", "box": [[0.903, 0.294], [0.978, 0.356]], "data": "الاسم"}, {"name": "id:nationality_#1", "box": [[0.652, 0.714], [0.971, 0.781]], "data": "الجنسية"}, {"name": "id:sex_#1", "box": [[0.663, 0.779], [0.965, 0.843]], "data": "الجنس"}, {"name": "id:date_of_birth_#1", "box": [[0.765, 0.839], [0.967, 0.891]], "data": "تاريخ الميلاد"}, {"name": "id:date_of_expiry_#1", "box": [[0.769, 0.895], [0.961, 0.959]], "data": "تاريخ الانتهاء"}, {"name": "id:document_number_#1", "box": [[0.772, 0.657], [0.962, 0.715]], "data": "رقم الجواز"}, {"name": "fixed:document_type", "box": [[0.55, 0.18], [0.822, 0.229]], "data": "CIVIL ID CARD"}], "image_fields": []}, {"name": "id:KWT:1:back", "aspect_ratio": 1.591, "text_fields": [{"name": "value:mrz_line_#0", "box": [[0.042, 0.694], [0.9, 0.769]]}, {"name": "value:mrz_line_#1", "box": [[0.04, 0.776], [0.902, 0.848]]}, {"name": "value:mrz_line_#2", "box": [[0.039, 0.852], [0.901, 0.926]]}, {"name": "value:blood_type", "box": [[0.233, 0.026], [0.291, 0.099]]}, {"name": "id:blood_type", "box": [[0.322, 0.02], [0.467, 0.101]], "data": ":فصيلة الدم"}, {"name": "value:personal_id_number", "box": [[0.529, 0.03], [0.802, 0.097]]}, {"name": "id:personal_id_number", "box": [[0.799, 0.021], [0.952, 0.091]], "data": ":الرقم المدني"}, {"name": "value:additional_address_information", "box": [[0.292, 0.087], [0.323, 0.151]]}, {"name": "id:additional_address_information_0", "box": [[0.317, 0.082], [0.413, 0.159]], "data": ":القطعة"}, {"name": "value:address_#0", "box": [[0.694, 0.09], [0.784, 0.148]]}, {"name": "id:address", "box": [[0.799, 0.094], [0.959, 0.15]], "data": ":العنوان"}, {"name": "value:address_#1", "box": [[0.744, 0.142], [0.884, 0.205]]}, {"name": "value:additional_address_information_1", "box": [[0.244, 0.201], [0.328, 0.274]]}, {"name": "id:additional_address_information_1", "box": [[0.323, 0.204], [0.4, 0.28]], "data": ":الرقم"}, {"name": "value:additional_address_information_2", "box": [[0.412, 0.207], [0.55, 0.281]]}, {"name": "id:additional_address_information_2", "box": [[0.542, 0.209], [0.638, 0.279]], "data": ":الوحدة"}, {"name": "value:additional_address_information_4", "box": [[0.758, 0.216], [0.8, 0.266]]}, {"name": "id:additional_address_information_4", "box": [[0.795, 0.219], [0.88, 0.279]], "data": ":المبنى"}, {"name": "value:additional_address_information_3", "box": [[0.291, 0.275], [0.471, 0.351]]}, {"name": "id:additional_address_information_3", "box": [[0.477, 0.276], [0.718, 0.346]], "data": ":الرقم الآلي"}, {"name": "value:additional_address_information_5", "box": [[0.747, 0.272], [0.795, 0.327]]}, {"name": "id:additional_address_information_5", "box": [[0.796, 0.276], [0.961, 0.335]], "data": ":الدور"}, {"name": "id:document_additional_number_0", "box": [[0.343, 0.514], [0.484, 0.562]], "data": "Serial No:"}, {"name": "value:document_additional_number", "box": [[0.526, 0.522], [0.733, 0.587]]}, {"name": "id:document_additional_number_1", "box": [[0.815, 0.496], [0.958, 0.581]], "data": ":المسلسل"}], "image_fields": []}, {"name": "id:KWT:1:front", "aspect_ratio": 1.577, "text_fields": [{"name": "fixed:issuing_country", "box": [[0.179, 0.193], [0.532, 0.242]], "data": "STATE OF KUWAIT"}, {"name": "fixed:document_type", "box": [[0.536, 0.188], [0.817, 0.24]], "data": "CIVIL ID CARD"}, {"name": "id:personal_id_number_#1", "box": [[0.817, 0.234], [0.976, 0.292]], "data": "لرقم المدني"}, {"name": "value:personal_id_number", "box": [[0.467, 0.242], [0.74, 0.302]], "required": true}, {"name": "id:personal_id_number_#0", "box": [[0.275, 0.242], [0.419, 0.297]], "data": "Civil ID No"}, {"name": "value:full_name", "box": [[0.372, 0.313], [0.741, 0.391]], "required": true}, {"name": "id:full_name_#0", "box": [[0.894, 0.291], [0.969, 0.353]], "data": "الاسم"}, {"name": "fixed:other", "box": [[0.389, 0.464], [0.698, 0.546]], "data": "SPECIMEN"}, {"name": "id:full_name_#1", "box": [[0.27, 0.566], [0.775, 0.629]], "data": "Name CIVIL ID Card Holder Name"}, {"name": "id:nationality_#0", "box": [[0.281, 0.719], [0.432, 0.775]], "data": "Nationality"}, {"name": "value:nationality", "box": [[0.455, 0.722], [0.536, 0.781]], "required": true}, {"name": "id:nationality_#1", "box": [[0.645, 0.716], [0.966, 0.783]], "data": "الجنسية"}, {"name": "id:sex_#0", "box": [[0.282, 0.778], [0.34, 0.834]], "data": "Sex"}, {"name": "value:sex", "box": [[0.42, 0.781], [0.481, 0.836]], "required": true}, {"name": "id:sex_#1", "box": [[0.652, 0.781], [0.956, 0.847]], "data": "الجنس"}, {"name": "id:date_of_birth_#0", "box": [[0.282, 0.834], [0.423, 0.888]], "data": "Birth Date"}, {"name": "value:date_of_birth", "box": [[0.495, 0.842], [0.686, 0.91]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_birth_#1", "box": [[0.756, 0.835], [0.959, 0.889]], "data": "تاريخ الميلاد"}, {"name": "id:date_of_expiry_#0", "box": [[0.282, 0.902], [0.443, 0.953]], "data": "Expiry Date"}, {"name": "value:date_of_expiry", "box": [[0.494, 0.905], [0.686, 0.976]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_expiry_#1", "box": [[0.755, 0.891], [0.948, 0.957]], "data": "تاريخ الانتهاء"}], "image_fields": []}, {"name": "passport:CHE:0:front", "aspect_ratio": 1.412, "text_fields": [{"name": "fixed:document_type_0", "box": [[0.131, 0.028], [0.185, 0.067]], "data": "Pass"}, {"name": "fixed:issuing_country", "box": [[0.299, 0.027], [0.808, 0.069]], "data": "Schweiz Suisse Svizzera Svizra Switzerland"}, {"name": "fixed:document_type_1", "box": [[0.066, 0.067], [0.185, 0.111]], "data": "Passeport"}, {"name": "id:document_subtype", "box": [[0.299, 0.091], [0.329, 0.114]], "data": "Type"}, {"name": "id:issuing_country", "box": [[0.456, 0.091], [0.487, 0.112]], "data": "Code"}, {"name": "id:document_number_0", "box": [[0.628, 0.091], [0.711, 0.113]], "data": "Pass Passeport"}, {"name": "fixed:document_type_2", "box": [[0.052, 0.107], [0.183, 0.147]], "data": "Passaporto"}, {"name": "id:document_number_1", "box": [[0.629, 0.11], [0.847, 0.128]], "data": "Passaporto Passaport Passport No N Nr"}, {"name": "value:document_subtype", "box": [[0.3, 0.122], [0.339, 0.162]]}, {"name": "fixed:issuing_country_1", "box": [[0.457, 0.122], [0.504, 0.162]], "data": "CHE"}, {"name": "value:document_number", "box": [[0.63, 0.127], [0.746, 0.163]], "required": true}, {"name": "fixed:document_type_3", "box": [[0.067, 0.144], [0.185, 0.183]], "data": "Passaport"}, {"name": "id:last_name_0", "box": [[0.301, 0.163], [0.37, 0.18]], "data": "1 Name Nom"}, {"name": "fixed:document_type_4", "box": [[0.081, 0.181], [0.185, 0.22]], "data": "Passport"}, {"name": "id:last_name_1", "box": [[0.301, 0.18], [0.43, 0.199]], "data": "Cognome Num Surname"}, {"name": "value:last_name", "box": [[0.302, 0.196], [0.553, 0.232]], "required": true}, {"name": "id:first_name_0", "box": [[0.3, 0.235], [0.431, 0.253]], "data": "2 Vorname(n) Prénom(s)"}, {"name": "id:first_name_1", "box": [[0.299, 0.25], [0.482, 0.272]], "data": "Nome(i) Prenum(s) Given name(s)"}, {"name": "value:first_name", "box": [[0.298, 0.272], [0.429, 0.308]], "required": true}, {"name": "id:nationality_0", "box": [[0.3, 0.306], [0.441, 0.323]], "data": "3 Nationalitat Nationalité"}, {"name": "id:nationality_1", "box": [[0.3, 0.322], [0.506, 0.344]], "data": "Cittadinanza Naziunalitad Nationality"}, {"name": "value:nationality", "box": [[0.301, 0.34], [0.729, 0.378]], "required": true}, {"name": "id:date_of_birth_0", "box": [[0.3, 0.379], [0.489, 0.397]], "data": "4 Geburtsdatum Date de naissance"}, {"name": "id:sex_0", "box": [[0.629, 0.381], [0.728, 0.398]], "data": "5.Geschlecht Sexe"}, {"name": "id:height_0", "box": [[0.774, 0.381], [0.854, 0.397]], "data": "6 Grösse Taille"}, {"name": "id:date_of_birth_1", "box": [[0.3, 0.395], [0.581, 0.415]], "data": "Data di nascita Data da naschientscha Date of birth"}, {"name": "id:sex_1", "box": [[0.628, 0.397], [0.748, 0.415]], "data": "Sesso.Schlattaina Sex"}, {"name": "id:height_1", "box": [[0.774, 0.397], [0.914, 0.415]], "data": "Statura Grondezza Height"}, {"name": "value:date_of_birth", "box": [[0.303, 0.413], [0.433, 0.45]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:height", "box": [[0.776, 0.415], [0.862, 0.453]]}, {"name": "id:place_of_birth_0", "box": [[0.302, 0.451], [0.443, 0.47]], "data": "7 Heimatort Lieu d'origine"}, {"name": "id:place_of_birth_1", "box": [[0.299, 0.467], [0.556, 0.489]], "data": "Luogo diattinenza Lieu d'origin Place of origin"}, {"name": "value:place_of_birth", "box": [[0.3, 0.484], [0.384, 0.523]]}, {"name": "id:date_of_issue", "box": [[0.3, 0.524], [0.447, 0.541]], "data": "8 Ausgestellt am Délivré le"}, {"name": "id:issuing_authority_0", "box": [[0.628, 0.525], [0.733, 0.541]], "data": "9 Behörde Autorité"}, {"name": "id:date_of_issue", "box": [[0.3, 0.539], [0.492, 0.56]], "data": "Rilasciato il Emess ils Date of issue"}, {"name": "id:issuing_authority_1", "box": [[0.628, 0.541], [0.783, 0.56]], "data": "Autorita Autoritad Authority"}, {"name": "value:date_of_issue", "box": [[0.301, 0.557], [0.423, 0.593]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:issuing_authority", "box": [[0.63, 0.559], [0.711, 0.593]]}, {"name": "id:date_of_expiry_1", "box": [[0.3, 0.612], [0.571, 0.632]], "data": "Data di scadenza Data da scadenza Date of expiry"}, {"name": "id:date_of_expiry_0", "box": [[0.301, 0.597], [0.469, 0.615]], "data": "10 Gültig bis Date d'expiration"}, {"name": "value:date_of_expiry", "box": [[0.302, 0.63], [0.433, 0.665]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:mrz_line_#0", "box": [[0.043, 0.797], [0.956, 0.84]]}, {"name": "value:mrz_line_#1", "box": [[0.042, 0.869], [0.954, 0.913]]}, {"name": "value:sex", "box": [[0.631, 0.415], [0.645, 0.448]], "required": true}], "image_fields": [{"name": "portrait", "box": [[0.062, 0.232], [0.285, 0.66]]}]}, {"name": "passport:DEU:0:front", "aspect_ratio": 1.406, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.126, 0.034], [0.546, 0.063]], "data": "BUNDESREPUBLIK DEUTSCHLAND"}, {"name": "fixed:document_type_0", "box": [[0.752, 0.042], [0.856, 0.071]], "data": "REISEPASS"}, {"name": "fixed:issuing_country_1", "box": [[0.125, 0.069], [0.602, 0.088]], "data": "FEDERAL REPUBLIC OF GERMANY·RÉPUBLIQUE FEDÉRALE D'ALLEMAGNE"}, {"name": "fixed:document_type_1", "box": [[0.745, 0.077], [0.856, 0.094]], "data": "PASSPORT-PASSEPORT"}, {"name": "id:document_subtype", "box": [[0.333, 0.101], [0.431, 0.118]], "data": "Typ / Type / Type"}, {"name": "id:country_code", "box": [[0.486, 0.101], [0.596, 0.117]], "data": "Kode/Code/Code"}, {"name": "id:document_number", "box": [[0.63, 0.102], [0.854, 0.118]], "data": "Pass-Nr. / Passport No. / Passeport No."}, {"name": "value:document_subtype", "box": [[0.334, 0.13], [0.346, 0.155]]}, {"name": "value:country_code", "box": [[0.486, 0.131], [0.498, 0.155]]}, {"name": "value:document_number", "box": [[0.633, 0.134], [0.779, 0.158]], "required": true}, {"name": "id:last_name", "box": [[0.319, 0.173], [0.479, 0.19]], "data": "1.[a]Name / Surname / Nom"}, {"name": "id:maiden_name", "box": [[0.494, 0.172], [0.791, 0.19]], "data": "[b]Geburtsname/Name at birth/Nom de naissance"}, {"name": "fixed:other_#0", "box": [[0.323, 0.204], [0.337, 0.221]], "data": "[a]"}, {"name": "value:last_name", "box": [[0.344, 0.201], [0.475, 0.225]], "required": true}, {"name": "fixed:other_#1", "box": [[0.324, 0.244], [0.337, 0.261]], "data": "[b]"}, {"name": "value:maiden_name", "box": [[0.345, 0.241], [0.421, 0.265]]}, {"name": "fixed:other_#2", "box": [[0.318, 0.277], [0.328, 0.292]], "data": "2."}, {"name": "id:first_name", "box": [[0.343, 0.278], [0.552, 0.292]], "data": "Vornamen/Given names/Prénoms"}, {"name": "value:first_name", "box": [[0.344, 0.306], [0.409, 0.331]], "required": true}, {"name": "fixed:other_#3", "box": [[0.318, 0.383], [0.328, 0.397]], "data": "3."}, {"name": "id:date_of_birth_0", "box": [[0.344, 0.382], [0.496, 0.398]], "data": "Geburtstag / Date of birth /"}, {"name": "fixed:other_#4", "box": [[0.528, 0.382], [0.538, 0.396]], "data": "4."}, {"name": "id:sex_0", "box": [[0.55, 0.383], [0.653, 0.396]], "data": "Geschlecht / Sex /"}, {"name": "fixed:other_#5", "box": [[0.693, 0.382], [0.703, 0.396]], "data": "5."}, {"name": "id:nationality_0", "box": [[0.711, 0.382], [0.9, 0.398]], "data": "Staatsangehörigkeit / Nationality /"}, {"name": "id:date_of_birth_1", "box": [[0.344, 0.403], [0.449, 0.417]], "data": "Date.de naissance"}, {"name": "id:sex_1", "box": [[0.55, 0.402], [0.577, 0.416]], "data": "Sexe"}, {"name": "id:nationality_1", "box": [[0.712, 0.402], [0.77, 0.415]], "data": "Nationalité"}, {"name": "value:date_of_birth", "box": [[0.346, 0.431], [0.474, 0.455]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:nationality", "box": [[0.711, 0.43], [0.803, 0.454]], "required": true}, {"name": "value:other_#0", "box": [[0.913, 0.442], [0.967, 0.522]]}, {"name": "fixed:other", "box": [[0.318, 0.468], [0.327, 0.482]], "data": "6."}, {"name": "id:place_of_birth", "box": [[0.342, 0.468], [0.603, 0.482]], "data": "Geburtsort/Place ofbirthLieu denaissance"}, {"name": "value:place_of_birth", "box": [[0.344, 0.493], [0.422, 0.517]]}, {"name": "id:date_of_issue_0", "box": [[0.344, 0.538], [0.49, 0.553]], "data": "Ausstellungsdatum/Date"}, {"name": "fixed:other_#6", "box": [[0.528, 0.538], [0.538, 0.552]], "data": "8."}, {"name": "id:date_of_expiry_0", "box": [[0.549, 0.538], [0.699, 0.554]], "data": "Gültig bis/Date of expiry/"}, {"name": "fixed:other_#7", "box": [[0.73, 0.537], [0.9, 0.553]], "data": "10.Unterschrift der Inhaberin,"}, {"name": "id:date_of_issue_1", "box": [[0.344, 0.557], [0.505, 0.573]], "data": "of issue/Date de délivrance"}, {"name": "id:date_of_expiry_1", "box": [[0.55, 0.558], [0.645, 0.572]], "data": "Date d'expiration"}, {"name": "fixed:other_#8", "box": [[0.753, 0.557], [0.952, 0.572]], "data": "des nhabers/Signatureof bearer/"}, {"name": "value:date_of_expiry", "box": [[0.551, 0.583], [0.681, 0.606]], "date_format": "%d.%m.%Y", "required": true}, {"name": "fixed:other_#9", "box": [[0.753, 0.575], [0.948, 0.592]], "data": "Signature de la titulaire, du titulaire"}, {"name": "value:date_of_issue", "box": [[0.345, 0.584], [0.477, 0.608]], "date_format": "%d.%m.%Y", "required": true}, {"name": "fixed:other_#10", "box": [[0.318, 0.621], [0.328, 0.634]], "data": "9"}, {"name": "id:issuing_authority", "box": [[0.343, 0.619], [0.507, 0.634]], "data": "Behorde/Authority/Autorité"}, {"name": "value:issuing_authority", "box": [[0.345, 0.643], [0.475, 0.672]]}, {"name": "value:mrz_line_#0", "box": [[0.051, 0.801], [0.953, 0.836]]}, {"name": "value:mrz_line_#1", "box": [[0.053, 0.871], [0.953, 0.909]]}, {"name": "fixed:other_#11", "box": [[0.318, 0.539], [0.328, 0.552]], "data": "7."}, {"name": "value:sex", "box": [[0.55, 0.431], [0.562, 0.454]], "required": true}], "image_fields": [{"name": "portrait", "box": [[0.028, 0.176], [0.303, 0.681]]}, {"name": "signature", "box": [[0.735, 0.594], [0.98, 0.709]]}]}, {"name": "passport:USA:0:front", "aspect_ratio": 1.428, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.316, 0.031], [0.976, 0.087]], "data": "THE UNITED STATES OF AMERICA"}, {"name": "fixed:document_type_0", "box": [[0.077, 0.047], [0.186, 0.071]], "data": "PASSPORT"}, {"name": "fixed:document_type_1", "box": [[0.043, 0.079], [0.22, 0.096]], "data": "PASSEPORT/PASAPORTE"}, {"name": "id:document_subtype", "box": [[0.309, 0.121], [0.41, 0.143]], "data": "Type/Type/Tipo"}, {"name": "id:country_code", "box": [[0.435, 0.118], [0.561, 0.138]], "data": "CodelCode/Codigo"}, {"name": "id:document_number", "box": [[0.591, 0.115], [0.913, 0.137]], "data": "Passport No./No.du Passeport/No.de Pasaporte"}, {"name": "value:country_code", "box": [[0.485, 0.151], [0.526, 0.174]]}, {"name": "value:document_number", "box": [[0.664, 0.143], [0.838, 0.188]], "required": true}, {"name": "value:document_subtype", "box": [[0.362, 0.153], [0.373, 0.174]]}, {"name": "fixed:issuing_country_1", "box": [[0.062, 0.174], [0.194, 0.234]], "data": "USA"}, {"name": "id:last_name", "box": [[0.287, 0.213], [0.448, 0.232]], "data": "Surname/Nom/Apellidos"}, {"name": "value:last_name", "box": [[0.291, 0.241], [0.42, 0.271]], "required": true}, {"name": "id:first_name", "box": [[0.286, 0.282], [0.502, 0.3]], "data": "Given names/Prenoms/Nombres"}, {"name": "value:first_name", "box": [[0.293, 0.309], [0.376, 0.339]], "required": true}, {"name": "id:nationality", "box": [[0.341, 0.353], [0.579, 0.371]], "data": "Nationality/Nationalité/Nacionalidad"}, {"name": "value:nationality", "box": [[0.341, 0.378], [0.623, 0.403]], "required": true}, {"name": "id:date_of_birth", "box": [[0.341, 0.414], [0.693, 0.429]], "data": "Date of birth/Date de naissance/Fecha de nacimiento"}, {"name": "value:date_of_birth", "box": [[0.345, 0.437], [0.498, 0.471]], "date_format": "%d %b %Y;locale=en", "required": true}, {"name": "id:sex", "box": [[0.341, 0.476], [0.44, 0.493]], "data": "Sex/Sexe/Sexo"}, {"name": "value:sex", "box": [[0.346, 0.499], [0.365, 0.53]], "required": true}, {"name": "id:place_of_birth", "box": [[0.342, 0.537], [0.696, 0.554]], "data": "Place of birth/Didudenaissance/Lugar.danacimiento"}, {"name": "value:place_of_birth", "box": [[0.346, 0.556], [0.681, 0.59]]}, {"name": "id:date_of_issue", "box": [[0.342, 0.598], [0.698, 0.616]], "data": "Date of issue/Date de delivrance/Fecha de expedicion"}, {"name": "value:date_of_issue", "box": [[0.344, 0.62], [0.496, 0.653]], "date_format": "%d %b %Y;locale=en", "required": true}, {"name": "value:date_of_expiry", "box": [[0.345, 0.682], [0.497, 0.716]], "date_format": "%d %b %Y;locale=en", "required": true}, {"name": "id:issuing_authority", "box": [[0.341, 0.725], [0.531, 0.743]], "data": "Authority/Autorité/Autoridad"}, {"name": "value:document_additional_number", "box": [[0.822, 0.72], [0.876, 0.737]]}, {"name": "value:issuing_authority", "box": [[0.342, 0.748], [0.734, 0.773]]}, {"name": "value:mrz_line_#0", "box": [[0.047, 0.807], [0.953, 0.842]]}, {"name": "value:mrz_line_#1", "box": [[0.048, 0.89], [0.951, 0.927]]}, {"name": "id:date_of_expiry", "box": [[0.341, 0.658], [0.717, 0.679]], "data": "Date of expiration/Date d'expiration/Fecha de caducidad"}], "image_fields": [{"name": "portrait", "box": [[0.028, 0.251], [0.257, 0.682]]}]}, {"name": "region_specific:us_medical_marijuana_card:AZ:0:mobile", "aspect_ratio": 0.634, "text_fields": [{"name": "fixed:other", "box": [[0.123, -0.118], [0.524, -0.062]], "data": "My ID Cards"}, {"name": "fixed:issuing_country_#0", "box": [[0.19, 0.034], [0.596, 0.062]], "data": "ARIZONA DEPARTMENT"}, {"name": "fixed:issuing_country_#1", "box": [[0.186, 0.062], [0.58, 0.097]], "data": "OF HEALTH SERVICES"}, {"name": "fixed:other_#0", "box": [[0.065, 0.119], [0.564, 0.147]], "data": "Not Authorized to Cultivate"}, {"name": "fixed:other_#1", "box": [[0.573, 0.177], [0.794, 0.209]], "data": "PATIENT"}, {"name": "id:date_of_issue", "box": [[0.572, 0.248], [0.76, 0.271]], "data": "ISSUE DATE"}, {"name": "value:date_of_issue", "box": [[0.572, 0.276], [0.775, 0.301]], "date_format": "%m/%d/%Y", "required": true}, {"name": "id:date_of_expiry", "box": [[0.575, 0.326], [0.707, 0.349]], "data": "EXPIRES"}, {"name": "value:date_of_expiry", "box": [[0.574, 0.355], [0.775, 0.378]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:full_name", "box": [[0.067, 0.459], [0.503, 0.495]], "required": true}, {"name": "value:address_#0", "box": [[0.069, 0.603], [0.467, 0.627]]}, {"name": "value:address_#1", "box": [[0.067, 0.633], [0.35, 0.66]]}, {"name": "value:date_of_birth", "box": [[0.168, 0.666], [0.368, 0.693]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:document_number", "box": [[0.156, 0.769], [0.841, 0.81]], "required": true}, {"name": "fixed:other_#2", "box": [[0.093, 0.961], [0.905, 0.978]], "data": "THERE MAY BE POTENTIAL DANGERS TO FETUSES CAUSED BY SMOKING OR"}, {"name": "fixed:other_#3", "box": [[0.145, 0.979], [0.854, 1.001]], "data": "INGESTING MARIJUANA WHILE PREGNANT OR TO INFANTS WHILE"}, {"name": "id:date_of_birth", "box": [[0.069, 0.662], [0.164, 0.695]], "data": "DOB:"}], "image_fields": []}]