@ekyc_qoobiss/qbs-ect-cmp 1.8.13 → 1.8.16

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.
@@ -5470,6 +5470,7 @@ const IdCapture = class {
5470
5470
  this.verified = true;
5471
5471
  this.titleMesage = IdCaptureValues.Loading;
5472
5472
  this.closeCamera();
5473
+ this.showDemo = true;
5473
5474
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5474
5475
  this.demoVideo.loop = true;
5475
5476
  this.demoVideo.play();
@@ -5481,7 +5482,7 @@ const IdCapture = class {
5481
5482
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round((this.cameraSize.width * 9) / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
5482
5483
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - (this.cameraSize.width * 9) / 16) / 2) * -1 + 'px' };
5483
5484
  }
5484
- return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("video", { id: "howtoFront", class: "cameraVideoDemo", playsinline: true, hidden: this.showDemo == false, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.verified }, index.h("div", { class: "chenar-buletin pos-relative", hidden: this.showDemo }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { device: this.device, "capture-mode": "id" })))), index.h("div", { class: "title" }, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
5485
+ return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", { hidden: this.showDemo == false }, index.h("video", { id: "howtoFront", class: "cameraVideoDemo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.verified }, index.h("div", { class: "chenar-buletin pos-relative", hidden: this.showDemo }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { device: this.device, "capture-mode": "id" })))), index.h("div", { class: "title" }, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
5485
5486
  }
5486
5487
  get component() { return index.getElement(this); }
5487
5488
  };
@@ -6003,13 +6004,13 @@ const SelfieCapture = class {
6003
6004
  this.titleMesage = SelfieCaptureValues.FinalTitle;
6004
6005
  }
6005
6006
  else {
6007
+ this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
6006
6008
  this.demoEnded = false;
6007
6009
  this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
6008
6010
  this.demoVideo.play();
6009
6011
  await this.delay(5100);
6010
6012
  this.demoEnded = true;
6011
6013
  // this.animationPath = getAssetPath('../../assets/animations/face/' + FacePose[event.detail] + '.gif');
6012
- this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
6013
6014
  }
6014
6015
  }
6015
6016
  eventVideoStarted(event) {
@@ -6083,7 +6084,7 @@ const SelfieCapture = class {
6083
6084
  let divClass = 'chenar-buletin pos-relative';
6084
6085
  if (this.videoStarted && this.cameraSize.width < this.cameraSize.height)
6085
6086
  divClass += ' block';
6086
- return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("video", { id: "howto", class: "cameraVideoDemo", playsinline: true, hidden: this.demoEnded, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" })), index.h("div", { hidden: this.verified }, index.h("div", { class: divClass, hidden: this.demoEnded == false }, index.h("camera-comp", { device: this.device, "capture-mode": "selfie" })), index.h("div", { class: "titile" }, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText))))));
6087
+ return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", { hidden: this.demoEnded }, index.h("video", { id: "howto", class: "cameraVideoDemo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { hidden: this.verified }, index.h("div", { class: divClass, hidden: this.demoEnded == false }, index.h("camera-comp", { device: this.device, "capture-mode": "selfie" })), index.h("div", { class: "title" }, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText))))));
6087
6088
  }
6088
6089
  get component() { return index.getElement(this); }
6089
6090
  };
@@ -101,6 +101,7 @@ export class IdCapture {
101
101
  this.verified = true;
102
102
  this.titleMesage = IdCaptureValues.Loading;
103
103
  this.closeCamera();
104
+ this.showDemo = true;
104
105
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
105
106
  this.demoVideo.loop = true;
106
107
  this.demoVideo.play();
@@ -112,7 +113,7 @@ export class IdCapture {
112
113
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round((this.cameraSize.width * 9) / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
113
114
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - (this.cameraSize.width * 9) / 16) / 2) * -1 + 'px' };
114
115
  }
115
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("video", { id: "howtoFront", class: "cameraVideoDemo", playsinline: true, hidden: this.showDemo == false, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.verified }, h("div", { class: "chenar-buletin pos-relative", hidden: this.showDemo }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), h("div", { class: "title" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
116
+ return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoFront", class: "cameraVideoDemo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.verified }, h("div", { class: "chenar-buletin pos-relative", hidden: this.showDemo }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), h("div", { class: "title" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
116
117
  }
117
118
  static get is() { return "id-capture"; }
118
119
  static get originalStyleUrls() {
@@ -35,13 +35,13 @@ export class SelfieCapture {
35
35
  this.titleMesage = SelfieCaptureValues.FinalTitle;
36
36
  }
37
37
  else {
38
+ this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
38
39
  this.demoEnded = false;
39
40
  this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
40
41
  this.demoVideo.play();
41
42
  await this.delay(5100);
42
43
  this.demoEnded = true;
43
44
  // this.animationPath = getAssetPath('../../assets/animations/face/' + FacePose[event.detail] + '.gif');
44
- this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
45
45
  }
46
46
  }
47
47
  eventVideoStarted(event) {
@@ -115,7 +115,7 @@ export class SelfieCapture {
115
115
  let divClass = 'chenar-buletin pos-relative';
116
116
  if (this.videoStarted && this.cameraSize.width < this.cameraSize.height)
117
117
  divClass += ' block';
118
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("video", { id: "howto", class: "cameraVideoDemo", playsinline: true, hidden: this.demoEnded, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" })), h("div", { hidden: this.verified }, h("div", { class: divClass, hidden: this.demoEnded == false }, h("camera-comp", { device: this.device, "capture-mode": "selfie" })), h("div", { class: "titile" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText))))));
118
+ return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", { hidden: this.demoEnded }, h("video", { id: "howto", class: "cameraVideoDemo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.verified }, h("div", { class: divClass, hidden: this.demoEnded == false }, h("camera-comp", { device: this.device, "capture-mode": "selfie" })), h("div", { class: "title" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText))))));
119
119
  }
120
120
  static get is() { return "selfie-capture"; }
121
121
  static get originalStyleUrls() {
@@ -5466,6 +5466,7 @@ const IdCapture = class {
5466
5466
  this.verified = true;
5467
5467
  this.titleMesage = IdCaptureValues.Loading;
5468
5468
  this.closeCamera();
5469
+ this.showDemo = true;
5469
5470
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5470
5471
  this.demoVideo.loop = true;
5471
5472
  this.demoVideo.play();
@@ -5477,7 +5478,7 @@ const IdCapture = class {
5477
5478
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round((this.cameraSize.width * 9) / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
5478
5479
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - (this.cameraSize.width * 9) / 16) / 2) * -1 + 'px' };
5479
5480
  }
5480
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("video", { id: "howtoFront", class: "cameraVideoDemo", playsinline: true, hidden: this.showDemo == false, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.verified }, h("div", { class: "chenar-buletin pos-relative", hidden: this.showDemo }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), h("div", { class: "title" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
5481
+ return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoFront", class: "cameraVideoDemo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.verified }, h("div", { class: "chenar-buletin pos-relative", hidden: this.showDemo }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), h("div", { class: "title" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
5481
5482
  }
5482
5483
  get component() { return getElement(this); }
5483
5484
  };
@@ -5999,13 +6000,13 @@ const SelfieCapture = class {
5999
6000
  this.titleMesage = SelfieCaptureValues.FinalTitle;
6000
6001
  }
6001
6002
  else {
6003
+ this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
6002
6004
  this.demoEnded = false;
6003
6005
  this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
6004
6006
  this.demoVideo.play();
6005
6007
  await this.delay(5100);
6006
6008
  this.demoEnded = true;
6007
6009
  // this.animationPath = getAssetPath('../../assets/animations/face/' + FacePose[event.detail] + '.gif');
6008
- this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
6009
6010
  }
6010
6011
  }
6011
6012
  eventVideoStarted(event) {
@@ -6079,7 +6080,7 @@ const SelfieCapture = class {
6079
6080
  let divClass = 'chenar-buletin pos-relative';
6080
6081
  if (this.videoStarted && this.cameraSize.width < this.cameraSize.height)
6081
6082
  divClass += ' block';
6082
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("video", { id: "howto", class: "cameraVideoDemo", playsinline: true, hidden: this.demoEnded, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" })), h("div", { hidden: this.verified }, h("div", { class: divClass, hidden: this.demoEnded == false }, h("camera-comp", { device: this.device, "capture-mode": "selfie" })), h("div", { class: "titile" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText))))));
6083
+ return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", { hidden: this.demoEnded }, h("video", { id: "howto", class: "cameraVideoDemo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.verified }, h("div", { class: divClass, hidden: this.demoEnded == false }, h("camera-comp", { device: this.device, "capture-mode": "selfie" })), h("div", { class: "title" }, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText))))));
6083
6084
  }
6084
6085
  get component() { return getElement(this); }
6085
6086
  };
@@ -1370,4 +1370,4 @@ var r=e(206);e(33).Tensor.prototype.add=function(t){return r.add(this,t)}},funct
1370
1370
  */
1371
1371
  e(383),e(377),e(375),e(371),e(363),e(361),e(359),e(357),e(355),e(353)},function(){},function(){},function(){},function(){},function(){},function(){},function(t,n,e){(function(t,n){!function(t){if(!t.setImmediate){var e,r=1,i={},o=!1,u=t.document,a=Object.getPrototypeOf&&Object.getPrototypeOf(t);a=a&&a.setTimeout?a:t,"[object process]"==={}.toString.call(t.process)?e=function(t){n.nextTick((function(){c(t)}))}:function(){if(t.postMessage&&!t.importScripts){var n=!0,e=t.onmessage;return t.onmessage=function(){n=!1},t.postMessage("","*"),t.onmessage=e,n}}()?function(){var n="setImmediate$"+Math.random()+"$",r=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(n)&&c(+e.data.slice(n.length))};t.addEventListener?t.addEventListener("message",r,!1):t.attachEvent("onmessage",r),e=function(e){t.postMessage(n+e,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},e=function(n){t.port2.postMessage(n)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;e=function(n){var e=u.createElement("script");e.onreadystatechange=function(){c(n),e.onreadystatechange=null,t.removeChild(e),e=null},t.appendChild(e)}}():e=function(t){setTimeout(c,0,t)},a.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),o=0;o<n.length;o++)n[o]=arguments[o+1];return i[r]={callback:t,args:n},e(r),r++},a.clearImmediate=s}function s(t){delete i[t]}function c(t){if(o)setTimeout(c,0,t);else{var n=i[t];if(n){o=!0;try{!function(t){var n=t.callback,e=t.args;switch(e.length){case 0:n();break;case 1:n(e[0]);break;case 2:n(e[0],e[1]);break;case 3:n(e[0],e[1],e[2]);break;default:n.apply(undefined,e)}}(n)}finally{s(t),o=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,e(59),e(75))},function(t){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,n){
1372
1372
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
1373
- n.read=function(t,n,e,r,i){var o,u,a=8*i-r-1,s=(1<<a)-1,c=s>>1,f=-7,l=e?i-1:0,h=e?-1:1,d=t[n+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+t[n+l],l+=h,f-=8);for(u=o&(1<<-f)-1,o>>=-f,f+=r;f>0;u=256*u+t[n+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===s)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,r),o-=c}return(d?-1:1)*u*Math.pow(2,o-r)},n.write=function(t,n,e,r,i,o){var u,a,s,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,v=r?1:-1,p=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(s=Math.pow(2,-u))<1&&(u--,s*=2),(n+=u+l>=1?h/s:h*Math.pow(2,1-l))*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(n*s-1)*Math.pow(2,i),u+=l):(a=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[e+d]=255&a,d+=v,a/=256,i-=8);for(u=u<<i|a,c+=i;c>0;t[e+d]=255&u,d+=v,u/=256,c-=8);t[e+d-v]|=128*p}},function(t,n){n.byteLength=function(t){var n=s(t),e=n[1];return 3*(n[0]+e)/4-e},n.toByteArray=function(t){var n,e,o=s(t),u=o[0],a=o[1],c=new i(function(t,n,e){return 3*(n+e)/4-e}(0,u,a)),f=0,l=a>0?u-4:u;for(e=0;e<l;e+=4)n=r[t.charCodeAt(e)]<<18|r[t.charCodeAt(e+1)]<<12|r[t.charCodeAt(e+2)]<<6|r[t.charCodeAt(e+3)],c[f++]=n>>16&255,c[f++]=n>>8&255,c[f++]=255&n;return 2===a&&(n=r[t.charCodeAt(e)]<<2|r[t.charCodeAt(e+1)]>>4,c[f++]=255&n),1===a&&(n=r[t.charCodeAt(e)]<<10|r[t.charCodeAt(e+1)]<<4|r[t.charCodeAt(e+2)]>>2,c[f++]=n>>8&255,c[f++]=255&n),c},n.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],u=0,a=r-i;u<a;u+=16383)o.push(f(t,u,u+16383>a?a:u+16383));return 1===i?o.push(e[(n=t[r-1])>>2]+e[n<<4&63]+"=="):2===i&&o.push(e[(n=(t[r-2]<<8)+t[r-1])>>10]+e[n>>4&63]+e[n<<2&63]+"="),o.join("")};for(var e=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=o.length;u<a;++u)e[u]=o[u],r[o.charCodeAt(u)]=u;function s(t){var n=t.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=n),[e,e===n?0:4-e%4]}function c(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function f(t,n,e){for(var r=[],i=n;i<e;i+=3)r.push(c((t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2])));return r.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(149);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(149),i=e(150).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){t.exports=!e(148)&&!e(208)((function(){return 7!=Object.defineProperty(e(398)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(149);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(400),i=e(399),o=e(397),u=Object.defineProperty;n.f=e(148)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(401),i=e(396);t.exports=e(148)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(403);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(150),i=e(209),o=e(404),u=e(402),a=e(395),s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,m=t&s.B,b=t&s.W,g=d?i:i[n]||(i[n]={}),y=g.prototype,w=d?r:v?r[n]:(r[n]||{}).prototype;for(c in d&&(e=n),e)(f=!h&&w&&void 0!==w[c])&&a(g,c)||(l=f?w[c]:e[c],g[c]=d&&"function"!=typeof w[c]?e[c]:m&&f?o(l,r):b&&w[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((g.virtual||(g.virtual={}))[c]=l,t&s.R&&y&&!y[c]&&u(y,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(405);r(r.G,{global:e(150)})},function(t,n,e){e(406),t.exports=e(209).global},function(t){var n=function(t){var n,e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,e){return t[n]=e}}function c(t,n,e,r){var i=Object.create((n&&n.prototype instanceof m?n:m).prototype),o=new N(r||[]);return i._invoke=function(t,n,e){var r=l;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return D()}for(e.method=i,e.arg=o;;){var u=e.delegate;if(u){var a=E(u,e);if(a){if(a===p)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=d;var s=f(t,n,e);if("normal"===s.type){if(r=e.done?v:h,s.arg===p)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(r=v,e.method="throw",e.arg=s.arg)}}}(t,e,o),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",d="executing",v="completed",p={};function m(){}function b(){}function g(){}var y={};s(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==e&&r.call(x,o)&&(y=x);var O=g.prototype=m.prototype=Object.create(y);function A(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function C(t,n){var e;this._invoke=function(i,o){function u(){return new n((function(e,u){!function e(i,o,u,a){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,u,a)}),(function(t){e("throw",t,u,a)})):n.resolve(l).then((function(t){c.value=t,u(c)}),(function(t){return e("throw",t,u,a)}))}a(s.arg)}(i,o,e,u)}))}return e=e?e.then(u,u):u()}}function E(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,E(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,u=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=n,e.done=!0,e};return u.next=u}}return{next:D}}function D(){return{value:n,done:!0}}return b.prototype=g,s(O,"constructor",g),s(g,"constructor",b),b.displayName=s(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,a,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},A(C.prototype),s(C.prototype,u,(function(){return this})),t.AsyncIterator=C,t.async=function(n,e,r,i,o){void 0===o&&(o=Promise);var u=new C(c(n,e,r,i),o);return t.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},A(O),s(O,a,"Generator"),s(O,o,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var s=r.call(u,"catchLoc"),c=r.call(u,"finallyLoc");if(s&&c){if(this.prev<u.catchLoc)return i(u.catchLoc,!0);if(this.prev<u.finallyLoc)return i(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return i(u.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return i(u.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;j(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),p}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,n,e){for(var r=e(155),i=e(82),o=e(38),u=e(16),a=e(42),s=e(96),c=e(19),f=c("iterator"),l=c("toStringTag"),h=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(d),p=0;p<v.length;p++){var m,b=v[p],g=d[b],y=u[b],w=y&&y.prototype;if(w&&(w[f]||a(w,f,h),w[l]||a(w,l,b),s[b]=h,g))for(m in r)w[m]||o(w,m,r[m],!0)}},function(t,n,e){var r=e(8),i=e(152);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,e){var r=e(16),i=e(8),o=e(120),u=[].slice,a=/MSIE .\./.test(o),s=function(t){return function(n,e){var r=arguments.length>2,i=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,e)}};i(i.G+i.B+i.F*a,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(t,n,e){e(411),e(410),e(409),t.exports=e(24)},function(t,n,e){var r=e(8),i=e(24),o=e(16),u=e(104),a=e(216);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),e="function"==typeof t;return this.then(e?function(e){return a(n,t()).then((function(){return e}))}:t,e?function(e){return a(n,t()).then((function(){throw e}))}:t)}})},function(t,n,e){e(218),e(413),t.exports=e(24).Promise.finally},function(t,n,e){var r=e(8),i=e(210)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){e(415),t.exports=e(24).Object.entries},function(t,n,e){var r=e(8),i=e(210)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){e(417),t.exports=e(24).Object.values},function(t,n,e){var r=e(8),i=e(212),o=e(41),u=e(53),a=e(158);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=o(t),s=u.f,c=i(r),f={},l=0;c.length>l;)void 0!==(e=s(r,n=c[l++]))&&a(f,n,e);return f}})},function(t,n,e){e(419),t.exports=e(24).Object.getOwnPropertyDescriptors},function(t,n,e){e(239)("asyncIterator")},function(t,n,e){e(421),t.exports=e(174).f("asyncIterator")},function(t,n,e){e(97)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,e){e(423),t.exports=e(24).String.trimRight},function(t,n,e){e(97)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,e){e(425),t.exports=e(24).String.trimLeft},function(t,n,e){var r=e(8),i=e(211),o=e(120),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){e(427),t.exports=e(24).String.padEnd},function(t,n,e){var r=e(8),i=e(211),o=e(120),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){e(429),t.exports=e(24).String.padStart},function(t,n,e){var r=e(126),i=e(13),o=e(22),u=e(56),a=e(19)("isConcatSpreadable");t.exports=function t(n,e,s,c,f,l,h,d){for(var v,p,m=f,b=0,g=!!h&&u(h,d,3);b<c;){if(b in s){if(v=g?g(s[b],b,e):s[b],p=!1,i(v)&&(p=void 0!==(p=v[a])?!!p:r(v)),p&&l>0)m=t(n,e,v,o(v.length),m,l-1)-1;else{if(m>=9007199254740991)throw TypeError();n[m]=v}m++}b++}return m}},function(t,n,e){var r=e(8),i=e(431),o=e(34),u=e(22),a=e(55),s=e(224);r(r.P,"Array",{flatMap:function(t){var n,e,r=o(this);return a(t),n=u(r.length),e=s(r,0),i(e,r,r,n,0,1,t,arguments[1]),e}}),e(77)("flatMap")},function(t,n,e){e(432),t.exports=e(24).Array.flatMap},function(t,n,e){var r=e(8),i=e(128)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(77)("includes")},function(t,n,e){e(434),t.exports=e(24).Array.includes},function(t,n,e){var r=e(8),i=e(170);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){var r=e(26),i=e(53),o=e(78),u=e(43),a=e(8),s=e(85),c=e(14),f=e(13);a(a.S,"Reflect",{set:function t(n,e,a){var l,h,d=arguments.length<4?n:arguments[3],v=i.f(c(n),e);if(!v){if(f(h=o(n)))return t(h,e,a,d);v=s(0)}if(u(v,"value")){if(!1===v.writable||!f(d))return!1;if(l=i.f(d,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=a,r.f(d,e,l)}else r.f(d,e,s(0,a));return!0}return void 0!==v.set&&(v.set.call(d,a),!0)}})},function(t,n,e){var r=e(8),i=e(14),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,e){var r=e(8);r(r.S,"Reflect",{ownKeys:e(212)})},function(t,n,e){var r=e(8),i=e(14),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,e){var r=e(8);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(8),i=e(78),o=e(14);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,e){var r=e(53),i=e(8),o=e(14);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(o(t),n)}})},function(t,n,e){var r=e(53),i=e(78),o=e(43),u=e(8),a=e(13),s=e(14);u(u.S,"Reflect",{get:function t(n,e){var u,c,f=arguments.length<3?n:arguments[2];return s(n)===f?n[e]:(u=r.f(n,e))?o(u,"value")?u.value:void 0!==u.get?u.get.call(f):void 0:a(c=i(n))?t(c,e,f):void 0}})},function(t,n,e){var r=e(8),i=e(14),o=function(t){this._t=i(t),this._i=0;var n,e=this._k=[];for(n in t)e.push(n)};e(226)(o,"Object",(function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,e){var r=e(8),i=e(53).f,o=e(14);r(r.S,"Reflect",{deleteProperty:function(t,n){var e=i(o(t),n);return!(e&&!e.configurable)&&delete t[n]}})},function(t,n,e){var r=e(26),i=e(8),o=e(14),u=e(66);i(i.S+i.F*e(15)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,n,e){o(t),n=u(n,!0),o(e);try{return r.f(t,n,e),!0}catch(t){return!1}}})},function(t,n,e){var r=e(8),i=e(80),o=e(55),u=e(14),a=e(13),s=e(15),c=e(233),f=(e(16).Reflect||{}).construct,l=s((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!s((function(){f((function(){}))}));r(r.S+r.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var e=arguments.length<3?t:o(arguments[2]);if(h&&!l)return f(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(c.apply(t,r))}var s=e.prototype,d=i(a(s)?s:Object.prototype),v=Function.apply.call(t,d,n);return a(v)?v:d}})},function(t,n,e){var r=e(8),i=e(55),o=e(14),u=(e(16).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!e(15)((function(){u((function(){}))})),"Reflect",{apply:function(t,n,e){var r=i(t),s=o(e);return u?u(r,n,s):a.call(r,n,s)}})},function(t,n,e){e(60)("Float64",8,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Float32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Uint32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Int32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Uint16",2,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Int16",2,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Uint8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}),!0)},function(t,n,e){e(60)("Uint8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Int8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){var r=e(8);r(r.G+r.W+r.F*!e(118).ABV,{DataView:e(151).DataView})},function(t,n,e){var r=e(8),i=e(118),o=e(151),u=e(14),a=e(81),s=e(22),c=e(13),f=e(16).ArrayBuffer,l=e(104),h=o.ArrayBuffer,d=o.DataView,v=i.ABV&&f.isView,p=h.prototype.slice,m=i.VIEW;r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*e(15)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==p&&void 0===n)return p.call(u(this),t);for(var e=u(this).byteLength,r=a(t,e),i=a(void 0===n?e:n,e),o=new(l(this,h))(s(i-r)),c=new d(this),f=new d(o),v=0;r<i;)f.setUint8(v++,c.getUint8(r++));return o}}),e(95)("ArrayBuffer")},function(t,n,e){var r=e(214),i=e(76);e(119)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){var r,i=e(16),o=e(51)(0),u=e(38),a=e(65),s=e(235),c=e(214),f=e(13),l=e(76),h=e(76),d=!i.ActiveXObject&&"ActiveXObject"in i,v=a.getWeak,p=Object.isExtensible,m=c.ufstore,b=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(f(t)){var n=v(t);return!0===n?m(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return c.def(l(this,"WeakMap"),t,n)}},y=t.exports=e(119)("WeakMap",b,g,c,!0,!0);h&&d&&(s((r=c.getConstructor(b,"WeakMap")).prototype,g),a.NEED=!0,o(["delete","has","get","set"],(function(t){var n=y.prototype,e=n[t];u(n,t,(function(n,i){if(f(n)&&!p(n)){this._f||(this._f=new r);var o=this._f[t](n,i);return"set"==t?this:o}return e.call(this,n,i)}))})))},function(t,n,e){var r=e(215),i=e(76);t.exports=e(119)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){var r=e(215),i=e(76);t.exports=e(119)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var n=r.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(i(this,"Map"),0===t?0:t,n)}},r,!0)},function(t){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r=e(16),i=e(152).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(62)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);e=function(){f.then(c)}}else e=function(){i.call(r,c)};else{var l=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),e=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){var r=e(161),i=e(14),o=e(104),u=e(153),a=e(22),s=e(123),c=e(154),f=e(15),l=Math.min,h=[].push,d=!f((function(){}));e(122)("split",2,(function(t,n,e,f){var v;return v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(i,t,n);for(var o,u,a,s=[],f=0,l=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(o=c.call(d,i))&&!((u=d.lastIndex)>f&&(s.push(i.slice(f,o.index)),o.length>1&&o.index<i.length&&h.apply(s,o.slice(1)),a=o[0].length,f=u,s.length>=l));)d.lastIndex===o.index&&d.lastIndex++;return f===i.length?!a&&d.test("")||s.push(""):s.push(i.slice(f)),s.length>l?s.slice(0,l):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var i=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,i,r):v.call(String(i),e,r)},function(t,n){var r=f(v,t,this,n,v!==e);if(r.done)return r.value;var c=i(t),h=String(this),p=o(c,RegExp),m=c.unicode,b=new p(d?c:"^(?:"+c.source+")",(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g")),g=void 0===n?4294967295:n>>>0;if(0===g)return[];if(0===h.length)return null===s(b,h)?[h]:[];for(var y=0,w=0,x=[];w<h.length;){b.lastIndex=d?w:0;var O,A=s(b,d?h:h.slice(w));if(null===A||(O=l(a(b.lastIndex+(d?0:w)),h.length))===y)w=u(h,w,m);else{if(x.push(h.slice(y,w)),x.length===g)return x;for(var C=1;C<=A.length-1;C++)if(x.push(A[C]),x.length===g)return x;w=y=O}}return x.push(h.slice(y)),x}]}))},function(t,n,e){var r=e(14),i=e(234),o=e(123);e(122)("search",1,(function(t,n,e,u){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=u(e,t,this);if(n.done)return n.value;var a=r(t),s=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var f=o(a,s);return i(a.lastIndex,c)||(a.lastIndex=c),null===f?-1:f.index}]}))},function(t,n,e){var r=e(14),i=e(34),o=e(22),u=e(54),a=e(153),s=e(123),c=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,v=function(t){return void 0===t?t:String(t)};e(122)("replace",2,(function(t,n,e,p){return[function(r,i){var o=t(this),u=null==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},function(t,n){var i=p(e,t,this,n);if(i.done)return i.value;var l=r(t),h=String(this),d="function"==typeof n;d||(n=String(n));var b=l.global;if(b){var g=l.unicode;l.lastIndex=0}for(var y=[];;){var w=s(l,h);if(null===w)break;if(y.push(w),!b)break;""===String(w[0])&&(l.lastIndex=a(h,o(l.lastIndex),g))}for(var x="",O=0,A=0;A<y.length;A++){w=y[A];for(var C=String(w[0]),E=c(f(u(w.index),h.length),0),M=[],j=1;j<w.length;j++)M.push(v(w[j]));var N=w.groups;if(d){var k=[C].concat(M,E,h);void 0!==N&&k.push(N);var D=String(n.apply(void 0,k))}else D=m(C,h,E,M,N,n);E>=O&&(x+=h.slice(O,E)+D,O=E+C.length)}return x+h.slice(O)}];function m(t,n,r,o,u,a){var s=r+t.length,c=o.length,f=d;return void 0!==u&&(u=i(u),f=h),e.call(a,f,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":a=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>c){var h=l(f/10);return 0===h?e:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):e}a=o[f-1]}return void 0===a?"":a}))}}))},function(t,n,e){var r=e(14),i=e(22),o=e(153),u=e(123);e(122)("match",1,(function(t,n,e,a){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=a(e,t,this);if(n.done)return n.value;var s=r(t),c=String(this);if(!s.global)return u(s,c);var f=s.unicode;s.lastIndex=0;for(var l,h=[],d=0;null!==(l=u(s,c));){var v=String(l[0]);h[d]=v,""===v&&(s.lastIndex=o(c,i(s.lastIndex),f)),d++}return 0===d?null:h}]}))},function(t,n,e){e(219);var r=e(14),i=e(124),o=e(27),u=/./.toString,a=function(t){e(38)(RegExp.prototype,"toString",t,!0)};e(15)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?a((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&a((function(){return u.call(this)}))},function(t,n,e){var r=e(16),i=e(168),o=e(26).f,u=e(79).f,a=e(161),s=e(124),c=r.RegExp,f=c,l=c.prototype,h=/a/g,d=/a/g,v=new c(h)!==h;if(e(27)&&(!v||e(15)((function(){return d[e(19)("match")]=!1,c(h)!=h||c(d)==d||"/a/i"!=c(h,"i")})))){c=function(t,n){var e=this instanceof c,r=a(t),o=void 0===n;return!e&&r&&t.constructor===c&&o?t:i(v?new f(r&&!o?t.source:t,n):f((r=t instanceof c)?t.source:t,r&&o?s.call(t):n),e?this:l,c)};for(var p=function(t){t in c||o(c,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})},m=u(f),b=0;m.length>b;)p(m[b++]);l.constructor=c,c.prototype=l,e(38)(r,"RegExp",c)}e(95)("RegExp")},function(t,n,e){e(95)("Array")},function(t,n,e){var r=e(8),i=e(51)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),r(r.P+r.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(77)(o)},function(t,n,e){var r=e(8),i=e(51)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(77)("find")},function(t,n,e){var r=e(8);r(r.P,"Array",{fill:e(156)}),e(77)("fill")},function(t,n,e){var r=e(8);r(r.P,"Array",{copyWithin:e(222)}),e(77)("copyWithin")},function(t,n,e){var r=e(8),i=e(41),o=e(54),u=e(22),a=[].lastIndexOf,s=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(s||!e(49)(a)),"Array",{lastIndexOf:function(t){if(s)return a.apply(this,arguments)||0;var n=i(this),e=u(n.length),r=e-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(8),i=e(128)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!e(49)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(223);r(r.P+r.F*!e(49)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,e){var r=e(8),i=e(223);r(r.P+r.F*!e(49)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,e){var r=e(8),i=e(51)(4);r(r.P+r.F*!e(49)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(51)(3);r(r.P+r.F*!e(49)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(51)(2);r(r.P+r.F*!e(49)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(51)(1);r(r.P+r.F*!e(49)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(13),i=e(126),o=e(19)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(8),i=e(51)(0),o=e(49)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(55),o=e(34),u=e(15),a=[].sort,s=[1,2,3];r(r.P+r.F*(u((function(){s.sort(void 0)}))||!u((function(){s.sort(null)}))||!e(49)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},function(t,n,e){var r=e(8),i=e(171),o=e(62),u=e(81),a=e(22),s=[].slice;r(r.P+r.F*e(15)((function(){i&&s.call(i)})),"Array",{slice:function(t,n){var e=a(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return s.call(this,t,n);for(var i=u(t,e),c=u(n,e),f=a(c-i),l=new Array(f),h=0;h<f;h++)l[h]="String"==r?this.charAt(i+h):this[i+h];return l}})},function(t,n,e){var r=e(8),i=e(41),o=[].join;r(r.P+r.F*(e(107)!=Object||!e(49)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,e){var r=e(8),i=e(158);r(r.S+r.F*e(15)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)i(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){var r=e(56),i=e(8),o=e(34),u=e(225),a=e(159),s=e(22),c=e(158),f=e(157);i(i.S+i.F*!e(125)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,m=void 0!==p,b=0,g=f(h);if(m&&(p=r(p,v>2?arguments[2]:void 0,2)),null==g||d==Array&&a(g))for(e=new d(n=s(h.length));n>b;b++)c(e,b,m?p(h[b],b):h[b]);else for(l=g.call(h),e=new d;!(i=l.next()).done;b++)c(e,b,m?u(l,p,[i.value,b],!0):i.value);return e.length=b,e}})},function(t,n,e){var r=e(8);r(r.S,"Array",{isArray:e(126)})},function(t,n,e){var r=e(14),i=e(66);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,n,e){var r=e(19)("toPrimitive"),i=Date.prototype;r in i||e(42)(i,r,e(494))},function(t,n,e){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(38)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,e){var r=e(15),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:o},function(t,n,e){var r=e(8),i=e(497);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,e){var r=e(8),i=e(34),o=e(66);r(r.P+r.F*e(15)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(t,n,e){var r=e(8);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){e(37)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,e){e(37)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,e){e(37)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,e){e(37)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,e){e(37)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,e){e(37)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,e){e(37)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,e){e(37)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,e){e(37)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,e){e(37)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,e){e(37)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,e){e(37)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,e){e(37)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,e){var r=e(8),i=e(22),o=e(162),u="".startsWith;r(r.P+r.F*e(160)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){var r=e(8);r(r.P,"String",{repeat:e(167)})},function(t,n,e){var r=e(8),i=e(162);r(r.P+r.F*e(160)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(8),i=e(22),o=e(162),u="".endsWith;r(r.P+r.F*e(160)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),e=arguments.length>1?arguments[1]:void 0,r=i(n.length),a=void 0===e?r:Math.min(i(e),r),s=String(t);return u?u.call(n,s,a):n.slice(a-s.length,a)===s}})},function(t,n,e){var r=e(8),i=e(164)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,e){var r=e(164)(!0);e(163)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})}))},function(t,n,e){e(97)("trim",(function(t){return function(){return t(this,3)}}))},function(t,n,e){var r=e(8),i=e(41),o=e(22);r(r.S,"String",{raw:function(t){for(var n=i(t.raw),e=o(n.length),r=arguments.length,u=[],a=0;e>a;)u.push(String(n[a++])),a<r&&u.push(String(arguments[a]));return u.join("")}})},function(t,n,e){var r=e(8),i=e(81),o=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(8);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){var r=e(8),i=e(165),o=Math.exp;r(r.S,"Math",{tanh:function(t){var n=i(t=+t),e=i(-t);return n==1/0?1:e==1/0?-1:(n-e)/(o(t)+o(-t))}})},function(t,n,e){var r=e(8),i=e(165),o=Math.exp;r(r.S+r.F*e(15)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(8);r(r.S,"Math",{sign:e(166)})},function(t,n,e){var r=e(8);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(8);r(r.S,"Math",{log1p:e(227)})},function(t,n,e){var r=e(8);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(8),i=Math.imul;r(r.S+r.F*e(15)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var e=+t,r=+n,i=65535&e,o=65535&r;return 0|i*o+((65535&e>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(8),i=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,o=0,u=0,a=arguments.length,s=0;u<a;)s<(e=i(arguments[u++]))?(o=o*(r=s/e)*r+1,s=e):o+=e>0?(r=e/s)*r:e;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,n,e){var r=e(166),i=Math.pow,o=i(2,-52),u=i(2,-23),a=i(2,127)*(2-u),s=i(2,-126);t.exports=Math.fround||function(t){var n,e,i=Math.abs(t),c=r(t);return i<s?c*function(t){return t+1/o-1/o}(i/s/u)*s*u:(e=(n=(1+u/o)*i)-(n-i))>a||e!=e?c*(1/0):c*e}},function(t,n,e){var r=e(8);r(r.S,"Math",{fround:e(532)})},function(t,n,e){var r=e(8),i=e(165);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,e){var r=e(8),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,e){var r=e(8);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(8),i=e(166);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(8),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(8),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,e){var r=e(8),i=e(227),o=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,e){var r=e(8),i=e(231);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,e){var r=e(8),i=e(230);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,e){var r=e(8);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(8);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(8),i=e(228),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,e){var r=e(8);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(8);r(r.S,"Number",{isInteger:e(228)})},function(t,n,e){var r=e(8),i=e(16).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,e){var r=e(8);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(8),i=e(15),o=e(229),u=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){var r=e(8),i=e(54),o=e(229),u=e(167),a=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)c[e]=(r+=t*c[e])%1e7,r=s(r/1e7)},h=function(t){for(var n=6,e=0;--n>=0;)c[n]=s((e+=c[n])/t),e=e%t*1e7},d=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==c[t]){var e=String(c[t]);n=""===n?e:n+u.call("0",7-e.length)+e}return n},v=function(t,n,e){return 0===n?e:n%2==1?v(t,n-1,e*t):v(t*t,n/2,e)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(15)((function(){a.call({})}))),"Number",{toFixed:function(t){var n,e,r,a,s=o(this,f),c=i(t),p="",m="0";if(c<0||c>20)throw RangeError(f);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=(n=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n}(s*v(2,69,1))-69)<0?s*v(2,-n,1):s/v(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=c;r>=7;)l(1e7,0),r-=7;for(l(v(10,r,1),0),r=n-1;r>=23;)h(1<<23),r-=23;h(1<<r),l(1,1),h(2),m=d()}else l(0,e),l(1<<-n,0),m=d()+u.call("0",c);return c>0?p+((a=m.length)<=c?"0."+u.call("0",c-a)+m:m.slice(0,a-c)+"."+m.slice(a-c)):p+m}})},function(t,n,e){var r=e(16),i=e(43),o=e(62),u=e(168),a=e(66),s=e(15),c=e(79).f,f=e(53).f,l=e(26).f,h=e(97).trim,d=r.Number,v=d,p=d.prototype,m="Number"==o(e(80)(p)),b="trim"in String.prototype,g=function(t){var n=a(t,!1);if("string"==typeof n&&n.length>2){var e,r,i,o=(n=b?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+n}for(var u,s=n.slice(2),c=0,f=s.length;c<f;c++)if((u=s.charCodeAt(c))<48||u>i)return NaN;return parseInt(s,r)}}return+n};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof d&&(m?s((function(){p.valueOf.call(e)})):"Number"!=o(e))?u(new v(g(n)),e,d):g(n)};for(var y,w=e(27)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(v,y=w[x])&&!i(d,y)&&l(d,y,f(v,y));d.prototype=p,p.constructor=d,e(38)(r,"Number",d)}},function(t,n,e){var r=e(8),i=e(230);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,n,e){var r=e(8),i=e(231);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,n,e){var r=e(13),i=e(78),o=e(19)("hasInstance"),u=Function.prototype;o in u||e(26).f(u,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){var r=e(26).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||e(27)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,e){var r=e(8);r(r.P,"Function",{bind:e(233)})},function(t,n,e){var r=e(105),i={};i[e(19)("toStringTag")]="z",i+""!="[object z]"&&e(38)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(170).set})},function(t,n,e){var r=e(8);r(r.S,"Object",{is:e(234)})},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(235)})},function(t,n,e){var r=e(13);e(52)("isExtensible",(function(t){return function(n){return!!r(n)&&(!t||t(n))}}))},function(t,n,e){var r=e(13);e(52)("isSealed",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(13);e(52)("isFrozen",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(13),i=e(65).onFreeze;e(52)("preventExtensions",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(13),i=e(65).onFreeze;e(52)("seal",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(13),i=e(65).onFreeze;e(52)("freeze",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){e(52)("getOwnPropertyNames",(function(){return e(236).f}))},function(t,n,e){var r=e(34),i=e(82);e(52)("keys",(function(){return function(t){return i(r(t))}}))},function(t,n,e){var r=e(34),i=e(78);e(52)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,n,e){var r=e(41),i=e(53).f;e(52)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(r(t),n)}}))},function(t,n,e){var r=e(8);r(r.S+r.F*!e(27),"Object",{defineProperties:e(237)})},function(t,n,e){var r=e(8);r(r.S+r.F*!e(27),"Object",{defineProperty:e(26).f})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(80)})},function(t,n,e){var r=e(82),i=e(127),o=e(106);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){t.exports=e(129)("native-function-to-string",Function.toString)},function(t,n,e){var r=e(16),i=e(43),o=e(27),u=e(8),a=e(38),s=e(65).KEY,c=e(15),f=e(129),l=e(98),h=e(84),d=e(19),v=e(174),p=e(239),m=e(575),b=e(126),g=e(14),y=e(13),w=e(34),x=e(41),O=e(66),A=e(85),C=e(80),E=e(236),M=e(53),j=e(127),N=e(26),k=e(82),D=M.f,S=N.f,F=E.f,T=r.Symbol,_=r.JSON,R=_&&_.stringify,I=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,B=f("symbol-registry"),P=f("symbols"),U=f("op-symbols"),$=Object.prototype,V="function"==typeof T&&!!j.f,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,q=o&&c((function(){return 7!=C(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=D($,n);r&&delete $[n],S(t,n,e),r&&t!==$&&S($,n,r)}:S,H=function(t){var n=P[t]=C(T.prototype);return n._k=t,n},Y=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Q=function(t,n,e){return t===$&&Q(U,n,e),g(t),n=O(n,!0),g(e),i(P,n)?(e.enumerable?(i(t,I)&&t[I][n]&&(t[I][n]=!1),e=C(e,{enumerable:A(0,!1)})):(i(t,I)||S(t,I,A(1,{})),t[I][n]=!0),q(t,n,e)):S(t,n,e)},X=function(t,n){g(t);for(var e,r=m(n=x(n)),i=0,o=r.length;o>i;)Q(t,e=r[i++],n[e]);return t},J=function(t){var n=L.call(this,t=O(t,!0));return!(this===$&&i(P,t)&&!i(U,t))&&(!(n||!i(this,t)||!i(P,t)||i(this,I)&&this[I][t])||n)},K=function(t,n){if(t=x(t),n=O(n,!0),t!==$||!i(P,n)||i(U,n)){var e=D(t,n);return!e||!i(P,n)||i(t,I)&&t[I][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=F(x(t)),r=[],o=0;e.length>o;)i(P,n=e[o++])||n==I||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===$,r=F(e?U:x(t)),o=[],u=0;r.length>u;)!i(P,n=r[u++])||e&&!i($,n)||o.push(P[n]);return o};V||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===$&&n.call(U,e),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),q(this,t,A(1,e))};return o&&G&&q($,t,{configurable:!0,set:n}),H(t)}).prototype,"toString",(function(){return this._k})),M.f=K,N.f=Q,e(79).f=E.f=Z,e(106).f=J,j.f=tt,o&&!e(83)&&a($,"propertyIsEnumerable",J,!0),v.f=function(t){return H(d(t))}),u(u.G+u.W+u.F*!V,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var rt=k(d.store),it=0;rt.length>it;)p(rt[it++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=T(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var n in B)if(B[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?C(t):X(C(t),n)},defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=c((function(){j.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return j.f(w(t))}}),_&&u(u.S+u.F*(!V||c((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(y(n)||void 0!==t)&&!Y(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!Y(n))return n}),r[1]=n,R.apply(_,r)}}),T.prototype[z]||e(42)(T.prototype,z,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(577),e(574),e(573),e(572),e(571),e(570),e(569),e(568),e(567),e(566),e(565),e(564),e(563),e(562),e(561),e(560),e(559),e(558),e(557),e(556),e(555),e(554),e(553),e(552),e(551),e(550),e(549),e(548),e(547),e(546),e(545),e(544),e(543),e(542),e(541),e(540),e(539),e(538),e(537),e(536),e(535),e(534),e(533),e(531),e(530),e(529),e(528),e(527),e(526),e(525),e(524),e(523),e(522),e(521),e(520),e(519),e(518),e(517),e(516),e(515),e(514),e(513),e(512),e(511),e(510),e(509),e(508),e(507),e(506),e(505),e(504),e(503),e(502),e(501),e(500),e(499),e(498),e(496),e(495),e(493),e(492),e(491),e(490),e(489),e(488),e(487),e(485),e(484),e(483),e(482),e(481),e(480),e(479),e(478),e(477),e(476),e(475),e(474),e(473),e(155),e(472),e(220),e(471),e(219),e(470),e(469),e(468),e(467),e(218),e(464),e(463),e(462),e(461),e(460),e(459),e(458),e(457),e(456),e(455),e(454),e(453),e(452),e(451),e(450),e(449),e(448),e(447),e(446),e(445),e(444),e(443),e(442),e(441),e(440),e(439),e(438),e(437),e(436),t.exports=e(24)},function(t,n,e){e(578),e(435),e(433),e(430),e(428),e(426),e(424),e(422),e(420),e(418),e(416),e(414),e(412),e(408)},function(t,n,e){e(579);var r=function(t){return t&&t.__esModule?t:{default:t}}(e(407));r.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),r.default._babelPolyfill=!0},function(t,n,e){e(580),t.exports=e(248)},function(t,n){var e={},r={};function i(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function o(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function u(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function a(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+u(-t,6):t>9999?"+"+u(t,6):u(t,4)}(t.getUTCFullYear())+"-"+u(t.getUTCMonth()+1,2)+"-"+u(t.getUTCDate(),2)+(i?"T"+u(n,2)+":"+u(e,2)+":"+u(r,2)+"."+u(i,3)+"Z":r?"T"+u(n,2)+":"+u(e,2)+":"+u(r,2)+"Z":e||n?"T"+u(n,2)+":"+u(e,2)+"Z":"")}n.a=function(t){var n=new RegExp('["'+t+"\n\r]"),u=t.charCodeAt(0);function s(t,n){var i,o=[],a=t.length,s=0,c=0,f=a<=0,l=!1;function h(){if(f)return r;if(l)return l=!1,e;var n,i,o=s;if(34===t.charCodeAt(o)){for(;s++<a&&34!==t.charCodeAt(s)||34===t.charCodeAt(++s););return(n=s)>=a?f=!0:10===(i=t.charCodeAt(s++))?l=!0:13===i&&(l=!0,10===t.charCodeAt(s)&&++s),t.slice(o+1,n-1).replace(/""/g,'"')}for(;s<a;){if(10===(i=t.charCodeAt(n=s++)))l=!0;else if(13===i)l=!0,10===t.charCodeAt(s)&&++s;else if(i!==u)continue;return t.slice(o,n)}return f=!0,t.slice(o,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(i=h())!==r;){for(var d=[];i!==e&&i!==r;)d.push(i),i=h();n&&null==(d=n(d,c++))||o.push(d)}return o}function c(n,e){return n.map((function(n){return e.map((function(t){return l(n[t])})).join(t)}))}function f(n){return n.map(l).join(t)}function l(t){return null==t?"":t instanceof Date?a(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,r,o=s(t,(function(t,o){if(e)return e(t,o-1);r=t,e=n?function(t,n){var e=i(t);return function(r,i){return n(e(r),i,t)}}(t,n):i(t)}));return o.columns=r||[],o},parseRows:s,format:function(n,e){return null==e&&(e=o(n)),[e.map(l).join(t)].concat(c(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=o(t)),c(t,n).join("\n")},formatRows:function(t){return t.map(f).join("\n")},formatRow:f,formatValue:l}}}]).default})));class k{constructor(){this.init()}static getInstance(){return k.instance||(k.instance=new k),k.instance}async init(){return new Promise((async t=>{this.classifier=await N.imageClassifier("https://ekyc.blob.core.windows.net/$web/model.json"),this.faceapi=await N.faceApi({withLandmarks:!0,withDescriptors:!1}),t(),console.log("ML5 LOADED!!!")}))}}var D,S;!function(t){t[t.Straight=0]="Straight",t[t.Tilted=1]="Tilted",t[t.Straightened=2]="Straightened"}(D||(D={}));class F{constructor(t,n){this.MAX_DETECTION=25e3,this.initTime=null,this.full=0,this.tilted=0,this.start=null,this.stream=t,this.ml5=k.getInstance()}static getInstance(t,n){return F.instance||(F.instance=new F(t,n)),F.instance}updateHtmlElements(t,n,e){this.videoElement=t,this.canvasElement=n}initDetector(){this.initTime=Date.now(),this.continue=!0,this.drawFrame("white"),this.delay(2e3).then((()=>this.classifyVideo()))}classifyVideo(){1==this.full&&1==this.tilted&&(null==this.start&&(this.start=Date.now()),Date.now()>this.start+500&&(this.continue=!1,this.stream.verificationReady())),1==this.full&&0==this.tilted&&this.stream.autoCapturing(),Date.now()-this.initTime>=this.MAX_DETECTION&&(this.continue=!1,this.stream.timeElapsed()),this.continue&&this.ml5.classifier.classify(this.videoElement,this.gotResults.bind(this))}async gotResults(t,n){if(t)return alert(t),void this.stream.timeElapsed();"full"==n[0].label&&n[0].confidence>.9&&0==this.full&&(this.full=1,this.stream.stopAnimation(),await this.drawFrame("green"),this.stream.changeIDPose(D.Tilted)),"tilted"==n[0].label&&n[0].confidence>.8&&1==this.full&&0==this.tilted&&(this.tilted=1,this.stream.stopAnimation(),await this.drawFrame("green")),this.classifyVideo()}async drawFrame(t,n=!1){return new Promise((e=>{const r=new Image;r.src="green"==t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzM1IiBoZWlnaHQ9IjIzOCIgdmlld0JveD0iMCAwIDMzNSAyMzgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMzM0Ljg4NiA0Ni45MjQxSDMyNy45MDhWNy45NzUzN0gyODguMjczVjAuOTkzMTY0SDMzNC44ODZWNDYuOTI0MVoiIGZpbGw9IiM0Y2E1ODUiLz4NCjxwYXRoIGQ9Ik0zMzUuMDAxIDIzNy4wMDdIMjg5LjA3VjIzMC4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asElement,o=i.getContext("2d"),u=Math.min(i.width/r.width,i.height/r.height);o.drawImage(r,0,0,r.width,r.height,(i.width-r.width*u)/2+150,(i.height-r.height*u)/2+150,r.width*u-300,r.height*u-300),"white"==t||n||(await this.delay(1e3),this.drawFrame("white")),e()}}))}delay(t){return new Promise((n=>setTimeout(n,t)))}}!function(t){t[t.LookLeft=0]="LookLeft",t[t.LookRight=1]="LookRight",t[t.LookUp=2]="LookUp",t[t.LookDown=3]="LookDown",t[t.TiltLeft=4]="TiltLeft",t[t.TiltRight=5]="TiltRight",t[t.Main=6]="Main"}(S||(S={}));class T{constructor(t,n,e){this.leftEye=this.centerOfPoints(t.parts.rightEye,n,e),this.rightEye=this.centerOfPoints(t.parts.leftEye,n,e),this.leftEyeBrow=this.centerOfPoints(t.parts.rightEyeBrow,n,e),this.rightEyeBrow=this.centerOfPoints(t.parts.leftEyeBrow,n,e),this.mouth=this.centerOfPoints(t.parts.mouth,n,e),this.nose=this.centerOfPoints(t.parts.nose,n,e)}eyesDistance(){return Math.round(Math.hypot(this.leftEye.x-this.rightEye.x,this.leftEye.y-this.rightEye.y))}eyesLevel(){return Math.round(this.leftEye.y-this.rightEye.y)}eyesCenter(){var t=new _;return t.x=Math.round((this.leftEye.x+this.rightEye.x)/2),t.y=Math.round((this.leftEye.y+this.rightEye.y)/2),t}leftEyeNoseDistanceX(){return Math.abs(this.leftEye.x-this.nose.x)}rightEyeNoseDistanceX(){return Math.abs(this.rightEye.x-this.nose.x)}leftEyeNoseDistanceY(){return Math.abs(this.leftEye.y-this.nose.y)}rightEyeNoseDistanceY(){return Math.abs(this.rightEye.y-this.nose.y)}eyesNoseDistance(){return Math.round(Math.hypot(this.eyesCenter().x-this.nose.x,this.eyesCenter().y-this.nose.y))}noseMouthDistance(){return Math.round(Math.hypot(this.nose.x-this.mouth.x,this.nose.y-this.mouth.y))}eyesMouthDistance(){return Math.round(Math.hypot(this.eyesCenter().x-this.mouth.x,this.eyesCenter().y-this.mouth.y))}leftEyeEyeBrowDistance(){return Math.round(Math.hypot(this.leftEye.x-this.leftEyeBrow.x,this.leftEye.y-this.leftEyeBrow.y))}rightEyeEyeBrowDistance(){return Math.round(Math.hypot(this.rightEye.x-this.rightEyeBrow.x,this.rightEye.y-this.rightEyeBrow.y))}centerOfPoints(t,n,e){for(var r,i,o,u,a=0;a<t.length;a++)r=t[a].x<r||null==r?t[a].x:r,i=t[a].x>i||null==i?t[a].x:i,o=t[a].y<o||null==o?t[a].y:o,u=t[a].y>u||null==u?t[a].y:u;var s=[(r+i)/2,(o+u)/2],c=new _;return c.x=Math.round(s[0]),c.y=Math.round(s[1]),c}}class _{}class R{constructor(t,n){this.MAX_DETECTION=3e4,this.initTime=null,this.videoRatio=1,this.validFaceFound=!1,this.start=null,this.frontFace=null,this.requestedFacePose=null,this.presentedFacePose=null,this.validFacePose=!1,this.validFaceFoundAgain=!1,this.MAX_NUMBER_FACES=1,this.MIN_FACE_SCORE=.65,this.MIN_FACE_SIZE_FOR_MOBILE=200,this.MIN_FACE_SIZE_FOR_DESKTOP=350,this.MIN_OCCUPIED_SPACE_FOR_DESKTOP=15,this.MIN_OCCUPIED_SPACE_FOR_MOBILE=15,this.X_OFFSET_FROM_FRAME=5,this.Y_OFFSET_FROM_FRAME=5,this.stream=t,this.ml5=k.getInstance(),this.isMobile=n}static getInstance(t,n){return R.instance||(R.instance=new R(t,n)),R.instance}updateHtmlElements(t,n,e){this.videoElement=t,this.canvasElement=n}initDetector(){var t;this.initTime=Date.now(),this.continue=!0,this.width=this.videoElement.videoWidth,this.height=this.videoElement.videoHeight,this.videoRatio=(t=this.videoElement,Math.min(t.clientWidth/t.videoWidth,t.clientHeight/t.videoHeight)),this.drawFrame("white"),this.delay(2e3).then((()=>this.detectFaces()))}detectFaces(){this.validFaceFoundAgain&&(null==this.start&&(this.start=Date.now()),Date.now()>this.start+3e3&&(this.continue=!1,this.stream.verificationReady())),Date.now()-this.initTime>=this.MAX_DETECTION&&(this.continue=!1,this.stream.timeElapsed()),null==this.presentedFacePose||this.validFacePose||(this.continue=!1,this.stream.timeElapsed()),this.continue&&this.ml5.faceapi.detect(this.videoElement,this.gotResults.bind(this))}async gotResults(t,n){if(t)return alert(t),void this.stream.timeElapsed();n.length>0&&this.isSingleFace(n)&&this.checkProbability(n)&&this.checkFaceSize(n)&&this.checkFaceIndent(n)&&(this.validFaceFound||(this.validFaceFound=!0,this.stream.autoCapturing(),this.frontFace=new T(n[0],this.width,this.height),this.stream.stopAnimation(),await this.drawFrame("green"),this.requestedFacePose=this.stream.requestFacePose()),this.validFaceFound&&!this.validFaceFoundAgain&&await this.checkFacePose(n)),this.detectFaces()}async drawFrame(t,n=!1){return new Promise((e=>{const r=new Image;r.src="green"==t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjIyNC45OTk5OTk5OTk5OTk5NyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIHZlcnNpb249IjEuMSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPGcgc3Ryb2tlPSJudWxsIiBpZD0iTGF5ZXIgMSI+DQogICA8cGF0aCBzdHJva2U9IiM0Y2E1ODUiIGlkPSJzdmdfMSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZmlsbD0ibm9uZSIgZD0ibTc0LjI3NzY1LDYuOTI3NjFjLTExLjM3NTk3LC0wLjAxNzEzIC0zMy41NjU1MSw1LjEwNDMzIC00Ni44MTMxNiwxOS40OTQ4MWMtNi43NDE0Myw3LjMyMjkyIC0xOC4xMjI2OSwyMy4wNjk2NyAtMTkuMjY3NTgsNTkuNjEzNjljLTAuNTE5MDYsMTYuNTY5MjEgNS4wNDUyNCw2MC42MjUzMyAxMC4yNDAwNiw3Ni40Njc3NWMzLjYzMTMsMTEuMDc0NjggMjcuNDgyMTUs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wNDMzIC00Ni44MTMxNiwxOS40OTQ4MWMtNi43NDE0Myw3LjMyMjkyIC0xOC4xMjI2OSwyMy4wNjk2NyAtMTkuMjY3NTgsNTkuNjEzNjljLTAuNTE5MDYsMTYuNTY5MjEgNS4wNDUyNCw2MC42MjUzMyAxMC4yNDAwNiw3Ni40Njc3NWMzLjYzMTMsMTEuMDc0NjggMjcuNDgyMTUsNDMuOTMzNDkgNDQuNDkwNiw1My42ODI1MWM0LjgwNzkxLDIuNzU1NDYgMTEuMjk2NjgsMi42ODI1MSAxMi40MjI1NSwyLjY4MjUxYzEuMTg4NzYsLTAuMDg0NTcgNy4zMzAyNiwwLjA3Mjk0IDEyLjEzNzY1LC0yLjY4MjUxYzE3LjAwODQ2LC05Ljc0OTAyIDQwLjQwMjA4LC00Mi43Njg1MSA0NC40OTA2LC01My42ODI1MWM0LjQwMDM4LC0xMS43NDQ5MSAxMC43NTk2NSwtNTkuODk4NTQgMTAuMjQwMDYsLTc2LjQ2Nzc1Yy0xLjE0NDg5LC0zNi41NDQwMiAtMTIuNTI2MTUsLTUyLjI5MDc3IC0xOS4yNjc1OCwtNTkuNjEzNjljLTEzLjI0NzY1LC0xNC4zOTA0OCAtMzUuMzA2NjMsLTE5LjUyOTMzIC00Ni43NzgyNywtMTkuNDk0ODFjLTAuNzQ2ODgsMC4wMDIyMiAtMS44OTQ5NCwwIC0xLjg5NDk0LDB6IiBzdHJva2Utd2lkdGg9IjciLz4NCiAgPC9nPg0KIDwvZz4NCjwvc3ZnPg0K",r.onload=async()=>{const i=this.canvasElement,o=i.getContext("2d"),u=Math.min(i.width/r.width,i.height/r.height),a=i.width<i.height,s=a?80:40,c=a?160:80;o.drawImage(r,0,0,r.width,r.height,(i.width-r.width*u)/2+s,(i.height-r.height*u)/2+c,r.width*u-2*s,r.height*u-2*c),"white"==t||n||(await this.delay(1e3),this.drawFrame("white")),e()}}))}delay(t){return new Promise((n=>setTimeout(n,t)))}isSingleFace(t){return t.length==this.MAX_NUMBER_FACES}checkProbability(t){return t[0].detection.score>this.MIN_FACE_SCORE}checkFaceSize(t){const n=t[0].detection.box,{width:e,height:r,area:i}=n,{imageHeight:o,imageWidth:u}=t[0].detection,a=100/(o*u/i);return Math.min(e/this.videoRatio,r/this.videoRatio)>(this.isMobile?this.MIN_FACE_SIZE_FOR_MOBILE:this.MIN_FACE_SIZE_FOR_DESKTOP)&&a>(this.isMobile?this.MIN_OCCUPIED_SPACE_FOR_MOBILE:this.MIN_OCCUPIED_SPACE_FOR_DESKTOP)}checkFaceIndent(t){const n=t[0].detection.box,{imageHeight:e,imageWidth:r}=t[0].detection,{top:i,left:o,bottom:u,right:a}=n;return!(i<this.Y_OFFSET_FROM_FRAME||o<this.X_OFFSET_FROM_FRAME||r-a<this.X_OFFSET_FROM_FRAME||e-u<this.Y_OFFSET_FROM_FRAME)}async checkFacePose(t){let n=new T(t[0],this.width,this.height);if(null==this.presentedFacePose){let t=this.frontFace;n.leftEyeNoseDistanceX()<.6*t.leftEyeNoseDistanceX()&&n.rightEyeNoseDistanceX()>1.2*t.rightEyeNoseDistanceX()&&n.leftEyeNoseDistanceY()>.7*t.leftEyeNoseDistanceY()&&n.leftEyeNoseDistanceY()<1.3*t.leftEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()>.7*t.rightEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()<1.3*t.rightEyeNoseDistanceY()?this.presentedFacePose=S.LookLeft:n.rightEyeNoseDistanceX()<.6*t.rightEyeNoseDistanceX()&&n.leftEyeNoseDistanceX()>1.2*t.leftEyeNoseDistanceX()&&n.leftEyeNoseDistanceY()>.7*t.leftEyeNoseDistanceY()&&n.leftEyeNoseDistanceY()<1.3*t.leftEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()>.7*t.rightEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()<1.3*t.rightEyeNoseDistanceY()?this.presentedFacePose=S.LookRight:n.eyesNoseDistance()<.45*t.eyesNoseDistance()?this.presentedFacePose=S.LookUp:n.leftEyeEyeBrowDistance()<.8*t.leftEyeEyeBrowDistance()&&n.rightEyeEyeBrowDistance()<.8*t.rightEyeEyeBrowDistance()?this.presentedFacePose=S.LookDown:n.eyesLevel()>=this.frontFace.eyesLevel()+.05*this.height?this.presentedFacePose=S.TiltLeft:n.eyesLevel()<=this.frontFace.eyesLevel()-.05*this.height&&(this.presentedFacePose=S.TiltRight),null!=this.presentedFacePose&&this.presentedFacePose==this.requestedFacePose&&(this.validFacePose=!0,this.stream.stopAnimation(),await this.drawFrame("green",!0),this.validFaceFoundAgain=!0)}}}var I=j((function(t,n){!function(){var e={};function r(t){return l(">"+d("B",t.length),t)}function i(t){return l(">"+d("H",t.length),t)}function o(t){return l(">"+d("L",t.length),t)}function u(t,n,e){var u,a,s,c="",f="";if("Byte"==n)(u=t.length)<=4?f=r(t)+d("\0",4-u):(f=l(">L",[e]),c=r(t));else if("Short"==n)(u=t.length)<=2?f=i(t)+d("\0\0",2-u):(f=l(">L",[e]),c=i(t));else if("Long"==n)(u=t.length)<=1?f=o(t):(f=l(">L",[e]),c=o(t));else if("Ascii"==n)(u=(a=t+"\0").length)>4?(f=l(">L",[e]),c=a):f=a+d("\0",4-u);else if("Rational"==n){if("number"==typeof t[0])u=1,s=t[1],a=l(">L",[t[0]])+l(">L",[s]);else{u=t.length,a="";for(var h=0;h<u;h++)s=t[h][1],a+=l(">L",[t[h][0]])+l(">L",[s])}f=l(">L",[e]),c=a}else if("SRational"==n){if("number"==typeof t[0])u=1,s=t[1],a=l(">l",[t[0]])+l(">l",[s]);else for(u=t.length,a="",h=0;h<u;h++)s=t[h][1],a+=l(">l",[t[h][0]])+l(">l",[s]);f=l(">L",[e]),c=a}else"Undefined"==n&&((u=t.length)>4?(f=l(">L",[e]),c=t):f=t+d("\0",4-u));return[l(">L",[u]),f,c]}function a(t,n,e){var r,i=Object.keys(t).length,o=l(">H",[i]);r=["0th","1st"].indexOf(n)>-1?2+12*i+4:2+12*i;var a="",s="";for(var c in t)if("string"==typeof c&&(c=parseInt(c)),!("0th"==n&&[34665,34853].indexOf(c)>-1||"Exif"==n&&40965==c||"1st"==n&&[513,514].indexOf(c)>-1)){var f=t[c],h=l(">H",[c]),d=m[n][c].type,v=l(">H",[p[d]]);"number"==typeof f&&(f=[f]);var b=u(f,d,8+r+e+s.length);a+=h+v+b[0]+b[1],s+=b[2]}return[o+a,s]}function s(t){var n;if("ÿØ"==t.slice(0,2))n=function(t){for(var n,e=0;e<t.length;e++)if("ÿá"==(n=t[e]).slice(0,2)&&"Exif\0\0"==n.slice(4,10))return n;return null}(v(t)),this.tiftag=n?n.slice(10):null;else if(["II","MM"].indexOf(t.slice(0,2))>-1)this.tiftag=t;else{if("Exif"!=t.slice(0,4))throw new Error("Given file is neither JPEG nor TIFF.");this.tiftag=t.slice(6)}}if(e.version="1.0.4",e.remove=function(t){var n=!1;if("ÿØ"==t.slice(0,2));else{if("data:image/jpeg;base64,"!=t.slice(0,23)&&"data:image/jpg;base64,"!=t.slice(0,22))throw new Error("Given data is not jpeg.");t=f(t.split(",")[1]),n=!0}var e=v(t).filter((function(t){return!("ÿá"==t.slice(0,2)&&"Exif\0\0"==t.slice(4,10))})).join("");return n&&(e="data:image/jpeg;base64,"+c(e)),e},e.insert=function(t,n){var e=!1;if("Exif\0\0"!=t.slice(0,6))throw new Error("Given data is not exif.");if("ÿØ"==n.slice(0,2));else{if("data:image/jpeg;base64,"!=n.slice(0,23)&&"data:image/jpg;base64,"!=n.slice(0,22))throw new Error("Given data is not jpeg.");n=f(n.split(",")[1]),e=!0}var r="ÿá"+l(">H",[t.length+2])+t,i=function(t,n){var e=!1,r=[];return t.forEach((function(i,o){"ÿá"==i.slice(0,2)&&"Exif\0\0"==i.slice(4,10)&&(e?r.unshift(o):(t[o]=n,e=!0))})),r.forEach((function(n){t.splice(n,1)})),!e&&n&&(t=[t[0],n].concat(t.slice(1))),t.join("")}(v(n),r);return e&&(i="data:image/jpeg;base64,"+c(i)),i},e.load=function(t){var n;if("string"!=typeof t)throw new Error("'load' gots invalid type argument.");if("ÿØ"==t.slice(0,2))n=t;else if("data:image/jpeg;base64,"==t.slice(0,23)||"data:image/jpg;base64,"==t.slice(0,22))n=f(t.split(",")[1]);else{if("Exif"!=t.slice(0,4))throw new Error("'load' gots invalid file data.");n=t.slice(6)}var e={"0th":{},Exif:{},GPS:{},Interop:{},"1st":{},thumbnail:null},r=new s(n);if(null===r.tiftag)return e;r.endian_mark="II"==r.tiftag.slice(0,2)?"<":">";var i=h(r.endian_mark+"L",r.tiftag.slice(4,8))[0];e["0th"]=r.get_ifd(i,"0th");var o=e["0th"].first_ifd_pointer;if(delete e["0th"].first_ifd_pointer,34665 in e["0th"]&&(e.Exif=r.get_ifd(i=e["0th"][34665],"Exif")),34853 in e["0th"]&&(e.GPS=r.get_ifd(i=e["0th"][34853],"GPS")),40965 in e.Exif&&(e.Interop=r.get_ifd(i=e.Exif[40965],"Interop")),"\0\0\0\0"!=o&&(i=h(r.endian_mark+"L",o)[0],e["1st"]=r.get_ifd(i,"1st"),513 in e["1st"]&&514 in e["1st"])){var u=r.tiftag.slice(e["1st"][513],e["1st"][513]+e["1st"][514]);e.thumbnail=u}return e},e.dump=function(t){var n,r,i,o,u,s=JSON.parse(JSON.stringify(t)),c=!1,f=!1,h=!1,d=!1;n="0th"in s?s["0th"]:{},"Exif"in s&&Object.keys(s.Exif).length||"Interop"in s&&Object.keys(s.Interop).length?(n[34665]=1,c=!0,r=s.Exif,"Interop"in s&&Object.keys(s.Interop).length?(r[40965]=1,h=!0,i=s.Interop):Object.keys(r).indexOf(e.ExifIFD.InteroperabilityTag.toString())>-1&&delete r[40965]):Object.keys(n).indexOf(e.ImageIFD.ExifTag.toString())>-1&&delete n[34665],"GPS"in s&&Object.keys(s.GPS).length?(n[e.ImageIFD.GPSTag]=1,f=!0,o=s.GPS):Object.keys(n).indexOf(e.ImageIFD.GPSTag.toString())>-1&&delete n[e.ImageIFD.GPSTag],"1st"in s&&"thumbnail"in s&&null!=s.thumbnail&&(d=!0,s["1st"][513]=1,s["1st"][514]=1,u=s["1st"]);var m,b,g,y=a(n,"0th",0),w=y[0].length+12*c+12*f+4+y[1].length,x="",O=0,A="",C=0,E="",M=0,j="";if(c&&(O=(m=a(r,"Exif",w))[0].length+12*h+m[1].length),f&&(C=(A=a(o,"GPS",w+O).join("")).length),h&&(M=(E=a(i,"Interop",w+O+C).join("")).length),d&&(b=a(u,"1st",w+O+C+M),(g=function(t){for(var n=v(t);"ÿà"<=n[1].slice(0,2)&&n[1].slice(0,2)<="ÿï";)n=[n[0]].concat(n.slice(2));return n.join("")}(s.thumbnail)).length>64e3))throw new Error("Given thumbnail is too large. max 64kB");var N="",k="",D="",S="\0\0\0\0";if(c){var F=l(">L",[T=8+w]);N=l(">H",[34665])+l(">H",[p.Long])+l(">L",[1])+F}if(f&&(F=l(">L",[T=8+w+O]),k=l(">H",[34853])+l(">H",[p.Long])+l(">L",[1])+F),h&&(F=l(">L",[T=8+w+O+C]),D=l(">H",[40965])+l(">H",[p.Long])+l(">L",[1])+F),d){var T;S=l(">L",[T=8+w+O+C+M]);var _="\0\0\0\0"+l(">L",[T+b[0].length+24+4+b[1].length]),R="\0\0\0\0"+l(">L",[g.length]);j=b[0]+_+R+"\0\0\0\0"+b[1]+g}return c&&(x=m[0]+D+m[1]),"Exif\0\0MM\0*\0\0\0\b"+(y[0]+N+k+S+y[1])+x+A+E+j},s.prototype={get_ifd:function(t,n){var e,r={},i=h(this.endian_mark+"H",this.tiftag.slice(t,t+2))[0],o=t+2;e=["0th","1st"].indexOf(n)>-1?"Image":n;for(var u=0;u<i;u++){var a=h(this.endian_mark+"H",this.tiftag.slice(t=o+12*u,t+2))[0],s=h(this.endian_mark+"H",this.tiftag.slice(t+2,t+4))[0],c=h(this.endian_mark+"L",this.tiftag.slice(t+4,t+8))[0],f=this.tiftag.slice(t+8,t+12);a in m[e]&&(r[a]=this.convert_value([s,c,f]))}return"0th"==n&&(r.first_ifd_pointer=this.tiftag.slice(t=o+12*i,t+4)),r},convert_value:function(t){var n,e=null,r=t[0],i=t[1],o=t[2];if(1==r)i>4?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("B",i),this.tiftag.slice(n,n+i))):e=h(this.endian_mark+d("B",i),o.slice(0,i));else if(2==r)i>4?(n=h(this.endian_mark+"L",o)[0],e=this.tiftag.slice(n,n+i-1)):e=o.slice(0,i-1);else if(3==r)i>2?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("H",i),this.tiftag.slice(n,n+2*i))):e=h(this.endian_mark+d("H",i),o.slice(0,2*i));else if(4==r)i>1?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("L",i),this.tiftag.slice(n,n+4*i))):e=h(this.endian_mark+d("L",i),o);else if(5==r)if(n=h(this.endian_mark+"L",o)[0],i>1){e=[];for(var u=0;u<i;u++)e.push([h(this.endian_mark+"L",this.tiftag.slice(n+8*u,n+4+8*u))[0],h(this.endian_mark+"L",this.tiftag.slice(n+4+8*u,n+8+8*u))[0]])}else e=[h(this.endian_mark+"L",this.tiftag.slice(n,n+4))[0],h(this.endian_mark+"L",this.tiftag.slice(n+4,n+8))[0]];else if(7==r)i>4?(n=h(this.endian_mark+"L",o)[0],e=this.tiftag.slice(n,n+i)):e=o.slice(0,i);else if(9==r)i>1?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("l",i),this.tiftag.slice(n,n+4*i))):e=h(this.endian_mark+d("l",i),o);else{if(10!=r)throw new Error("Exif might be wrong. Got incorrect value type to decode. type:"+r);if(n=h(this.endian_mark+"L",o)[0],i>1)for(e=[],u=0;u<i;u++)e.push([h(this.endian_mark+"l",this.tiftag.slice(n+8*u,n+4+8*u))[0],h(this.endian_mark+"l",this.tiftag.slice(n+4+8*u,n+8+8*u))[0]]);else e=[h(this.endian_mark+"l",this.tiftag.slice(n,n+4))[0],h(this.endian_mark+"l",this.tiftag.slice(n+4,n+8))[0]]}return e instanceof Array&&1==e.length?e[0]:e}},"undefined"!=typeof window&&"function"==typeof window.btoa)var c=window.btoa;if(void 0===c&&(c=function(t){for(var n,e,r,i,o,u,a,s="",c=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c<t.length;)i=(n=t.charCodeAt(c++))>>2,o=(3&n)<<4|(e=t.charCodeAt(c++))>>4,u=(15&e)<<2|(r=t.charCodeAt(c++))>>6,a=63&r,isNaN(e)?u=a=64:isNaN(r)&&(a=64),s=s+f.charAt(i)+f.charAt(o)+f.charAt(u)+f.charAt(a);return s}),"undefined"!=typeof window&&"function"==typeof window.atob)var f=window.atob;function l(t,n){if(!(n instanceof Array))throw new Error("'pack' error. Got invalid type argument.");if(t.length-1!=n.length)throw new Error("'pack' error. "+(t.length-1)+" marks, "+n.length+" elements.");var e;if("<"==t[0])e=!0;else{if(">"!=t[0])throw new Error("");e=!1}for(var r="",i=1,o=null,u=null,a=null;u=t[i];){if("b"==u.toLowerCase()){if(o=n[i-1],"b"==u&&o<0&&(o+=256),o>255||o<0)throw new Error("'pack' error.");a=String.fromCharCode(o)}else if("H"==u){if((o=n[i-1])>65535||o<0)throw new Error("'pack' error.");a=String.fromCharCode(Math.floor(o%65536/256))+String.fromCharCode(o%256),e&&(a=a.split("").reverse().join(""))}else{if("l"!=u.toLowerCase())throw new Error("'pack' error.");if(o=n[i-1],"l"==u&&o<0&&(o+=4294967296),o>4294967295||o<0)throw new Error("'pack' error.");a=String.fromCharCode(Math.floor(o/16777216))+String.fromCharCode(Math.floor(o%16777216/65536))+String.fromCharCode(Math.floor(o%65536/256))+String.fromCharCode(o%256),e&&(a=a.split("").reverse().join(""))}r+=a,i+=1}return r}function h(t,n){if("string"!=typeof n)throw new Error("'unpack' error. Got invalid type argument.");for(var e,r=0,i=1;i<t.length;i++)if("b"==t[i].toLowerCase())r+=1;else if("h"==t[i].toLowerCase())r+=2;else{if("l"!=t[i].toLowerCase())throw new Error("'unpack' error. Got invalid mark.");r+=4}if(r!=n.length)throw new Error("'unpack' error. Mismatch between symbol and string length. "+r+":"+n.length);if("<"==t[0])e=!0;else{if(">"!=t[0])throw new Error("'unpack' error.");e=!1}for(var o=[],u=0,a=1,s=null,c=null,f=null,l="";c=t[a];){if("b"==c.toLowerCase())s=(l=n.slice(u,u+(f=1))).charCodeAt(0),"b"==c&&s>=128&&(s-=256);else if("H"==c)l=n.slice(u,u+(f=2)),e&&(l=l.split("").reverse().join("")),s=256*l.charCodeAt(0)+l.charCodeAt(1);else{if("l"!=c.toLowerCase())throw new Error("'unpack' error. "+c);l=n.slice(u,u+(f=4)),e&&(l=l.split("").reverse().join("")),s=16777216*l.charCodeAt(0)+65536*l.charCodeAt(1)+256*l.charCodeAt(2)+l.charCodeAt(3),"l"==c&&s>=2147483648&&(s-=4294967296)}o.push(s),u+=f,a+=1}return o}function d(t,n){for(var e="",r=0;r<n;r++)e+=t;return e}function v(t){if("ÿØ"!=t.slice(0,2))throw new Error("Given data isn't JPEG.");for(var n=2,e=["ÿØ"];;){if("ÿÚ"==t.slice(n,n+2)){e.push(t.slice(n));break}var r=n+h(">H",t.slice(n+2,n+4))[0]+2;if(e.push(t.slice(n,r)),(n=r)>=t.length)throw new Error("Wrong JPEG data.")}return e}void 0===f&&(f=function(t){var n,e,r,i,o,u,a="",s=0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");s<t.length;)r=c.indexOf(t.charAt(s++)),n=(15&(i=c.indexOf(t.charAt(s++))))<<4|(o=c.indexOf(t.charAt(s++)))>>2,e=(3&o)<<6|(u=c.indexOf(t.charAt(s++))),a+=String.fromCharCode(r<<2|i>>4),64!=o&&(a+=String.fromCharCode(n)),64!=u&&(a+=String.fromCharCode(e));return a});var p={Byte:1,Ascii:2,Short:3,Long:4,Rational:5,Undefined:7,SLong:9,SRational:10},m={Image:{11:{name:"ProcessingSoftware",type:"Ascii"},254:{name:"NewSubfileType",type:"Long"},255:{name:"SubfileType",type:"Short"},256:{name:"ImageWidth",type:"Long"},257:{name:"ImageLength",type:"Long"},258:{name:"BitsPerSample",type:"Short"},259:{name:"Compression",type:"Short"},262:{name:"PhotometricInterpretation",type:"Short"},263:{name:"Threshholding",type:"Short"},264:{name:"CellWidth",type:"Short"},265:{name:"CellLength",type:"Short"},266:{name:"FillOrder",type:"Short"},269:{name:"DocumentName",type:"Ascii"},270:{name:"ImageDescription",type:"Ascii"},271:{name:"Make",type:"Ascii"},272:{name:"Model",type:"Ascii"},273:{name:"StripOffsets",type:"Long"},274:{name:"Orientation",type:"Short"},277:{name:"SamplesPerPixel",type:"Short"},278:{name:"RowsPerStrip",type:"Long"},279:{name:"StripByteCounts",type:"Long"},282:{name:"XResolution",type:"Rational"},283:{name:"YResolution",type:"Rational"},284:{name:"PlanarConfiguration",type:"Short"},290:{name:"GrayResponseUnit",type:"Short"},291:{name:"GrayResponseCurve",type:"Short"},292:{name:"T4Options",type:"Long"},293:{name:"T6Options",type:"Long"},296:{name:"ResolutionUnit",type:"Short"},301:{name:"TransferFunction",type:"Short"},305:{name:"Software",type:"Ascii"},306:{name:"DateTime",type:"Ascii"},315:{name:"Artist",type:"Ascii"},316:{name:"HostComputer",type:"Ascii"},317:{name:"Predictor",type:"Short"},318:{name:"WhitePoint",type:"Rational"},319:{name:"PrimaryChromaticities",type:"Rational"},320:{name:"ColorMap",type:"Short"},321:{name:"HalftoneHints",type:"Short"},322:{name:"TileWidth",type:"Short"},323:{name:"TileLength",type:"Short"},324:{name:"TileOffsets",type:"Short"},325:{name:"TileByteCounts",type:"Short"},330:{name:"SubIFDs",type:"Long"},332:{name:"InkSet",type:"Short"},333:{name:"InkNames",type:"Ascii"},334:{name:"NumberOfInks",type:"Short"},336:{name:"DotRange",type:"Byte"},337:{name:"TargetPrinter",type:"Ascii"},338:{name:"ExtraSamples",type:"Short"},339:{name:"SampleFormat",type:"Short"},340:{name:"SMinSampleValue",type:"Short"},341:{name:"SMaxSampleValue",type:"Short"},342:{name:"TransferRange",type:"Short"},343:{name:"ClipPath",type:"Byte"},344:{name:"XClipPathUnits",type:"Long"},345:{name:"YClipPathUnits",type:"Long"},346:{name:"Indexed",type:"Short"},347:{name:"JPEGTables",type:"Undefined"},351:{name:"OPIProxy",type:"Short"},512:{name:"JPEGProc",type:"Long"},513:{name:"JPEGInterchangeFormat",type:"Long"},514:{name:"JPEGInterchangeFormatLength",type:"Long"},515:{name:"JPEGRestartInterval",type:"Short"},517:{name:"JPEGLosslessPredictors",type:"Short"},518:{name:"JPEGPointTransforms",type:"Short"},519:{name:"JPEGQTables",type:"Long"},520:{name:"JPEGDCTables",type:"Long"},521:{name:"JPEGACTables",type:"Long"},529:{name:"YCbCrCoefficients",type:"Rational"},530:{name:"YCbCrSubSampling",type:"Short"},531:{name:"YCbCrPositioning",type:"Short"},532:{name:"ReferenceBlackWhite",type:"Rational"},700:{name:"XMLPacket",type:"Byte"},18246:{name:"Rating",type:"Short"},18249:{name:"RatingPercent",type:"Short"},32781:{name:"ImageID",type:"Ascii"},33421:{name:"CFARepeatPatternDim",type:"Short"},33422:{name:"CFAPattern",type:"Byte"},33423:{name:"BatteryLevel",type:"Rational"},33432:{name:"Copyright",type:"Ascii"},33434:{name:"ExposureTime",type:"Rational"},34377:{name:"ImageResources",type:"Byte"},34665:{name:"ExifTag",type:"Long"},34675:{name:"InterColorProfile",type:"Undefined"},34853:{name:"GPSTag",type:"Long"},34857:{name:"Interlace",type:"Short"},34858:{name:"TimeZoneOffset",type:"Long"},34859:{name:"SelfTimerMode",type:"Short"},37387:{name:"FlashEnergy",type:"Rational"},37388:{name:"SpatialFrequencyResponse",type:"Undefined"},37389:{name:"Noise",type:"Undefined"},37390:{name:"FocalPlaneXResolution",type:"Rational"},37391:{name:"FocalPlaneYResolution",type:"Rational"},37392:{name:"FocalPlaneResolutionUnit",type:"Short"},37393:{name:"ImageNumber",type:"Long"},37394:{name:"SecurityClassification",type:"Ascii"},37395:{name:"ImageHistory",type:"Ascii"},37397:{name:"ExposureIndex",type:"Rational"},37398:{name:"TIFFEPStandardID",type:"Byte"},37399:{name:"SensingMethod",type:"Short"},40091:{name:"XPTitle",type:"Byte"},40092:{name:"XPComment",type:"Byte"},40093:{name:"XPAuthor",type:"Byte"},40094:{name:"XPKeywords",type:"Byte"},40095:{name:"XPSubject",type:"Byte"},50341:{name:"PrintImageMatching",type:"Undefined"},50706:{name:"DNGVersion",type:"Byte"},50707:{name:"DNGBackwardVersion",type:"Byte"},50708:{name:"UniqueCameraModel",type:"Ascii"},50709:{name:"LocalizedCameraModel",type:"Byte"},50710:{name:"CFAPlaneColor",type:"Byte"},50711:{name:"CFALayout",type:"Short"},50712:{name:"LinearizationTable",type:"Short"},50713:{name:"BlackLevelRepeatDim",type:"Short"},50714:{name:"BlackLevel",type:"Rational"},50715:{name:"BlackLevelDeltaH",type:"SRational"},50716:{name:"BlackLevelDeltaV",type:"SRational"},50717:{name:"WhiteLevel",type:"Short"},50718:{name:"DefaultScale",type:"Rational"},50719:{name:"DefaultCropOrigin",type:"Short"},50720:{name:"DefaultCropSize",type:"Short"},50721:{name:"ColorMatrix1",type:"SRational"},50722:{name:"ColorMatrix2",type:"SRational"},50723:{name:"CameraCalibration1",type:"SRational"},50724:{name:"CameraCalibration2",type:"SRational"},50725:{name:"ReductionMatrix1",type:"SRational"},50726:{name:"ReductionMatrix2",type:"SRational"},50727:{name:"AnalogBalance",type:"Rational"},50728:{name:"AsShotNeutral",type:"Short"},50729:{name:"AsShotWhiteXY",type:"Rational"},50730:{name:"BaselineExposure",type:"SRational"},50731:{name:"BaselineNoise",type:"Rational"},50732:{name:"BaselineSharpness",type:"Rational"},50733:{name:"BayerGreenSplit",type:"Long"},50734:{name:"LinearResponseLimit",type:"Rational"},50735:{name:"CameraSerialNumber",type:"Ascii"},50736:{name:"LensInfo",type:"Rational"},50737:{name:"ChromaBlurRadius",type:"Rational"},50738:{name:"AntiAliasStrength",type:"Rational"},50739:{name:"ShadowScale",type:"SRational"},50740:{name:"DNGPrivateData",type:"Byte"},50741:{name:"MakerNoteSafety",type:"Short"},50778:{name:"CalibrationIlluminant1",type:"Short"},50779:{name:"CalibrationIlluminant2",type:"Short"},50780:{name:"BestQualityScale",type:"Rational"},50781:{name:"RawDataUniqueID",type:"Byte"},50827:{name:"OriginalRawFileName",type:"Byte"},50828:{name:"OriginalRawFileData",type:"Undefined"},50829:{name:"ActiveArea",type:"Short"},50830:{name:"MaskedAreas",type:"Short"},50831:{name:"AsShotICCProfile",type:"Undefined"},50832:{name:"AsShotPreProfileMatrix",type:"SRational"},50833:{name:"CurrentICCProfile",type:"Undefined"},50834:{name:"CurrentPreProfileMatrix",type:"SRational"},50879:{name:"ColorimetricReference",type:"Short"},50931:{name:"CameraCalibrationSignature",type:"Byte"},50932:{name:"ProfileCalibrationSignature",type:"Byte"},50934:{name:"AsShotProfileName",type:"Byte"},50935:{name:"NoiseReductionApplied",type:"Rational"},50936:{name:"ProfileName",type:"Byte"},50937:{name:"ProfileHueSatMapDims",type:"Long"},50938:{name:"ProfileHueSatMapData1",type:"Float"},50939:{name:"ProfileHueSatMapData2",type:"Float"},50940:{name:"ProfileToneCurve",type:"Float"},50941:{name:"ProfileEmbedPolicy",type:"Long"},50942:{name:"ProfileCopyright",type:"Byte"},50964:{name:"ForwardMatrix1",type:"SRational"},50965:{name:"ForwardMatrix2",type:"SRational"},50966:{name:"PreviewApplicationName",type:"Byte"},50967:{name:"PreviewApplicationVersion",type:"Byte"},50968:{name:"PreviewSettingsName",type:"Byte"},50969:{name:"PreviewSettingsDigest",type:"Byte"},50970:{name:"PreviewColorSpace",type:"Long"},50971:{name:"PreviewDateTime",type:"Ascii"},50972:{name:"RawImageDigest",type:"Undefined"},50973:{name:"OriginalRawFileDigest",type:"Undefined"},50974:{name:"SubTileBlockSize",type:"Long"},50975:{name:"RowInterleaveFactor",type:"Long"},50981:{name:"ProfileLookTableDims",type:"Long"},50982:{name:"ProfileLookTableData",type:"Float"},51008:{name:"OpcodeList1",type:"Undefined"},51009:{name:"OpcodeList2",type:"Undefined"},51022:{name:"OpcodeList3",type:"Undefined"}},Exif:{33434:{name:"ExposureTime",type:"Rational"},33437:{name:"FNumber",type:"Rational"},34850:{name:"ExposureProgram",type:"Short"},34852:{name:"SpectralSensitivity",type:"Ascii"},34855:{name:"ISOSpeedRatings",type:"Short"},34856:{name:"OECF",type:"Undefined"},34864:{name:"SensitivityType",type:"Short"},34865:{name:"StandardOutputSensitivity",type:"Long"},34866:{name:"RecommendedExposureIndex",type:"Long"},34867:{name:"ISOSpeed",type:"Long"},34868:{name:"ISOSpeedLatitudeyyy",type:"Long"},34869:{name:"ISOSpeedLatitudezzz",type:"Long"},36864:{name:"ExifVersion",type:"Undefined"},36867:{name:"DateTimeOriginal",type:"Ascii"},36868:{name:"DateTimeDigitized",type:"Ascii"},37121:{name:"ComponentsConfiguration",type:"Undefined"},37122:{name:"CompressedBitsPerPixel",type:"Rational"},37377:{name:"ShutterSpeedValue",type:"SRational"},37378:{name:"ApertureValue",type:"Rational"},37379:{name:"BrightnessValue",type:"SRational"},37380:{name:"ExposureBiasValue",type:"SRational"},37381:{name:"MaxApertureValue",type:"Rational"},37382:{name:"SubjectDistance",type:"Rational"},37383:{name:"MeteringMode",type:"Short"},37384:{name:"LightSource",type:"Short"},37385:{name:"Flash",type:"Short"},37386:{name:"FocalLength",type:"Rational"},37396:{name:"SubjectArea",type:"Short"},37500:{name:"MakerNote",type:"Undefined"},37510:{name:"UserComment",type:"Ascii"},37520:{name:"SubSecTime",type:"Ascii"},37521:{name:"SubSecTimeOriginal",type:"Ascii"},37522:{name:"SubSecTimeDigitized",type:"Ascii"},40960:{name:"FlashpixVersion",type:"Undefined"},40961:{name:"ColorSpace",type:"Short"},40962:{name:"PixelXDimension",type:"Long"},40963:{name:"PixelYDimension",type:"Long"},40964:{name:"RelatedSoundFile",type:"Ascii"},40965:{name:"InteroperabilityTag",type:"Long"},41483:{name:"FlashEnergy",type:"Rational"},41484:{name:"SpatialFrequencyResponse",type:"Undefined"},41486:{name:"FocalPlaneXResolution",type:"Rational"},41487:{name:"FocalPlaneYResolution",type:"Rational"},41488:{name:"FocalPlaneResolutionUnit",type:"Short"},41492:{name:"SubjectLocation",type:"Short"},41493:{name:"ExposureIndex",type:"Rational"},41495:{name:"SensingMethod",type:"Short"},41728:{name:"FileSource",type:"Undefined"},41729:{name:"SceneType",type:"Undefined"},41730:{name:"CFAPattern",type:"Undefined"},41985:{name:"CustomRendered",type:"Short"},41986:{name:"ExposureMode",type:"Short"},41987:{name:"WhiteBalance",type:"Short"},41988:{name:"DigitalZoomRatio",type:"Rational"},41989:{name:"FocalLengthIn35mmFilm",type:"Short"},41990:{name:"SceneCaptureType",type:"Short"},41991:{name:"GainControl",type:"Short"},41992:{name:"Contrast",type:"Short"},41993:{name:"Saturation",type:"Short"},41994:{name:"Sharpness",type:"Short"},41995:{name:"DeviceSettingDescription",type:"Undefined"},41996:{name:"SubjectDistanceRange",type:"Short"},42016:{name:"ImageUniqueID",type:"Ascii"},42032:{name:"CameraOwnerName",type:"Ascii"},42033:{name:"BodySerialNumber",type:"Ascii"},42034:{name:"LensSpecification",type:"Rational"},42035:{name:"LensMake",type:"Ascii"},42036:{name:"LensModel",type:"Ascii"},42037:{name:"LensSerialNumber",type:"Ascii"},42240:{name:"Gamma",type:"Rational"}},GPS:{0:{name:"GPSVersionID",type:"Byte"},1:{name:"GPSLatitudeRef",type:"Ascii"},2:{name:"GPSLatitude",type:"Rational"},3:{name:"GPSLongitudeRef",type:"Ascii"},4:{name:"GPSLongitude",type:"Rational"},5:{name:"GPSAltitudeRef",type:"Byte"},6:{name:"GPSAltitude",type:"Rational"},7:{name:"GPSTimeStamp",type:"Rational"},8:{name:"GPSSatellites",type:"Ascii"},9:{name:"GPSStatus",type:"Ascii"},10:{name:"GPSMeasureMode",type:"Ascii"},11:{name:"GPSDOP",type:"Rational"},12:{name:"GPSSpeedRef",type:"Ascii"},13:{name:"GPSSpeed",type:"Rational"},14:{name:"GPSTrackRef",type:"Ascii"},15:{name:"GPSTrack",type:"Rational"},16:{name:"GPSImgDirectionRef",type:"Ascii"},17:{name:"GPSImgDirection",type:"Rational"},18:{name:"GPSMapDatum",type:"Ascii"},19:{name:"GPSDestLatitudeRef",type:"Ascii"},20:{name:"GPSDestLatitude",type:"Rational"},21:{name:"GPSDestLongitudeRef",type:"Ascii"},22:{name:"GPSDestLongitude",type:"Rational"},23:{name:"GPSDestBearingRef",type:"Ascii"},24:{name:"GPSDestBearing",type:"Rational"},25:{name:"GPSDestDistanceRef",type:"Ascii"},26:{name:"GPSDestDistance",type:"Rational"},27:{name:"GPSProcessingMethod",type:"Undefined"},28:{name:"GPSAreaInformation",type:"Undefined"},29:{name:"GPSDateStamp",type:"Ascii"},30:{name:"GPSDifferential",type:"Short"},31:{name:"GPSHPositioningError",type:"Rational"}},Interop:{1:{name:"InteroperabilityIndex",type:"Ascii"}}};m["0th"]=m.Image,m["1st"]=m.Image,e.TAGS=m,e.ImageIFD={ProcessingSoftware:11,NewSubfileType:254,SubfileType:255,ImageWidth:256,ImageLength:257,BitsPerSample:258,Compression:259,PhotometricInterpretation:262,Threshholding:263,CellWidth:264,CellLength:265,FillOrder:266,DocumentName:269,ImageDescription:270,Make:271,Model:272,StripOffsets:273,Orientation:274,SamplesPerPixel:277,RowsPerStrip:278,StripByteCounts:279,XResolution:282,YResolution:283,PlanarConfiguration:284,GrayResponseUnit:290,GrayResponseCurve:291,T4Options:292,T6Options:293,ResolutionUnit:296,TransferFunction:301,Software:305,DateTime:306,Artist:315,HostComputer:316,Predictor:317,WhitePoint:318,PrimaryChromaticities:319,ColorMap:320,HalftoneHints:321,TileWidth:322,TileLength:323,TileOffsets:324,TileByteCounts:325,SubIFDs:330,InkSet:332,InkNames:333,NumberOfInks:334,DotRange:336,TargetPrinter:337,ExtraSamples:338,SampleFormat:339,SMinSampleValue:340,SMaxSampleValue:341,TransferRange:342,ClipPath:343,XClipPathUnits:344,YClipPathUnits:345,Indexed:346,JPEGTables:347,OPIProxy:351,JPEGProc:512,JPEGInterchangeFormat:513,JPEGInterchangeFormatLength:514,JPEGRestartInterval:515,JPEGLosslessPredictors:517,JPEGPointTransforms:518,JPEGQTables:519,JPEGDCTables:520,JPEGACTables:521,YCbCrCoefficients:529,YCbCrSubSampling:530,YCbCrPositioning:531,ReferenceBlackWhite:532,XMLPacket:700,Rating:18246,RatingPercent:18249,ImageID:32781,CFARepeatPatternDim:33421,CFAPattern:33422,BatteryLevel:33423,Copyright:33432,ExposureTime:33434,ImageResources:34377,ExifTag:34665,InterColorProfile:34675,GPSTag:34853,Interlace:34857,TimeZoneOffset:34858,SelfTimerMode:34859,FlashEnergy:37387,SpatialFrequencyResponse:37388,Noise:37389,FocalPlaneXResolution:37390,FocalPlaneYResolution:37391,FocalPlaneResolutionUnit:37392,ImageNumber:37393,SecurityClassification:37394,ImageHistory:37395,ExposureIndex:37397,TIFFEPStandardID:37398,SensingMethod:37399,XPTitle:40091,XPComment:40092,XPAuthor:40093,XPKeywords:40094,XPSubject:40095,PrintImageMatching:50341,DNGVersion:50706,DNGBackwardVersion:50707,UniqueCameraModel:50708,LocalizedCameraModel:50709,CFAPlaneColor:50710,CFALayout:50711,LinearizationTable:50712,BlackLevelRepeatDim:50713,BlackLevel:50714,BlackLevelDeltaH:50715,BlackLevelDeltaV:50716,WhiteLevel:50717,DefaultScale:50718,DefaultCropOrigin:50719,DefaultCropSize:50720,ColorMatrix1:50721,ColorMatrix2:50722,CameraCalibration1:50723,CameraCalibration2:50724,ReductionMatrix1:50725,ReductionMatrix2:50726,AnalogBalance:50727,AsShotNeutral:50728,AsShotWhiteXY:50729,BaselineExposure:50730,BaselineNoise:50731,BaselineSharpness:50732,BayerGreenSplit:50733,LinearResponseLimit:50734,CameraSerialNumber:50735,LensInfo:50736,ChromaBlurRadius:50737,AntiAliasStrength:50738,ShadowScale:50739,DNGPrivateData:50740,MakerNoteSafety:50741,CalibrationIlluminant1:50778,CalibrationIlluminant2:50779,BestQualityScale:50780,RawDataUniqueID:50781,OriginalRawFileName:50827,OriginalRawFileData:50828,ActiveArea:50829,MaskedAreas:50830,AsShotICCProfile:50831,AsShotPreProfileMatrix:50832,CurrentICCProfile:50833,CurrentPreProfileMatrix:50834,ColorimetricReference:50879,CameraCalibrationSignature:50931,ProfileCalibrationSignature:50932,AsShotProfileName:50934,NoiseReductionApplied:50935,ProfileName:50936,ProfileHueSatMapDims:50937,ProfileHueSatMapData1:50938,ProfileHueSatMapData2:50939,ProfileToneCurve:50940,ProfileEmbedPolicy:50941,ProfileCopyright:50942,ForwardMatrix1:50964,ForwardMatrix2:50965,PreviewApplicationName:50966,PreviewApplicationVersion:50967,PreviewSettingsName:50968,PreviewSettingsDigest:50969,PreviewColorSpace:50970,PreviewDateTime:50971,RawImageDigest:50972,OriginalRawFileDigest:50973,SubTileBlockSize:50974,RowInterleaveFactor:50975,ProfileLookTableDims:50981,ProfileLookTableData:50982,OpcodeList1:51008,OpcodeList2:51009,OpcodeList3:51022,NoiseProfile:51041},e.ExifIFD={ExposureTime:33434,FNumber:33437,ExposureProgram:34850,SpectralSensitivity:34852,ISOSpeedRatings:34855,OECF:34856,SensitivityType:34864,StandardOutputSensitivity:34865,RecommendedExposureIndex:34866,ISOSpeed:34867,ISOSpeedLatitudeyyy:34868,ISOSpeedLatitudezzz:34869,ExifVersion:36864,DateTimeOriginal:36867,DateTimeDigitized:36868,ComponentsConfiguration:37121,CompressedBitsPerPixel:37122,ShutterSpeedValue:37377,ApertureValue:37378,BrightnessValue:37379,ExposureBiasValue:37380,MaxApertureValue:37381,SubjectDistance:37382,MeteringMode:37383,LightSource:37384,Flash:37385,FocalLength:37386,SubjectArea:37396,MakerNote:37500,UserComment:37510,SubSecTime:37520,SubSecTimeOriginal:37521,SubSecTimeDigitized:37522,FlashpixVersion:40960,ColorSpace:40961,PixelXDimension:40962,PixelYDimension:40963,RelatedSoundFile:40964,InteroperabilityTag:40965,FlashEnergy:41483,SpatialFrequencyResponse:41484,FocalPlaneXResolution:41486,FocalPlaneYResolution:41487,FocalPlaneResolutionUnit:41488,SubjectLocation:41492,ExposureIndex:41493,SensingMethod:41495,FileSource:41728,SceneType:41729,CFAPattern:41730,CustomRendered:41985,ExposureMode:41986,WhiteBalance:41987,DigitalZoomRatio:41988,FocalLengthIn35mmFilm:41989,SceneCaptureType:41990,GainControl:41991,Contrast:41992,Saturation:41993,Sharpness:41994,DeviceSettingDescription:41995,SubjectDistanceRange:41996,ImageUniqueID:42016,CameraOwnerName:42032,BodySerialNumber:42033,LensSpecification:42034,LensMake:42035,LensModel:42036,LensSerialNumber:42037,Gamma:42240},e.GPSIFD={GPSVersionID:0,GPSLatitudeRef:1,GPSLatitude:2,GPSLongitudeRef:3,GPSLongitude:4,GPSAltitudeRef:5,GPSAltitude:6,GPSTimeStamp:7,GPSSatellites:8,GPSStatus:9,GPSMeasureMode:10,GPSDOP:11,GPSSpeedRef:12,GPSSpeed:13,GPSTrackRef:14,GPSTrack:15,GPSImgDirectionRef:16,GPSImgDirection:17,GPSMapDatum:18,GPSDestLatitudeRef:19,GPSDestLatitude:20,GPSDestLongitudeRef:21,GPSDestLongitude:22,GPSDestBearingRef:23,GPSDestBearing:24,GPSDestDistanceRef:25,GPSDestDistance:26,GPSProcessingMethod:27,GPSAreaInformation:28,GPSDateStamp:29,GPSDifferential:30,GPSHPositioningError:31},e.InteropIFD={InteroperabilityIndex:1},e.GPSHelper={degToDmsRational:function(t){var n=Math.abs(t),e=n%1*60,r=e%1*60;return[[Math.floor(n),1],[Math.floor(e),1],[Math.round(100*r),100]]},dmsRationalToDeg:function(t,n){return(t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600)*("S"===n||"W"===n?-1:1)}},t.exports&&(n=t.exports=e),n.piexif=e}()}));var z;!function(t){t.JPEG="image/jpeg",t.PNG="image/png"}(z||(z={}));class L{constructor(t,n){this.streamPaused=!1,this.recordedChunks=[],this.videoSize={width:0,height:0},this.pauseStream=()=>{this.streamPaused=!0,this.mediaRecorder.pause(),this.videoElement.pause()},this.device=t,this.idML5Detector=F.getInstance(this,t.isMobile),this.faceML5Detector=R.getInstance(this,t.isMobile)}setFaceDetection(t){this.faceDetection=t,this.idDetection=!t}setIdDetection(t){this.idDetection=t,this.faceDetection=!t}setCallbackChangeTitle(t){this.callbackChangeTitle=t}setCallbackStopAnimation(t){this.callbackStopAnimation=t}setCallbackVideoStarted(t){this.callbackVideoStarted=t}setCallbackErrors(t){this.callbackErrors=t}setCallbackAutoCapturing(t){this.callbackAutoCapturing=t}setCallbackRecordingReady(t){this.callbackRecordingReady=t}setCallbackTimeElapsed(t){this.callbackTimeElapsed=t}setVerificationFinished(t){this.verificationFinished=t}static getInstance(t,n){return L.instance||(L.instance=new L(t,n)),L.instance}autoCapturing(){this.callbackAutoCapturing()}timeElapsed(){this.callbackTimeElapsed()}verificationReady(){this.verificationFinished()}updateHtmlElements(t,n,e){this.videoElement=t,this.canvasElement=n,this.idML5Detector.updateHtmlElements(this.videoElement,this.canvasElement,e),this.faceML5Detector.updateHtmlElements(this.videoElement,this.canvasElement,e)}static orientationChange(){}startStream(t){this.stream&&this.stream.getTracks().forEach((t=>t.stop())),this.stream=t,"srcObject"in this.videoElement?this.videoElement.srcObject=t:this.videoElement.src=window.URL.createObjectURL(t),this.videoElement.addEventListener("loadedmetadata",(async()=>{this.videoElement.play().then((()=>{this.streamPaused=!1,this.updateCanvasSize(this.canvasElement),this.updateVideoSize(this.videoElement),this.callbackVideoStarted(),this.idDetection&&this.startIdDetection(),this.faceDetection&&this.startFaceDetection()}))}),!1)}async initStream(t){this.startStream(t),this.recordStream()}async resumeStream(){this.streamPaused=!1,this.mediaRecorder.resume(),await this.videoElement.play()}recordStream(){var t={mimeType:"video/webm;codecs=vp8",videoBitsPerSecond:15e5};MediaRecorder.isTypeSupported(t.mimeType)||(this.device.isIos||this.device.isSafari)&&(t.mimeType="video/mp4;codecs:h264"),this.recordedChunks=[],this.mediaRecorder=new MediaRecorder(this.stream,t),this.mediaRecorder.ondataavailable=t=>{this.recordedChunks.push(t.data)},this.mediaRecorder.onstop=async()=>{this.saveVideoRecording(this.recordedChunks,t.mimeType),this.recordedChunks=[]},this.mediaRecorder.start()}async saveVideoRecording(t,n){var e=new Blob(t,{type:n.split(";")[0]});this.callbackRecordingReady(e)}updateCanvasSize(t){this.videoSize={width:this.videoElement.videoWidth,height:this.videoElement.videoHeight},t.width=this.videoSize.width,t.height=this.videoSize.height}updateVideoSize(t){this.videoSize={width:this.videoElement.videoWidth,height:this.videoElement.videoHeight},t.width=this.videoSize.width,t.height=this.videoSize.height}dropStream(){this.streamStopped()||(this.stream.getTracks().forEach((t=>t.stop())),this.videoElement.srcObject=null),this.mediaRecorder&&"inactive"!=this.mediaRecorder.state&&this.mediaRecorder.stop()}streamStopped(){return!(this.stream&&this.stream.getTracks&&this.stream.getTracks().length>0)}takePhoto(){return new Promise((async t=>{const n=document.createElement("canvas");n.style.visibility="hidden",n.width=this.videoElement.videoWidth,n.height=this.videoElement.videoHeight,t([await this.getFrame(n)])}))}getFrame(t){return new Promise((n=>{t.getContext("2d").drawImage(this.videoElement,0,0,t.width,t.height),t.toBlob((t=>{if(t.type!==z.JPEG||this.device.isIos)n(t);else try{(async(t,n,e)=>{const r=await(t=>new Promise((n=>{const e=new FileReader;e.onloadend=()=>n(e.result),e.readAsDataURL(t)})))(t),i=I.load(r),o=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind)).map((t=>t.label)),u={width:e.width,height:e.height,usedCamera:n.label,camerasOnDevice:o},a={"0th":Object.assign(Object.assign({},i["0th"]),{[I.ImageIFD.Model]:u.usedCamera,[I.ImageIFD.ImageWidth]:u.width,[I.ImageIFD.ImageLength]:u.height}),Exif:Object.assign(Object.assign({},i.Exif),{[I.ExifIFD.UserComment]:JSON.stringify(u)}),GPS:Object.assign({},i.GPS),Interop:Object.assign({},i.Interop),"1st":Object.assign({},i["1st"]),thumbnail:i.thumbnail},s=I.dump(a),c=I.insert(s,r);return await fetch(c).then((t=>t.blob()))})(t,this.stream.getTracks()[0],this.videoSize).then((t=>n(t)))}catch(e){n(t),this.callbackErrors(e,!1)}}),z.PNG,1)}))}async startIdDetection(){this.streamPaused||this.idML5Detector.initDetector()}async startFaceDetection(){this.streamPaused||this.faceML5Detector.initDetector()}requestFacePose(){var t=class{static randomEnum(t){const n=Object.keys(t).map((t=>Number.parseInt(t))).filter((t=>!Number.isNaN(t)));return n[Math.floor(Math.random()*n.length)]}}.randomEnum(S);return this.callbackChangeTitle(t),t}changeFacePose(){this.callbackChangeTitle(null)}changeIDPose(t){this.callbackChangeTitle(t)}stopAnimation(){this.callbackStopAnimation()}}window.addEventListener("resize",L.orientationChange,!1),window.addEventListener("orientationchange",L.orientationChange,!1);const B=class{constructor(t){e(this,t),this.eventVideoStarted=r(this,"videoStarted",7),this.eventCloseCamera=r(this,"closeCamera",7),this.errorCameraEvent=r(this,"errorCamera",7),this.eventTakePhoto=r(this,"takePhoto",7),this.eventRecordingSelfieReady=r(this,"recordingSelfieCapture",7),this.eventRecordingIdReady=r(this,"recordingIdCapture",7),this.eventTimeElapsed=r(this,"timeElapsed",7),this.eventChangeTitle=r(this,"changeTitle",7),this.eventStopAnimation=r(this,"stopAnimation",7),this.verificationFinished=r(this,"verificationFinished",7),this.callbackErrors=(t,n)=>{n?(this.errorCameraEvent.emit(t),this.eventCloseCamera.emit()):this.errorCameraEvent.emit(t)},this.callbackAutoCapturing=()=>{this.eventTakePhoto.emit()},this.callbackSelfieRecordingReady=t=>{this.eventRecordingSelfieReady.emit(t)},this.callbackIdRecordingReady=t=>{this.eventRecordingIdReady.emit(t)},this.callbackTimeElapsed=()=>{this.eventTimeElapsed.emit()},this.callbackChangeTitle=t=>{this.eventChangeTitle.emit(t)},this.callbackStopAnimation=()=>{this.eventStopAnimation.emit()},this.callbackVideoStarted=()=>{this.eventVideoStarted.emit(this.component.getBoundingClientRect())},this.callbackVerificationFinished=()=>{this.verificationFinished.emit()},this.modelPath=void 0,this.device=void 0,this.probabilityThreshold=void 0,this.captureMode=void 0}componentDidLoad(){this.startStream()}render(){let t="cameraVideo",n="cameraCanvas";return this.device.isWin&&(t="cameraVideoSelfieDesk",n="cameraCanvasSelfieDesk"),"selfie"==this.captureMode&&(t="cameraVideoSelfie",n="cameraCanvasSelfie"),i("div",{class:"camera"},i("video",{id:"video",loop:!0,autoplay:!0,playsinline:!0,muted:!0,class:t,ref:t=>this.cameraVideo=t}),i("canvas",{id:"output",class:n,ref:t=>this.cameraCanvas=t}))}startStream(){L.instance||L.getInstance(this.device,this.modelPath);const t=L.getInstance();t.updateHtmlElements(this.cameraVideo,this.cameraCanvas,this.component),"selfie"==this.captureMode?(t.setFaceDetection(!0),t.setCallbackRecordingReady(this.callbackSelfieRecordingReady)):(t.setIdDetection(!0),t.setCallbackRecordingReady(this.callbackIdRecordingReady)),t.setCallbackErrors(this.callbackErrors),t.setCallbackAutoCapturing(this.callbackAutoCapturing),t.setCallbackChangeTitle(this.callbackChangeTitle),t.setCallbackStopAnimation(this.callbackStopAnimation),t.setCallbackVideoStarted(this.callbackVideoStarted),t.setCallbackTimeElapsed(this.callbackTimeElapsed),t.setVerificationFinished(this.callbackVerificationFinished)}get component(){return o(this)}};B.style=".camera{width:100%;height:100%;color:white;display:flex;align-items:center;justify-content:center;position:relative}.cameraCanvas,.cameraCanvasSelfie,.cameraCanvasSelfieDesk{z-index:3;max-width:100%;max-height:100%;border-radius:10px}.cameraCanvasSelfie,.cameraCanvasSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraVideo,.cameraVideoSelfie,.cameraVideoSelfieDesk{z-index:2;position:absolute;max-width:100%;max-height:100%;border-radius:10px}.cameraVideoSelfie,.cameraVideoSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraMobile{position:fixed;top:0;left:0;background:black}";const P=class{constructor(t){e(this,t),this.eventCaptureErrorDone=r(this,"captureErrorDone",7),this.type=void 0}componentWillRender(){"ID"==this.type&&(this.imagePath="https://ekyc.blob.core.windows.net/$web/capture-error_idError.png",this.description=b.Error),"LIVENESS"==this.type&&(this.imagePath="https://ekyc.blob.core.windows.net/$web/capture-error_selfieError.png",this.description=g.Error)}buttonClick(){this.eventCaptureErrorDone.emit()}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",{class:"buletin-container"},i("img",{class:"w-45",src:this.imagePath})),i("div",null,i("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.description)),i("div",{class:"pos-relative"},i("div",{class:"btn-buletin"},i("button",{class:"main-button",onClick:()=>this.buttonClick()},b.Button),i("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText)))))}};P.style="";class U{static init(t){this.cameraModule=t}static flowStarted(){this.cameraModule.dispatchEvent(new CustomEvent("ect-started",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowCompleted(){sessionStorage.removeItem(m.RequestIdKey),sessionStorage.removeItem(m.FlowStatusKey),sessionStorage.removeItem(m.TokenKey),this.cameraModule.dispatchEvent(new CustomEvent("ect-completed",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowError(t){this.cameraModule.dispatchEvent(new CustomEvent("ect-error",{detail:{error:t},bubbles:!0,cancelable:!0,composed:!0}))}static tokenExpired(){this.cameraModule.dispatchEvent(new CustomEvent("ect-session-expired",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}}const $=class{constructor(t){e(this,t)}componentDidLoad(){U.init(window),U.flowCompleted()}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("h1",{class:"text-center"},p.Title),i("p",{class:"main-text font-size-18 mt-8 text-center"},p.Description)),i("div",{class:"buletin-container"},i("div",{class:"container-coin"},i("div",{class:"coin-scale"},i("div",{class:"coin-flip"},i("img",{class:"w-40 coin",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iODQiIHZpZXdCb3g9IjAgMCA4MyA4NCIgZmlsbD0ibm9uZSIg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WiIgZmlsbD0iIzVEQzFBQyIvPg0KPC9zdmc+DQo="}))))),i("div",null,i("p",{class:"font-weight-900 font-size-3 color-black-2 text-center mt-20"},p.Message),i("p",null,x.requestId)),i("div",{class:"btn-buletin"},i("p",{class:"main-text font-size-18 text-center mb-0"},p.FooterText))))}};$.style="h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";const V=class{constructor(t){e(this,t),this.message=void 0}componentDidLoad(){U.init(window),U.flowError(this.message)}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.message))))}};V.style="";const W=class{constructor(t){e(this,t),this.eventHowToInfoDone=r(this,"howToInfoDone",7),this.idSide=void 0,this.topTitle=void 0,this.subTitle=void 0,this.descriptionR1=void 0,this.descriptionR2=void 0,this.descriptionR3=void 0,this.imagePath=void 0,this.buttonText=void 0}buttonClick(){this.eventHowToInfoDone.emit()}componentWillLoad(){this.subTitle="",x.flowStatus==c.ID&&(this.topTitle=l.IdTitile,this.descriptionR1=l.IdDescriptionR1,this.descriptionR2=l.IdDescriptionR2,this.descriptionR3=l.IdDescriptionR3,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_id.png",this.buttonText=l.IdButton,"front"==this.idSide&&(this.subTitle=l.IdSubTitileFace),"back"==this.idSide&&(this.subTitle=l.IdSubTitileBack)),x.flowStatus==c.LIVENESS&&(this.topTitle=l.SelfieTitile,this.descriptionR1=l.SelfieDescriptionR1,this.descriptionR2=l.SelfieDescriptionR2,this.descriptionR3="",this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_selfie.png",this.buttonText=l.SelfieButton)}render(){let t=x.flowStatus==c.ID?i("ul",{class:"main-text font-size-2 pl-2-5"},i("li",null,this.descriptionR1),i("li",null,this.descriptionR2),i("li",null,i("b",null,this.descriptionR3))):i("ul",{class:"main-text font-size-2 pl-2-5"},i("li",null,this.descriptionR1),i("li",null,this.descriptionR2)),n=""!=this.subTitle?i("p",null,this.subTitle):null;return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("h1",null,this.topTitle),n,i("div",{class:"d-flex space-between align-center"},t)),i("div",{class:"div-ci"},i("img",{src:this.imagePath})),i("div",{class:"pos-relative"},i("div",{class:"btn-buletin"},i("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),i("p",{class:"main-text font-size-18 text-right mb-0"},l.FooterText)))))}};W.style="";class G{async GetCameras(t){var n=[];const e=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind));for(const r of e){const e=this.GetConstraints(r.deviceId,t),i=await navigator.mediaDevices.getUserMedia(e);i.getVideoTracks().forEach((e=>{if(t.isFirefox){const t=e.getSettings();let i=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";i="e"===i?"environment":i,n.push({deviceId:r.deviceId,name:r.label,height:t.height,width:t.width,frameRate:Number(t.frameRate.max),torch:!1,recommended:!1,facingMode:i})}else{const t=e.getCapabilities();let i=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";i="e"===i?"environment":i,n.push({deviceId:r.deviceId,name:r.label,height:t.height.max,width:t.width.max,frameRate:Number(t.frameRate.max),torch:t.torch,recommended:!1,facingMode:i})}})),i.getTracks().forEach((t=>{t.stop()}))}if(n.length>0){var r=(n=n.sort(((t,n)=>n.frameRate-t.frameRate))).find((t=>-1!=t.name.indexOf("0,")&&"environment"===t.facingMode));if(r)n[n.indexOf(r)].recommended=!0;else{var i=n.find((t=>"environment"===t.facingMode));i&&(n[n.indexOf(i)].recommended=!0)}}return n}GetConstraints(t,n,e=!1){let r={audio:!1,video:{frameRate:30}};return t&&(r.video.deviceId={exact:t}),n.isWin?r.video.width={ideal:1280}:e?(r.video.facingMode="user",r.video.width={ideal:1280},r.video.height={ideal:720}):(r.video.facingMode="environment",r.video.width={ideal:1280},r.video.aspectRatio=1),r}GetRecommendedCamera(t){if(t&&t.length>0){var n=t.find((t=>t.recommended));if(n)return n}return null}}const q=class{constructor(t){e(this,t),this.eventPhotoCapture=r(this,"photoIdBackCapture",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.device=void 0,this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new G}eventChangeTitle(t){this.titleMesage=b.IDPoseMapping[t.detail]}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}eventStopAnimation(){}async componentWillLoad(){U.init(this.component),this.titleMesage=b.TitleBack,navigator.mediaDevices||U.flowError("This browser does not support webRTC")}componentDidLoad(){this.openCamera()}async openCamera(){let t=await this.cameras.GetCameras(this.device);var n=this.cameras.GetRecommendedCamera(t),e=this.cameras.GetConstraints(null==n?void 0:n.deviceId,this.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(e).then((t=>{L.getInstance().initStream(t)})).catch((t=>{this.closeCamera(),U.flowError(t)}))}),100)}closeCamera(){L.instance&&L.getInstance().dropStream()}disconnectedCallback(){this.closeCamera(),L.instance=null,F.instance=null,R.instance=null}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=b.Loading,this.closeCamera())}takePhoto(){this.captureTaken||(this.captureTaken=!0,this.titleMesage=b.Loading,L.getInstance().takePhoto().then((t=>{this.photoIsReady(t[0])})))}render(){let t,n,e;return this.verified&&(t=i("div",{class:"pos-relative"},i("div",{class:"dot-effect"},i("div",{class:"snippet","data-title":".dot-shuttle"},i("div",{class:"stage filter-contrast"},i("div",{class:"dot-shuttle"})))))),this.videoStarted&&(n={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},e={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"}),i("div",{class:"container bg-black"},i("div",{class:"row ctheight-100"},i("div",null,i("h1",{class:"color-white"},this.titleMesage)),i("div",{hidden:this.verified,class:"chenar-buletin pos-relative"},i("div",{style:n},i("div",{style:e},i("camera-comp",{device:this.device,"capture-mode":"id"})))),t,i("div",{class:"pos-relative"},i("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText))))}get component(){return o(this)}};q.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const H=class{constructor(t){e(this,t),this.eventPhotoCapture=r(this,"photoIdCapture",7),this.delay=t=>new Promise((n=>setTimeout(n,t))),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.device=void 0,this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new G,this.showDemo=!0}async eventChangeTitle(t){this.showDemo=!0,this.titleMesage=b.IDPoseMapping[t.detail],this.demoVideo.src=b.IDPoseDemoMapping[D.Tilted],this.demoVideo.play(),await this.delay(5100),this.showDemo=!1}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}eventStopAnimation(){}async componentWillLoad(){U.init(this.component),this.titleMesage=b.Title,navigator.mediaDevices||U.flowError("This browser does not support webRTC")}async componentDidLoad(){this.demoVideo.src=b.IDPoseDemoMapping[D.Straight],this.demoVideo.play(),await this.delay(5100),this.showDemo=!1,this.openCamera()}async openCamera(){let t=await this.cameras.GetCameras(this.device);var n=this.cameras.GetRecommendedCamera(t),e=this.cameras.GetConstraints(null==n?void 0:n.deviceId,this.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(e).then((t=>{L.getInstance().initStream(t)})).catch((t=>{this.closeCamera(),U.flowError(t)}))}),100)}closeCamera(){L.instance&&L.getInstance().dropStream()}disconnectedCallback(){this.closeCamera(),L.instance=null,F.instance=null,R.instance=null}takePhoto(){this.captureTaken||(this.captureTaken=!0,L.getInstance().takePhoto().then((t=>{this.photoIsReady(t[0])})))}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=b.Loading,this.closeCamera(),this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,n;return this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},n={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"}),i("div",{class:"container bg-black"},i("div",{class:"row ctheight-100"},i("div",null,i("video",{id:"howtoFront",class:"cameraVideoDemo",playsinline:!0,hidden:0==this.showDemo,ref:t=>this.demoVideo=t},i("source",{type:"video/mp4"}))),i("div",{hidden:this.verified},i("div",{class:"chenar-buletin pos-relative",hidden:this.showDemo},i("div",{style:t},i("div",{style:n},i("camera-comp",{device:this.device,"capture-mode":"id"})))),i("div",{class:"title"},i("h1",{class:"color-white"},this.titleMesage)),i("div",{class:"pos-relative"},i("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText)))))}get component(){return o(this)}};H.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}.cameraVideoDemo{z-index:1;max-width:100%;max-height:100%;border-radius:10px}.title{z-index:0;margin-top:3vh;margin-bottom:3vh;position:absolute;bottom:10vh}";const Y=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.device=void 0,this.showTimeout=void 0,this.showInvalid=void 0,this.showHowTo=void 0,this.front=void 0,this.flow={done:!1,verificationFinished:!1,photoFile:null,photoFileName:"",photoUploadType:"",recordingFile:null,recordingFileName:"",recordingUploadType:""},this.apiCall=new A}componentWillLoad(){this.captureRetryCount=0,this.showHowTo=!0,this.flow.photoFileName="idImage.png",this.flow.recordingFileName="idVideo.",this.flow.photoUploadType="IdFront",this.flow.recordingUploadType="IdFrontVideo",this.front=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.flow.photoFileName="idImage.png",this.flow.recordingFileName="idVideo.",this.flow.photoUploadType="IdFront",this.flow.recordingUploadType="IdFrontVideo",this.front=!0,this.showInvalid=!1)}async captureIdImage(t){let n=t.detail;try{this.flow.photoFile=new File([n],this.flow.photoFileName,{type:"image/png"}),await this.runFlow()}catch(t){this.apiErrorEvent.emit(t)}}async captureIdBackImage(t){let n=t.detail;try{this.flow.photoFile=new File([n],this.flow.photoFileName,{type:"image/png"}),await this.runFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedIdRecording(t){let n=t.detail,e=n.type.split(";")[0],r=e.split("/")[1];try{this.flow.recordingFile=new File([n],this.flow.recordingFileName+r,{type:e}),await this.runFlow()}catch(t){this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.flow.verificationFinished=!0,this.flow.done&&(x.flowStatus=c.LIVENESS)}async runFlow(){if(null!=this.flow.photoFile&&null!=this.flow.recordingFile&&!this.flow.done)return!1===await this.apiCall.UploadFileForRequestB64(x.requestId,this.flow.photoUploadType,this.flow.photoFile)?(this.flow.done=!1,this.flow.photoFile=null,this.flow.recordingFile=null,this.switchCamera(),void(this.showInvalid=!0)):void(!0===await this.apiCall.UploadFileForRequestB64(x.requestId,this.flow.recordingUploadType,this.flow.recordingFile)?this.front?(this.flow.photoFileName="idBackImage.png",this.flow.recordingFileName="idBackVideo.",this.flow.photoUploadType="IdBack",this.flow.recordingUploadType="IdBackVideo",this.front=!1,this.showHowTo=!0):(this.flow.done=!0,this.flow.verificationFinished&&(x.flowStatus=c.LIVENESS)):(this.flow.photoFile=null,this.flow.recordingFile=null,this.showInvalid=!0))}switchCamera(){if(2==this.captureRetryCount){let t=x.cameraIds.indexOf(x.cameraId);x.cameraId=t===x.cameraIds.length-1?x.cameraIds[0]:x.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=i("capture-error",{type:"ID"}),n=i("id-capture",{id:"idFront",device:this.device}),e=i("id-back-capture",{id:"idBack",device:this.device}),r=i("how-to-info",{idSide:this.front?"front":"back"});return this.showHowTo?r:this.showInvalid||this.showTimeout?t:this.front?n:e}};Y.style="";const Q=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.device=void 0,this.showTimeout=void 0,this.showHowTo=void 0,this.idFlow={verificationFinished:!1,done:!1,photoFile:null,recordingFile:null},this.apiCall=new A,this.captureRetryCount=0,this.showHowTo=!0}captureErrorDone(){this.showTimeout=!1}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}async captureIdImage(t){let n=t.detail;try{this.idFlow.photoFile=new File([n],"idImage.png",{type:"image/png"}),await this.runIdFlow()}catch(t){this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.idFlow.verificationFinished=!0,this.idFlow.done&&(x.flowStatus=c.LIVENESS)}async capturedIdRecording(t){let n=t.detail,e=n.type.split(";")[0],r=e.split("/")[1];if(x.flowStatus==c.ID)try{this.idFlow.recordingFile=new File([n],"idVideo."+r,{type:e}),await this.runIdFlow()}catch(t){this.apiErrorEvent.emit(t)}}async runIdFlow(){if(null==this.idFlow.photoFile||null==this.idFlow.recordingFile||this.idFlow.done)return;if(!1===await this.apiCall.UploadFileForRequestB64(x.requestId,"IdFront",this.idFlow.photoFile))return this.idFlow.done=!1,this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.switchCamera(),void(this.showTimeout=!0);let t=await this.apiCall.UploadFileForRequestB64(x.requestId,"IdFrontVideo",this.idFlow.recordingFile);this.idFlow.done=t,!0===t&&this.idFlow.verificationFinished?x.flowStatus=c.LIVENESS:(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!0)}switchCamera(){if(2==this.captureRetryCount){let t=x.cameraIds.indexOf(x.cameraId);x.cameraId=t===x.cameraIds.length-1?x.cameraIds[0]:x.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=i("capture-error",{type:"ID"}),n=i("id-capture",{id:"idFront",device:this.device}),e=i("how-to-info",{idSide:"front"});return this.showHowTo?e:this.showTimeout?t:n}};Q.style="";const X=class{constructor(t){e(this,t),this.token=void 0,this.order_id=void 0,this.api_url=void 0,this.idSide="",this.errorMessage=void 0,k.getInstance(),this.device=(()=>{let t={isMobile:!1,isAndroid:!1,isLinux:!1,isMac:!1,isWin:!1,isChrome:!1,isFirefox:!1,isSafari:!1,isIos:!1};return t.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),t.isAndroid=/Android/i.test(navigator.userAgent),t.isIos=/iPhone|iPad|iPod/i.test(navigator.userAgent),t.isLinux=/linux/i.test(navigator.platform),t.isMac=/mac/i.test(navigator.platform),t.isWin=/win/i.test(navigator.platform),t.isChrome=/chrome/i.test(navigator.userAgent),t.isFirefox=/firefox/i.test(navigator.userAgent),t.isSafari=!t.isChrome&&/safari/i.test(navigator.userAgent),t.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),t.isAndroid=/Android/i.test(navigator.userAgent),t.isIos=/iPhone|iPad|iPod/i.test(navigator.userAgent),t.isIos||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&(t.isIos=!0,t.isMobile=!0),t})(),this.apiCall=new A}async onTokenChange(t,n){""==x.token?x.token!==t&&(x.token=t,sessionStorage.setItem(m.TokenKey,x.token),await this.initializeRequest()):t=x.token}async onOrderIdChange(t,n){""==x.requestId?x.requestId!==t&&(x.requestId=t,sessionStorage.setItem(m.RequestIdKey,x.requestId),await this.initializeRequest()):t=x.requestId}onApiUrlChange(t,n){""==x.apiBaseUrl?x.apiBaseUrl!==t&&(x.apiBaseUrl=t):t=x.apiBaseUrl}agreementAcceptanceEmitted(t){try{this.apiCall.GenerateAgreement(t.detail.agreementType)}catch(t){this.apiErrorEmitter(t)}}apiErrorEmitter(t){this.errorMessage=t.detail.message?t.detail.message:t.detail.stack?t.detail.stack:t,U.flowError(t),x.flowStatus=c.ERROREND}async componentWillLoad(){U.init(window),this.token&&(x.token=this.token),this.order_id&&(x.requestId=this.order_id,sessionStorage.setItem(m.RequestIdKey,x.requestId)),x.apiBaseUrl=this.api_url,await this.initializeRequest()}componentWillRender(){var t=sessionStorage.getItem(m.RequestIdKey);t&&(x.requestId=t);var n=sessionStorage.getItem(m.TokenKey);n&&(x.token=n),x.flowStatus=c[sessionStorage.getItem(m.FlowStatusKey)],x.flowStatus||(x.flowStatus=c.LANDING,sessionStorage.setItem(m.FlowStatusKey,c[x.flowStatus])),""==this.idSide&&(this.idSide=x.hasIdBack?"front":"")}async initializeRequest(){if(!x.initialised)try{""!=x.token&&""!=x.requestId&&(x.initialised=await this.apiCall.AddIdentificationRequest(x.requestId,JSON.stringify(this.device)))}catch(t){this.apiErrorEmitter(t)}}render(){let t=i("div",null);return x.flowStatus==c.LANDING&&(t=i("landing-validation",{device:this.device})),x.flowStatus==c.AGREEMENT&&(t=i("agreement-info",null)),x.flowStatus==c.PHONE&&(t=i("sms-code-validation",null)),x.flowStatus==c.CODE&&(t=i("sms-code-validation",null)),x.flowStatus==c.CODEERROR&&(t=i("sms-code-validation",null)),x.flowStatus!=c.ID||x.hasIdBack||(t=i("id-single-side",{id:"idFront",device:this.device})),x.flowStatus==c.ID&&x.hasIdBack&&(t=i("id-double-side",{id:"idFront",device:this.device})),x.flowStatus==c.LIVENESS&&(t=i("user-liveness",{device:this.device,id:"camera"})),x.flowStatus==c.COMPLETE&&(t=i("end-redirect",null)),x.flowStatus==c.ERROREND&&(t=i("error-end",{message:this.errorMessage})),i("div",null,t)}static get watchers(){return{token:["onTokenChange"],order_id:["onOrderIdChange"],api_url:["onApiUrlChange"]}}};X.style="@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#b67171}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-width:50%}.div-ci{text-align:center}.mt-10{margin-top:10vh}.pos-relative{position:relative}.btn-buletin{position:fixed;width:calc(100% - 5vh);bottom:5vh}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.dot-effect{position:fixed;bottom:13vh;width:calc(100% - 5vh);text-align:center;display:flex;align-items:center;justify-content:center}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.dot-shuttle{position:relative;left:-15px;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent;margin:-1px 0;opacity:1}.dot-shuttle::before{opacity:0.5}.dot-shuttle::after{opacity:0.5}.dot-shuttle::before,.dot-shuttle::after{content:'';display:inline-block;position:absolute;top:0;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent}.dot-shuttle::before{left:0;animation:dotShuttle 2s infinite ease-out}.dot-shuttle::after{left:0;animation:dotShuttle 2s infinite ease-out;animation-delay:1s}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@keyframes dotShuttle{0%,50%,100%{transform:translateX(0);opacity:1}25%{transform:translateX(-30px);opacity:0.5}75%{transform:translateX(30px);opacity:0.5}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}.dot-effect{max-width:490px}}";const J=class{constructor(t){e(this,t),this.device=void 0,this.warningText=void 0}async componentWillLoad(){await new Promise((t=>setTimeout(t,500))),await this.initRequest()}componentDidLoad(){U.init(window),U.flowStarted()}async initRequest(){this.warningText=x.hasIdBack?h.WarningMd:h.Warning}async startFlow(){x.initialised&&(x.flowStatus=x.agreementsValidation?c.AGREEMENT:x.phoneValidation?c.PHONE:c.ID)}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("h1",null,h.Title),i("div",{class:"d-flex space-between align-center"},i("p",{class:"main-text font-size-2"},h.Description),i("div",{class:"img-info"},i("div",{class:"i-effect"}),i("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDYgMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMC4zNDQ4NiAyNy44ODQ4VjguNzkzODZINS42Mzk2VjI3Ljg4NDhIMC4zNDQ4NlpNMy4wMDQ2NiA2LjMzMjkyQzIuMjE3NDkgNi4zMzI5MiAxLjU0MjE4IDYuMDcxOTEgMC45Nzg3MzggNS41NDk4O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NDI4IDEzLjkzMTFDMjAuNDE5NyAxMy45MzExIDIwLjk1NyAxMy4zNzIzIDIwLjk1NyAxMi43QzIwLjk1NyAxMi4wMjc2IDIwLjQxOTcgMTEuNDY4OSAxOS43NDI4IDExLjQ2ODlDMTkuMDY1OSAxMS40Njg5IDE4LjUyODYgMTIuMDI3NiAxOC41Mjg2IDEyLjdaTTE5LjM0NjggMTIuN0MxOS4zNDY4IDEyLjQ4MTggMTkuNTI0NCAxMi4zMDQxIDE5Ljc0MjggMTIuMzA0MUMxOS45NjEyIDEyLjMwNDEgMjAuMTM4NyAxMi40ODE4IDIwLjEzODcgMTIuN0MyMC4xMzg3IDEyLjkxODEgMTkuOTYxMiAxMy4wOTU4IDE5Ljc0MjggMTMuMDk1OEMxOS41MjQ0IDEzLjA5NTggMTkuMzQ2OCAxMi45MTgxIDE5LjM0NjggMTIuN1oiIGZpbGw9IiM2RTc0ODgiIHN0cm9rZT0iIzZFNzQ4OCIgc3Ryb2tlLXdpZHRoPSIwLjc0NDg5MSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE0XzE2MDEiPg0KPHJlY3Qgd2lkdGg9IjM5LjQ3OTIiIGhlaWdodD0iNDMuMjAzNyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMjYwMzc2IDAuNTEzNDI4KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K"})),i("h3",null,h.SmsInfo))),i("div",{class:"terms-container"},i("h3",{class:"font-size-2 mb-1"},this.warningText)),i("div",{class:"pos-relative"},i("div",{class:"btn-buletin"},i("button",{class:"main-button",disabled:!x.initialised,onClick:()=>this.startFlow()},h.Button),i("p",{class:"main-text font-size-18 text-right mb-0"},h.FooterText)))))}};J.style="";const K=class{constructor(t){e(this,t),this.eventPhotoCapture=r(this,"photoSelfieCapture",7),this.delay=t=>new Promise((n=>setTimeout(n,t))),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.device=void 0,this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.demoEnded=void 0,this.demoVideo=void 0,this.uploadingLink=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new G,this.demoEnded=!1,this.uploadingLink="https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4"}async eventChangeTitle(t){null==t.detail?this.titleMesage=g.FinalTitle:(this.demoEnded=!1,this.demoVideo.src=g.FacePoseDemoMapping[t.detail],this.demoVideo.play(),await this.delay(5100),this.demoEnded=!0,this.titleMesage=g.FacePoseMapping[t.detail])}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}eventStopAnimation(){}componentWillLoad(){U.init(this.component),this.titleMesage=g.Title,navigator.mediaDevices||U.flowError("This browser does not support webRTC")}async componentDidLoad(){this.demoVideo.src=g.FacePoseDemoMapping[S.Main],this.demoVideo.play(),await this.delay(6e3),this.demoEnded=!0,this.openCamera()}async openCamera(){const t=this.cameras.GetConstraints("",this.device,!0);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{L.getInstance().initStream(t)})).catch((t=>{this.closeCamera(),U.flowError(t)}))}),100)}closeCamera(){L.instance&&L.getInstance().dropStream()}disconnectedCallback(){this.closeCamera(),L.instance=null,R.instance=null}takePhoto(){this.captureTaken||(this.captureTaken=!0,L.getInstance().takePhoto().then((t=>{this.photoIsReady(t[0])})))}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=g.Loading,this.closeCamera(),this.demoEnded=!1,this.demoVideo.src=this.uploadingLink,this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t="chenar-buletin pos-relative";return this.videoStarted&&this.cameraSize.width<this.cameraSize.height&&(t+=" block"),i("div",{class:"container bg-black"},i("div",{class:"row ctheight-100"},i("video",{id:"howto",class:"cameraVideoDemo",playsinline:!0,hidden:this.demoEnded,ref:t=>this.demoVideo=t},i("source",{type:"video/mp4"})),i("div",{hidden:this.verified},i("div",{class:t,hidden:0==this.demoEnded},i("camera-comp",{device:this.device,"capture-mode":"selfie"})),i("div",{class:"titile"},i("h1",{class:"color-white"},this.titleMesage)),i("div",{class:"pos-relative"},i("p",{class:"main-text font-size-18 text-right mb-0"},g.FooterText)))))}get component(){return o(this)}};K.style=".block{width:60%;margin-left:20%}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;left:50%;top:50%;z-index:2;transform:scale(-1, 1)}.cameraVideoDemo{z-index:1;max-width:100%;max-height:100%;border-radius:10px}.title{z-index:0;margin-top:3vh;margin-bottom:3vh;position:absolute;bottom:10vh}";const Z=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.title=void 0,this.details=void 0,this.buttonText=void 0,this.phoneNumber=void 0,this.code=void 0,this.apiCall=new A}async doAction(){try{if(x.flowStatus==c.CODE||x.flowStatus==c.CODEERROR){var t=await this.apiCall.CheckOTPCode(x.requestId,this.code);x.flowStatus=!0===t?c.ID:c.CODEERROR}x.flowStatus==c.PHONE&&!0===await this.apiCall.SendOTPCode(x.requestId,this.phoneNumber)&&(x.flowStatus=c.CODE)}catch(t){this.apiErrorEvent.emit(t)}}componentWillRender(){x.flowStatus==c.PHONE&&(this.title=d.Title,this.details=d.Description,this.buttonText=d.Button),x.flowStatus!=c.CODE&&x.flowStatus!=c.CODEERROR||(this.title=v.Title,this.details=v.Description,this.buttonText=v.Button)}handleChangePhone(t){this.phoneNumber=(t.target?t.target.value:"").replace(/\D/g,""),this.phoneNumber.length>10&&(this.phoneNumber=this.phoneNumber.substring(0,10)),t.target.value=this.phoneNumber}handleChangeCode(t){this.code=t.target?t.target.value:"",this.code.length>4&&(this.code=this.code.substring(0,4)),t.target.value=this.code}render(){let t,n;return x.flowStatus==c.CODEERROR&&(n=i("p",{class:"main-text font-size-18 mt-15 color-red"},v.Error)),t=x.flowStatus==c.PHONE?i("div",{class:"input-container mb-15"},i("label",{class:"font-size-18 mb-1"},i("b",null,d.Label)),i("input",{type:"tel",id:"phoneInput",class:"main-input",onInput:t=>this.handleChangePhone(t),value:this.phoneNumber})):i("div",{class:"input-container mb-15"},i("input",{type:"text",id:"codeInput",class:"main-input",onInput:t=>this.handleChangeCode(t),value:this.code})),i("div",{class:"container"},i("div",{class:"row row-validare"},i("div",null,i("h1",null,this.title),null==n?i("p",{class:"main-text font-size-2 mt-15 mb-20"},this.details):n),t,i("div",{class:"btn-buletin"},i("button",{id:"action",class:"main-button",onClick:()=>this.doAction()},this.buttonText),i("p",{class:"main-text font-size-18 text-right mb-0"},d.FooterText))))}};Z.style="";const tt=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.selfieFlow={done:!1,verificationFinished:!1,photoFile:null,recordingFile:null},this.device=void 0,this.showError=void 0,this.showHowTo=void 0,this.apiCall=new A}componentWillLoad(){this.showHowTo=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showError=!0}captureErrorDone(){this.showError=!1}async captureSelfieImage(t){let n=t.detail;try{this.selfieFlow.photoFile=new File([n],"selfie.png",{type:"image/png"}),await this.runSelfieFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedSelfieRecording(t){let n=t.detail,e=n.type.split(";")[0],r=e.split("/")[1];try{this.selfieFlow.recordingFile=new File([n],"selfieVideo."+r,{type:e}),await this.runSelfieFlow()}catch(t){this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.selfieFlow.verificationFinished=!0,this.selfieFlow.done&&(x.flowStatus=c.COMPLETE)}async runSelfieFlow(){if(null==this.selfieFlow.photoFile||null==this.selfieFlow.recordingFile||this.selfieFlow.done)return;if(!1===await this.apiCall.UploadFileForRequestB64(x.requestId,"Selfie",this.selfieFlow.photoFile))return this.selfieFlow.done=!1,this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,void(this.showError=!0);let t=await this.apiCall.UploadFileForRequestB64(x.requestId,"SelfieVideo",this.selfieFlow.recordingFile);this.selfieFlow.done=t,1==t&&this.selfieFlow.verificationFinished?x.flowStatus=c.COMPLETE:(this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,this.showError=!0)}render(){let t=i("how-to-info",{idSide:""}),n=i("selfie-capture",{device:this.device,id:"camera"}),e=i("capture-error",{type:"LIVENESS"});return this.showHowTo?t:this.showError?e:n}};tt.style="";export{C as agreement_check,E as agreement_info,B as camera_comp,P as capture_error,$ as end_redirect,V as error_end,W as how_to_info,q as id_back_capture,H as id_capture,Y as id_double_side,Q as id_single_side,X as identification_component,J as landing_validation,K as selfie_capture,Z as sms_code_validation,tt as user_liveness}
1373
+ n.read=function(t,n,e,r,i){var o,u,a=8*i-r-1,s=(1<<a)-1,c=s>>1,f=-7,l=e?i-1:0,h=e?-1:1,d=t[n+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+t[n+l],l+=h,f-=8);for(u=o&(1<<-f)-1,o>>=-f,f+=r;f>0;u=256*u+t[n+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===s)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,r),o-=c}return(d?-1:1)*u*Math.pow(2,o-r)},n.write=function(t,n,e,r,i,o){var u,a,s,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,v=r?1:-1,p=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(s=Math.pow(2,-u))<1&&(u--,s*=2),(n+=u+l>=1?h/s:h*Math.pow(2,1-l))*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(n*s-1)*Math.pow(2,i),u+=l):(a=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[e+d]=255&a,d+=v,a/=256,i-=8);for(u=u<<i|a,c+=i;c>0;t[e+d]=255&u,d+=v,u/=256,c-=8);t[e+d-v]|=128*p}},function(t,n){n.byteLength=function(t){var n=s(t),e=n[1];return 3*(n[0]+e)/4-e},n.toByteArray=function(t){var n,e,o=s(t),u=o[0],a=o[1],c=new i(function(t,n,e){return 3*(n+e)/4-e}(0,u,a)),f=0,l=a>0?u-4:u;for(e=0;e<l;e+=4)n=r[t.charCodeAt(e)]<<18|r[t.charCodeAt(e+1)]<<12|r[t.charCodeAt(e+2)]<<6|r[t.charCodeAt(e+3)],c[f++]=n>>16&255,c[f++]=n>>8&255,c[f++]=255&n;return 2===a&&(n=r[t.charCodeAt(e)]<<2|r[t.charCodeAt(e+1)]>>4,c[f++]=255&n),1===a&&(n=r[t.charCodeAt(e)]<<10|r[t.charCodeAt(e+1)]<<4|r[t.charCodeAt(e+2)]>>2,c[f++]=n>>8&255,c[f++]=255&n),c},n.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],u=0,a=r-i;u<a;u+=16383)o.push(f(t,u,u+16383>a?a:u+16383));return 1===i?o.push(e[(n=t[r-1])>>2]+e[n<<4&63]+"=="):2===i&&o.push(e[(n=(t[r-2]<<8)+t[r-1])>>10]+e[n>>4&63]+e[n<<2&63]+"="),o.join("")};for(var e=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=o.length;u<a;++u)e[u]=o[u],r[o.charCodeAt(u)]=u;function s(t){var n=t.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=n),[e,e===n?0:4-e%4]}function c(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function f(t,n,e){for(var r=[],i=n;i<e;i+=3)r.push(c((t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2])));return r.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(149);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(149),i=e(150).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){t.exports=!e(148)&&!e(208)((function(){return 7!=Object.defineProperty(e(398)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(149);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(400),i=e(399),o=e(397),u=Object.defineProperty;n.f=e(148)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(401),i=e(396);t.exports=e(148)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(403);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(150),i=e(209),o=e(404),u=e(402),a=e(395),s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,m=t&s.B,b=t&s.W,g=d?i:i[n]||(i[n]={}),y=g.prototype,w=d?r:v?r[n]:(r[n]||{}).prototype;for(c in d&&(e=n),e)(f=!h&&w&&void 0!==w[c])&&a(g,c)||(l=f?w[c]:e[c],g[c]=d&&"function"!=typeof w[c]?e[c]:m&&f?o(l,r):b&&w[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((g.virtual||(g.virtual={}))[c]=l,t&s.R&&y&&!y[c]&&u(y,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(405);r(r.G,{global:e(150)})},function(t,n,e){e(406),t.exports=e(209).global},function(t){var n=function(t){var n,e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,e){return t[n]=e}}function c(t,n,e,r){var i=Object.create((n&&n.prototype instanceof m?n:m).prototype),o=new N(r||[]);return i._invoke=function(t,n,e){var r=l;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return D()}for(e.method=i,e.arg=o;;){var u=e.delegate;if(u){var a=E(u,e);if(a){if(a===p)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=d;var s=f(t,n,e);if("normal"===s.type){if(r=e.done?v:h,s.arg===p)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(r=v,e.method="throw",e.arg=s.arg)}}}(t,e,o),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",d="executing",v="completed",p={};function m(){}function b(){}function g(){}var y={};s(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==e&&r.call(x,o)&&(y=x);var O=g.prototype=m.prototype=Object.create(y);function A(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function C(t,n){var e;this._invoke=function(i,o){function u(){return new n((function(e,u){!function e(i,o,u,a){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,u,a)}),(function(t){e("throw",t,u,a)})):n.resolve(l).then((function(t){c.value=t,u(c)}),(function(t){return e("throw",t,u,a)}))}a(s.arg)}(i,o,e,u)}))}return e=e?e.then(u,u):u()}}function E(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,E(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,u=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=n,e.done=!0,e};return u.next=u}}return{next:D}}function D(){return{value:n,done:!0}}return b.prototype=g,s(O,"constructor",g),s(g,"constructor",b),b.displayName=s(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,a,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},A(C.prototype),s(C.prototype,u,(function(){return this})),t.AsyncIterator=C,t.async=function(n,e,r,i,o){void 0===o&&(o=Promise);var u=new C(c(n,e,r,i),o);return t.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},A(O),s(O,a,"Generator"),s(O,o,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var s=r.call(u,"catchLoc"),c=r.call(u,"finallyLoc");if(s&&c){if(this.prev<u.catchLoc)return i(u.catchLoc,!0);if(this.prev<u.finallyLoc)return i(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return i(u.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return i(u.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;j(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),p}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,n,e){for(var r=e(155),i=e(82),o=e(38),u=e(16),a=e(42),s=e(96),c=e(19),f=c("iterator"),l=c("toStringTag"),h=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(d),p=0;p<v.length;p++){var m,b=v[p],g=d[b],y=u[b],w=y&&y.prototype;if(w&&(w[f]||a(w,f,h),w[l]||a(w,l,b),s[b]=h,g))for(m in r)w[m]||o(w,m,r[m],!0)}},function(t,n,e){var r=e(8),i=e(152);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,e){var r=e(16),i=e(8),o=e(120),u=[].slice,a=/MSIE .\./.test(o),s=function(t){return function(n,e){var r=arguments.length>2,i=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,e)}};i(i.G+i.B+i.F*a,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(t,n,e){e(411),e(410),e(409),t.exports=e(24)},function(t,n,e){var r=e(8),i=e(24),o=e(16),u=e(104),a=e(216);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),e="function"==typeof t;return this.then(e?function(e){return a(n,t()).then((function(){return e}))}:t,e?function(e){return a(n,t()).then((function(){throw e}))}:t)}})},function(t,n,e){e(218),e(413),t.exports=e(24).Promise.finally},function(t,n,e){var r=e(8),i=e(210)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){e(415),t.exports=e(24).Object.entries},function(t,n,e){var r=e(8),i=e(210)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){e(417),t.exports=e(24).Object.values},function(t,n,e){var r=e(8),i=e(212),o=e(41),u=e(53),a=e(158);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=o(t),s=u.f,c=i(r),f={},l=0;c.length>l;)void 0!==(e=s(r,n=c[l++]))&&a(f,n,e);return f}})},function(t,n,e){e(419),t.exports=e(24).Object.getOwnPropertyDescriptors},function(t,n,e){e(239)("asyncIterator")},function(t,n,e){e(421),t.exports=e(174).f("asyncIterator")},function(t,n,e){e(97)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,e){e(423),t.exports=e(24).String.trimRight},function(t,n,e){e(97)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,e){e(425),t.exports=e(24).String.trimLeft},function(t,n,e){var r=e(8),i=e(211),o=e(120),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){e(427),t.exports=e(24).String.padEnd},function(t,n,e){var r=e(8),i=e(211),o=e(120),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){e(429),t.exports=e(24).String.padStart},function(t,n,e){var r=e(126),i=e(13),o=e(22),u=e(56),a=e(19)("isConcatSpreadable");t.exports=function t(n,e,s,c,f,l,h,d){for(var v,p,m=f,b=0,g=!!h&&u(h,d,3);b<c;){if(b in s){if(v=g?g(s[b],b,e):s[b],p=!1,i(v)&&(p=void 0!==(p=v[a])?!!p:r(v)),p&&l>0)m=t(n,e,v,o(v.length),m,l-1)-1;else{if(m>=9007199254740991)throw TypeError();n[m]=v}m++}b++}return m}},function(t,n,e){var r=e(8),i=e(431),o=e(34),u=e(22),a=e(55),s=e(224);r(r.P,"Array",{flatMap:function(t){var n,e,r=o(this);return a(t),n=u(r.length),e=s(r,0),i(e,r,r,n,0,1,t,arguments[1]),e}}),e(77)("flatMap")},function(t,n,e){e(432),t.exports=e(24).Array.flatMap},function(t,n,e){var r=e(8),i=e(128)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(77)("includes")},function(t,n,e){e(434),t.exports=e(24).Array.includes},function(t,n,e){var r=e(8),i=e(170);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){var r=e(26),i=e(53),o=e(78),u=e(43),a=e(8),s=e(85),c=e(14),f=e(13);a(a.S,"Reflect",{set:function t(n,e,a){var l,h,d=arguments.length<4?n:arguments[3],v=i.f(c(n),e);if(!v){if(f(h=o(n)))return t(h,e,a,d);v=s(0)}if(u(v,"value")){if(!1===v.writable||!f(d))return!1;if(l=i.f(d,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=a,r.f(d,e,l)}else r.f(d,e,s(0,a));return!0}return void 0!==v.set&&(v.set.call(d,a),!0)}})},function(t,n,e){var r=e(8),i=e(14),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,e){var r=e(8);r(r.S,"Reflect",{ownKeys:e(212)})},function(t,n,e){var r=e(8),i=e(14),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,e){var r=e(8);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(8),i=e(78),o=e(14);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,e){var r=e(53),i=e(8),o=e(14);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(o(t),n)}})},function(t,n,e){var r=e(53),i=e(78),o=e(43),u=e(8),a=e(13),s=e(14);u(u.S,"Reflect",{get:function t(n,e){var u,c,f=arguments.length<3?n:arguments[2];return s(n)===f?n[e]:(u=r.f(n,e))?o(u,"value")?u.value:void 0!==u.get?u.get.call(f):void 0:a(c=i(n))?t(c,e,f):void 0}})},function(t,n,e){var r=e(8),i=e(14),o=function(t){this._t=i(t),this._i=0;var n,e=this._k=[];for(n in t)e.push(n)};e(226)(o,"Object",(function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,e){var r=e(8),i=e(53).f,o=e(14);r(r.S,"Reflect",{deleteProperty:function(t,n){var e=i(o(t),n);return!(e&&!e.configurable)&&delete t[n]}})},function(t,n,e){var r=e(26),i=e(8),o=e(14),u=e(66);i(i.S+i.F*e(15)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,n,e){o(t),n=u(n,!0),o(e);try{return r.f(t,n,e),!0}catch(t){return!1}}})},function(t,n,e){var r=e(8),i=e(80),o=e(55),u=e(14),a=e(13),s=e(15),c=e(233),f=(e(16).Reflect||{}).construct,l=s((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!s((function(){f((function(){}))}));r(r.S+r.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var e=arguments.length<3?t:o(arguments[2]);if(h&&!l)return f(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(c.apply(t,r))}var s=e.prototype,d=i(a(s)?s:Object.prototype),v=Function.apply.call(t,d,n);return a(v)?v:d}})},function(t,n,e){var r=e(8),i=e(55),o=e(14),u=(e(16).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!e(15)((function(){u((function(){}))})),"Reflect",{apply:function(t,n,e){var r=i(t),s=o(e);return u?u(r,n,s):a.call(r,n,s)}})},function(t,n,e){e(60)("Float64",8,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Float32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Uint32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Int32",4,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Uint16",2,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Int16",2,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Uint8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}),!0)},function(t,n,e){e(60)("Uint8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){e(60)("Int8",1,(function(t){return function(n,e,r){return t(this,n,e,r)}}))},function(t,n,e){var r=e(8);r(r.G+r.W+r.F*!e(118).ABV,{DataView:e(151).DataView})},function(t,n,e){var r=e(8),i=e(118),o=e(151),u=e(14),a=e(81),s=e(22),c=e(13),f=e(16).ArrayBuffer,l=e(104),h=o.ArrayBuffer,d=o.DataView,v=i.ABV&&f.isView,p=h.prototype.slice,m=i.VIEW;r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*e(15)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==p&&void 0===n)return p.call(u(this),t);for(var e=u(this).byteLength,r=a(t,e),i=a(void 0===n?e:n,e),o=new(l(this,h))(s(i-r)),c=new d(this),f=new d(o),v=0;r<i;)f.setUint8(v++,c.getUint8(r++));return o}}),e(95)("ArrayBuffer")},function(t,n,e){var r=e(214),i=e(76);e(119)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){var r,i=e(16),o=e(51)(0),u=e(38),a=e(65),s=e(235),c=e(214),f=e(13),l=e(76),h=e(76),d=!i.ActiveXObject&&"ActiveXObject"in i,v=a.getWeak,p=Object.isExtensible,m=c.ufstore,b=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(f(t)){var n=v(t);return!0===n?m(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return c.def(l(this,"WeakMap"),t,n)}},y=t.exports=e(119)("WeakMap",b,g,c,!0,!0);h&&d&&(s((r=c.getConstructor(b,"WeakMap")).prototype,g),a.NEED=!0,o(["delete","has","get","set"],(function(t){var n=y.prototype,e=n[t];u(n,t,(function(n,i){if(f(n)&&!p(n)){this._f||(this._f=new r);var o=this._f[t](n,i);return"set"==t?this:o}return e.call(this,n,i)}))})))},function(t,n,e){var r=e(215),i=e(76);t.exports=e(119)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){var r=e(215),i=e(76);t.exports=e(119)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var n=r.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(i(this,"Map"),0===t?0:t,n)}},r,!0)},function(t){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r=e(16),i=e(152).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(62)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);e=function(){f.then(c)}}else e=function(){i.call(r,c)};else{var l=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),e=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){var r=e(161),i=e(14),o=e(104),u=e(153),a=e(22),s=e(123),c=e(154),f=e(15),l=Math.min,h=[].push,d=!f((function(){}));e(122)("split",2,(function(t,n,e,f){var v;return v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(i,t,n);for(var o,u,a,s=[],f=0,l=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(o=c.call(d,i))&&!((u=d.lastIndex)>f&&(s.push(i.slice(f,o.index)),o.length>1&&o.index<i.length&&h.apply(s,o.slice(1)),a=o[0].length,f=u,s.length>=l));)d.lastIndex===o.index&&d.lastIndex++;return f===i.length?!a&&d.test("")||s.push(""):s.push(i.slice(f)),s.length>l?s.slice(0,l):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var i=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,i,r):v.call(String(i),e,r)},function(t,n){var r=f(v,t,this,n,v!==e);if(r.done)return r.value;var c=i(t),h=String(this),p=o(c,RegExp),m=c.unicode,b=new p(d?c:"^(?:"+c.source+")",(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g")),g=void 0===n?4294967295:n>>>0;if(0===g)return[];if(0===h.length)return null===s(b,h)?[h]:[];for(var y=0,w=0,x=[];w<h.length;){b.lastIndex=d?w:0;var O,A=s(b,d?h:h.slice(w));if(null===A||(O=l(a(b.lastIndex+(d?0:w)),h.length))===y)w=u(h,w,m);else{if(x.push(h.slice(y,w)),x.length===g)return x;for(var C=1;C<=A.length-1;C++)if(x.push(A[C]),x.length===g)return x;w=y=O}}return x.push(h.slice(y)),x}]}))},function(t,n,e){var r=e(14),i=e(234),o=e(123);e(122)("search",1,(function(t,n,e,u){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=u(e,t,this);if(n.done)return n.value;var a=r(t),s=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var f=o(a,s);return i(a.lastIndex,c)||(a.lastIndex=c),null===f?-1:f.index}]}))},function(t,n,e){var r=e(14),i=e(34),o=e(22),u=e(54),a=e(153),s=e(123),c=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,v=function(t){return void 0===t?t:String(t)};e(122)("replace",2,(function(t,n,e,p){return[function(r,i){var o=t(this),u=null==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},function(t,n){var i=p(e,t,this,n);if(i.done)return i.value;var l=r(t),h=String(this),d="function"==typeof n;d||(n=String(n));var b=l.global;if(b){var g=l.unicode;l.lastIndex=0}for(var y=[];;){var w=s(l,h);if(null===w)break;if(y.push(w),!b)break;""===String(w[0])&&(l.lastIndex=a(h,o(l.lastIndex),g))}for(var x="",O=0,A=0;A<y.length;A++){w=y[A];for(var C=String(w[0]),E=c(f(u(w.index),h.length),0),M=[],j=1;j<w.length;j++)M.push(v(w[j]));var N=w.groups;if(d){var k=[C].concat(M,E,h);void 0!==N&&k.push(N);var D=String(n.apply(void 0,k))}else D=m(C,h,E,M,N,n);E>=O&&(x+=h.slice(O,E)+D,O=E+C.length)}return x+h.slice(O)}];function m(t,n,r,o,u,a){var s=r+t.length,c=o.length,f=d;return void 0!==u&&(u=i(u),f=h),e.call(a,f,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":a=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>c){var h=l(f/10);return 0===h?e:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):e}a=o[f-1]}return void 0===a?"":a}))}}))},function(t,n,e){var r=e(14),i=e(22),o=e(153),u=e(123);e(122)("match",1,(function(t,n,e,a){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=a(e,t,this);if(n.done)return n.value;var s=r(t),c=String(this);if(!s.global)return u(s,c);var f=s.unicode;s.lastIndex=0;for(var l,h=[],d=0;null!==(l=u(s,c));){var v=String(l[0]);h[d]=v,""===v&&(s.lastIndex=o(c,i(s.lastIndex),f)),d++}return 0===d?null:h}]}))},function(t,n,e){e(219);var r=e(14),i=e(124),o=e(27),u=/./.toString,a=function(t){e(38)(RegExp.prototype,"toString",t,!0)};e(15)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?a((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&a((function(){return u.call(this)}))},function(t,n,e){var r=e(16),i=e(168),o=e(26).f,u=e(79).f,a=e(161),s=e(124),c=r.RegExp,f=c,l=c.prototype,h=/a/g,d=/a/g,v=new c(h)!==h;if(e(27)&&(!v||e(15)((function(){return d[e(19)("match")]=!1,c(h)!=h||c(d)==d||"/a/i"!=c(h,"i")})))){c=function(t,n){var e=this instanceof c,r=a(t),o=void 0===n;return!e&&r&&t.constructor===c&&o?t:i(v?new f(r&&!o?t.source:t,n):f((r=t instanceof c)?t.source:t,r&&o?s.call(t):n),e?this:l,c)};for(var p=function(t){t in c||o(c,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})},m=u(f),b=0;m.length>b;)p(m[b++]);l.constructor=c,c.prototype=l,e(38)(r,"RegExp",c)}e(95)("RegExp")},function(t,n,e){e(95)("Array")},function(t,n,e){var r=e(8),i=e(51)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),r(r.P+r.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(77)(o)},function(t,n,e){var r=e(8),i=e(51)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(77)("find")},function(t,n,e){var r=e(8);r(r.P,"Array",{fill:e(156)}),e(77)("fill")},function(t,n,e){var r=e(8);r(r.P,"Array",{copyWithin:e(222)}),e(77)("copyWithin")},function(t,n,e){var r=e(8),i=e(41),o=e(54),u=e(22),a=[].lastIndexOf,s=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(s||!e(49)(a)),"Array",{lastIndexOf:function(t){if(s)return a.apply(this,arguments)||0;var n=i(this),e=u(n.length),r=e-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(8),i=e(128)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!e(49)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(223);r(r.P+r.F*!e(49)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,e){var r=e(8),i=e(223);r(r.P+r.F*!e(49)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,e){var r=e(8),i=e(51)(4);r(r.P+r.F*!e(49)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(51)(3);r(r.P+r.F*!e(49)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(51)(2);r(r.P+r.F*!e(49)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(51)(1);r(r.P+r.F*!e(49)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(13),i=e(126),o=e(19)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(8),i=e(51)(0),o=e(49)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,e){var r=e(8),i=e(55),o=e(34),u=e(15),a=[].sort,s=[1,2,3];r(r.P+r.F*(u((function(){s.sort(void 0)}))||!u((function(){s.sort(null)}))||!e(49)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},function(t,n,e){var r=e(8),i=e(171),o=e(62),u=e(81),a=e(22),s=[].slice;r(r.P+r.F*e(15)((function(){i&&s.call(i)})),"Array",{slice:function(t,n){var e=a(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return s.call(this,t,n);for(var i=u(t,e),c=u(n,e),f=a(c-i),l=new Array(f),h=0;h<f;h++)l[h]="String"==r?this.charAt(i+h):this[i+h];return l}})},function(t,n,e){var r=e(8),i=e(41),o=[].join;r(r.P+r.F*(e(107)!=Object||!e(49)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,e){var r=e(8),i=e(158);r(r.S+r.F*e(15)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)i(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){var r=e(56),i=e(8),o=e(34),u=e(225),a=e(159),s=e(22),c=e(158),f=e(157);i(i.S+i.F*!e(125)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,m=void 0!==p,b=0,g=f(h);if(m&&(p=r(p,v>2?arguments[2]:void 0,2)),null==g||d==Array&&a(g))for(e=new d(n=s(h.length));n>b;b++)c(e,b,m?p(h[b],b):h[b]);else for(l=g.call(h),e=new d;!(i=l.next()).done;b++)c(e,b,m?u(l,p,[i.value,b],!0):i.value);return e.length=b,e}})},function(t,n,e){var r=e(8);r(r.S,"Array",{isArray:e(126)})},function(t,n,e){var r=e(14),i=e(66);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,n,e){var r=e(19)("toPrimitive"),i=Date.prototype;r in i||e(42)(i,r,e(494))},function(t,n,e){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(38)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,e){var r=e(15),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:o},function(t,n,e){var r=e(8),i=e(497);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,e){var r=e(8),i=e(34),o=e(66);r(r.P+r.F*e(15)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(t,n,e){var r=e(8);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){e(37)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,e){e(37)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,e){e(37)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,e){e(37)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,e){e(37)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,e){e(37)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,e){e(37)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,e){e(37)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,e){e(37)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,e){e(37)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,e){e(37)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,e){e(37)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,e){e(37)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,e){var r=e(8),i=e(22),o=e(162),u="".startsWith;r(r.P+r.F*e(160)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){var r=e(8);r(r.P,"String",{repeat:e(167)})},function(t,n,e){var r=e(8),i=e(162);r(r.P+r.F*e(160)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(8),i=e(22),o=e(162),u="".endsWith;r(r.P+r.F*e(160)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),e=arguments.length>1?arguments[1]:void 0,r=i(n.length),a=void 0===e?r:Math.min(i(e),r),s=String(t);return u?u.call(n,s,a):n.slice(a-s.length,a)===s}})},function(t,n,e){var r=e(8),i=e(164)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,e){var r=e(164)(!0);e(163)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})}))},function(t,n,e){e(97)("trim",(function(t){return function(){return t(this,3)}}))},function(t,n,e){var r=e(8),i=e(41),o=e(22);r(r.S,"String",{raw:function(t){for(var n=i(t.raw),e=o(n.length),r=arguments.length,u=[],a=0;e>a;)u.push(String(n[a++])),a<r&&u.push(String(arguments[a]));return u.join("")}})},function(t,n,e){var r=e(8),i=e(81),o=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(8);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){var r=e(8),i=e(165),o=Math.exp;r(r.S,"Math",{tanh:function(t){var n=i(t=+t),e=i(-t);return n==1/0?1:e==1/0?-1:(n-e)/(o(t)+o(-t))}})},function(t,n,e){var r=e(8),i=e(165),o=Math.exp;r(r.S+r.F*e(15)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(8);r(r.S,"Math",{sign:e(166)})},function(t,n,e){var r=e(8);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(8);r(r.S,"Math",{log1p:e(227)})},function(t,n,e){var r=e(8);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(8),i=Math.imul;r(r.S+r.F*e(15)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var e=+t,r=+n,i=65535&e,o=65535&r;return 0|i*o+((65535&e>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(8),i=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,o=0,u=0,a=arguments.length,s=0;u<a;)s<(e=i(arguments[u++]))?(o=o*(r=s/e)*r+1,s=e):o+=e>0?(r=e/s)*r:e;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,n,e){var r=e(166),i=Math.pow,o=i(2,-52),u=i(2,-23),a=i(2,127)*(2-u),s=i(2,-126);t.exports=Math.fround||function(t){var n,e,i=Math.abs(t),c=r(t);return i<s?c*function(t){return t+1/o-1/o}(i/s/u)*s*u:(e=(n=(1+u/o)*i)-(n-i))>a||e!=e?c*(1/0):c*e}},function(t,n,e){var r=e(8);r(r.S,"Math",{fround:e(532)})},function(t,n,e){var r=e(8),i=e(165);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,e){var r=e(8),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,e){var r=e(8);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(8),i=e(166);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(8),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(8),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,e){var r=e(8),i=e(227),o=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,e){var r=e(8),i=e(231);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,e){var r=e(8),i=e(230);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,e){var r=e(8);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(8);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(8),i=e(228),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,e){var r=e(8);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(8);r(r.S,"Number",{isInteger:e(228)})},function(t,n,e){var r=e(8),i=e(16).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,e){var r=e(8);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(8),i=e(15),o=e(229),u=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){var r=e(8),i=e(54),o=e(229),u=e(167),a=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)c[e]=(r+=t*c[e])%1e7,r=s(r/1e7)},h=function(t){for(var n=6,e=0;--n>=0;)c[n]=s((e+=c[n])/t),e=e%t*1e7},d=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==c[t]){var e=String(c[t]);n=""===n?e:n+u.call("0",7-e.length)+e}return n},v=function(t,n,e){return 0===n?e:n%2==1?v(t,n-1,e*t):v(t*t,n/2,e)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(15)((function(){a.call({})}))),"Number",{toFixed:function(t){var n,e,r,a,s=o(this,f),c=i(t),p="",m="0";if(c<0||c>20)throw RangeError(f);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=(n=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n}(s*v(2,69,1))-69)<0?s*v(2,-n,1):s/v(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=c;r>=7;)l(1e7,0),r-=7;for(l(v(10,r,1),0),r=n-1;r>=23;)h(1<<23),r-=23;h(1<<r),l(1,1),h(2),m=d()}else l(0,e),l(1<<-n,0),m=d()+u.call("0",c);return c>0?p+((a=m.length)<=c?"0."+u.call("0",c-a)+m:m.slice(0,a-c)+"."+m.slice(a-c)):p+m}})},function(t,n,e){var r=e(16),i=e(43),o=e(62),u=e(168),a=e(66),s=e(15),c=e(79).f,f=e(53).f,l=e(26).f,h=e(97).trim,d=r.Number,v=d,p=d.prototype,m="Number"==o(e(80)(p)),b="trim"in String.prototype,g=function(t){var n=a(t,!1);if("string"==typeof n&&n.length>2){var e,r,i,o=(n=b?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+n}for(var u,s=n.slice(2),c=0,f=s.length;c<f;c++)if((u=s.charCodeAt(c))<48||u>i)return NaN;return parseInt(s,r)}}return+n};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof d&&(m?s((function(){p.valueOf.call(e)})):"Number"!=o(e))?u(new v(g(n)),e,d):g(n)};for(var y,w=e(27)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(v,y=w[x])&&!i(d,y)&&l(d,y,f(v,y));d.prototype=p,p.constructor=d,e(38)(r,"Number",d)}},function(t,n,e){var r=e(8),i=e(230);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,n,e){var r=e(8),i=e(231);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,n,e){var r=e(13),i=e(78),o=e(19)("hasInstance"),u=Function.prototype;o in u||e(26).f(u,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){var r=e(26).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||e(27)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,e){var r=e(8);r(r.P,"Function",{bind:e(233)})},function(t,n,e){var r=e(105),i={};i[e(19)("toStringTag")]="z",i+""!="[object z]"&&e(38)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(170).set})},function(t,n,e){var r=e(8);r(r.S,"Object",{is:e(234)})},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(235)})},function(t,n,e){var r=e(13);e(52)("isExtensible",(function(t){return function(n){return!!r(n)&&(!t||t(n))}}))},function(t,n,e){var r=e(13);e(52)("isSealed",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(13);e(52)("isFrozen",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(13),i=e(65).onFreeze;e(52)("preventExtensions",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(13),i=e(65).onFreeze;e(52)("seal",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(13),i=e(65).onFreeze;e(52)("freeze",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){e(52)("getOwnPropertyNames",(function(){return e(236).f}))},function(t,n,e){var r=e(34),i=e(82);e(52)("keys",(function(){return function(t){return i(r(t))}}))},function(t,n,e){var r=e(34),i=e(78);e(52)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,n,e){var r=e(41),i=e(53).f;e(52)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(r(t),n)}}))},function(t,n,e){var r=e(8);r(r.S+r.F*!e(27),"Object",{defineProperties:e(237)})},function(t,n,e){var r=e(8);r(r.S+r.F*!e(27),"Object",{defineProperty:e(26).f})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(80)})},function(t,n,e){var r=e(82),i=e(127),o=e(106);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){t.exports=e(129)("native-function-to-string",Function.toString)},function(t,n,e){var r=e(16),i=e(43),o=e(27),u=e(8),a=e(38),s=e(65).KEY,c=e(15),f=e(129),l=e(98),h=e(84),d=e(19),v=e(174),p=e(239),m=e(575),b=e(126),g=e(14),y=e(13),w=e(34),x=e(41),O=e(66),A=e(85),C=e(80),E=e(236),M=e(53),j=e(127),N=e(26),k=e(82),D=M.f,S=N.f,F=E.f,T=r.Symbol,_=r.JSON,R=_&&_.stringify,I=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,B=f("symbol-registry"),P=f("symbols"),U=f("op-symbols"),$=Object.prototype,V="function"==typeof T&&!!j.f,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,q=o&&c((function(){return 7!=C(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=D($,n);r&&delete $[n],S(t,n,e),r&&t!==$&&S($,n,r)}:S,H=function(t){var n=P[t]=C(T.prototype);return n._k=t,n},Y=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Q=function(t,n,e){return t===$&&Q(U,n,e),g(t),n=O(n,!0),g(e),i(P,n)?(e.enumerable?(i(t,I)&&t[I][n]&&(t[I][n]=!1),e=C(e,{enumerable:A(0,!1)})):(i(t,I)||S(t,I,A(1,{})),t[I][n]=!0),q(t,n,e)):S(t,n,e)},X=function(t,n){g(t);for(var e,r=m(n=x(n)),i=0,o=r.length;o>i;)Q(t,e=r[i++],n[e]);return t},J=function(t){var n=L.call(this,t=O(t,!0));return!(this===$&&i(P,t)&&!i(U,t))&&(!(n||!i(this,t)||!i(P,t)||i(this,I)&&this[I][t])||n)},K=function(t,n){if(t=x(t),n=O(n,!0),t!==$||!i(P,n)||i(U,n)){var e=D(t,n);return!e||!i(P,n)||i(t,I)&&t[I][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=F(x(t)),r=[],o=0;e.length>o;)i(P,n=e[o++])||n==I||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===$,r=F(e?U:x(t)),o=[],u=0;r.length>u;)!i(P,n=r[u++])||e&&!i($,n)||o.push(P[n]);return o};V||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===$&&n.call(U,e),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),q(this,t,A(1,e))};return o&&G&&q($,t,{configurable:!0,set:n}),H(t)}).prototype,"toString",(function(){return this._k})),M.f=K,N.f=Q,e(79).f=E.f=Z,e(106).f=J,j.f=tt,o&&!e(83)&&a($,"propertyIsEnumerable",J,!0),v.f=function(t){return H(d(t))}),u(u.G+u.W+u.F*!V,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var rt=k(d.store),it=0;rt.length>it;)p(rt[it++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=T(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var n in B)if(B[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?C(t):X(C(t),n)},defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=c((function(){j.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return j.f(w(t))}}),_&&u(u.S+u.F*(!V||c((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(y(n)||void 0!==t)&&!Y(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!Y(n))return n}),r[1]=n,R.apply(_,r)}}),T.prototype[z]||e(42)(T.prototype,z,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(577),e(574),e(573),e(572),e(571),e(570),e(569),e(568),e(567),e(566),e(565),e(564),e(563),e(562),e(561),e(560),e(559),e(558),e(557),e(556),e(555),e(554),e(553),e(552),e(551),e(550),e(549),e(548),e(547),e(546),e(545),e(544),e(543),e(542),e(541),e(540),e(539),e(538),e(537),e(536),e(535),e(534),e(533),e(531),e(530),e(529),e(528),e(527),e(526),e(525),e(524),e(523),e(522),e(521),e(520),e(519),e(518),e(517),e(516),e(515),e(514),e(513),e(512),e(511),e(510),e(509),e(508),e(507),e(506),e(505),e(504),e(503),e(502),e(501),e(500),e(499),e(498),e(496),e(495),e(493),e(492),e(491),e(490),e(489),e(488),e(487),e(485),e(484),e(483),e(482),e(481),e(480),e(479),e(478),e(477),e(476),e(475),e(474),e(473),e(155),e(472),e(220),e(471),e(219),e(470),e(469),e(468),e(467),e(218),e(464),e(463),e(462),e(461),e(460),e(459),e(458),e(457),e(456),e(455),e(454),e(453),e(452),e(451),e(450),e(449),e(448),e(447),e(446),e(445),e(444),e(443),e(442),e(441),e(440),e(439),e(438),e(437),e(436),t.exports=e(24)},function(t,n,e){e(578),e(435),e(433),e(430),e(428),e(426),e(424),e(422),e(420),e(418),e(416),e(414),e(412),e(408)},function(t,n,e){e(579);var r=function(t){return t&&t.__esModule?t:{default:t}}(e(407));r.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),r.default._babelPolyfill=!0},function(t,n,e){e(580),t.exports=e(248)},function(t,n){var e={},r={};function i(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function o(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function u(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function a(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+u(-t,6):t>9999?"+"+u(t,6):u(t,4)}(t.getUTCFullYear())+"-"+u(t.getUTCMonth()+1,2)+"-"+u(t.getUTCDate(),2)+(i?"T"+u(n,2)+":"+u(e,2)+":"+u(r,2)+"."+u(i,3)+"Z":r?"T"+u(n,2)+":"+u(e,2)+":"+u(r,2)+"Z":e||n?"T"+u(n,2)+":"+u(e,2)+"Z":"")}n.a=function(t){var n=new RegExp('["'+t+"\n\r]"),u=t.charCodeAt(0);function s(t,n){var i,o=[],a=t.length,s=0,c=0,f=a<=0,l=!1;function h(){if(f)return r;if(l)return l=!1,e;var n,i,o=s;if(34===t.charCodeAt(o)){for(;s++<a&&34!==t.charCodeAt(s)||34===t.charCodeAt(++s););return(n=s)>=a?f=!0:10===(i=t.charCodeAt(s++))?l=!0:13===i&&(l=!0,10===t.charCodeAt(s)&&++s),t.slice(o+1,n-1).replace(/""/g,'"')}for(;s<a;){if(10===(i=t.charCodeAt(n=s++)))l=!0;else if(13===i)l=!0,10===t.charCodeAt(s)&&++s;else if(i!==u)continue;return t.slice(o,n)}return f=!0,t.slice(o,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(i=h())!==r;){for(var d=[];i!==e&&i!==r;)d.push(i),i=h();n&&null==(d=n(d,c++))||o.push(d)}return o}function c(n,e){return n.map((function(n){return e.map((function(t){return l(n[t])})).join(t)}))}function f(n){return n.map(l).join(t)}function l(t){return null==t?"":t instanceof Date?a(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,r,o=s(t,(function(t,o){if(e)return e(t,o-1);r=t,e=n?function(t,n){var e=i(t);return function(r,i){return n(e(r),i,t)}}(t,n):i(t)}));return o.columns=r||[],o},parseRows:s,format:function(n,e){return null==e&&(e=o(n)),[e.map(l).join(t)].concat(c(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=o(t)),c(t,n).join("\n")},formatRows:function(t){return t.map(f).join("\n")},formatRow:f,formatValue:l}}}]).default})));class k{constructor(){this.init()}static getInstance(){return k.instance||(k.instance=new k),k.instance}async init(){return new Promise((async t=>{this.classifier=await N.imageClassifier("https://ekyc.blob.core.windows.net/$web/model.json"),this.faceapi=await N.faceApi({withLandmarks:!0,withDescriptors:!1}),t(),console.log("ML5 LOADED!!!")}))}}var D,S;!function(t){t[t.Straight=0]="Straight",t[t.Tilted=1]="Tilted",t[t.Straightened=2]="Straightened"}(D||(D={}));class F{constructor(t,n){this.MAX_DETECTION=25e3,this.initTime=null,this.full=0,this.tilted=0,this.start=null,this.stream=t,this.ml5=k.getInstance()}static getInstance(t,n){return F.instance||(F.instance=new F(t,n)),F.instance}updateHtmlElements(t,n,e){this.videoElement=t,this.canvasElement=n}initDetector(){this.initTime=Date.now(),this.continue=!0,this.drawFrame("white"),this.delay(2e3).then((()=>this.classifyVideo()))}classifyVideo(){1==this.full&&1==this.tilted&&(null==this.start&&(this.start=Date.now()),Date.now()>this.start+500&&(this.continue=!1,this.stream.verificationReady())),1==this.full&&0==this.tilted&&this.stream.autoCapturing(),Date.now()-this.initTime>=this.MAX_DETECTION&&(this.continue=!1,this.stream.timeElapsed()),this.continue&&this.ml5.classifier.classify(this.videoElement,this.gotResults.bind(this))}async gotResults(t,n){if(t)return alert(t),void this.stream.timeElapsed();"full"==n[0].label&&n[0].confidence>.9&&0==this.full&&(this.full=1,this.stream.stopAnimation(),await this.drawFrame("green"),this.stream.changeIDPose(D.Tilted)),"tilted"==n[0].label&&n[0].confidence>.8&&1==this.full&&0==this.tilted&&(this.tilted=1,this.stream.stopAnimation(),await this.drawFrame("green")),this.classifyVideo()}async drawFrame(t,n=!1){return new Promise((e=>{const r=new Image;r.src="green"==t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzM1IiBoZWlnaHQ9IjIzOCIgdmlld0JveD0iMCAwIDMzNSAyMzgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMzM0Ljg4NiA0Ni45MjQxSDMyNy45MDhWNy45NzUzN0gyODguMjczVjAuOTkzMTY0SDMzNC44ODZWNDYuOTI0MVoiIGZpbGw9IiM0Y2E1ODUiLz4NCjxwYXRoIGQ9Ik0zMzUuMDAxIDIzNy4wMDdIMjg5LjA3VjIzMC4wMjVIMzI4LjAxOVYxOTAuMzlIMzM1LjAwMVYyMzcuMDA3WiIgZmlsbD0iIzRjYTU4NSIvPg0KPHBhdGggZD0iTTQ2LjcyNzEgMjM3LjAwN0gwLjEwOTg2M1YxOTEuMDcySDcuMDkyMDdWMjMwLjAyNUg0Ni43MjcxVjIzNy4wMDdaIiBmaWxsPSIjNGNhNTg1Ii8+DQo8cGF0aCBkPSJNNi45ODE3MiA0Ny42MTA0SC0wLjAwMDQ4ODI4MVYwLjk5MzE2NEg0NS45MzA1VjcuOTc1MzdINi45ODE3MlY0Ny42MTA0WiIgZmlsbD0iIzRjYTU4NSIvPg0KPC9zdmc+DQo=":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzM1IiBoZWlnaHQ9IjIzOCIgdmlld0JveD0iMCAwIDMzNSAyMzgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMzM0Ljg4NiA0Ni45MjQxSDMyNy45MDhWNy45NzUzN0gyODguMjczVjAuOTkzMTY0SDMzNC44ODZWNDYuOTI0MVoiIGZpbGw9IiNFNkU2RTYiLz4NCjxwYXRoIGQ9Ik0zMzUuMDAxIDIzNy4wMDdIMjg5LjA3VjIzMC4wMjVIMzI4LjAxOVYxOTAuMzlIMzM1LjAwMVYyMzcuMDA3WiIgZmlsbD0iI0U2RTZFNiIvPg0KPHBhdGggZD0iTTQ2LjcyNzEgMjM3LjAwN0gwLjEwOTg2M1YxOTEuMDcySDcuMDkyMDdWMjMwLjAyNUg0Ni43MjcxVjIzNy4wMDdaIiBmaWxsPSIjRTZFNkU2Ii8+DQo8cGF0aCBkPSJNNi45ODE3MiA0Ny42MTA0SC0wLjAwMDQ4ODI4MVYwLjk5MzE2NEg0NS45MzA1VjcuOTc1MzdINi45ODE3MlY0Ny42MTA0WiIgZmlsbD0iI0U2RTZFNiIvPg0KPC9zdmc+DQo=",r.onload=async()=>{const i=this.canvasElement,o=i.getContext("2d"),u=Math.min(i.width/r.width,i.height/r.height);o.drawImage(r,0,0,r.width,r.height,(i.width-r.width*u)/2+150,(i.height-r.height*u)/2+150,r.width*u-300,r.height*u-300),"white"==t||n||(await this.delay(1e3),this.drawFrame("white")),e()}}))}delay(t){return new Promise((n=>setTimeout(n,t)))}}!function(t){t[t.LookLeft=0]="LookLeft",t[t.LookRight=1]="LookRight",t[t.LookUp=2]="LookUp",t[t.LookDown=3]="LookDown",t[t.TiltLeft=4]="TiltLeft",t[t.TiltRight=5]="TiltRight",t[t.Main=6]="Main"}(S||(S={}));class T{constructor(t,n,e){this.leftEye=this.centerOfPoints(t.parts.rightEye,n,e),this.rightEye=this.centerOfPoints(t.parts.leftEye,n,e),this.leftEyeBrow=this.centerOfPoints(t.parts.rightEyeBrow,n,e),this.rightEyeBrow=this.centerOfPoints(t.parts.leftEyeBrow,n,e),this.mouth=this.centerOfPoints(t.parts.mouth,n,e),this.nose=this.centerOfPoints(t.parts.nose,n,e)}eyesDistance(){return Math.round(Math.hypot(this.leftEye.x-this.rightEye.x,this.leftEye.y-this.rightEye.y))}eyesLevel(){return Math.round(this.leftEye.y-this.rightEye.y)}eyesCenter(){var t=new _;return t.x=Math.round((this.leftEye.x+this.rightEye.x)/2),t.y=Math.round((this.leftEye.y+this.rightEye.y)/2),t}leftEyeNoseDistanceX(){return Math.abs(this.leftEye.x-this.nose.x)}rightEyeNoseDistanceX(){return Math.abs(this.rightEye.x-this.nose.x)}leftEyeNoseDistanceY(){return Math.abs(this.leftEye.y-this.nose.y)}rightEyeNoseDistanceY(){return Math.abs(this.rightEye.y-this.nose.y)}eyesNoseDistance(){return Math.round(Math.hypot(this.eyesCenter().x-this.nose.x,this.eyesCenter().y-this.nose.y))}noseMouthDistance(){return Math.round(Math.hypot(this.nose.x-this.mouth.x,this.nose.y-this.mouth.y))}eyesMouthDistance(){return Math.round(Math.hypot(this.eyesCenter().x-this.mouth.x,this.eyesCenter().y-this.mouth.y))}leftEyeEyeBrowDistance(){return Math.round(Math.hypot(this.leftEye.x-this.leftEyeBrow.x,this.leftEye.y-this.leftEyeBrow.y))}rightEyeEyeBrowDistance(){return Math.round(Math.hypot(this.rightEye.x-this.rightEyeBrow.x,this.rightEye.y-this.rightEyeBrow.y))}centerOfPoints(t,n,e){for(var r,i,o,u,a=0;a<t.length;a++)r=t[a].x<r||null==r?t[a].x:r,i=t[a].x>i||null==i?t[a].x:i,o=t[a].y<o||null==o?t[a].y:o,u=t[a].y>u||null==u?t[a].y:u;var s=[(r+i)/2,(o+u)/2],c=new _;return c.x=Math.round(s[0]),c.y=Math.round(s[1]),c}}class _{}class R{constructor(t,n){this.MAX_DETECTION=3e4,this.initTime=null,this.videoRatio=1,this.validFaceFound=!1,this.start=null,this.frontFace=null,this.requestedFacePose=null,this.presentedFacePose=null,this.validFacePose=!1,this.validFaceFoundAgain=!1,this.MAX_NUMBER_FACES=1,this.MIN_FACE_SCORE=.65,this.MIN_FACE_SIZE_FOR_MOBILE=200,this.MIN_FACE_SIZE_FOR_DESKTOP=350,this.MIN_OCCUPIED_SPACE_FOR_DESKTOP=15,this.MIN_OCCUPIED_SPACE_FOR_MOBILE=15,this.X_OFFSET_FROM_FRAME=5,this.Y_OFFSET_FROM_FRAME=5,this.stream=t,this.ml5=k.getInstance(),this.isMobile=n}static getInstance(t,n){return R.instance||(R.instance=new R(t,n)),R.instance}updateHtmlElements(t,n,e){this.videoElement=t,this.canvasElement=n}initDetector(){var t;this.initTime=Date.now(),this.continue=!0,this.width=this.videoElement.videoWidth,this.height=this.videoElement.videoHeight,this.videoRatio=(t=this.videoElement,Math.min(t.clientWidth/t.videoWidth,t.clientHeight/t.videoHeight)),this.drawFrame("white"),this.delay(2e3).then((()=>this.detectFaces()))}detectFaces(){this.validFaceFoundAgain&&(null==this.start&&(this.start=Date.now()),Date.now()>this.start+3e3&&(this.continue=!1,this.stream.verificationReady())),Date.now()-this.initTime>=this.MAX_DETECTION&&(this.continue=!1,this.stream.timeElapsed()),null==this.presentedFacePose||this.validFacePose||(this.continue=!1,this.stream.timeElapsed()),this.continue&&this.ml5.faceapi.detect(this.videoElement,this.gotResults.bind(this))}async gotResults(t,n){if(t)return alert(t),void this.stream.timeElapsed();n.length>0&&this.isSingleFace(n)&&this.checkProbability(n)&&this.checkFaceSize(n)&&this.checkFaceIndent(n)&&(this.validFaceFound||(this.validFaceFound=!0,this.stream.autoCapturing(),this.frontFace=new T(n[0],this.width,this.height),this.stream.stopAnimation(),await this.drawFrame("green"),this.requestedFacePose=this.stream.requestFacePose()),this.validFaceFound&&!this.validFaceFoundAgain&&await this.checkFacePose(n)),this.detectFaces()}async drawFrame(t,n=!1){return new Promise((e=>{const r=new Image;r.src="green"==t?"data:image/svg+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LC05Ljc0OTAyIDQwLjQwMjA4LC00Mi43Njg1MSA0NC40OTA2LC01My42ODI1MWM0LjQwMDM4LC0xMS43NDQ5MSAxMC43NTk2NSwtNTkuODk4NTQgMTAuMjQwMDYsLTc2LjQ2Nzc1Yy0xLjE0NDg5LC0zNi41NDQwMiAtMTIuNTI2MTUsLTUyLjI5MDc3IC0xOS4yNjc1OCwtNTkuNjEzNjljLTEzLjI0NzY1LC0xNC4zOTA0OCAtMzUuMzA2NjMsLTE5LjUyOTMzIC00Ni43NzgyNywtMTkuNDk0ODFjLTAuNzQ2ODgsMC4wMDIyMiAtMS44OTQ5NCwwIC0xLjg5NDk0LDB6IiBzdHJva2Utd2lkdGg9IjciLz4NCiAgPC9nPg0KIDwvZz4NCjwvc3ZnPg0K",r.onload=async()=>{const i=this.canvasElement,o=i.getContext("2d"),u=Math.min(i.width/r.width,i.height/r.height),a=i.width<i.height,s=a?80:40,c=a?160:80;o.drawImage(r,0,0,r.width,r.height,(i.width-r.width*u)/2+s,(i.height-r.height*u)/2+c,r.width*u-2*s,r.height*u-2*c),"white"==t||n||(await this.delay(1e3),this.drawFrame("white")),e()}}))}delay(t){return new Promise((n=>setTimeout(n,t)))}isSingleFace(t){return t.length==this.MAX_NUMBER_FACES}checkProbability(t){return t[0].detection.score>this.MIN_FACE_SCORE}checkFaceSize(t){const n=t[0].detection.box,{width:e,height:r,area:i}=n,{imageHeight:o,imageWidth:u}=t[0].detection,a=100/(o*u/i);return Math.min(e/this.videoRatio,r/this.videoRatio)>(this.isMobile?this.MIN_FACE_SIZE_FOR_MOBILE:this.MIN_FACE_SIZE_FOR_DESKTOP)&&a>(this.isMobile?this.MIN_OCCUPIED_SPACE_FOR_MOBILE:this.MIN_OCCUPIED_SPACE_FOR_DESKTOP)}checkFaceIndent(t){const n=t[0].detection.box,{imageHeight:e,imageWidth:r}=t[0].detection,{top:i,left:o,bottom:u,right:a}=n;return!(i<this.Y_OFFSET_FROM_FRAME||o<this.X_OFFSET_FROM_FRAME||r-a<this.X_OFFSET_FROM_FRAME||e-u<this.Y_OFFSET_FROM_FRAME)}async checkFacePose(t){let n=new T(t[0],this.width,this.height);if(null==this.presentedFacePose){let t=this.frontFace;n.leftEyeNoseDistanceX()<.6*t.leftEyeNoseDistanceX()&&n.rightEyeNoseDistanceX()>1.2*t.rightEyeNoseDistanceX()&&n.leftEyeNoseDistanceY()>.7*t.leftEyeNoseDistanceY()&&n.leftEyeNoseDistanceY()<1.3*t.leftEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()>.7*t.rightEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()<1.3*t.rightEyeNoseDistanceY()?this.presentedFacePose=S.LookLeft:n.rightEyeNoseDistanceX()<.6*t.rightEyeNoseDistanceX()&&n.leftEyeNoseDistanceX()>1.2*t.leftEyeNoseDistanceX()&&n.leftEyeNoseDistanceY()>.7*t.leftEyeNoseDistanceY()&&n.leftEyeNoseDistanceY()<1.3*t.leftEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()>.7*t.rightEyeNoseDistanceY()&&n.rightEyeNoseDistanceY()<1.3*t.rightEyeNoseDistanceY()?this.presentedFacePose=S.LookRight:n.eyesNoseDistance()<.45*t.eyesNoseDistance()?this.presentedFacePose=S.LookUp:n.leftEyeEyeBrowDistance()<.8*t.leftEyeEyeBrowDistance()&&n.rightEyeEyeBrowDistance()<.8*t.rightEyeEyeBrowDistance()?this.presentedFacePose=S.LookDown:n.eyesLevel()>=this.frontFace.eyesLevel()+.05*this.height?this.presentedFacePose=S.TiltLeft:n.eyesLevel()<=this.frontFace.eyesLevel()-.05*this.height&&(this.presentedFacePose=S.TiltRight),null!=this.presentedFacePose&&this.presentedFacePose==this.requestedFacePose&&(this.validFacePose=!0,this.stream.stopAnimation(),await this.drawFrame("green",!0),this.validFaceFoundAgain=!0)}}}var I=j((function(t,n){!function(){var e={};function r(t){return l(">"+d("B",t.length),t)}function i(t){return l(">"+d("H",t.length),t)}function o(t){return l(">"+d("L",t.length),t)}function u(t,n,e){var u,a,s,c="",f="";if("Byte"==n)(u=t.length)<=4?f=r(t)+d("\0",4-u):(f=l(">L",[e]),c=r(t));else if("Short"==n)(u=t.length)<=2?f=i(t)+d("\0\0",2-u):(f=l(">L",[e]),c=i(t));else if("Long"==n)(u=t.length)<=1?f=o(t):(f=l(">L",[e]),c=o(t));else if("Ascii"==n)(u=(a=t+"\0").length)>4?(f=l(">L",[e]),c=a):f=a+d("\0",4-u);else if("Rational"==n){if("number"==typeof t[0])u=1,s=t[1],a=l(">L",[t[0]])+l(">L",[s]);else{u=t.length,a="";for(var h=0;h<u;h++)s=t[h][1],a+=l(">L",[t[h][0]])+l(">L",[s])}f=l(">L",[e]),c=a}else if("SRational"==n){if("number"==typeof t[0])u=1,s=t[1],a=l(">l",[t[0]])+l(">l",[s]);else for(u=t.length,a="",h=0;h<u;h++)s=t[h][1],a+=l(">l",[t[h][0]])+l(">l",[s]);f=l(">L",[e]),c=a}else"Undefined"==n&&((u=t.length)>4?(f=l(">L",[e]),c=t):f=t+d("\0",4-u));return[l(">L",[u]),f,c]}function a(t,n,e){var r,i=Object.keys(t).length,o=l(">H",[i]);r=["0th","1st"].indexOf(n)>-1?2+12*i+4:2+12*i;var a="",s="";for(var c in t)if("string"==typeof c&&(c=parseInt(c)),!("0th"==n&&[34665,34853].indexOf(c)>-1||"Exif"==n&&40965==c||"1st"==n&&[513,514].indexOf(c)>-1)){var f=t[c],h=l(">H",[c]),d=m[n][c].type,v=l(">H",[p[d]]);"number"==typeof f&&(f=[f]);var b=u(f,d,8+r+e+s.length);a+=h+v+b[0]+b[1],s+=b[2]}return[o+a,s]}function s(t){var n;if("ÿØ"==t.slice(0,2))n=function(t){for(var n,e=0;e<t.length;e++)if("ÿá"==(n=t[e]).slice(0,2)&&"Exif\0\0"==n.slice(4,10))return n;return null}(v(t)),this.tiftag=n?n.slice(10):null;else if(["II","MM"].indexOf(t.slice(0,2))>-1)this.tiftag=t;else{if("Exif"!=t.slice(0,4))throw new Error("Given file is neither JPEG nor TIFF.");this.tiftag=t.slice(6)}}if(e.version="1.0.4",e.remove=function(t){var n=!1;if("ÿØ"==t.slice(0,2));else{if("data:image/jpeg;base64,"!=t.slice(0,23)&&"data:image/jpg;base64,"!=t.slice(0,22))throw new Error("Given data is not jpeg.");t=f(t.split(",")[1]),n=!0}var e=v(t).filter((function(t){return!("ÿá"==t.slice(0,2)&&"Exif\0\0"==t.slice(4,10))})).join("");return n&&(e="data:image/jpeg;base64,"+c(e)),e},e.insert=function(t,n){var e=!1;if("Exif\0\0"!=t.slice(0,6))throw new Error("Given data is not exif.");if("ÿØ"==n.slice(0,2));else{if("data:image/jpeg;base64,"!=n.slice(0,23)&&"data:image/jpg;base64,"!=n.slice(0,22))throw new Error("Given data is not jpeg.");n=f(n.split(",")[1]),e=!0}var r="ÿá"+l(">H",[t.length+2])+t,i=function(t,n){var e=!1,r=[];return t.forEach((function(i,o){"ÿá"==i.slice(0,2)&&"Exif\0\0"==i.slice(4,10)&&(e?r.unshift(o):(t[o]=n,e=!0))})),r.forEach((function(n){t.splice(n,1)})),!e&&n&&(t=[t[0],n].concat(t.slice(1))),t.join("")}(v(n),r);return e&&(i="data:image/jpeg;base64,"+c(i)),i},e.load=function(t){var n;if("string"!=typeof t)throw new Error("'load' gots invalid type argument.");if("ÿØ"==t.slice(0,2))n=t;else if("data:image/jpeg;base64,"==t.slice(0,23)||"data:image/jpg;base64,"==t.slice(0,22))n=f(t.split(",")[1]);else{if("Exif"!=t.slice(0,4))throw new Error("'load' gots invalid file data.");n=t.slice(6)}var e={"0th":{},Exif:{},GPS:{},Interop:{},"1st":{},thumbnail:null},r=new s(n);if(null===r.tiftag)return e;r.endian_mark="II"==r.tiftag.slice(0,2)?"<":">";var i=h(r.endian_mark+"L",r.tiftag.slice(4,8))[0];e["0th"]=r.get_ifd(i,"0th");var o=e["0th"].first_ifd_pointer;if(delete e["0th"].first_ifd_pointer,34665 in e["0th"]&&(e.Exif=r.get_ifd(i=e["0th"][34665],"Exif")),34853 in e["0th"]&&(e.GPS=r.get_ifd(i=e["0th"][34853],"GPS")),40965 in e.Exif&&(e.Interop=r.get_ifd(i=e.Exif[40965],"Interop")),"\0\0\0\0"!=o&&(i=h(r.endian_mark+"L",o)[0],e["1st"]=r.get_ifd(i,"1st"),513 in e["1st"]&&514 in e["1st"])){var u=r.tiftag.slice(e["1st"][513],e["1st"][513]+e["1st"][514]);e.thumbnail=u}return e},e.dump=function(t){var n,r,i,o,u,s=JSON.parse(JSON.stringify(t)),c=!1,f=!1,h=!1,d=!1;n="0th"in s?s["0th"]:{},"Exif"in s&&Object.keys(s.Exif).length||"Interop"in s&&Object.keys(s.Interop).length?(n[34665]=1,c=!0,r=s.Exif,"Interop"in s&&Object.keys(s.Interop).length?(r[40965]=1,h=!0,i=s.Interop):Object.keys(r).indexOf(e.ExifIFD.InteroperabilityTag.toString())>-1&&delete r[40965]):Object.keys(n).indexOf(e.ImageIFD.ExifTag.toString())>-1&&delete n[34665],"GPS"in s&&Object.keys(s.GPS).length?(n[e.ImageIFD.GPSTag]=1,f=!0,o=s.GPS):Object.keys(n).indexOf(e.ImageIFD.GPSTag.toString())>-1&&delete n[e.ImageIFD.GPSTag],"1st"in s&&"thumbnail"in s&&null!=s.thumbnail&&(d=!0,s["1st"][513]=1,s["1st"][514]=1,u=s["1st"]);var m,b,g,y=a(n,"0th",0),w=y[0].length+12*c+12*f+4+y[1].length,x="",O=0,A="",C=0,E="",M=0,j="";if(c&&(O=(m=a(r,"Exif",w))[0].length+12*h+m[1].length),f&&(C=(A=a(o,"GPS",w+O).join("")).length),h&&(M=(E=a(i,"Interop",w+O+C).join("")).length),d&&(b=a(u,"1st",w+O+C+M),(g=function(t){for(var n=v(t);"ÿà"<=n[1].slice(0,2)&&n[1].slice(0,2)<="ÿï";)n=[n[0]].concat(n.slice(2));return n.join("")}(s.thumbnail)).length>64e3))throw new Error("Given thumbnail is too large. max 64kB");var N="",k="",D="",S="\0\0\0\0";if(c){var F=l(">L",[T=8+w]);N=l(">H",[34665])+l(">H",[p.Long])+l(">L",[1])+F}if(f&&(F=l(">L",[T=8+w+O]),k=l(">H",[34853])+l(">H",[p.Long])+l(">L",[1])+F),h&&(F=l(">L",[T=8+w+O+C]),D=l(">H",[40965])+l(">H",[p.Long])+l(">L",[1])+F),d){var T;S=l(">L",[T=8+w+O+C+M]);var _="\0\0\0\0"+l(">L",[T+b[0].length+24+4+b[1].length]),R="\0\0\0\0"+l(">L",[g.length]);j=b[0]+_+R+"\0\0\0\0"+b[1]+g}return c&&(x=m[0]+D+m[1]),"Exif\0\0MM\0*\0\0\0\b"+(y[0]+N+k+S+y[1])+x+A+E+j},s.prototype={get_ifd:function(t,n){var e,r={},i=h(this.endian_mark+"H",this.tiftag.slice(t,t+2))[0],o=t+2;e=["0th","1st"].indexOf(n)>-1?"Image":n;for(var u=0;u<i;u++){var a=h(this.endian_mark+"H",this.tiftag.slice(t=o+12*u,t+2))[0],s=h(this.endian_mark+"H",this.tiftag.slice(t+2,t+4))[0],c=h(this.endian_mark+"L",this.tiftag.slice(t+4,t+8))[0],f=this.tiftag.slice(t+8,t+12);a in m[e]&&(r[a]=this.convert_value([s,c,f]))}return"0th"==n&&(r.first_ifd_pointer=this.tiftag.slice(t=o+12*i,t+4)),r},convert_value:function(t){var n,e=null,r=t[0],i=t[1],o=t[2];if(1==r)i>4?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("B",i),this.tiftag.slice(n,n+i))):e=h(this.endian_mark+d("B",i),o.slice(0,i));else if(2==r)i>4?(n=h(this.endian_mark+"L",o)[0],e=this.tiftag.slice(n,n+i-1)):e=o.slice(0,i-1);else if(3==r)i>2?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("H",i),this.tiftag.slice(n,n+2*i))):e=h(this.endian_mark+d("H",i),o.slice(0,2*i));else if(4==r)i>1?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("L",i),this.tiftag.slice(n,n+4*i))):e=h(this.endian_mark+d("L",i),o);else if(5==r)if(n=h(this.endian_mark+"L",o)[0],i>1){e=[];for(var u=0;u<i;u++)e.push([h(this.endian_mark+"L",this.tiftag.slice(n+8*u,n+4+8*u))[0],h(this.endian_mark+"L",this.tiftag.slice(n+4+8*u,n+8+8*u))[0]])}else e=[h(this.endian_mark+"L",this.tiftag.slice(n,n+4))[0],h(this.endian_mark+"L",this.tiftag.slice(n+4,n+8))[0]];else if(7==r)i>4?(n=h(this.endian_mark+"L",o)[0],e=this.tiftag.slice(n,n+i)):e=o.slice(0,i);else if(9==r)i>1?(n=h(this.endian_mark+"L",o)[0],e=h(this.endian_mark+d("l",i),this.tiftag.slice(n,n+4*i))):e=h(this.endian_mark+d("l",i),o);else{if(10!=r)throw new Error("Exif might be wrong. Got incorrect value type to decode. type:"+r);if(n=h(this.endian_mark+"L",o)[0],i>1)for(e=[],u=0;u<i;u++)e.push([h(this.endian_mark+"l",this.tiftag.slice(n+8*u,n+4+8*u))[0],h(this.endian_mark+"l",this.tiftag.slice(n+4+8*u,n+8+8*u))[0]]);else e=[h(this.endian_mark+"l",this.tiftag.slice(n,n+4))[0],h(this.endian_mark+"l",this.tiftag.slice(n+4,n+8))[0]]}return e instanceof Array&&1==e.length?e[0]:e}},"undefined"!=typeof window&&"function"==typeof window.btoa)var c=window.btoa;if(void 0===c&&(c=function(t){for(var n,e,r,i,o,u,a,s="",c=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c<t.length;)i=(n=t.charCodeAt(c++))>>2,o=(3&n)<<4|(e=t.charCodeAt(c++))>>4,u=(15&e)<<2|(r=t.charCodeAt(c++))>>6,a=63&r,isNaN(e)?u=a=64:isNaN(r)&&(a=64),s=s+f.charAt(i)+f.charAt(o)+f.charAt(u)+f.charAt(a);return s}),"undefined"!=typeof window&&"function"==typeof window.atob)var f=window.atob;function l(t,n){if(!(n instanceof Array))throw new Error("'pack' error. Got invalid type argument.");if(t.length-1!=n.length)throw new Error("'pack' error. "+(t.length-1)+" marks, "+n.length+" elements.");var e;if("<"==t[0])e=!0;else{if(">"!=t[0])throw new Error("");e=!1}for(var r="",i=1,o=null,u=null,a=null;u=t[i];){if("b"==u.toLowerCase()){if(o=n[i-1],"b"==u&&o<0&&(o+=256),o>255||o<0)throw new Error("'pack' error.");a=String.fromCharCode(o)}else if("H"==u){if((o=n[i-1])>65535||o<0)throw new Error("'pack' error.");a=String.fromCharCode(Math.floor(o%65536/256))+String.fromCharCode(o%256),e&&(a=a.split("").reverse().join(""))}else{if("l"!=u.toLowerCase())throw new Error("'pack' error.");if(o=n[i-1],"l"==u&&o<0&&(o+=4294967296),o>4294967295||o<0)throw new Error("'pack' error.");a=String.fromCharCode(Math.floor(o/16777216))+String.fromCharCode(Math.floor(o%16777216/65536))+String.fromCharCode(Math.floor(o%65536/256))+String.fromCharCode(o%256),e&&(a=a.split("").reverse().join(""))}r+=a,i+=1}return r}function h(t,n){if("string"!=typeof n)throw new Error("'unpack' error. Got invalid type argument.");for(var e,r=0,i=1;i<t.length;i++)if("b"==t[i].toLowerCase())r+=1;else if("h"==t[i].toLowerCase())r+=2;else{if("l"!=t[i].toLowerCase())throw new Error("'unpack' error. Got invalid mark.");r+=4}if(r!=n.length)throw new Error("'unpack' error. Mismatch between symbol and string length. "+r+":"+n.length);if("<"==t[0])e=!0;else{if(">"!=t[0])throw new Error("'unpack' error.");e=!1}for(var o=[],u=0,a=1,s=null,c=null,f=null,l="";c=t[a];){if("b"==c.toLowerCase())s=(l=n.slice(u,u+(f=1))).charCodeAt(0),"b"==c&&s>=128&&(s-=256);else if("H"==c)l=n.slice(u,u+(f=2)),e&&(l=l.split("").reverse().join("")),s=256*l.charCodeAt(0)+l.charCodeAt(1);else{if("l"!=c.toLowerCase())throw new Error("'unpack' error. "+c);l=n.slice(u,u+(f=4)),e&&(l=l.split("").reverse().join("")),s=16777216*l.charCodeAt(0)+65536*l.charCodeAt(1)+256*l.charCodeAt(2)+l.charCodeAt(3),"l"==c&&s>=2147483648&&(s-=4294967296)}o.push(s),u+=f,a+=1}return o}function d(t,n){for(var e="",r=0;r<n;r++)e+=t;return e}function v(t){if("ÿØ"!=t.slice(0,2))throw new Error("Given data isn't JPEG.");for(var n=2,e=["ÿØ"];;){if("ÿÚ"==t.slice(n,n+2)){e.push(t.slice(n));break}var r=n+h(">H",t.slice(n+2,n+4))[0]+2;if(e.push(t.slice(n,r)),(n=r)>=t.length)throw new Error("Wrong JPEG data.")}return e}void 0===f&&(f=function(t){var n,e,r,i,o,u,a="",s=0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");s<t.length;)r=c.indexOf(t.charAt(s++)),n=(15&(i=c.indexOf(t.charAt(s++))))<<4|(o=c.indexOf(t.charAt(s++)))>>2,e=(3&o)<<6|(u=c.indexOf(t.charAt(s++))),a+=String.fromCharCode(r<<2|i>>4),64!=o&&(a+=String.fromCharCode(n)),64!=u&&(a+=String.fromCharCode(e));return a});var p={Byte:1,Ascii:2,Short:3,Long:4,Rational:5,Undefined:7,SLong:9,SRational:10},m={Image:{11:{name:"ProcessingSoftware",type:"Ascii"},254:{name:"NewSubfileType",type:"Long"},255:{name:"SubfileType",type:"Short"},256:{name:"ImageWidth",type:"Long"},257:{name:"ImageLength",type:"Long"},258:{name:"BitsPerSample",type:"Short"},259:{name:"Compression",type:"Short"},262:{name:"PhotometricInterpretation",type:"Short"},263:{name:"Threshholding",type:"Short"},264:{name:"CellWidth",type:"Short"},265:{name:"CellLength",type:"Short"},266:{name:"FillOrder",type:"Short"},269:{name:"DocumentName",type:"Ascii"},270:{name:"ImageDescription",type:"Ascii"},271:{name:"Make",type:"Ascii"},272:{name:"Model",type:"Ascii"},273:{name:"StripOffsets",type:"Long"},274:{name:"Orientation",type:"Short"},277:{name:"SamplesPerPixel",type:"Short"},278:{name:"RowsPerStrip",type:"Long"},279:{name:"StripByteCounts",type:"Long"},282:{name:"XResolution",type:"Rational"},283:{name:"YResolution",type:"Rational"},284:{name:"PlanarConfiguration",type:"Short"},290:{name:"GrayResponseUnit",type:"Short"},291:{name:"GrayResponseCurve",type:"Short"},292:{name:"T4Options",type:"Long"},293:{name:"T6Options",type:"Long"},296:{name:"ResolutionUnit",type:"Short"},301:{name:"TransferFunction",type:"Short"},305:{name:"Software",type:"Ascii"},306:{name:"DateTime",type:"Ascii"},315:{name:"Artist",type:"Ascii"},316:{name:"HostComputer",type:"Ascii"},317:{name:"Predictor",type:"Short"},318:{name:"WhitePoint",type:"Rational"},319:{name:"PrimaryChromaticities",type:"Rational"},320:{name:"ColorMap",type:"Short"},321:{name:"HalftoneHints",type:"Short"},322:{name:"TileWidth",type:"Short"},323:{name:"TileLength",type:"Short"},324:{name:"TileOffsets",type:"Short"},325:{name:"TileByteCounts",type:"Short"},330:{name:"SubIFDs",type:"Long"},332:{name:"InkSet",type:"Short"},333:{name:"InkNames",type:"Ascii"},334:{name:"NumberOfInks",type:"Short"},336:{name:"DotRange",type:"Byte"},337:{name:"TargetPrinter",type:"Ascii"},338:{name:"ExtraSamples",type:"Short"},339:{name:"SampleFormat",type:"Short"},340:{name:"SMinSampleValue",type:"Short"},341:{name:"SMaxSampleValue",type:"Short"},342:{name:"TransferRange",type:"Short"},343:{name:"ClipPath",type:"Byte"},344:{name:"XClipPathUnits",type:"Long"},345:{name:"YClipPathUnits",type:"Long"},346:{name:"Indexed",type:"Short"},347:{name:"JPEGTables",type:"Undefined"},351:{name:"OPIProxy",type:"Short"},512:{name:"JPEGProc",type:"Long"},513:{name:"JPEGInterchangeFormat",type:"Long"},514:{name:"JPEGInterchangeFormatLength",type:"Long"},515:{name:"JPEGRestartInterval",type:"Short"},517:{name:"JPEGLosslessPredictors",type:"Short"},518:{name:"JPEGPointTransforms",type:"Short"},519:{name:"JPEGQTables",type:"Long"},520:{name:"JPEGDCTables",type:"Long"},521:{name:"JPEGACTables",type:"Long"},529:{name:"YCbCrCoefficients",type:"Rational"},530:{name:"YCbCrSubSampling",type:"Short"},531:{name:"YCbCrPositioning",type:"Short"},532:{name:"ReferenceBlackWhite",type:"Rational"},700:{name:"XMLPacket",type:"Byte"},18246:{name:"Rating",type:"Short"},18249:{name:"RatingPercent",type:"Short"},32781:{name:"ImageID",type:"Ascii"},33421:{name:"CFARepeatPatternDim",type:"Short"},33422:{name:"CFAPattern",type:"Byte"},33423:{name:"BatteryLevel",type:"Rational"},33432:{name:"Copyright",type:"Ascii"},33434:{name:"ExposureTime",type:"Rational"},34377:{name:"ImageResources",type:"Byte"},34665:{name:"ExifTag",type:"Long"},34675:{name:"InterColorProfile",type:"Undefined"},34853:{name:"GPSTag",type:"Long"},34857:{name:"Interlace",type:"Short"},34858:{name:"TimeZoneOffset",type:"Long"},34859:{name:"SelfTimerMode",type:"Short"},37387:{name:"FlashEnergy",type:"Rational"},37388:{name:"SpatialFrequencyResponse",type:"Undefined"},37389:{name:"Noise",type:"Undefined"},37390:{name:"FocalPlaneXResolution",type:"Rational"},37391:{name:"FocalPlaneYResolution",type:"Rational"},37392:{name:"FocalPlaneResolutionUnit",type:"Short"},37393:{name:"ImageNumber",type:"Long"},37394:{name:"SecurityClassification",type:"Ascii"},37395:{name:"ImageHistory",type:"Ascii"},37397:{name:"ExposureIndex",type:"Rational"},37398:{name:"TIFFEPStandardID",type:"Byte"},37399:{name:"SensingMethod",type:"Short"},40091:{name:"XPTitle",type:"Byte"},40092:{name:"XPComment",type:"Byte"},40093:{name:"XPAuthor",type:"Byte"},40094:{name:"XPKeywords",type:"Byte"},40095:{name:"XPSubject",type:"Byte"},50341:{name:"PrintImageMatching",type:"Undefined"},50706:{name:"DNGVersion",type:"Byte"},50707:{name:"DNGBackwardVersion",type:"Byte"},50708:{name:"UniqueCameraModel",type:"Ascii"},50709:{name:"LocalizedCameraModel",type:"Byte"},50710:{name:"CFAPlaneColor",type:"Byte"},50711:{name:"CFALayout",type:"Short"},50712:{name:"LinearizationTable",type:"Short"},50713:{name:"BlackLevelRepeatDim",type:"Short"},50714:{name:"BlackLevel",type:"Rational"},50715:{name:"BlackLevelDeltaH",type:"SRational"},50716:{name:"BlackLevelDeltaV",type:"SRational"},50717:{name:"WhiteLevel",type:"Short"},50718:{name:"DefaultScale",type:"Rational"},50719:{name:"DefaultCropOrigin",type:"Short"},50720:{name:"DefaultCropSize",type:"Short"},50721:{name:"ColorMatrix1",type:"SRational"},50722:{name:"ColorMatrix2",type:"SRational"},50723:{name:"CameraCalibration1",type:"SRational"},50724:{name:"CameraCalibration2",type:"SRational"},50725:{name:"ReductionMatrix1",type:"SRational"},50726:{name:"ReductionMatrix2",type:"SRational"},50727:{name:"AnalogBalance",type:"Rational"},50728:{name:"AsShotNeutral",type:"Short"},50729:{name:"AsShotWhiteXY",type:"Rational"},50730:{name:"BaselineExposure",type:"SRational"},50731:{name:"BaselineNoise",type:"Rational"},50732:{name:"BaselineSharpness",type:"Rational"},50733:{name:"BayerGreenSplit",type:"Long"},50734:{name:"LinearResponseLimit",type:"Rational"},50735:{name:"CameraSerialNumber",type:"Ascii"},50736:{name:"LensInfo",type:"Rational"},50737:{name:"ChromaBlurRadius",type:"Rational"},50738:{name:"AntiAliasStrength",type:"Rational"},50739:{name:"ShadowScale",type:"SRational"},50740:{name:"DNGPrivateData",type:"Byte"},50741:{name:"MakerNoteSafety",type:"Short"},50778:{name:"CalibrationIlluminant1",type:"Short"},50779:{name:"CalibrationIlluminant2",type:"Short"},50780:{name:"BestQualityScale",type:"Rational"},50781:{name:"RawDataUniqueID",type:"Byte"},50827:{name:"OriginalRawFileName",type:"Byte"},50828:{name:"OriginalRawFileData",type:"Undefined"},50829:{name:"ActiveArea",type:"Short"},50830:{name:"MaskedAreas",type:"Short"},50831:{name:"AsShotICCProfile",type:"Undefined"},50832:{name:"AsShotPreProfileMatrix",type:"SRational"},50833:{name:"CurrentICCProfile",type:"Undefined"},50834:{name:"CurrentPreProfileMatrix",type:"SRational"},50879:{name:"ColorimetricReference",type:"Short"},50931:{name:"CameraCalibrationSignature",type:"Byte"},50932:{name:"ProfileCalibrationSignature",type:"Byte"},50934:{name:"AsShotProfileName",type:"Byte"},50935:{name:"NoiseReductionApplied",type:"Rational"},50936:{name:"ProfileName",type:"Byte"},50937:{name:"ProfileHueSatMapDims",type:"Long"},50938:{name:"ProfileHueSatMapData1",type:"Float"},50939:{name:"ProfileHueSatMapData2",type:"Float"},50940:{name:"ProfileToneCurve",type:"Float"},50941:{name:"ProfileEmbedPolicy",type:"Long"},50942:{name:"ProfileCopyright",type:"Byte"},50964:{name:"ForwardMatrix1",type:"SRational"},50965:{name:"ForwardMatrix2",type:"SRational"},50966:{name:"PreviewApplicationName",type:"Byte"},50967:{name:"PreviewApplicationVersion",type:"Byte"},50968:{name:"PreviewSettingsName",type:"Byte"},50969:{name:"PreviewSettingsDigest",type:"Byte"},50970:{name:"PreviewColorSpace",type:"Long"},50971:{name:"PreviewDateTime",type:"Ascii"},50972:{name:"RawImageDigest",type:"Undefined"},50973:{name:"OriginalRawFileDigest",type:"Undefined"},50974:{name:"SubTileBlockSize",type:"Long"},50975:{name:"RowInterleaveFactor",type:"Long"},50981:{name:"ProfileLookTableDims",type:"Long"},50982:{name:"ProfileLookTableData",type:"Float"},51008:{name:"OpcodeList1",type:"Undefined"},51009:{name:"OpcodeList2",type:"Undefined"},51022:{name:"OpcodeList3",type:"Undefined"}},Exif:{33434:{name:"ExposureTime",type:"Rational"},33437:{name:"FNumber",type:"Rational"},34850:{name:"ExposureProgram",type:"Short"},34852:{name:"SpectralSensitivity",type:"Ascii"},34855:{name:"ISOSpeedRatings",type:"Short"},34856:{name:"OECF",type:"Undefined"},34864:{name:"SensitivityType",type:"Short"},34865:{name:"StandardOutputSensitivity",type:"Long"},34866:{name:"RecommendedExposureIndex",type:"Long"},34867:{name:"ISOSpeed",type:"Long"},34868:{name:"ISOSpeedLatitudeyyy",type:"Long"},34869:{name:"ISOSpeedLatitudezzz",type:"Long"},36864:{name:"ExifVersion",type:"Undefined"},36867:{name:"DateTimeOriginal",type:"Ascii"},36868:{name:"DateTimeDigitized",type:"Ascii"},37121:{name:"ComponentsConfiguration",type:"Undefined"},37122:{name:"CompressedBitsPerPixel",type:"Rational"},37377:{name:"ShutterSpeedValue",type:"SRational"},37378:{name:"ApertureValue",type:"Rational"},37379:{name:"BrightnessValue",type:"SRational"},37380:{name:"ExposureBiasValue",type:"SRational"},37381:{name:"MaxApertureValue",type:"Rational"},37382:{name:"SubjectDistance",type:"Rational"},37383:{name:"MeteringMode",type:"Short"},37384:{name:"LightSource",type:"Short"},37385:{name:"Flash",type:"Short"},37386:{name:"FocalLength",type:"Rational"},37396:{name:"SubjectArea",type:"Short"},37500:{name:"MakerNote",type:"Undefined"},37510:{name:"UserComment",type:"Ascii"},37520:{name:"SubSecTime",type:"Ascii"},37521:{name:"SubSecTimeOriginal",type:"Ascii"},37522:{name:"SubSecTimeDigitized",type:"Ascii"},40960:{name:"FlashpixVersion",type:"Undefined"},40961:{name:"ColorSpace",type:"Short"},40962:{name:"PixelXDimension",type:"Long"},40963:{name:"PixelYDimension",type:"Long"},40964:{name:"RelatedSoundFile",type:"Ascii"},40965:{name:"InteroperabilityTag",type:"Long"},41483:{name:"FlashEnergy",type:"Rational"},41484:{name:"SpatialFrequencyResponse",type:"Undefined"},41486:{name:"FocalPlaneXResolution",type:"Rational"},41487:{name:"FocalPlaneYResolution",type:"Rational"},41488:{name:"FocalPlaneResolutionUnit",type:"Short"},41492:{name:"SubjectLocation",type:"Short"},41493:{name:"ExposureIndex",type:"Rational"},41495:{name:"SensingMethod",type:"Short"},41728:{name:"FileSource",type:"Undefined"},41729:{name:"SceneType",type:"Undefined"},41730:{name:"CFAPattern",type:"Undefined"},41985:{name:"CustomRendered",type:"Short"},41986:{name:"ExposureMode",type:"Short"},41987:{name:"WhiteBalance",type:"Short"},41988:{name:"DigitalZoomRatio",type:"Rational"},41989:{name:"FocalLengthIn35mmFilm",type:"Short"},41990:{name:"SceneCaptureType",type:"Short"},41991:{name:"GainControl",type:"Short"},41992:{name:"Contrast",type:"Short"},41993:{name:"Saturation",type:"Short"},41994:{name:"Sharpness",type:"Short"},41995:{name:"DeviceSettingDescription",type:"Undefined"},41996:{name:"SubjectDistanceRange",type:"Short"},42016:{name:"ImageUniqueID",type:"Ascii"},42032:{name:"CameraOwnerName",type:"Ascii"},42033:{name:"BodySerialNumber",type:"Ascii"},42034:{name:"LensSpecification",type:"Rational"},42035:{name:"LensMake",type:"Ascii"},42036:{name:"LensModel",type:"Ascii"},42037:{name:"LensSerialNumber",type:"Ascii"},42240:{name:"Gamma",type:"Rational"}},GPS:{0:{name:"GPSVersionID",type:"Byte"},1:{name:"GPSLatitudeRef",type:"Ascii"},2:{name:"GPSLatitude",type:"Rational"},3:{name:"GPSLongitudeRef",type:"Ascii"},4:{name:"GPSLongitude",type:"Rational"},5:{name:"GPSAltitudeRef",type:"Byte"},6:{name:"GPSAltitude",type:"Rational"},7:{name:"GPSTimeStamp",type:"Rational"},8:{name:"GPSSatellites",type:"Ascii"},9:{name:"GPSStatus",type:"Ascii"},10:{name:"GPSMeasureMode",type:"Ascii"},11:{name:"GPSDOP",type:"Rational"},12:{name:"GPSSpeedRef",type:"Ascii"},13:{name:"GPSSpeed",type:"Rational"},14:{name:"GPSTrackRef",type:"Ascii"},15:{name:"GPSTrack",type:"Rational"},16:{name:"GPSImgDirectionRef",type:"Ascii"},17:{name:"GPSImgDirection",type:"Rational"},18:{name:"GPSMapDatum",type:"Ascii"},19:{name:"GPSDestLatitudeRef",type:"Ascii"},20:{name:"GPSDestLatitude",type:"Rational"},21:{name:"GPSDestLongitudeRef",type:"Ascii"},22:{name:"GPSDestLongitude",type:"Rational"},23:{name:"GPSDestBearingRef",type:"Ascii"},24:{name:"GPSDestBearing",type:"Rational"},25:{name:"GPSDestDistanceRef",type:"Ascii"},26:{name:"GPSDestDistance",type:"Rational"},27:{name:"GPSProcessingMethod",type:"Undefined"},28:{name:"GPSAreaInformation",type:"Undefined"},29:{name:"GPSDateStamp",type:"Ascii"},30:{name:"GPSDifferential",type:"Short"},31:{name:"GPSHPositioningError",type:"Rational"}},Interop:{1:{name:"InteroperabilityIndex",type:"Ascii"}}};m["0th"]=m.Image,m["1st"]=m.Image,e.TAGS=m,e.ImageIFD={ProcessingSoftware:11,NewSubfileType:254,SubfileType:255,ImageWidth:256,ImageLength:257,BitsPerSample:258,Compression:259,PhotometricInterpretation:262,Threshholding:263,CellWidth:264,CellLength:265,FillOrder:266,DocumentName:269,ImageDescription:270,Make:271,Model:272,StripOffsets:273,Orientation:274,SamplesPerPixel:277,RowsPerStrip:278,StripByteCounts:279,XResolution:282,YResolution:283,PlanarConfiguration:284,GrayResponseUnit:290,GrayResponseCurve:291,T4Options:292,T6Options:293,ResolutionUnit:296,TransferFunction:301,Software:305,DateTime:306,Artist:315,HostComputer:316,Predictor:317,WhitePoint:318,PrimaryChromaticities:319,ColorMap:320,HalftoneHints:321,TileWidth:322,TileLength:323,TileOffsets:324,TileByteCounts:325,SubIFDs:330,InkSet:332,InkNames:333,NumberOfInks:334,DotRange:336,TargetPrinter:337,ExtraSamples:338,SampleFormat:339,SMinSampleValue:340,SMaxSampleValue:341,TransferRange:342,ClipPath:343,XClipPathUnits:344,YClipPathUnits:345,Indexed:346,JPEGTables:347,OPIProxy:351,JPEGProc:512,JPEGInterchangeFormat:513,JPEGInterchangeFormatLength:514,JPEGRestartInterval:515,JPEGLosslessPredictors:517,JPEGPointTransforms:518,JPEGQTables:519,JPEGDCTables:520,JPEGACTables:521,YCbCrCoefficients:529,YCbCrSubSampling:530,YCbCrPositioning:531,ReferenceBlackWhite:532,XMLPacket:700,Rating:18246,RatingPercent:18249,ImageID:32781,CFARepeatPatternDim:33421,CFAPattern:33422,BatteryLevel:33423,Copyright:33432,ExposureTime:33434,ImageResources:34377,ExifTag:34665,InterColorProfile:34675,GPSTag:34853,Interlace:34857,TimeZoneOffset:34858,SelfTimerMode:34859,FlashEnergy:37387,SpatialFrequencyResponse:37388,Noise:37389,FocalPlaneXResolution:37390,FocalPlaneYResolution:37391,FocalPlaneResolutionUnit:37392,ImageNumber:37393,SecurityClassification:37394,ImageHistory:37395,ExposureIndex:37397,TIFFEPStandardID:37398,SensingMethod:37399,XPTitle:40091,XPComment:40092,XPAuthor:40093,XPKeywords:40094,XPSubject:40095,PrintImageMatching:50341,DNGVersion:50706,DNGBackwardVersion:50707,UniqueCameraModel:50708,LocalizedCameraModel:50709,CFAPlaneColor:50710,CFALayout:50711,LinearizationTable:50712,BlackLevelRepeatDim:50713,BlackLevel:50714,BlackLevelDeltaH:50715,BlackLevelDeltaV:50716,WhiteLevel:50717,DefaultScale:50718,DefaultCropOrigin:50719,DefaultCropSize:50720,ColorMatrix1:50721,ColorMatrix2:50722,CameraCalibration1:50723,CameraCalibration2:50724,ReductionMatrix1:50725,ReductionMatrix2:50726,AnalogBalance:50727,AsShotNeutral:50728,AsShotWhiteXY:50729,BaselineExposure:50730,BaselineNoise:50731,BaselineSharpness:50732,BayerGreenSplit:50733,LinearResponseLimit:50734,CameraSerialNumber:50735,LensInfo:50736,ChromaBlurRadius:50737,AntiAliasStrength:50738,ShadowScale:50739,DNGPrivateData:50740,MakerNoteSafety:50741,CalibrationIlluminant1:50778,CalibrationIlluminant2:50779,BestQualityScale:50780,RawDataUniqueID:50781,OriginalRawFileName:50827,OriginalRawFileData:50828,ActiveArea:50829,MaskedAreas:50830,AsShotICCProfile:50831,AsShotPreProfileMatrix:50832,CurrentICCProfile:50833,CurrentPreProfileMatrix:50834,ColorimetricReference:50879,CameraCalibrationSignature:50931,ProfileCalibrationSignature:50932,AsShotProfileName:50934,NoiseReductionApplied:50935,ProfileName:50936,ProfileHueSatMapDims:50937,ProfileHueSatMapData1:50938,ProfileHueSatMapData2:50939,ProfileToneCurve:50940,ProfileEmbedPolicy:50941,ProfileCopyright:50942,ForwardMatrix1:50964,ForwardMatrix2:50965,PreviewApplicationName:50966,PreviewApplicationVersion:50967,PreviewSettingsName:50968,PreviewSettingsDigest:50969,PreviewColorSpace:50970,PreviewDateTime:50971,RawImageDigest:50972,OriginalRawFileDigest:50973,SubTileBlockSize:50974,RowInterleaveFactor:50975,ProfileLookTableDims:50981,ProfileLookTableData:50982,OpcodeList1:51008,OpcodeList2:51009,OpcodeList3:51022,NoiseProfile:51041},e.ExifIFD={ExposureTime:33434,FNumber:33437,ExposureProgram:34850,SpectralSensitivity:34852,ISOSpeedRatings:34855,OECF:34856,SensitivityType:34864,StandardOutputSensitivity:34865,RecommendedExposureIndex:34866,ISOSpeed:34867,ISOSpeedLatitudeyyy:34868,ISOSpeedLatitudezzz:34869,ExifVersion:36864,DateTimeOriginal:36867,DateTimeDigitized:36868,ComponentsConfiguration:37121,CompressedBitsPerPixel:37122,ShutterSpeedValue:37377,ApertureValue:37378,BrightnessValue:37379,ExposureBiasValue:37380,MaxApertureValue:37381,SubjectDistance:37382,MeteringMode:37383,LightSource:37384,Flash:37385,FocalLength:37386,SubjectArea:37396,MakerNote:37500,UserComment:37510,SubSecTime:37520,SubSecTimeOriginal:37521,SubSecTimeDigitized:37522,FlashpixVersion:40960,ColorSpace:40961,PixelXDimension:40962,PixelYDimension:40963,RelatedSoundFile:40964,InteroperabilityTag:40965,FlashEnergy:41483,SpatialFrequencyResponse:41484,FocalPlaneXResolution:41486,FocalPlaneYResolution:41487,FocalPlaneResolutionUnit:41488,SubjectLocation:41492,ExposureIndex:41493,SensingMethod:41495,FileSource:41728,SceneType:41729,CFAPattern:41730,CustomRendered:41985,ExposureMode:41986,WhiteBalance:41987,DigitalZoomRatio:41988,FocalLengthIn35mmFilm:41989,SceneCaptureType:41990,GainControl:41991,Contrast:41992,Saturation:41993,Sharpness:41994,DeviceSettingDescription:41995,SubjectDistanceRange:41996,ImageUniqueID:42016,CameraOwnerName:42032,BodySerialNumber:42033,LensSpecification:42034,LensMake:42035,LensModel:42036,LensSerialNumber:42037,Gamma:42240},e.GPSIFD={GPSVersionID:0,GPSLatitudeRef:1,GPSLatitude:2,GPSLongitudeRef:3,GPSLongitude:4,GPSAltitudeRef:5,GPSAltitude:6,GPSTimeStamp:7,GPSSatellites:8,GPSStatus:9,GPSMeasureMode:10,GPSDOP:11,GPSSpeedRef:12,GPSSpeed:13,GPSTrackRef:14,GPSTrack:15,GPSImgDirectionRef:16,GPSImgDirection:17,GPSMapDatum:18,GPSDestLatitudeRef:19,GPSDestLatitude:20,GPSDestLongitudeRef:21,GPSDestLongitude:22,GPSDestBearingRef:23,GPSDestBearing:24,GPSDestDistanceRef:25,GPSDestDistance:26,GPSProcessingMethod:27,GPSAreaInformation:28,GPSDateStamp:29,GPSDifferential:30,GPSHPositioningError:31},e.InteropIFD={InteroperabilityIndex:1},e.GPSHelper={degToDmsRational:function(t){var n=Math.abs(t),e=n%1*60,r=e%1*60;return[[Math.floor(n),1],[Math.floor(e),1],[Math.round(100*r),100]]},dmsRationalToDeg:function(t,n){return(t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600)*("S"===n||"W"===n?-1:1)}},t.exports&&(n=t.exports=e),n.piexif=e}()}));var z;!function(t){t.JPEG="image/jpeg",t.PNG="image/png"}(z||(z={}));class L{constructor(t,n){this.streamPaused=!1,this.recordedChunks=[],this.videoSize={width:0,height:0},this.pauseStream=()=>{this.streamPaused=!0,this.mediaRecorder.pause(),this.videoElement.pause()},this.device=t,this.idML5Detector=F.getInstance(this,t.isMobile),this.faceML5Detector=R.getInstance(this,t.isMobile)}setFaceDetection(t){this.faceDetection=t,this.idDetection=!t}setIdDetection(t){this.idDetection=t,this.faceDetection=!t}setCallbackChangeTitle(t){this.callbackChangeTitle=t}setCallbackStopAnimation(t){this.callbackStopAnimation=t}setCallbackVideoStarted(t){this.callbackVideoStarted=t}setCallbackErrors(t){this.callbackErrors=t}setCallbackAutoCapturing(t){this.callbackAutoCapturing=t}setCallbackRecordingReady(t){this.callbackRecordingReady=t}setCallbackTimeElapsed(t){this.callbackTimeElapsed=t}setVerificationFinished(t){this.verificationFinished=t}static getInstance(t,n){return L.instance||(L.instance=new L(t,n)),L.instance}autoCapturing(){this.callbackAutoCapturing()}timeElapsed(){this.callbackTimeElapsed()}verificationReady(){this.verificationFinished()}updateHtmlElements(t,n,e){this.videoElement=t,this.canvasElement=n,this.idML5Detector.updateHtmlElements(this.videoElement,this.canvasElement,e),this.faceML5Detector.updateHtmlElements(this.videoElement,this.canvasElement,e)}static orientationChange(){}startStream(t){this.stream&&this.stream.getTracks().forEach((t=>t.stop())),this.stream=t,"srcObject"in this.videoElement?this.videoElement.srcObject=t:this.videoElement.src=window.URL.createObjectURL(t),this.videoElement.addEventListener("loadedmetadata",(async()=>{this.videoElement.play().then((()=>{this.streamPaused=!1,this.updateCanvasSize(this.canvasElement),this.updateVideoSize(this.videoElement),this.callbackVideoStarted(),this.idDetection&&this.startIdDetection(),this.faceDetection&&this.startFaceDetection()}))}),!1)}async initStream(t){this.startStream(t),this.recordStream()}async resumeStream(){this.streamPaused=!1,this.mediaRecorder.resume(),await this.videoElement.play()}recordStream(){var t={mimeType:"video/webm;codecs=vp8",videoBitsPerSecond:15e5};MediaRecorder.isTypeSupported(t.mimeType)||(this.device.isIos||this.device.isSafari)&&(t.mimeType="video/mp4;codecs:h264"),this.recordedChunks=[],this.mediaRecorder=new MediaRecorder(this.stream,t),this.mediaRecorder.ondataavailable=t=>{this.recordedChunks.push(t.data)},this.mediaRecorder.onstop=async()=>{this.saveVideoRecording(this.recordedChunks,t.mimeType),this.recordedChunks=[]},this.mediaRecorder.start()}async saveVideoRecording(t,n){var e=new Blob(t,{type:n.split(";")[0]});this.callbackRecordingReady(e)}updateCanvasSize(t){this.videoSize={width:this.videoElement.videoWidth,height:this.videoElement.videoHeight},t.width=this.videoSize.width,t.height=this.videoSize.height}updateVideoSize(t){this.videoSize={width:this.videoElement.videoWidth,height:this.videoElement.videoHeight},t.width=this.videoSize.width,t.height=this.videoSize.height}dropStream(){this.streamStopped()||(this.stream.getTracks().forEach((t=>t.stop())),this.videoElement.srcObject=null),this.mediaRecorder&&"inactive"!=this.mediaRecorder.state&&this.mediaRecorder.stop()}streamStopped(){return!(this.stream&&this.stream.getTracks&&this.stream.getTracks().length>0)}takePhoto(){return new Promise((async t=>{const n=document.createElement("canvas");n.style.visibility="hidden",n.width=this.videoElement.videoWidth,n.height=this.videoElement.videoHeight,t([await this.getFrame(n)])}))}getFrame(t){return new Promise((n=>{t.getContext("2d").drawImage(this.videoElement,0,0,t.width,t.height),t.toBlob((t=>{if(t.type!==z.JPEG||this.device.isIos)n(t);else try{(async(t,n,e)=>{const r=await(t=>new Promise((n=>{const e=new FileReader;e.onloadend=()=>n(e.result),e.readAsDataURL(t)})))(t),i=I.load(r),o=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind)).map((t=>t.label)),u={width:e.width,height:e.height,usedCamera:n.label,camerasOnDevice:o},a={"0th":Object.assign(Object.assign({},i["0th"]),{[I.ImageIFD.Model]:u.usedCamera,[I.ImageIFD.ImageWidth]:u.width,[I.ImageIFD.ImageLength]:u.height}),Exif:Object.assign(Object.assign({},i.Exif),{[I.ExifIFD.UserComment]:JSON.stringify(u)}),GPS:Object.assign({},i.GPS),Interop:Object.assign({},i.Interop),"1st":Object.assign({},i["1st"]),thumbnail:i.thumbnail},s=I.dump(a),c=I.insert(s,r);return await fetch(c).then((t=>t.blob()))})(t,this.stream.getTracks()[0],this.videoSize).then((t=>n(t)))}catch(e){n(t),this.callbackErrors(e,!1)}}),z.PNG,1)}))}async startIdDetection(){this.streamPaused||this.idML5Detector.initDetector()}async startFaceDetection(){this.streamPaused||this.faceML5Detector.initDetector()}requestFacePose(){var t=class{static randomEnum(t){const n=Object.keys(t).map((t=>Number.parseInt(t))).filter((t=>!Number.isNaN(t)));return n[Math.floor(Math.random()*n.length)]}}.randomEnum(S);return this.callbackChangeTitle(t),t}changeFacePose(){this.callbackChangeTitle(null)}changeIDPose(t){this.callbackChangeTitle(t)}stopAnimation(){this.callbackStopAnimation()}}window.addEventListener("resize",L.orientationChange,!1),window.addEventListener("orientationchange",L.orientationChange,!1);const B=class{constructor(t){e(this,t),this.eventVideoStarted=r(this,"videoStarted",7),this.eventCloseCamera=r(this,"closeCamera",7),this.errorCameraEvent=r(this,"errorCamera",7),this.eventTakePhoto=r(this,"takePhoto",7),this.eventRecordingSelfieReady=r(this,"recordingSelfieCapture",7),this.eventRecordingIdReady=r(this,"recordingIdCapture",7),this.eventTimeElapsed=r(this,"timeElapsed",7),this.eventChangeTitle=r(this,"changeTitle",7),this.eventStopAnimation=r(this,"stopAnimation",7),this.verificationFinished=r(this,"verificationFinished",7),this.callbackErrors=(t,n)=>{n?(this.errorCameraEvent.emit(t),this.eventCloseCamera.emit()):this.errorCameraEvent.emit(t)},this.callbackAutoCapturing=()=>{this.eventTakePhoto.emit()},this.callbackSelfieRecordingReady=t=>{this.eventRecordingSelfieReady.emit(t)},this.callbackIdRecordingReady=t=>{this.eventRecordingIdReady.emit(t)},this.callbackTimeElapsed=()=>{this.eventTimeElapsed.emit()},this.callbackChangeTitle=t=>{this.eventChangeTitle.emit(t)},this.callbackStopAnimation=()=>{this.eventStopAnimation.emit()},this.callbackVideoStarted=()=>{this.eventVideoStarted.emit(this.component.getBoundingClientRect())},this.callbackVerificationFinished=()=>{this.verificationFinished.emit()},this.modelPath=void 0,this.device=void 0,this.probabilityThreshold=void 0,this.captureMode=void 0}componentDidLoad(){this.startStream()}render(){let t="cameraVideo",n="cameraCanvas";return this.device.isWin&&(t="cameraVideoSelfieDesk",n="cameraCanvasSelfieDesk"),"selfie"==this.captureMode&&(t="cameraVideoSelfie",n="cameraCanvasSelfie"),i("div",{class:"camera"},i("video",{id:"video",loop:!0,autoplay:!0,playsinline:!0,muted:!0,class:t,ref:t=>this.cameraVideo=t}),i("canvas",{id:"output",class:n,ref:t=>this.cameraCanvas=t}))}startStream(){L.instance||L.getInstance(this.device,this.modelPath);const t=L.getInstance();t.updateHtmlElements(this.cameraVideo,this.cameraCanvas,this.component),"selfie"==this.captureMode?(t.setFaceDetection(!0),t.setCallbackRecordingReady(this.callbackSelfieRecordingReady)):(t.setIdDetection(!0),t.setCallbackRecordingReady(this.callbackIdRecordingReady)),t.setCallbackErrors(this.callbackErrors),t.setCallbackAutoCapturing(this.callbackAutoCapturing),t.setCallbackChangeTitle(this.callbackChangeTitle),t.setCallbackStopAnimation(this.callbackStopAnimation),t.setCallbackVideoStarted(this.callbackVideoStarted),t.setCallbackTimeElapsed(this.callbackTimeElapsed),t.setVerificationFinished(this.callbackVerificationFinished)}get component(){return o(this)}};B.style=".camera{width:100%;height:100%;color:white;display:flex;align-items:center;justify-content:center;position:relative}.cameraCanvas,.cameraCanvasSelfie,.cameraCanvasSelfieDesk{z-index:3;max-width:100%;max-height:100%;border-radius:10px}.cameraCanvasSelfie,.cameraCanvasSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraVideo,.cameraVideoSelfie,.cameraVideoSelfieDesk{z-index:2;position:absolute;max-width:100%;max-height:100%;border-radius:10px}.cameraVideoSelfie,.cameraVideoSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraMobile{position:fixed;top:0;left:0;background:black}";const P=class{constructor(t){e(this,t),this.eventCaptureErrorDone=r(this,"captureErrorDone",7),this.type=void 0}componentWillRender(){"ID"==this.type&&(this.imagePath="https://ekyc.blob.core.windows.net/$web/capture-error_idError.png",this.description=b.Error),"LIVENESS"==this.type&&(this.imagePath="https://ekyc.blob.core.windows.net/$web/capture-error_selfieError.png",this.description=g.Error)}buttonClick(){this.eventCaptureErrorDone.emit()}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",{class:"buletin-container"},i("img",{class:"w-45",src:this.imagePath})),i("div",null,i("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.description)),i("div",{class:"pos-relative"},i("div",{class:"btn-buletin"},i("button",{class:"main-button",onClick:()=>this.buttonClick()},b.Button),i("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText)))))}};P.style="";class U{static init(t){this.cameraModule=t}static flowStarted(){this.cameraModule.dispatchEvent(new CustomEvent("ect-started",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowCompleted(){sessionStorage.removeItem(m.RequestIdKey),sessionStorage.removeItem(m.FlowStatusKey),sessionStorage.removeItem(m.TokenKey),this.cameraModule.dispatchEvent(new CustomEvent("ect-completed",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowError(t){this.cameraModule.dispatchEvent(new CustomEvent("ect-error",{detail:{error:t},bubbles:!0,cancelable:!0,composed:!0}))}static tokenExpired(){this.cameraModule.dispatchEvent(new CustomEvent("ect-session-expired",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}}const $=class{constructor(t){e(this,t)}componentDidLoad(){U.init(window),U.flowCompleted()}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("h1",{class:"text-center"},p.Title),i("p",{class:"main-text font-size-18 mt-8 text-center"},p.Description)),i("div",{class:"buletin-container"},i("div",{class:"container-coin"},i("div",{class:"coin-scale"},i("div",{class:"coin-flip"},i("img",{class:"w-40 coin",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iODQiIHZpZXdCb3g9IjAgMCA4MyA4NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00MS41IDgzLjcwNjJDMzAuNDE0NyA4My43MDYyIDE5Ljk5MjkgNzkuMzgwNCAxMi4xNTQ2IDcxLjUyNUM0LjMxNjQxIDYzLjY2OTcgMCA1My4yMjUxIDAgNDIuMTE1NkMwIDMxLjAwNjEgNC4zMTY0MSAyMC41NjE1IDEyLjE1NDYgMTIuNzA2MUMxOS45OTI5IDQuODUwNzUgMzAuNDE0NyAwLjUyNDkwMiA0MS41IDAuNTI0OTAyQzUyLjU4NTMgMC41MjQ5MDIgNjMuMDA3MSA0Ljg1MDc1IDcwLjg0NTMgMTIuNzA2MUM3OC42ODM2IDI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A0NiAzNi4xODkgMjIuOTE1MiAzNi43MjQxIDIxLjk0NTcgMzcuNjk1N0MxOS45NDEzIDM5LjcwNDUgMTkuOTQxMyA0Mi45NjQ5IDIxLjkzNzkgNDQuOTcwNkwzMy44MzUgNTYuOTEyNEMzNC44MDQ0IDU3Ljg4NTUgMzYuMDkzOSA1OC40MjIyIDM3LjQ2NDUgNTguNDIyMkgzNy40NjYxQzM4LjgzNjcgNTguNDIyMiA0MC4xMjYyIDU3Ljg4NzEgNDEuMDk1NiA1Ni45MTU1TDYxLjA1ODggMzYuOTA4N0M2My4wNjAxIDM0LjkwMyA2My4wNjAxIDMxLjYzOTUgNjEuMDU4OCAyOS42MzM4QzU5LjA1NzUgMjcuNjI4MSA1NS44MDExIDI3LjYyODEgNTMuNzk5NyAyOS42MzM4TDUyLjMwNDIgMjguMTM1TDUzLjc5OTcgMjkuNjMzOEwzOC45NzU3IDQ0LjQ5MDNDMzguMTQ5OCA0NS4zMTc5IDM2LjgxMDQgNDUuMzE3OSAzNS45ODQ2IDQ0LjQ5MDNMMjkuMjAzMiAzNy42OTQxQzI4LjIzMzggMzYuNzIyNSAyNi45NDQzIDM2LjE4NzUgMjUuNTczNyAzNi4xODc1TDI1LjU3NTMgMzYuMTg5WiIgZmlsbD0iIzVEQzFBQyIvPg0KPC9zdmc+DQo="}))))),i("div",null,i("p",{class:"font-weight-900 font-size-3 color-black-2 text-center mt-20"},p.Message),i("p",null,x.requestId)),i("div",{class:"btn-buletin"},i("p",{class:"main-text font-size-18 text-center mb-0"},p.FooterText))))}};$.style="h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";const V=class{constructor(t){e(this,t),this.message=void 0}componentDidLoad(){U.init(window),U.flowError(this.message)}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.message))))}};V.style="";const W=class{constructor(t){e(this,t),this.eventHowToInfoDone=r(this,"howToInfoDone",7),this.idSide=void 0,this.topTitle=void 0,this.subTitle=void 0,this.descriptionR1=void 0,this.descriptionR2=void 0,this.descriptionR3=void 0,this.imagePath=void 0,this.buttonText=void 0}buttonClick(){this.eventHowToInfoDone.emit()}componentWillLoad(){this.subTitle="",x.flowStatus==c.ID&&(this.topTitle=l.IdTitile,this.descriptionR1=l.IdDescriptionR1,this.descriptionR2=l.IdDescriptionR2,this.descriptionR3=l.IdDescriptionR3,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_id.png",this.buttonText=l.IdButton,"front"==this.idSide&&(this.subTitle=l.IdSubTitileFace),"back"==this.idSide&&(this.subTitle=l.IdSubTitileBack)),x.flowStatus==c.LIVENESS&&(this.topTitle=l.SelfieTitile,this.descriptionR1=l.SelfieDescriptionR1,this.descriptionR2=l.SelfieDescriptionR2,this.descriptionR3="",this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_selfie.png",this.buttonText=l.SelfieButton)}render(){let t=x.flowStatus==c.ID?i("ul",{class:"main-text font-size-2 pl-2-5"},i("li",null,this.descriptionR1),i("li",null,this.descriptionR2),i("li",null,i("b",null,this.descriptionR3))):i("ul",{class:"main-text font-size-2 pl-2-5"},i("li",null,this.descriptionR1),i("li",null,this.descriptionR2)),n=""!=this.subTitle?i("p",null,this.subTitle):null;return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("h1",null,this.topTitle),n,i("div",{class:"d-flex space-between align-center"},t)),i("div",{class:"div-ci"},i("img",{src:this.imagePath})),i("div",{class:"pos-relative"},i("div",{class:"btn-buletin"},i("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),i("p",{class:"main-text font-size-18 text-right mb-0"},l.FooterText)))))}};W.style="";class G{async GetCameras(t){var n=[];const e=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind));for(const r of e){const e=this.GetConstraints(r.deviceId,t),i=await navigator.mediaDevices.getUserMedia(e);i.getVideoTracks().forEach((e=>{if(t.isFirefox){const t=e.getSettings();let i=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";i="e"===i?"environment":i,n.push({deviceId:r.deviceId,name:r.label,height:t.height,width:t.width,frameRate:Number(t.frameRate.max),torch:!1,recommended:!1,facingMode:i})}else{const t=e.getCapabilities();let i=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";i="e"===i?"environment":i,n.push({deviceId:r.deviceId,name:r.label,height:t.height.max,width:t.width.max,frameRate:Number(t.frameRate.max),torch:t.torch,recommended:!1,facingMode:i})}})),i.getTracks().forEach((t=>{t.stop()}))}if(n.length>0){var r=(n=n.sort(((t,n)=>n.frameRate-t.frameRate))).find((t=>-1!=t.name.indexOf("0,")&&"environment"===t.facingMode));if(r)n[n.indexOf(r)].recommended=!0;else{var i=n.find((t=>"environment"===t.facingMode));i&&(n[n.indexOf(i)].recommended=!0)}}return n}GetConstraints(t,n,e=!1){let r={audio:!1,video:{frameRate:30}};return t&&(r.video.deviceId={exact:t}),n.isWin?r.video.width={ideal:1280}:e?(r.video.facingMode="user",r.video.width={ideal:1280},r.video.height={ideal:720}):(r.video.facingMode="environment",r.video.width={ideal:1280},r.video.aspectRatio=1),r}GetRecommendedCamera(t){if(t&&t.length>0){var n=t.find((t=>t.recommended));if(n)return n}return null}}const q=class{constructor(t){e(this,t),this.eventPhotoCapture=r(this,"photoIdBackCapture",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.device=void 0,this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new G}eventChangeTitle(t){this.titleMesage=b.IDPoseMapping[t.detail]}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}eventStopAnimation(){}async componentWillLoad(){U.init(this.component),this.titleMesage=b.TitleBack,navigator.mediaDevices||U.flowError("This browser does not support webRTC")}componentDidLoad(){this.openCamera()}async openCamera(){let t=await this.cameras.GetCameras(this.device);var n=this.cameras.GetRecommendedCamera(t),e=this.cameras.GetConstraints(null==n?void 0:n.deviceId,this.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(e).then((t=>{L.getInstance().initStream(t)})).catch((t=>{this.closeCamera(),U.flowError(t)}))}),100)}closeCamera(){L.instance&&L.getInstance().dropStream()}disconnectedCallback(){this.closeCamera(),L.instance=null,F.instance=null,R.instance=null}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=b.Loading,this.closeCamera())}takePhoto(){this.captureTaken||(this.captureTaken=!0,this.titleMesage=b.Loading,L.getInstance().takePhoto().then((t=>{this.photoIsReady(t[0])})))}render(){let t,n,e;return this.verified&&(t=i("div",{class:"pos-relative"},i("div",{class:"dot-effect"},i("div",{class:"snippet","data-title":".dot-shuttle"},i("div",{class:"stage filter-contrast"},i("div",{class:"dot-shuttle"})))))),this.videoStarted&&(n={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},e={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"}),i("div",{class:"container bg-black"},i("div",{class:"row ctheight-100"},i("div",null,i("h1",{class:"color-white"},this.titleMesage)),i("div",{hidden:this.verified,class:"chenar-buletin pos-relative"},i("div",{style:n},i("div",{style:e},i("camera-comp",{device:this.device,"capture-mode":"id"})))),t,i("div",{class:"pos-relative"},i("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText))))}get component(){return o(this)}};q.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const H=class{constructor(t){e(this,t),this.eventPhotoCapture=r(this,"photoIdCapture",7),this.delay=t=>new Promise((n=>setTimeout(n,t))),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.device=void 0,this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new G,this.showDemo=!0}async eventChangeTitle(t){this.showDemo=!0,this.titleMesage=b.IDPoseMapping[t.detail],this.demoVideo.src=b.IDPoseDemoMapping[D.Tilted],this.demoVideo.play(),await this.delay(5100),this.showDemo=!1}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}eventStopAnimation(){}async componentWillLoad(){U.init(this.component),this.titleMesage=b.Title,navigator.mediaDevices||U.flowError("This browser does not support webRTC")}async componentDidLoad(){this.demoVideo.src=b.IDPoseDemoMapping[D.Straight],this.demoVideo.play(),await this.delay(5100),this.showDemo=!1,this.openCamera()}async openCamera(){let t=await this.cameras.GetCameras(this.device);var n=this.cameras.GetRecommendedCamera(t),e=this.cameras.GetConstraints(null==n?void 0:n.deviceId,this.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(e).then((t=>{L.getInstance().initStream(t)})).catch((t=>{this.closeCamera(),U.flowError(t)}))}),100)}closeCamera(){L.instance&&L.getInstance().dropStream()}disconnectedCallback(){this.closeCamera(),L.instance=null,F.instance=null,R.instance=null}takePhoto(){this.captureTaken||(this.captureTaken=!0,L.getInstance().takePhoto().then((t=>{this.photoIsReady(t[0])})))}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=b.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,n;return this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},n={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"}),i("div",{class:"container bg-black"},i("div",{class:"row ctheight-100"},i("div",{hidden:0==this.showDemo},i("video",{id:"howtoFront",class:"cameraVideoDemo",playsinline:!0,ref:t=>this.demoVideo=t},i("source",{type:"video/mp4"}))),i("div",{hidden:this.verified},i("div",{class:"chenar-buletin pos-relative",hidden:this.showDemo},i("div",{style:t},i("div",{style:n},i("camera-comp",{device:this.device,"capture-mode":"id"})))),i("div",{class:"title"},i("h1",{class:"color-white"},this.titleMesage)),i("div",{class:"pos-relative"},i("p",{class:"main-text font-size-18 text-right mb-0"},b.FooterText)))))}get component(){return o(this)}};H.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}.cameraVideoDemo{z-index:1;max-width:100%;max-height:100%;border-radius:10px}.title{z-index:0;margin-top:3vh;margin-bottom:3vh;position:absolute;bottom:10vh}";const Y=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.device=void 0,this.showTimeout=void 0,this.showInvalid=void 0,this.showHowTo=void 0,this.front=void 0,this.flow={done:!1,verificationFinished:!1,photoFile:null,photoFileName:"",photoUploadType:"",recordingFile:null,recordingFileName:"",recordingUploadType:""},this.apiCall=new A}componentWillLoad(){this.captureRetryCount=0,this.showHowTo=!0,this.flow.photoFileName="idImage.png",this.flow.recordingFileName="idVideo.",this.flow.photoUploadType="IdFront",this.flow.recordingUploadType="IdFrontVideo",this.front=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.flow.photoFileName="idImage.png",this.flow.recordingFileName="idVideo.",this.flow.photoUploadType="IdFront",this.flow.recordingUploadType="IdFrontVideo",this.front=!0,this.showInvalid=!1)}async captureIdImage(t){let n=t.detail;try{this.flow.photoFile=new File([n],this.flow.photoFileName,{type:"image/png"}),await this.runFlow()}catch(t){this.apiErrorEvent.emit(t)}}async captureIdBackImage(t){let n=t.detail;try{this.flow.photoFile=new File([n],this.flow.photoFileName,{type:"image/png"}),await this.runFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedIdRecording(t){let n=t.detail,e=n.type.split(";")[0],r=e.split("/")[1];try{this.flow.recordingFile=new File([n],this.flow.recordingFileName+r,{type:e}),await this.runFlow()}catch(t){this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.flow.verificationFinished=!0,this.flow.done&&(x.flowStatus=c.LIVENESS)}async runFlow(){if(null!=this.flow.photoFile&&null!=this.flow.recordingFile&&!this.flow.done)return!1===await this.apiCall.UploadFileForRequestB64(x.requestId,this.flow.photoUploadType,this.flow.photoFile)?(this.flow.done=!1,this.flow.photoFile=null,this.flow.recordingFile=null,this.switchCamera(),void(this.showInvalid=!0)):void(!0===await this.apiCall.UploadFileForRequestB64(x.requestId,this.flow.recordingUploadType,this.flow.recordingFile)?this.front?(this.flow.photoFileName="idBackImage.png",this.flow.recordingFileName="idBackVideo.",this.flow.photoUploadType="IdBack",this.flow.recordingUploadType="IdBackVideo",this.front=!1,this.showHowTo=!0):(this.flow.done=!0,this.flow.verificationFinished&&(x.flowStatus=c.LIVENESS)):(this.flow.photoFile=null,this.flow.recordingFile=null,this.showInvalid=!0))}switchCamera(){if(2==this.captureRetryCount){let t=x.cameraIds.indexOf(x.cameraId);x.cameraId=t===x.cameraIds.length-1?x.cameraIds[0]:x.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=i("capture-error",{type:"ID"}),n=i("id-capture",{id:"idFront",device:this.device}),e=i("id-back-capture",{id:"idBack",device:this.device}),r=i("how-to-info",{idSide:this.front?"front":"back"});return this.showHowTo?r:this.showInvalid||this.showTimeout?t:this.front?n:e}};Y.style="";const Q=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.device=void 0,this.showTimeout=void 0,this.showHowTo=void 0,this.idFlow={verificationFinished:!1,done:!1,photoFile:null,recordingFile:null},this.apiCall=new A,this.captureRetryCount=0,this.showHowTo=!0}captureErrorDone(){this.showTimeout=!1}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}async captureIdImage(t){let n=t.detail;try{this.idFlow.photoFile=new File([n],"idImage.png",{type:"image/png"}),await this.runIdFlow()}catch(t){this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.idFlow.verificationFinished=!0,this.idFlow.done&&(x.flowStatus=c.LIVENESS)}async capturedIdRecording(t){let n=t.detail,e=n.type.split(";")[0],r=e.split("/")[1];if(x.flowStatus==c.ID)try{this.idFlow.recordingFile=new File([n],"idVideo."+r,{type:e}),await this.runIdFlow()}catch(t){this.apiErrorEvent.emit(t)}}async runIdFlow(){if(null==this.idFlow.photoFile||null==this.idFlow.recordingFile||this.idFlow.done)return;if(!1===await this.apiCall.UploadFileForRequestB64(x.requestId,"IdFront",this.idFlow.photoFile))return this.idFlow.done=!1,this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.switchCamera(),void(this.showTimeout=!0);let t=await this.apiCall.UploadFileForRequestB64(x.requestId,"IdFrontVideo",this.idFlow.recordingFile);this.idFlow.done=t,!0===t&&this.idFlow.verificationFinished?x.flowStatus=c.LIVENESS:(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!0)}switchCamera(){if(2==this.captureRetryCount){let t=x.cameraIds.indexOf(x.cameraId);x.cameraId=t===x.cameraIds.length-1?x.cameraIds[0]:x.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=i("capture-error",{type:"ID"}),n=i("id-capture",{id:"idFront",device:this.device}),e=i("how-to-info",{idSide:"front"});return this.showHowTo?e:this.showTimeout?t:n}};Q.style="";const X=class{constructor(t){e(this,t),this.token=void 0,this.order_id=void 0,this.api_url=void 0,this.idSide="",this.errorMessage=void 0,k.getInstance(),this.device=(()=>{let t={isMobile:!1,isAndroid:!1,isLinux:!1,isMac:!1,isWin:!1,isChrome:!1,isFirefox:!1,isSafari:!1,isIos:!1};return t.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),t.isAndroid=/Android/i.test(navigator.userAgent),t.isIos=/iPhone|iPad|iPod/i.test(navigator.userAgent),t.isLinux=/linux/i.test(navigator.platform),t.isMac=/mac/i.test(navigator.platform),t.isWin=/win/i.test(navigator.platform),t.isChrome=/chrome/i.test(navigator.userAgent),t.isFirefox=/firefox/i.test(navigator.userAgent),t.isSafari=!t.isChrome&&/safari/i.test(navigator.userAgent),t.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),t.isAndroid=/Android/i.test(navigator.userAgent),t.isIos=/iPhone|iPad|iPod/i.test(navigator.userAgent),t.isIos||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&(t.isIos=!0,t.isMobile=!0),t})(),this.apiCall=new A}async onTokenChange(t,n){""==x.token?x.token!==t&&(x.token=t,sessionStorage.setItem(m.TokenKey,x.token),await this.initializeRequest()):t=x.token}async onOrderIdChange(t,n){""==x.requestId?x.requestId!==t&&(x.requestId=t,sessionStorage.setItem(m.RequestIdKey,x.requestId),await this.initializeRequest()):t=x.requestId}onApiUrlChange(t,n){""==x.apiBaseUrl?x.apiBaseUrl!==t&&(x.apiBaseUrl=t):t=x.apiBaseUrl}agreementAcceptanceEmitted(t){try{this.apiCall.GenerateAgreement(t.detail.agreementType)}catch(t){this.apiErrorEmitter(t)}}apiErrorEmitter(t){this.errorMessage=t.detail.message?t.detail.message:t.detail.stack?t.detail.stack:t,U.flowError(t),x.flowStatus=c.ERROREND}async componentWillLoad(){U.init(window),this.token&&(x.token=this.token),this.order_id&&(x.requestId=this.order_id,sessionStorage.setItem(m.RequestIdKey,x.requestId)),x.apiBaseUrl=this.api_url,await this.initializeRequest()}componentWillRender(){var t=sessionStorage.getItem(m.RequestIdKey);t&&(x.requestId=t);var n=sessionStorage.getItem(m.TokenKey);n&&(x.token=n),x.flowStatus=c[sessionStorage.getItem(m.FlowStatusKey)],x.flowStatus||(x.flowStatus=c.LANDING,sessionStorage.setItem(m.FlowStatusKey,c[x.flowStatus])),""==this.idSide&&(this.idSide=x.hasIdBack?"front":"")}async initializeRequest(){if(!x.initialised)try{""!=x.token&&""!=x.requestId&&(x.initialised=await this.apiCall.AddIdentificationRequest(x.requestId,JSON.stringify(this.device)))}catch(t){this.apiErrorEmitter(t)}}render(){let t=i("div",null);return x.flowStatus==c.LANDING&&(t=i("landing-validation",{device:this.device})),x.flowStatus==c.AGREEMENT&&(t=i("agreement-info",null)),x.flowStatus==c.PHONE&&(t=i("sms-code-validation",null)),x.flowStatus==c.CODE&&(t=i("sms-code-validation",null)),x.flowStatus==c.CODEERROR&&(t=i("sms-code-validation",null)),x.flowStatus!=c.ID||x.hasIdBack||(t=i("id-single-side",{id:"idFront",device:this.device})),x.flowStatus==c.ID&&x.hasIdBack&&(t=i("id-double-side",{id:"idFront",device:this.device})),x.flowStatus==c.LIVENESS&&(t=i("user-liveness",{device:this.device,id:"camera"})),x.flowStatus==c.COMPLETE&&(t=i("end-redirect",null)),x.flowStatus==c.ERROREND&&(t=i("error-end",{message:this.errorMessage})),i("div",null,t)}static get watchers(){return{token:["onTokenChange"],order_id:["onOrderIdChange"],api_url:["onApiUrlChange"]}}};X.style="@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#b67171}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-width:50%}.div-ci{text-align:center}.mt-10{margin-top:10vh}.pos-relative{position:relative}.btn-buletin{position:fixed;width:calc(100% - 5vh);bottom:5vh}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.dot-effect{position:fixed;bottom:13vh;width:calc(100% - 5vh);text-align:center;display:flex;align-items:center;justify-content:center}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.dot-shuttle{position:relative;left:-15px;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent;margin:-1px 0;opacity:1}.dot-shuttle::before{opacity:0.5}.dot-shuttle::after{opacity:0.5}.dot-shuttle::before,.dot-shuttle::after{content:'';display:inline-block;position:absolute;top:0;width:12px;height:12px;border-radius:6px;background-color:#1feaa6;color:transparent}.dot-shuttle::before{left:0;animation:dotShuttle 2s infinite ease-out}.dot-shuttle::after{left:0;animation:dotShuttle 2s infinite ease-out;animation-delay:1s}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@keyframes dotShuttle{0%,50%,100%{transform:translateX(0);opacity:1}25%{transform:translateX(-30px);opacity:0.5}75%{transform:translateX(30px);opacity:0.5}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}.dot-effect{max-width:490px}}";const J=class{constructor(t){e(this,t),this.device=void 0,this.warningText=void 0}async componentWillLoad(){await new Promise((t=>setTimeout(t,500))),await this.initRequest()}componentDidLoad(){U.init(window),U.flowStarted()}async initRequest(){this.warningText=x.hasIdBack?h.WarningMd:h.Warning}async startFlow(){x.initialised&&(x.flowStatus=x.agreementsValidation?c.AGREEMENT:x.phoneValidation?c.PHONE:c.ID)}render(){return i("div",{class:"container"},i("div",{class:"row"},i("div",null,i("h1",null,h.Title),i("div",{class:"d-flex space-between align-center"},i("p",{class:"main-text font-size-2"},h.Description),i("div",{class:"img-info"},i("div",{class:"i-effect"}),i("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDYgMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMC4zNDQ4NiAyNy44ODQ4VjguNzkzODZINS42Mzk2VjI3Ljg4NDhIMC4zNDQ4NlpNMy4wMDQ2NiA2LjMzMjkyQzIuMjE3NDkgNi4zMzI5MiAxLjU0MjE4IDYuMDcxOTEgMC45Nzg3MzggNS41NDk4OUMwLjQyMzU3NyA1LjAxOTU5IDAuMTQ1OTk2IDQuMzg1NzEgMC4xNDU5OTYgMy42NDgyNkMwLjE0NTk5NiAyLjkxOTA5IDAuNDIzNTc3IDIuMjkzNSAwLjk3ODczOCAxLjc3MTQ4QzEuNTQyMTggMS4yNDExOCAyLjIxNzQ5IDAuOTc2MDI5IDMuMDA0NjYgMC45NzYwMjlDMy43OTE4MyAwLjk3NjAyOSA0LjQ2Mjk5IDEuMjQxMTggNS4wMTgxNiAxLjc3MTQ4QzUuNTgxNiAyLjI5MzUgNS44NjMzMyAyLjkxOTA5IDUuODYzMzMgMy42NDgyNkM1Ljg2MzMzIDQuMzg1NzEgNS41ODE2IDUuMDE5NTkgNS4wM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5Ljc0MjggMTMuMDk1OEMxOS41MjQ0IDEzLjA5NTggMTkuMzQ2OCAxMi45MTgxIDE5LjM0NjggMTIuN1oiIGZpbGw9IiM2RTc0ODgiIHN0cm9rZT0iIzZFNzQ4OCIgc3Ryb2tlLXdpZHRoPSIwLjc0NDg5MSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE0XzE2MDEiPg0KPHJlY3Qgd2lkdGg9IjM5LjQ3OTIiIGhlaWdodD0iNDMuMjAzNyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMjYwMzc2IDAuNTEzNDI4KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K"})),i("h3",null,h.SmsInfo))),i("div",{class:"terms-container"},i("h3",{class:"font-size-2 mb-1"},this.warningText)),i("div",{class:"pos-relative"},i("div",{class:"btn-buletin"},i("button",{class:"main-button",disabled:!x.initialised,onClick:()=>this.startFlow()},h.Button),i("p",{class:"main-text font-size-18 text-right mb-0"},h.FooterText)))))}};J.style="";const K=class{constructor(t){e(this,t),this.eventPhotoCapture=r(this,"photoSelfieCapture",7),this.delay=t=>new Promise((n=>setTimeout(n,t))),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.device=void 0,this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.demoEnded=void 0,this.demoVideo=void 0,this.uploadingLink=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new G,this.demoEnded=!1,this.uploadingLink="https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4"}async eventChangeTitle(t){null==t.detail?this.titleMesage=g.FinalTitle:(this.titleMesage=g.FacePoseMapping[t.detail],this.demoEnded=!1,this.demoVideo.src=g.FacePoseDemoMapping[t.detail],this.demoVideo.play(),await this.delay(5100),this.demoEnded=!0)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}eventStopAnimation(){}componentWillLoad(){U.init(this.component),this.titleMesage=g.Title,navigator.mediaDevices||U.flowError("This browser does not support webRTC")}async componentDidLoad(){this.demoVideo.src=g.FacePoseDemoMapping[S.Main],this.demoVideo.play(),await this.delay(6e3),this.demoEnded=!0,this.openCamera()}async openCamera(){const t=this.cameras.GetConstraints("",this.device,!0);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{L.getInstance().initStream(t)})).catch((t=>{this.closeCamera(),U.flowError(t)}))}),100)}closeCamera(){L.instance&&L.getInstance().dropStream()}disconnectedCallback(){this.closeCamera(),L.instance=null,R.instance=null}takePhoto(){this.captureTaken||(this.captureTaken=!0,L.getInstance().takePhoto().then((t=>{this.photoIsReady(t[0])})))}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=g.Loading,this.closeCamera(),this.demoEnded=!1,this.demoVideo.src=this.uploadingLink,this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t="chenar-buletin pos-relative";return this.videoStarted&&this.cameraSize.width<this.cameraSize.height&&(t+=" block"),i("div",{class:"container bg-black"},i("div",{class:"row ctheight-100"},i("div",{hidden:this.demoEnded},i("video",{id:"howto",class:"cameraVideoDemo",playsinline:!0,ref:t=>this.demoVideo=t},i("source",{type:"video/mp4"}))),i("div",{hidden:this.verified},i("div",{class:t,hidden:0==this.demoEnded},i("camera-comp",{device:this.device,"capture-mode":"selfie"})),i("div",{class:"title"},i("h1",{class:"color-white"},this.titleMesage)),i("div",{class:"pos-relative"},i("p",{class:"main-text font-size-18 text-right mb-0"},g.FooterText)))))}get component(){return o(this)}};K.style=".block{width:60%;margin-left:20%}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;left:50%;top:50%;z-index:2;transform:scale(-1, 1)}.cameraVideoDemo{z-index:1;max-width:100%;max-height:100%;border-radius:10px}.title{z-index:0;margin-top:3vh;margin-bottom:3vh;position:absolute;bottom:10vh}";const Z=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.title=void 0,this.details=void 0,this.buttonText=void 0,this.phoneNumber=void 0,this.code=void 0,this.apiCall=new A}async doAction(){try{if(x.flowStatus==c.CODE||x.flowStatus==c.CODEERROR){var t=await this.apiCall.CheckOTPCode(x.requestId,this.code);x.flowStatus=!0===t?c.ID:c.CODEERROR}x.flowStatus==c.PHONE&&!0===await this.apiCall.SendOTPCode(x.requestId,this.phoneNumber)&&(x.flowStatus=c.CODE)}catch(t){this.apiErrorEvent.emit(t)}}componentWillRender(){x.flowStatus==c.PHONE&&(this.title=d.Title,this.details=d.Description,this.buttonText=d.Button),x.flowStatus!=c.CODE&&x.flowStatus!=c.CODEERROR||(this.title=v.Title,this.details=v.Description,this.buttonText=v.Button)}handleChangePhone(t){this.phoneNumber=(t.target?t.target.value:"").replace(/\D/g,""),this.phoneNumber.length>10&&(this.phoneNumber=this.phoneNumber.substring(0,10)),t.target.value=this.phoneNumber}handleChangeCode(t){this.code=t.target?t.target.value:"",this.code.length>4&&(this.code=this.code.substring(0,4)),t.target.value=this.code}render(){let t,n;return x.flowStatus==c.CODEERROR&&(n=i("p",{class:"main-text font-size-18 mt-15 color-red"},v.Error)),t=x.flowStatus==c.PHONE?i("div",{class:"input-container mb-15"},i("label",{class:"font-size-18 mb-1"},i("b",null,d.Label)),i("input",{type:"tel",id:"phoneInput",class:"main-input",onInput:t=>this.handleChangePhone(t),value:this.phoneNumber})):i("div",{class:"input-container mb-15"},i("input",{type:"text",id:"codeInput",class:"main-input",onInput:t=>this.handleChangeCode(t),value:this.code})),i("div",{class:"container"},i("div",{class:"row row-validare"},i("div",null,i("h1",null,this.title),null==n?i("p",{class:"main-text font-size-2 mt-15 mb-20"},this.details):n),t,i("div",{class:"btn-buletin"},i("button",{id:"action",class:"main-button",onClick:()=>this.doAction()},this.buttonText),i("p",{class:"main-text font-size-18 text-right mb-0"},d.FooterText))))}};Z.style="";const tt=class{constructor(t){e(this,t),this.apiErrorEvent=r(this,"apiError",7),this.selfieFlow={done:!1,verificationFinished:!1,photoFile:null,recordingFile:null},this.device=void 0,this.showError=void 0,this.showHowTo=void 0,this.apiCall=new A}componentWillLoad(){this.showHowTo=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showError=!0}captureErrorDone(){this.showError=!1}async captureSelfieImage(t){let n=t.detail;try{this.selfieFlow.photoFile=new File([n],"selfie.png",{type:"image/png"}),await this.runSelfieFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedSelfieRecording(t){let n=t.detail,e=n.type.split(";")[0],r=e.split("/")[1];try{this.selfieFlow.recordingFile=new File([n],"selfieVideo."+r,{type:e}),await this.runSelfieFlow()}catch(t){this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.selfieFlow.verificationFinished=!0,this.selfieFlow.done&&(x.flowStatus=c.COMPLETE)}async runSelfieFlow(){if(null==this.selfieFlow.photoFile||null==this.selfieFlow.recordingFile||this.selfieFlow.done)return;if(!1===await this.apiCall.UploadFileForRequestB64(x.requestId,"Selfie",this.selfieFlow.photoFile))return this.selfieFlow.done=!1,this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,void(this.showError=!0);let t=await this.apiCall.UploadFileForRequestB64(x.requestId,"SelfieVideo",this.selfieFlow.recordingFile);this.selfieFlow.done=t,1==t&&this.selfieFlow.verificationFinished?x.flowStatus=c.COMPLETE:(this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,this.showError=!0)}render(){let t=i("how-to-info",{idSide:""}),n=i("selfie-capture",{device:this.device,id:"camera"}),e=i("capture-error",{type:"LIVENESS"});return this.showHowTo?t:this.showError?e:n}};tt.style="";export{C as agreement_check,E as agreement_info,B as camera_comp,P as capture_error,$ as end_redirect,V as error_end,W as how_to_info,q as id_back_capture,H as id_capture,Y as id_double_side,Q as id_single_side,X as identification_component,J as landing_validation,K as selfie_capture,Z as sms_code_validation,tt as user_liveness}
@@ -1 +1 @@
1
- import{p as e,b as i}from"./p-742256cd.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-09bbdee5",[[1,"loader-dots"]]],["p-db1c99b2",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],idSide:[32],errorMessage:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"end-redirect"],[0,"error-end",{message:[1]}],[0,"landing-validation",{device:[16],warningText:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32]}],[0,"id-back-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],descriptionR1:[32],descriptionR2:[32],descriptionR3:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
1
+ import{p as e,b as i}from"./p-742256cd.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-09bbdee5",[[1,"loader-dots"]]],["p-0e23cf23",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],idSide:[32],errorMessage:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"end-redirect"],[0,"error-end",{message:[1]}],[0,"landing-validation",{device:[16],warningText:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32]}],[0,"id-back-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],descriptionR1:[32],descriptionR2:[32],descriptionR3:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekyc_qoobiss/qbs-ect-cmp",
3
- "version": "1.8.13",
3
+ "version": "1.8.16",
4
4
  "description": "Person Identification Component",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",