@azure/ai-vision-face-ui 1.4.5 → 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.
@@ -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=c;function o(){const t=["867504JrTDOL","817621MUfWHT","26825750wMYCmp","arc","3DpapZT","631lwSTgo","18QvMFvk","7143596BQehbL","4138PeguMP","9104085htqRuI","8593110OxPaDD","khw"];return(o=function(){return t})()}function c(t,e){const s=o();return(c=function(t,e){return s[t-=423]})(t,e)}!function(){const t=c,e=o();for(;;)try{if(970925==-parseInt(t(426))/1*(-parseInt(t(429))/2)+parseInt(t(425))/3*(parseInt(t(428))/4)+parseInt(t(430))/5+parseInt(t(431))/6+-parseInt(t(434))/7+parseInt(t(433))/8+-parseInt(t(427))/9*(parseInt(t(423))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const h=["ar",r(424),"dv","fa","ha","he",r(432),"ks","ku","ps","ur","yi"],u=f;!function(){const t=f,e=d();for(;;)try{if(644452==-parseInt(t(252))/1*(parseInt(t(206))/2)+-parseInt(t(254))/3*(-parseInt(t(264))/4)+parseInt(t(205))/5+-parseInt(t(232))/6*(parseInt(t(272))/7)+parseInt(t(241))/8+parseInt(t(233))/9+-parseInt(t(271))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var l="AzureAIVisionFace_SIMD.js";function d(){const t=["function","15369340OYUIcU","671391IBwQLV","brandingText","fontFamily","/en.json","None","_showBranding","5232375ROcJXM","16162ncsSLS","brightnessImagePath","isHTMLInit","FaceRecoEngineAdapter","_locale","authToken","appendChild","deviceCorrelationId","_fontFamily","Unexpected","isDefined","script","bind","./facelivenessdetector-assets/i18n/","faceId","undefined","_feedbackMessageStyles","_baseAssetsURL","src","fontSize","checkModuleDefined","_userCorrelationId","Failed to load locale: ","feedbackMessageStyles","statusText","locale","18vMcoiL","598743DslZOK","start","skipInstructions","_languageDictionary","showBranding","replace","cleanup","brandingImage","7023784nNUxnh","_continueButtonStyles","brightnessSVGPath","keys","_brandingImage","createElement","_mediaInfoDeviceId","AzureAIVisionFace","activeMotionVisualHint","endsWith","_skipInstructions","65lKEXsz","_brightnessImagePath","86007eFepXD"," strings file: ","AzureAIVisionFace.js","disconnectedCallback","mediaInfoDeviceId","_deviceCorrelationId","loadLanguageDictionary","logo","_brandingText","isRtl","140qRmeip","substring","validate",".wasm","length","includes"];return(d=function(){return t})()}function f(t,e){const s=d();return(f=function(t,e){return s[t-=203]})(t,e)}try{0==WebAssembly[u(266)](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]))&&(l=u(256))}catch(t){l=u(256)}class p extends HTMLElement{constructor(){const t=u;super(),this.smilePath=e,this[t(234)]=this[t(234)][t(218)](this),this[t(253)]="",this[t(242)]="",this[t(222)]="",this._fontSize="",this[t(214)]="",this[t(236)]={},this.isRtl=!1,this._locale="en-US",this[t(223)]="./",this._mediaInfoDeviceId="",this[t(251)]=!0,this[t(259)]="",this[t(227)]="",this.isDefined=!1,this[t(208)]=!1,this[t(211)]="",this[t(220)]=n,this[t(249)]=i,this[t(243)]=s,this[t(245)]="",this[t(262)]="",this[t(204)]=!1,this[t(261)]=a}set[u(207)](t){this._brightnessImagePath=t}set[u(225)](t){this._fontSize=t}set[u(274)](t){this[u(214)]=t}set buttonStyles(t){this[u(242)]=t}set[u(229)](t){this[u(222)]=t}set[u(231)](t){const e=u;this[e(210)]=t,h[e(269)](t)&&(this[e(263)]=!0)}set languageDictionary(t){const e=u;this._languageDictionary=t||this[e(236)]}set[u(258)](t){this[u(247)]=t}set[u(235)](t){this[u(251)]=t}set[u(213)](t){this[u(259)]=t}set userCorrelationId(t){this[u(227)]=t}set[u(237)](t){this[u(204)]=Boolean(t)}set[u(240)](t){this[u(245)]=t}set[u(273)](t){const e=u;t&&t[e(268)]>30&&(t=t[e(265)](0,30)),this[e(262)]=t}[u(234)]=async t=>{const e=u;return this[e(211)]=t,this[e(216)]=await this[e(226)](1e3,30),this[e(216)]?(await this[e(260)](),Module[e(234)](this)):new Promise((t,s)=>{const n=e;s({livenessError:n(215),recognitionError:n(203)})})};async connectedCallback(){const t=u;if(this.isConnected&&(typeof Module===t(221)||void 0===Module[t(209)])){const e=this._baseAssetsURL[t(238)](/\/$/,"")+"/facelivenessdetector-assets/js/";window.Module={locateFile:function(s,n){const i=t;return s[i(269)](i(248))&&s[i(250)](i(267))?e+s:n+s}};const s=document[t(246)](t(217));s[t(224)]=e+l,document.head[t(212)](s)}}[u(257)](){const t=u;"undefined"!=typeof Module&&typeof Module[t(239)]===t(270)&&Module[t(239)]()}async[u(260)](){const t=u;if(0===Object[t(244)](this[t(236)])[t(268)]){let e=await fetch(t(219)+this[t(210)]+t(275));if(!e.ok)throw new Error(t(228)+this[t(210)]+t(255)+e[t(230)]+".");let s=await e.text();this._languageDictionary=JSON.parse(s)}}async[u(226)](t,e){const s=u;let n=0;for(;n<e;){if(n++,typeof Module!==s(221)&&void 0!==Module[s(209)])return!0;await new Promise(e=>setTimeout(e,t))}return!1}}var I=v;function g(){var t=["1863711gugmXK","4546663mljlRK","12BUwRIs","144912YdBcUr","68000jdfpBL","31670hfObnV","1002424BvfVnp","10myPXZj","define","azure-ai-vision-face-ui","1326jRTolT","3069510DNyNrD","10bavqWJ","7tFoWwF","301FHkRAs"];return(g=function(){return t})()}function v(t,e){var s=g();return(v=function(t,e){return s[t-=298]})(t,e)}!function(){for(var t=v,e=g();;)try{if(649775==-parseInt(t(307))/1*(-parseInt(t(299))/2)+parseInt(t(311))/3*(parseInt(t(300))/4)+-parseInt(t(301))/5*(-parseInt(t(305))/6)+parseInt(t(308))/7*(parseInt(t(298))/8)+parseInt(t(309))/9*(-parseInt(t(306))/10)+-parseInt(t(310))/11+parseInt(t(312))/12*(-parseInt(t(304))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(302)](I(303),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
@@ -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.5"
8
+ "@azure-ai-vision-face/ui-assets": "1.4.6"
9
9
  },
10
- "version": "1.4.5"
10
+ "version": "1.4.6"
11
11
  }
@@ -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
  }