@azure/ai-vision-face-ui 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/FaceLivenessDetector.js
CHANGED
|
@@ -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",a=t+"facelivenessdetector-assets/images/logo.svg",r=o;function o(t,e){const s=c();return(o=function(t,e){return s[t-=133]})(t,e)}function c(){const t=["5vXflyG","322536YALjgb","51236TRpVMQ","arc","230236zDLbXs","1857384FASLFo","30078efDFQO","3AMBEXx","964780lOWGvR","13869rotNfN","khw","196nbPirO"];return(c=function(){return t})()}!function(){const t=o,e=c();for(;;)try{if(176879==-parseInt(t(137))/1+parseInt(t(138))/2*(-parseInt(t(143))/3)+parseInt(t(140))/4*(parseInt(t(136))/5)+-parseInt(t(142))/6*(-parseInt(t(135))/7)+parseInt(t(141))/8+-parseInt(t(133))/9+parseInt(t(144))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const h=["ar",r(139),"dv","fa","ha","he",r(134),"ks","ku","ps","ur","yi"],u=l;function l(t,e){const s=f();return(l=function(t,e){return s[t-=174]})(t,e)}function f(){const t=["isDefined","17206eevbaa","isRtl","createElement","FaceRecoEngineAdapter","112fyeRgW","1015903CBtOId","_skipInstructions","locale","en-US","AzureAIVisionFace_SIMD.js","languageDictionary","checkModuleDefined","brandingText","head","fontSize","_feedbackMessageStyles","390ezkDjV","_userCorrelationId","brightnessImagePath","_fontSize","Failed to load locale: ","smilePath","_brandingImage","isHTMLInit","4phmujU","faceId","_deviceCorrelationId","_locale","_baseAssetsURL","buttonStyles","65HalnsN","undefined","brandingImage","/en.json","56dQofVb"," strings file: ","function","4004376CWOxQK","text","validate","cleanup","start","feedbackMessageStyles","_continueButtonStyles","replace","showBranding","_mediaInfoDeviceId","15664cNzahQ","connectedCallback","logo","src","_brightnessImagePath","_fontFamily","1122582rLfUfc","337098YXBlDG","keys","AzureAIVisionFace","activeMotionVisualHint","Module","length","_languageDictionary","AzureAIVisionFace.js","loadLanguageDictionary","_showBranding","includes","appendChild","userCorrelationId","endsWith","5OoyXDC","/facelivenessdetector-assets/js/","_brandingText","mediaInfoDeviceId","9928764vYkSFq","parse","statusText","authToken"];return(f=function(){return t})()}!function(){const t=l,e=f();for(;;)try{if(992502==parseInt(t(243))/1*(-parseInt(t(239))/2)+parseInt(t(215))/3*(parseInt(t(186))/4)+-parseInt(t(230))/5*(-parseInt(t(216))/6)+-parseInt(t(244))/7*(-parseInt(t(196))/8)+-parseInt(t(234))/9+parseInt(t(178))/10*(-parseInt(t(209))/11)+-parseInt(t(199))/12*(-parseInt(t(192))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var d=u(248);try{0==WebAssembly[u(201)](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]))&&(d=u(223))}catch(t){d="AzureAIVisionFace.js"}class p extends HTMLElement{constructor(){const t=u;super(),this[t(183)]=e,this[t(203)]=this[t(203)].bind(this),this[t(213)]="",this[t(205)]="",this[t(177)]="",this[t(181)]="",this[t(214)]="",this[t(222)]={},this[t(240)]=!1,this._locale=t(247),this[t(190)]="./",this[t(208)]="",this[t(245)]=!0,this[t(188)]="",this[t(179)]="",this[t(238)]=!1,this[t(185)]=!1,this[t(237)]="",this[t(187)]=n,this[t(219)]=i,this.brightnessSVGPath=s,this[t(184)]="",this[t(232)]="",this[t(225)]=!1,this[t(211)]=a}set[u(180)](t){this[u(213)]=t}set[u(176)](t){this._fontSize=t}set fontFamily(t){this[u(214)]=t}set[u(191)](t){this[u(205)]=t}set[u(204)](t){this[u(177)]=t}set[u(246)](t){const e=u;this[e(189)]=t,h[e(226)](t)&&(this[e(240)]=!0)}set[u(249)](t){const e=u;this[e(222)]=t||this[e(222)]}set[u(233)](t){this[u(208)]=t}set skipInstructions(t){this[u(245)]=t}set deviceCorrelationId(t){this._deviceCorrelationId=t}set[u(228)](t){this[u(179)]=t}set[u(207)](t){this[u(225)]=Boolean(t)}set[u(194)](t){this[u(184)]=t}set[u(174)](t){const e=u;t&&t[e(221)]>30&&(t=t.substring(0,30)),this[e(232)]=t}start=async t=>{const e=u;return this[e(237)]=t,this.isDefined=await this[e(250)](1e3,30),this.isDefined?(await this[e(224)](),Module.start(this)):new Promise((t,e)=>{e({livenessError:"Unexpected",recognitionError:"None"})})};async[u(210)](){const t=u;if(this.isConnected&&(typeof Module===t(193)||typeof Module[t(242)]===t(193))){const e=this[t(190)][t(206)](/\/$/,"")+t(231);window[t(220)]={locateFile:function(s,n){const i=t;return s[i(226)](i(218))&&s[i(229)](".wasm")?e+s:n+s}};const s=document[t(241)]("script");s[t(212)]=e+d,document[t(175)][t(227)](s)}}disconnectedCallback(){const t=u;typeof Module!==t(193)&&typeof Module[t(202)]===t(198)&&Module[t(202)]()}async[u(224)](){const t=u;if(0===Object[t(217)](this[t(222)])[t(221)]){let e=await fetch("./facelivenessdetector-assets/i18n/"+this[t(189)]+t(195));if(!e.ok)throw new Error(t(182)+this._locale+t(197)+e[t(236)]+".");let s=await e[t(200)]();this[t(222)]=JSON[t(235)](s)}}async[u(250)](t,e){const s=u;let n=0;for(;n<e;){if(n++,typeof Module!==s(193)&&typeof Module[s(242)]!==s(193))return!0;await new Promise(e=>setTimeout(e,t))}return!1}}var I=g;function g(t,e){var s=v();return(g=function(t,e){return s[t-=397]})(t,e)}function v(){var t=["define","2561816UgEMAB","4907752dSgCzB","10874pBCiMx","1058830FKZFuM","4372515jrYCtn","3LUBuEK","6CSpKXP","907389soAEvD","98DvFsba","10511270LRjkeE"];return(v=function(){return t})()}!function(){for(var t=g,e=v();;)try{if(400844==parseInt(t(400))/1*(-parseInt(t(406))/2)+parseInt(t(403))/3*(parseInt(t(398))/4)+-parseInt(t(401))/5*(-parseInt(t(404))/6)+parseInt(t(405))/7+-parseInt(t(399))/8+-parseInt(t(402))/9+parseInt(t(407))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(397)]("azure-ai-vision-face-ui",p);export var LivenessStatus;
|
|
1
|
+
var n={22:(n,t,e)=>{n=e.nmd(n);var r=c;!function(n){for(var t=c,e=n();;)try{if(132856==-parseInt(t(221))/1*(-parseInt(t(219))/2)+parseInt(t(223))/3+-parseInt(t(228))/4+-parseInt(t(231))/5*(parseInt(t(226))/6)+-parseInt(t(207))/7*(-parseInt(t(218))/8)+parseInt(t(216))/9+-parseInt(t(222))/10*(parseInt(t(215))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(u);var s=[];function a(n){for(var t=c,e=-1,r=0;r<s[t(209)];r++)if(s[r][t(213)]===n){e=r;break}return e}function i(n,t){for(var e=c,r={},i=[],u=0;u<n[e(209)];u++){var d=n[u],l=t[e(220)]?d[0]+t.base:d[0],p=r[l]||0,h=""[e(212)](l," ")[e(212)](p);r[l]=p+1;var f=a(h),I={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)s[f][e(227)]++,s[f].updater(I);else{var m=o(I,t);t[e(217)]=u,s.splice(u,0,{identifier:h,updater:m,references:1})}i.push(h)}return i}function o(n,t){var e=c,r=t[e(210)](t);return r[e(229)](n),function(t){var s=e;if(t){if(t[s(232)]===n[s(232)]&&t.media===n[s(230)]&&t[s(211)]===n[s(211)]&&t[s(205)]===n[s(205)]&&t[s(208)]===n[s(208)])return;r[s(229)](n=t)}else r[s(206)]()}}function c(n,t){var e=u();return(c=function(n,t){return e[n-=205]})(n,t)}function u(){var n=["layer","length","domAPI","sourceMap","concat","identifier","splice","89815mBhvSr","1515573cAShfk","byIndex","538152BpXNcG","451384FyBYxY","base","1SVuCrE","170lqbyPn","421812fpSgHn","updater","exports","46674ensaPr","references","894760fcrCDh","update","media","155LmBOcC","css","supports","remove","21ZoKLTm"];return(u=function(){return n})()}n[r(225)]=function(n,t){var e=i(n=n||[],t=t||{});return function(n){var r=c;n=n||[];for(var o=0;o<e.length;o++){var u=a(e[o]);s[u][r(227)]--}for(var d=i(n,t),l=0;l<e.length;l++){var p=a(e[l]);0===s[p][r(227)]&&(s[p][r(224)](),s[r(214)](p,1))}e=d}}},64:n=>{function t(n,r){var s=e();return(t=function(n,t){return s[n-=398]})(n,r)}function e(){var n=[") {","length","@supports (","4072649bmIfMI","1448QfLSEc","push","5350110qcEeWy","2335SREeyy","1137104lMmEUd","5joXwFU","4057365UHrUNk","@media ","906CRmGjm","undefined","@layer","concat","15172630UAHzQa","21789CkRmaT","toString","map"];return(e=function(){return n})()}!function(n){for(var e=t,r=n();;)try{if(779608==parseInt(e(406))/1*(-parseInt(e(411))/2)+parseInt(e(409))/3+-parseInt(e(407))/4*(parseInt(e(408))/5)+-parseInt(e(405))/6+parseInt(e(402))/7+parseInt(e(403))/8*(-parseInt(e(416))/9)+parseInt(e(415))/10)break;r.push(r.shift())}catch(n){r.push(r.shift())}}(e),n.exports=function(n){var e=t,r=[];return r[e(417)]=function(){var t=e;return this[t(398)](function(e){var r=t,s="",a=typeof e[5]!==r(412);return e[4]&&(s+="@supports ("[r(414)](e[4],r(399))),e[2]&&(s+=r(410).concat(e[2]," {")),a&&(s+="@layer"[r(414)](e[5][r(400)]>0?" "[r(414)](e[5]):""," {")),s+=n(e),a&&(s+="}"),e[2]&&(s+="}"),e[4]&&(s+="}"),s}).join("")},r.i=function(n,t,s,a,i){var o=e;"string"==typeof n&&(n=[[null,n,void 0]]);var c={};if(s)for(var u=0;u<this.length;u++){var d=this[u][0];null!=d&&(c[d]=!0)}for(var l=0;l<n[o(400)];l++){var p=[][o(414)](n[l]);s&&c[p[0]]||(typeof i!==o(412)&&(typeof p[5]===o(412)||(p[1]=o(413)[o(414)](p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),t&&(p[2]?(p[1]=o(410)[o(414)](p[2]," {")[o(414)](p[1],"}"),p[2]=t):p[2]=t),a&&(p[4]?(p[1]=o(401)[o(414)](p[4],o(399))[o(414)](p[1],"}"),p[4]=a):p[4]="".concat(a)),r[o(404)](p))}},r}},137:(n,t,e)=>{e.d(t,{A:()=>o});var r=e(431),s=e.n(r),a=e(64),i=e.n(a)()(s());i.push([n.id,"/* Loading container styles */\n#face-liveness-loading {\n display: flex;\n flex-direction: column;\n gap: 10px;\n /*justify-content: space-around;*/\n align-items: center;\n margin: auto;\n position: absolute;\n top: 10svh;\n height: 80svh;\n bottom: 10svh;\n left: 10vw;\n right: 10vw;\n font-size: 2rem;\n z-index: 2147483647;\n background-color: white;\n}\n\n/* Loading text styles */\n.loading-text {\n display: flex;\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n text-align: center;\n justify-content: center;\n z-index: 2147483646;\n margin-top: 40px;\n font-size: 1.5rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n}\n\n/* Dots container styles */\n.dots-container {\n display: flex;\n gap: 5px;\n margin-bottom: 30px;\n}\n\n/* Dot styles */\n.loading-dot {\n width: 12px;\n height: 12px;\n background: #0078d4;\n border-radius: 50%;\n animation: loading-bounce 1.4s ease-in-out infinite both;\n}\n\n.loading-dot:nth-child(1) {\n animation-delay: 0s;\n}\n\n.loading-dot:nth-child(2) {\n animation-delay: 0.16s;\n}\n\n.loading-dot:nth-child(3) {\n animation-delay: 0.32s;\n}\n\n/* Cancel button styles */\n.cancel-button {\n background-color: #0078d7;\n color: white;\n border: none;\n padding: 2vmin 3vmin;\n margin-top: 20px;\n font-size: 1rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n border-radius: 5px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.cancel-button:hover {\n background-color: #005a9e;\n}\n\n/* Loading animation keyframes */\n@keyframes loading-bounce {\n 0%, 80%, 100% {\n transform: scale(0);\n opacity: 0.5;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n}",""]);const o=i},271:n=>{function t(n,r){var s=e();return(t=function(n,t){return s[n-=465]})(n,r)}function e(){var n=["295182LwkLyi","media","length","stringify","7gxUCWV","sourceMap","concat","422363PHtTrz","711qtGrsa","layer","996exFhxJ","5521480ytrmxU","styleTagTransform","parentNode","removeChild","3442028JgKEUV",") {","supports","8mgxASp","@media ","3HSolsP","undefined","19160qIXcci","51983620jEMttX"," */","\n/*# sourceMappingURL=data:application/json;base64,","78045SwdKSk","45maoHAC","@supports (","css"];return(e=function(){return n})()}!function(n){for(var e=t,r=n();;)try{if(955944==parseInt(e(470))/1*(-parseInt(e(481))/2)+-parseInt(e(483))/3*(parseInt(e(478))/4)+-parseInt(e(490))/5*(parseInt(e(493))/6)+-parseInt(e(467))/7*(-parseInt(e(474))/8)+parseInt(e(471))/9*(-parseInt(e(485))/10)+parseInt(e(489))/11*(-parseInt(e(473))/12)+parseInt(e(486))/13)break;r.push(r.shift())}catch(n){r.push(r.shift())}}(e),n.exports=function(n){if(typeof document===t(484))return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,r){var s=t,a="";r[s(480)]&&(a+=s(491).concat(r[s(480)],s(479))),r[s(494)]&&(a+=s(482)[s(469)](r.media," {"));var i=void 0!==r[s(472)];i&&(a+="@layer"[s(469)](r[s(472)][s(465)]>0?" "[s(469)](r[s(472)]):""," {")),a+=r[s(492)],i&&(a+="}"),r[s(494)]&&(a+="}"),r[s(480)]&&(a+="}");var o=r[s(468)];o&&typeof btoa!==s(484)&&(a+=s(488)[s(469)](btoa(unescape(encodeURIComponent(JSON[s(466)](o)))),s(487))),e[s(475)](a,n,e.options)}(e,n,r)},remove:function(){!function(n){var e=t;if(null===n[e(476)])return!1;n[e(476)][e(477)](n)}(e)}}}},365:(n,t,e)=>{n=e.nmd(n);var r=a;!function(n){for(var t=a,e=n();;)try{if(658373==parseInt(t(210))/1+parseInt(t(209))/2+-parseInt(t(211))/3*(parseInt(t(208))/4)+-parseInt(t(206))/5*(-parseInt(t(197))/6)+parseInt(t(199))/7*(-parseInt(t(195))/8)+parseInt(t(198))/9*(parseInt(t(196))/10)+parseInt(t(200))/11*(-parseInt(t(204))/12))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(i);var s={};function a(n,t){var e=i();return(a=function(n,t){return e[n-=195]})(n,t)}function i(){var n=["head","184sBYhji","10AVsvpy","220638TWKflI","1817271xJrnjd","127295eLjZlw","337161XhkWWK","querySelector","exports","contentDocument","204uRAsvz","HTMLIFrameElement","135MNkFgc","appendChild","4008020qaNgTh","1916938rPrdZO","446441SifCFP","3crAtjv"];return(i=function(){return n})()}n[r(202)]=function(n,t){var e=a,r=function(n){var t=a;if(void 0===s[n]){var e=document[t(201)](n);if(window[t(205)]&&e instanceof window[t(205)])try{e=e[t(203)][t(212)]}catch(n){e=null}s[n]=e}return s[n]}(n);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r[e(207)](t)}},431:(n,t,e)=>{function r(){var n=["93776hwGzev","208zZxBeM","10172503TXheDJ","305028NDVFyn","90UsFSgs","4752020eydTsi","3215082HGzCPj","2718325jaBUuX","exports","394vLCeay","10DCqNrL","4301ZMTQVN"];return(r=function(){return n})()}n=e.nmd(n);var s=a;function a(n,t){var e=r();return(a=function(n,t){return e[n-=311]})(n,t)}!function(n){for(var t=a,e=n();;)try{if(501048==-parseInt(t(315))/1*(-parseInt(t(313))/2)+-parseInt(t(320))/3*(parseInt(t(316))/4)+parseInt(t(311))/5+parseInt(t(322))/6+-parseInt(t(321))/7+-parseInt(t(317))/8*(-parseInt(t(319))/9)+-parseInt(t(314))/10*(parseInt(t(318))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(r),n[s(312)]=function(n){return n[1]}},439:(n,t,e)=>{function r(){var n=["styleSheet","8dgzQmd","appendChild","createTextNode","6215839IRlAcb","244026bVZMZj","8669898ihUokq","removeChild","1526547bIYpAW","78RRzyKX","17832030iuMkCG","10grkFFg","4589880hJqmMJ","463955dVudGT","exports","firstChild"];return(r=function(){return n})()}n=e.nmd(n);var s=a;function a(n,t){var e=r();return(a=function(n,t){return e[n-=274]})(n,t)}!function(n){for(var t=a,e=n();;)try{if(692870==parseInt(t(281))/1*(-parseInt(t(287))/2)+-parseInt(t(284))/3+parseInt(t(288))/4+-parseInt(t(289))/5*(-parseInt(t(285))/6)+parseInt(t(280))/7*(parseInt(t(277))/8)+parseInt(t(282))/9+-parseInt(t(286))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(r),n[s(274)]=function(n,t){var e=a;if(t[e(276)])t[e(276)].cssText=n;else{for(;t[e(275)];)t[e(283)](t[e(275)]);t[e(278)](document[e(279)](n))}}},614:(n,t,e)=>{n=e.nmd(n);var r=s;function s(n,t){var e=a();return(s=function(n,t){return e[n-=468]})(n,t)}function a(){var n=["1514zhBpCi","undefined","5291208PzrqdR","10HUFxnJ","exports","setAttribute","173789Okiokw","4938664HIBysw","85805jmiqwX","nonce","150eBgwxD","74520vsauvf","5270177DRJHHr","92NUcKBo","1653BBTUca"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(333071==parseInt(t(468))/1+-parseInt(t(472))/2*(parseInt(t(471))/3)+-parseInt(t(470))/4*(parseInt(t(480))/5)+parseInt(t(482))/6*(parseInt(t(478))/7)+-parseInt(t(479))/8+parseInt(t(474))/9+-parseInt(t(475))/10*(-parseInt(t(469))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(476)]=function(n){var t=s,r=typeof e.nc!==t(473)?e.nc:null;r&&n[t(477)](t(481),r)}},866:(n,t,e)=>{n=e.nmd(n);var r=s;function s(n,t){var e=a();return(s=function(n,t){return e[n-=319]})(n,t)}function a(){var n=["721393OiVddw","34470pPrQWz","770590wqnnib","8kORZMz","1085xlnzBW","3343449edEscq","setAttributes","2675500jIJuOq","9384rZgjNM","8091DblLJb","options","278927umlnxo","createElement","style","insert","exports","320LTHWAk"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(595095==-parseInt(t(331))/1+parseInt(t(333))/2+-parseInt(t(319))/3+-parseInt(t(334))/4*(-parseInt(t(321))/5)+-parseInt(t(332))/6*(parseInt(t(335))/7)+parseInt(t(322))/8*(parseInt(t(323))/9)+-parseInt(t(330))/10*(-parseInt(t(325))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(329)]=function(n){var t=s,e=document[t(326)](t(327));return n[t(320)](e,n.attributes),n[t(328)](e,n[t(324)]),e}}},t={};function e(r){var s=t[r];if(void 0!==s)return s.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return n[r](a,a.exports,e),a.loaded=!0,a.exports}e.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),e.p="./",e.nc=void 0;const r=e.p+"facelivenessdetector-assets/images/Smile.svg",s=e.p+"facelivenessdetector-assets/images/Brightness.svg",a=e.p+"facelivenessdetector-assets/images/FaceId.svg",i=e.p+"facelivenessdetector-assets/images/activeMotionVisualHint.png",o=e.p+"facelivenessdetector-assets/images/logo.svg";function c(n,t){const e=d();return(c=function(n,t){return e[n-=436]})(n,t)}const u=c;function d(){const n=["516KtpKtb","120ZPJtrO","1533330QVsFbK","5392852CKjifZ","5530ySXbMC","342993MjjFaV","102pDHnxk","1624509iIdPzb","62711fyoqWo","arc","478865NjyXQm","4767VvoCXu"];return(d=function(){return n})()}!function(){const n=c,t=d();for(;;)try{if(826231==parseInt(n(446))/1+parseInt(n(439))/2*(-parseInt(n(438))/3)+-parseInt(n(442))/4+parseInt(n(437))/5*(-parseInt(n(445))/6)+parseInt(n(444))/7*(-parseInt(n(440))/8)+parseInt(n(441))/9+-parseInt(n(443))/10*(-parseInt(n(447))/11))break;t.push(t.shift())}catch(n){t.push(t.shift())}}();const l=["ar",u(436),"dv","fa","ha","he","khw","ks","ku","ps","ur","yi"];var p=e(22),h=e.n(p),f=e(271),I=e.n(f),m=e(365),v=e.n(m),g=e(614),y=e.n(g),b=e(866),k=e.n(b),x=e(439),w=e.n(x),A=e(137),M={};M.styleTagTransform=w(),M.setAttributes=y(),M.insert=v().bind(null,"head"),M.domAPI=I(),M.insertStyleElement=k(),h()(A.A,M),A.A&&A.A.locals&&A.A.locals;const S=C;function _(){const n=[" strings file: ","buttonStyles","getAttemptEndPath","locale","loading-text","10967PQOOOJ","disconnectedCallback","isHTMLInit","find","_showBranding",".wasm","brandingText","skipInstructions","substring","AZAIF_FeedbackTakingLong","FaceRecoEngineAdapter","_baseAssetsURL","text","53PdXlLa","Failed to send module abort error:","fontFamily","cancelButton","loadingContainer","div","head","Module loading aborted:","checkModuleDefined","connectedCallback","attempt/end","267zbsxGQ","className","bind","parse","4057780agVIFz","remove","30pLpcuK","brightnessSVGPath","Unknown Module abort error","Bearer ","onclick","5509251dBPWpa","logo","body","face-liveness-loading","_AzureAIVisionFace_ModuleErrorSent","showBranding","statusText","append","_brandingText","11600kEDmrM","fontSize","POST","allowed-paths","replace","_handleModuleAbortedStart","createElement","_locale","length","button","hideLoadingAnimation","1340283dJInNN","cancelLoadingButtonTimeout","validate","_continueButtonStyles","_userCorrelationId","_fontFamily","invalid token","4364320GhJZZB","cleanup","/en.json","AzureAIVisionFace","mediaInfoDeviceId","User reuse a cancelled or failed module, causing new failure: ","1322IpWRjK","_moduleAbortedError","start","Module error not available before cancellation","_brightnessImagePath","AZAIF_CancelPrompt","faceId","_brandingImage","_originalStart","isRtl","userCorrelationId","Error parsing JWT token:","Unexpected","stringify","cancel-button","src","_mediaInfoDeviceId","smilePath","_feedbackMessageStyles","_skipInstructions","_cancelModuleLoading","cancelLoading","73208DiSqtq","None","activeMotionVisualHint","_fontSize","sendErrorToServer","isDefined","error","textContent","appendChild","_moduleAborted","face","_deviceCorrelationId","includes","loadLanguageDictionary","AzureAIVisionFace_SIMD.js","authToken","deviceCorrelationId","showLoadingAnimation","AzureAIVisionFace.js","_languageDictionary","path","undefined","UserCancelledLoading","dots-container","hasOwnProperty","./facelivenessdetector-assets/i18n/","en-US","endpoint","loading-dot","script"];return(_=function(){return n})()}function C(n,t){const e=_();return(C=function(n,t){return e[n-=213]})(n,t)}!function(){const n=C,t=_();for(;;)try{if(866143==-parseInt(n(252))/1*(-parseInt(n(307))/2)+-parseInt(n(263))/3*(parseInt(n(329))/4)+-parseInt(n(267))/5+parseInt(n(269))/6*(parseInt(n(294))/7)+parseInt(n(301))/8+parseInt(n(274))/9+-parseInt(n(283))/10*(-parseInt(n(239))/11))break;t.push(t.shift())}catch(n){t.push(t.shift())}}();var E=S(218);try{0==WebAssembly[S(296)](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]))&&(E=S(222))}catch(n){E=S(222)}class T extends HTMLElement{constructor(){const n=S;super(),this[n(324)]=r,this[n(309)]=this[n(309)][n(265)](this),this[n(311)]="",this._continueButtonStyles="",this[n(325)]="",this[n(332)]="",this[n(299)]="",this[n(223)]={},this[n(316)]=!1,this[n(290)]=n(230),this[n(250)]="./",this[n(323)]="",this._skipInstructions=!0,this._deviceCorrelationId="",this[n(298)]="",this[n(334)]=!1,this[n(241)]=!1,this[n(219)]="",this[n(313)]=a,this[n(331)]=i,this[n(270)]=s,this[n(314)]="",this._brandingText="",this[n(243)]=!1,this[n(275)]=o,this[n(213)]=!1,this._moduleAbortedError="",this[n(315)]=null,this[n(327)]=!1}set brightnessImagePath(n){this[S(311)]=n}set[S(284)](n){this[S(332)]=n}set[S(254)](n){this[S(299)]=n}set[S(235)](n){this[S(297)]=n}set feedbackMessageStyles(n){this[S(325)]=n}set[S(237)](n){const t=S;this[t(290)]=n,l[t(216)](n)&&(this[t(316)]=!0)}set languageDictionary(n){this._languageDictionary=n||this._languageDictionary}set[S(305)](n){this[S(323)]=n}set[S(246)](n){this[S(326)]=n}set[S(220)](n){this[S(215)]=n}set[S(317)](n){this[S(298)]=n}set[S(279)](n){this[S(243)]=Boolean(n)}set brandingImage(n){this[S(314)]=n}set[S(245)](n){const t=S;n&&n.length>30&&(n=n[t(247)](0,30)),this[t(282)]=n}[S(236)](n){const t=S;try{const e=n.split(".");if(3===e[t(291)]){const n=JSON[t(266)](atob(e[1]));if(n[t(228)](t(214))){const e=JSON[t(266)](n[t(214)]);if(e&&e[t(231)]&&n[t(228)](t(286))){const r=JSON[t(266)](n["allowed-paths"])[t(242)](n=>n[t(224)]&&n.path[t(216)](t(262)));return r?e.endpoint+"/"+r[t(224)]:(console.warn(t(300)),null)}}}}catch(n){return console.error(t(318),n),null}return null}async sendErrorToServer(n,t){const e=S;window._AzureAIVisionFace_ModuleErrorSent&&(t=e(306)+t);const r=this[e(236)](n);if(r)try{const s=new FormData;s[e(281)]("metadata",JSON[e(320)]({clientSDKversion:"1.4.6",failureReason:t}));const a=await fetch(r,{method:e(285),headers:{Authorization:e(272)+n},body:s});return window[e(278)]=!0,a}catch(n){throw console[e(335)]("Error sending error:",n),n}else console.warn("No attempt end path found")}[S(288)]=async n=>{const t=S;try{await this[t(333)](n,""+this[t(308)])}catch(n){console[t(335)](t(253),n)}return new Promise((n,e)=>{const r=t;e({livenessError:r(319),recognitionError:r(330)})})};start=async n=>{const t=S;if(this[t(219)]=n,this.isDefined=await this.checkModuleDefined(1,1),await this[t(217)](),!this[t(334)]&&this.showLoadingAnimation(),this[t(334)]=await this.checkModuleDefined(1e3,30),this[t(293)](),!this[t(334)])return!this._moduleAbortedError&&(this[t(308)]="Module not loaded on timeout"),this._cancelModuleLoading?new Promise((n,e)=>{const r=t;e({livenessError:r(226),recognitionError:r(330)})}):this[t(288)](n);if(this[t(327)])return new Promise((n,e)=>{const r=t;e({livenessError:r(226),recognitionError:r(330)})});try{return Module.start(this)}catch{return this[t(288)](n)}};async[S(261)](){const n=S;if(this.isConnected&&(typeof Module===n(225)||typeof Module[n(249)]===n(225))){const t=this[n(250)][n(287)](/\/$/,"")+"/facelivenessdetector-assets/js/";window.Module={locateFile:function(e,r){const s=n;return e[s(216)](s(304))&&e.endsWith(s(244))?t+e:r+e},onAbort:t=>{const e=n;console.error(e(259),t);const r=t||e(271);this[e(213)]=!0,this._moduleAbortedError=r}};const e=document[n(289)](n(233));e[n(322)]=t+E,document[n(258)].appendChild(e)}}[S(240)](){const n=S;typeof Module!==n(225)&&"function"==typeof Module[n(302)]&&Module[n(302)]()}async[S(217)](){const n=S;if(0===Object.keys(this[n(223)])[n(291)]){let t=await fetch(n(229)+this[n(290)]+n(303));if(!t.ok)throw new Error("Failed to load locale: "+this._locale+n(234)+t[n(280)]+".");let e=await t[n(251)]();this._languageDictionary=JSON.parse(e)}}async[S(260)](n,t){const e=S;let r=0;for(;r<t;){if(r++,"undefined"!=typeof Module&&typeof Module[e(249)]!==e(225))return!0;if(this[e(327)])return!this._moduleAbortedError&&(this._moduleAbortedError=e(310)),!1;if(this._moduleAborted)return!1;await new Promise(t=>setTimeout(t,n))}return!1}async[S(221)](){const n=S;this.hideLoadingAnimation();const t=document[n(289)]("div");t.id=n(277);const e=document[n(289)]("div");e[n(264)]=n(238),e[n(336)]=this[n(223)].AZAIF_FeedbackStarting;const r=document[n(289)](n(257));r[n(264)]=n(227);for(let t=0;t<3;t++){const t=document.createElement(n(257));t[n(264)]=n(232),r[n(337)](t)}const s=document[n(289)](n(292));s.className=n(321),s[n(336)]=this[n(223)][n(312)],s[n(273)]=()=>this[n(328)](),t[n(337)](e),t[n(337)](r),this[n(295)]=setTimeout(()=>{const r=n;this.loadingContainer&&(e[r(336)]=this[r(223)][r(248)],t[r(337)](s))},1e4),document[n(276)].appendChild(t),this[n(256)]=t}hideLoadingAnimation(){const n=S;this.loadingContainer&&(this[n(256)][n(268)](),this[n(256)]=null),this[n(295)]&&(clearTimeout(this.cancelLoadingButtonTimeout),this[n(295)]=null),this[n(255)]&&(this[n(255)][n(268)](),this.cancelButton=null)}cancelLoading(){const n=S;this.hideLoadingAnimation(),this[n(327)]=!0,this[n(333)](this[n(219)],n(226))}}function F(n,t){var e=L();return(F=function(n,t){return e[n-=295]})(n,t)}function L(){var n=["36UlxIbT","50MYhGEu","72FFEtBR","218585QCFXnW","define","24156pnQTlx","7682570rfixnF","123908BqVWpU","370SHRXWi","5969MjTVSH","15361797xltDOi","1668952MPBkNv"];return(L=function(){return n})()}var B=F;!function(){for(var n=F,t=L();;)try{if(736089==-parseInt(n(304))/1*(-parseInt(n(303))/2)+parseInt(n(295))/3*(-parseInt(n(302))/4)+-parseInt(n(298))/5*(-parseInt(n(297))/6)+parseInt(n(301))/7+-parseInt(n(306))/8+-parseInt(n(300))/9*(parseInt(n(296))/10)+-parseInt(n(305))/11)break;t.push(t.shift())}catch(n){t.push(t.shift())}}(),customElements[B(299)]("azure-ai-vision-face-ui",T);export var LivenessStatus;
|
|
2
2
|
(function (LivenessStatus) {
|
|
3
3
|
LivenessStatus["RealFace"] = "RealFace";
|
|
4
4
|
LivenessStatus["SpoofFace"] = "SpoofFace";
|
package/package.json
CHANGED
|
@@ -191,4 +191,22 @@ export class FaceLivenessDetector extends HTMLElement {
|
|
|
191
191
|
* UserCorrelationId is used to set the user correlation for the session.
|
|
192
192
|
*/
|
|
193
193
|
userCorrelationId : string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Show a logo and text during the liveness session, this is turned off by default.
|
|
197
|
+
* If turned on, then Microsoft's logo will be shown by default.
|
|
198
|
+
*/
|
|
199
|
+
showBranding: boolean;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Customize the default Microsoft's logo with a different image.
|
|
203
|
+
* Ensure the image is deployed with the web application.
|
|
204
|
+
*/
|
|
205
|
+
brandingImage: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Customize the branding text to override the default "Powered by Microsoft".
|
|
209
|
+
* Ensure the overridden text is localized for all locales your web application supports.
|
|
210
|
+
*/
|
|
211
|
+
brandingText: string;
|
|
194
212
|
}
|