@azure/ai-vision-face-ui 1.4.1 → 1.4.3

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.
@@ -1,4 +1,4 @@
1
- var t="./";const e=t+"facelivenessdetector-assets/images/Smile.svg",s=t+"facelivenessdetector-assets/images/Brightness.svg",n=t+"facelivenessdetector-assets/images/FaceId.svg",i=t+"facelivenessdetector-assets/images/activeMotionVisualHint.png";function a(t,e){const s=c();return(a=function(t,e){return s[t-=169]})(t,e)}const r=a;!function(){const t=a,e=c();for(;;)try{if(213835==-parseInt(t(169))/1+parseInt(t(174))/2+parseInt(t(178))/3+-parseInt(t(171))/4+parseInt(t(170))/5+-parseInt(t(175))/6*(-parseInt(t(177))/7)+parseInt(t(172))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const o=["ar",r(173),"dv","fa","ha","he",r(176),"ks","ku","ps","ur","yi"];function c(){const t=["arc","405786Xqxrta","459342QcDPNI","khw","14kWcUSs","109737GeHMsD","308475rvDVUw","57205EIuEwW","156880NjMmUk","1260024ZbckQZ"];return(c=function(){return t})()}const u=h;function h(t,e){const s=l();return(h=function(t,e){return s[t-=135]})(t,e)}function l(){const t=["None","/facelivenessdetector-assets/js/","79709BYDXuQ","AzureAIVisionFace.js","_feedbackMessageStyles","length","feedbackMessageStyles","_mediaInfoDeviceId","keys","authToken","_skipInstructions","brightnessSVGPath","_deviceCorrelationId","2nmgAtz","checkModuleDefined","_continueButtonStyles","disconnectedCallback","Failed to load locale: ","FaceRecoEngineAdapter","endsWith","30OyHhaH","fontFamily","881472tOXZug","isConnected","33498btRtqN","statusText","createElement","24obvNMv","641436nfmkcv","text","AzureAIVisionFace_SIMD.js","start","buttonStyles","Unexpected","_locale","smilePath","isDefined","validate","fontSize","activeMotionVisualHint","1406170EFdssf","deviceCorrelationId","parse","_brightnessImagePath","connectedCallback","function","_fontFamily","bind","cleanup","brightnessImagePath","8072834uItpST","languageDictionary","includes","_fontSize",".wasm","script","en-US"," strings file: ","undefined","_baseAssetsURL","./facelivenessdetector-assets/i18n/","_languageDictionary","mediaInfoDeviceId","loadLanguageDictionary","isRtl","12IanqHX","/en.json","1963467fifFaY"];return(l=function(){return t})()}!function(){const t=h,e=l();for(;;)try{if(408848==-parseInt(t(139))/1+parseInt(t(196))/2*(parseInt(t(143))/3)+-parseInt(t(137))/4+-parseInt(t(155))/5*(-parseInt(t(180))/6)+parseInt(t(185))/7*(-parseInt(t(142))/8)+-parseInt(t(182))/9*(-parseInt(t(135))/10)+-parseInt(t(165))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var f=u(145);try{0==WebAssembly[u(152)](new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&(f="AzureAIVisionFace.js")}catch(t){f=u(186)}class d extends HTMLElement{constructor(){const t=u;super(),this[t(150)]=e,this.start=this[t(146)][t(162)](this),this[t(158)]="",this[t(198)]="",this._feedbackMessageStyles="",this[t(168)]="",this[t(161)]="",this._languageDictionary={},this.isRtl=!1,this[t(149)]=t(171),this[t(174)]="./",this[t(190)]="",this[t(193)]=!0,this[t(195)]="",this._userCorrelationId="",this[t(151)]=!1,this.isHTMLInit=!1,this[t(192)]="",this.faceId=n,this[t(154)]=i,this[t(194)]=s}set[u(164)](t){this[u(158)]=t}set[u(153)](t){this[u(168)]=t}set[u(136)](t){this[u(161)]=t}set[u(147)](t){this[u(198)]=t}set[u(189)](t){this[u(187)]=t}set locale(t){const e=u;this[e(149)]=t,o[e(167)](t)&&(this[e(179)]=!0)}set[u(166)](t){const e=u;this[e(176)]=t||this[e(176)]}set[u(177)](t){this[u(190)]=t}set skipInstructions(t){this[u(193)]=t}set[u(156)](t){this[u(195)]=t}set userCorrelationId(t){this._userCorrelationId=t}[u(146)]=async t=>{const e=u;return this[e(192)]=t,this[e(151)]=await this[e(197)](1e3,15),this[e(151)]?(await this[e(178)](),Module[e(146)](this)):new Promise((t,s)=>{const n=e;s({livenessError:n(148),recognitionError:n(183)})})};async[u(159)](){const t=u;if(this[t(138)]&&(typeof Module===t(173)||void 0===Module[t(201)])){const e=this._baseAssetsURL.replace(/\/$/,"")+t(184);window.Module={locateFile:function(s,n){const i=t;return s[i(167)]("AzureAIVisionFace")&&s[i(202)](i(169))?e+s:n+s}};const s=document[t(141)](t(170));s.src=e+f,document.head.appendChild(s)}}[u(199)](){const t=u;typeof Module!==t(173)&&typeof Module[t(163)]===t(160)&&Module.cleanup()}async[u(178)](){const t=u;if(0===Object[t(191)](this[t(176)])[t(188)]){let e=await fetch(t(175)+this[t(149)]+t(181));if(!e.ok)throw new Error(t(200)+this[t(149)]+t(172)+e[t(140)]+".");let s=await e[t(144)]();this[t(176)]=JSON[t(157)](s)}}async[u(197)](t,e){const s=u;let n=0;for(;n<e;){if(n++,typeof Module!==s(173)&&void 0!==Module.FaceRecoEngineAdapter)return!0;await new Promise(e=>setTimeout(e,t))}return!1}}function p(t,e){var s=g();return(p=function(t,e){return s[t-=128]})(t,e)}var I=p;function g(){var t=["1633668kRRUuL","102335jFFBHA","24oLInpL","2783344YaRFyT","1350PFuQXp","1999203dgkrsX","180bcjvUZ","define","459mjqpAQ","970307xNyEwp","1749475ziQYTs"];return(g=function(){return t})()}!function(){for(var t=p,e=g();;)try{if(717217==-parseInt(t(129))/1+parseInt(t(134))/2+-parseInt(t(136))/3+-parseInt(t(131))/4+parseInt(t(132))/5*(parseInt(t(137))/6)+-parseInt(t(130))/7*(-parseInt(t(133))/8)+-parseInt(t(128))/9*(-parseInt(t(135))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(138)]("azure-ai-vision-face-ui",d);export var LivenessStatus;
1
+ var t="./";const e=t+"facelivenessdetector-assets/images/Smile.svg",s=t+"facelivenessdetector-assets/images/Brightness.svg",n=t+"facelivenessdetector-assets/images/FaceId.svg",i=t+"facelivenessdetector-assets/images/activeMotionVisualHint.png";function a(){const t=["2837100UtDqFp","9rGfcqh","1458264qpMjrI","92072tbeQIl","2612337eFLnvQ","khw","arc","34kVvomV","217629YFkZuP","52990iCMKpu","5EuBwvP","847csPdwx","893657MRkyhJ"];return(a=function(){return t})()}const r=o;function o(t,e){const s=a();return(o=function(t,e){return s[t-=239]})(t,e)}!function(){const t=o,e=a();for(;;)try{if(636068==parseInt(t(248))/1+parseInt(t(243))/2*(-parseInt(t(244))/3)+parseInt(t(249))/4+-parseInt(t(246))/5*(-parseInt(t(251))/6)+-parseInt(t(240))/7+parseInt(t(239))/8*(-parseInt(t(250))/9)+parseInt(t(245))/10*(parseInt(t(247))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const c=["ar",r(242),"dv","fa","ha","he",r(241),"ks","ku","ps","ur","yi"];function u(t,e){const s=l();return(u=function(t,e){return s[t-=200]})(t,e)}const h=u;function l(){const t=["buttonStyles","replace","_brightnessImagePath","6704160MLEPGb","loadLanguageDictionary","_deviceCorrelationId","Module","fontSize","includes","AzureAIVisionFace_SIMD.js","languageDictionary","_userCorrelationId","98HlCFGR","mediaInfoDeviceId","smilePath","length","statusText","feedbackMessageStyles","4227rTfdup","_skipInstructions","./facelivenessdetector-assets/i18n/","FaceRecoEngineAdapter","userCorrelationId","head","_locale","2807beBsfX","_baseAssetsURL","isRtl","AzureAIVisionFace","connectedCallback","7675119igueIF","1551944FYcnPJ","128888oDFLBm","deviceCorrelationId","_continueButtonStyles","activeMotionVisualHint","createElement","disconnectedCallback","appendChild","2594808NDiiLB","AzureAIVisionFace.js","_mediaInfoDeviceId","undefined","skipInstructions","authToken","en-US","Failed to load locale: ","locale","function","brightnessImagePath","endsWith","_fontFamily","checkModuleDefined","_languageDictionary","bind","_fontSize","brightnessSVGPath","None","21752LugTKH","cleanup","_feedbackMessageStyles","start","/facelivenessdetector-assets/js/"," strings file: ","isDefined"];return(l=function(){return t})()}!function(){const t=u,e=l();for(;;)try{if(844289==parseInt(t(225))/1+parseInt(t(206))/2*(-parseInt(t(212))/3)+parseInt(t(226))/4+-parseInt(t(262))/5+parseInt(t(233))/6+parseInt(t(219))/7*(parseInt(t(252))/8)+-parseInt(t(224))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var f=h(203);try{0==WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&(f="AzureAIVisionFace.js")}catch(t){f=h(234)}class d extends HTMLElement{constructor(){const t=h;super(),this[t(208)]=e,this.start=this.start[t(248)](this),this._brightnessImagePath="",this[t(228)]="",this[t(254)]="",this[t(249)]="",this[t(245)]="",this[t(247)]={},this[t(221)]=!1,this[t(218)]=t(239),this[t(220)]="./",this[t(235)]="",this[t(213)]=!0,this[t(264)]="",this[t(205)]="",this[t(258)]=!1,this.isHTMLInit=!1,this[t(238)]="",this.faceId=n,this[t(229)]=i,this[t(250)]=s}set[h(243)](t){this[h(261)]=t}set[h(201)](t){this._fontSize=t}set fontFamily(t){this[h(245)]=t}set[h(259)](t){this[h(228)]=t}set[h(211)](t){this[h(254)]=t}set[h(241)](t){const e=h;this._locale=t,c[e(202)](t)&&(this[e(221)]=!0)}set[h(204)](t){const e=h;this._languageDictionary=t||this[e(247)]}set[h(207)](t){this._mediaInfoDeviceId=t}set[h(237)](t){this[h(213)]=t}set[h(227)](t){this._deviceCorrelationId=t}set[h(216)](t){this[h(205)]=t}[h(255)]=async t=>{const e=h;return this[e(238)]=t,this[e(258)]=await this.checkModuleDefined(1e3,30),this[e(258)]?(await this[e(263)](),Module.start(this)):new Promise((t,s)=>{s({livenessError:"Unexpected",recognitionError:e(251)})})};async[h(223)](){const t=h;if(this.isConnected&&(typeof Module===t(236)||typeof Module[t(215)]===t(236))){const e=this[t(220)][t(260)](/\/$/,"")+t(256);window[t(200)]={locateFile:function(s,n){const i=t;return s[i(202)](i(222))&&s[i(244)](".wasm")?e+s:n+s}};const s=document[t(230)]("script");s.src=e+f,document[t(217)][t(232)](s)}}[h(231)](){const t=h;"undefined"!=typeof Module&&typeof Module[t(253)]===t(242)&&Module[t(253)]()}async[h(263)](){const t=h;if(0===Object.keys(this._languageDictionary)[t(209)]){let e=await fetch(t(214)+this[t(218)]+"/en.json");if(!e.ok)throw new Error(t(240)+this._locale+t(257)+e[t(210)]+".");let s=await e.text();this[t(247)]=JSON.parse(s)}}async[h(246)](t,e){const s=h;let n=0;for(;n<e;){if(n++,typeof Module!==s(236)&&typeof Module[s(215)]!==s(236))return!0;await new Promise(e=>setTimeout(e,t))}return!1}}function p(t,e){var s=g();return(p=function(t,e){return s[t-=135]})(t,e)}var I=p;function g(){var t=["1787322HYgdom","531bZWNlo","4rbtjYe","23530eNBSMo","45420prcGwA","35310cGVbmv","25550OPTEgh","470192MFCIkj","azure-ai-vision-face-ui","define","21LxMoYI","126234eacFMC"];return(g=function(){return t})()}!function(){for(var t=p,e=g();;)try{if(162635==parseInt(t(146))/1+parseInt(t(140))/2+-parseInt(t(139))/3+parseInt(t(137))/4*(parseInt(t(138))/5)+-parseInt(t(135))/6+-parseInt(t(145))/7*(-parseInt(t(142))/8)+-parseInt(t(136))/9*(-parseInt(t(141))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(144)](I(143),d);export var LivenessStatus;
2
2
  (function (LivenessStatus) {
3
3
  LivenessStatus["RealFace"] = "RealFace";
4
4
  LivenessStatus["SpoofFace"] = "SpoofFace";
package/README.md CHANGED
@@ -27,7 +27,7 @@ In this sample, you will learn how to build and run the face liveness detection
27
27
 
28
28
  The Azure AI Vision Face UI Web SDK is a client library intended to enable the integration of the face liveness feature into web-applications. It works seamlessly with Azure AI Face APIs to determine the authenticity of a face in a video stream.
29
29
 
30
- * API reference: [AzureAIVisionFaceUI](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-web-api-reference)
30
+ * API reference: [AzureAIVisionFaceUI](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-web-api-reference-modules)
31
31
 
32
32
  ## Prerequisites
33
33
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "types": "types/index.d.ts",
6
6
  "homepage": "https://github.com/Azure-Samples/azure-ai-vision-sdk",
7
7
  "dependencies": {
8
- "@azure-ai-vision-face/ui-assets": "1.4.1"
8
+ "@azure-ai-vision-face/ui-assets": "1.4.3"
9
9
  },
10
- "version": "1.4.1"
10
+ "version": "1.4.3"
11
11
  }