@azure/ai-vision-face-ui 1.4.6 → 1.4.8
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 +1 -1
- package/package.json +2 -2
package/FaceLivenessDetector.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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;
|
|
1
|
+
var t={137(t,n,e){e.d(n,{A:()=>o});var r=e(431),s=e.n(r),a=e(64),i=e.n(a)()(s());i.push([t.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},64(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=209,a()[t]}function a(){var t=["@layer","@media ","223881qjoCxl","undefined","@supports (","950883YdnKZJ","map","4LnsPNA","exports","273KTbnWC","8868miYLxF","concat","toString","1705234efrYah","push","3866598HTMqao","16qIvufL","3453690CdJXiy","join",") {","length","28323000SMHDZa"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(465139==-parseInt(n(219))/1+-parseInt(n(230))/2+-parseInt(n(222))/3*(-parseInt(n(224))/4)+-parseInt(n(212))/5+-parseInt(n(227))/6*(parseInt(n(226))/7)+-parseInt(n(211))/8*(parseInt(n(210))/9)+parseInt(n(216))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(225)]=function(t){var n=r,e=[];return e[n(229)]=function(){var e=n;return this[e(223)](function(n){var r=e,s="",a=void 0!==n[5];return n[4]&&(s+=r(221).concat(n[4],r(214))),n[2]&&(s+="@media "[r(228)](n[2]," {")),a&&(s+=r(217)[r(228)](n[5].length>0?" "[r(228)](n[5]):""," {")),s+=t(n),a&&(s+="}"),n[2]&&(s+="}"),n[4]&&(s+="}"),s})[e(213)]("")},e.i=function(t,r,s,a,i){var o=n;"string"==typeof t&&(t=[[null,t,void 0]]);var c={};if(s)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(c[l]=!0)}for(var d=0;d<t[o(215)];d++){var p=[][o(228)](t[d]);s&&c[p[0]]||(typeof i!==o(220)&&(typeof p[5]===o(220)||(p[1]="@layer"[o(228)](p[5].length>0?" "[o(228)](p[5]):""," {")[o(228)](p[1],"}")),p[5]=i),r&&(p[2]?(p[1]=o(218)[o(228)](p[2]," {")[o(228)](p[1],"}"),p[2]=r):p[2]=r),a&&(p[4]?(p[1]=o(221)[o(228)](p[4],o(214))[o(228)](p[1],"}"),p[4]=a):p[4]=""[o(228)](a)),e[o(209)](p))}},e}},431(t,n,e){function r(t,n){return t-=382,a()[t]}t=e.nmd(t);var s=r;function a(){var t=["exports","36fiwLbx","10615044luukzZ","69624WdVkNw","668400FhUiLh","1128054xkZMNX","30sxkqsU","11wpGRTs","1908296WHDAKN","49wvSLTi","1535928YOagOb","3QcLWyc","874944FJHuYu"];return(a=function(){return t})()}!function(t){for(var n=r,e=t();;)try{if(901515==-parseInt(n(390))/1+parseInt(n(382))/2*(parseInt(n(383))/3)+-parseInt(n(388))/4*(-parseInt(n(391))/5)+parseInt(n(384))/6*(parseInt(n(394))/7)+-parseInt(n(393))/8*(-parseInt(n(386))/9)+parseInt(n(389))/10+parseInt(n(392))/11*(-parseInt(n(387))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[s(385)]=function(t){return t[1]}},22(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=412,a()[t]}function a(){var t=["235468CbKQSc","76914COSIdp","5goNpeR","splice","css","supports","concat","updater","484989YvvdEQ","update","push","base","3674lRzygO","1840DtKZQk","exports","272VVMRvc","sourceMap","1704552dbXpnQ","3134747EBOsIz","1344684DssxkN","layer","identifier","references","length","domAPI","remove","6AHieae"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(266210==-parseInt(n(430))/1+parseInt(n(429))/2*(parseInt(n(438))/3)+-parseInt(n(420))/4+parseInt(n(432))/5*(parseInt(n(422))/6)+parseInt(n(421))/7+parseInt(n(418))/8*(-parseInt(n(431))/9)+parseInt(n(416))/10*(parseInt(n(415))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a);var i=[];function o(t){for(var n=s,e=-1,r=0;r<i[n(426)];r++)if(i[r][n(424)]===t){e=r;break}return e}function c(t,n){for(var e=s,r={},a=[],c=0;c<t.length;c++){var l=t[c],d=n.base?l[0]+n[e(414)]:l[0],p=r[d]||0,h=""[e(436)](d," ").concat(p);r[d]=p+1;var f=o(h),I={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)i[f][e(425)]++,i[f][e(437)](I);else{var g=u(I,n);n.byIndex=c,i[e(433)](c,0,{identifier:h,updater:g,references:1})}a[e(413)](h)}return a}function u(t,n){var e=s,r=n[e(427)](n);return r[e(412)](t),function(n){var s=e;if(n){if(n[s(434)]===t[s(434)]&&n.media===t.media&&n[s(419)]===t[s(419)]&&n.supports===t[s(435)]&&n[s(423)]===t[s(423)])return;r[s(412)](t=n)}else r[s(428)]()}}t[r(417)]=function(t,n){var e=c(t=t||[],n=n||{});return function(t){var r=s;t=t||[];for(var a=0;a<e[r(426)];a++){var u=o(e[a]);i[u][r(425)]--}for(var l=c(t,n),d=0;d<e[r(426)];d++){var p=o(e[d]);0===i[p][r(425)]&&(i[p][r(437)](),i[r(433)](p,1))}e=l}}},365(t){function n(){var t=["2wnpaBX","3029212WoqXxb","undefined","5VoTNxK","62316uMSMkP","856wJClOF","appendChild","Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.","221143iEmCWJ","HTMLIFrameElement","10117674gDiIMr","querySelector","head","1300983idiOSr","3183918qNMnBg","34837940AIPrUG"];return(n=function(){return t})()}!function(t){for(var n=r,e=t();;)try{if(836520==-parseInt(n(371))/1+-parseInt(n(363))/2*(parseInt(n(376))/3)+-parseInt(n(364))/4+parseInt(n(366))/5*(-parseInt(n(377))/6)+-parseInt(n(373))/7+-parseInt(n(368))/8*(-parseInt(n(367))/9)+parseInt(n(378))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(n);var e={};function r(t,e){return t-=363,n()[t]}t.exports=function(t,n){var s=r,a=function(t){var n=r;if(typeof e[t]===n(365)){var s=document[n(374)](t);if(window[n(372)]&&s instanceof window[n(372)])try{s=s.contentDocument[n(375)]}catch(t){s=null}e[t]=s}return e[t]}(t);if(!a)throw new Error(s(370));a[s(369)](n)}},866(t,n,e){t=e.nmd(t);var r=a;function s(){var t=["108CFSxFY","exports","4788328umUkFy","87409ULDJVJ","2748645TKAbWH","1625316nmOsXB","options","insert","createElement","setAttributes","2166579ueMwzT","78315LhUeGV","414YkGILR","70LKgjbr","235678pRHPws"];return(s=function(){return t})()}function a(t,n){return t-=131,s()[t]}!function(t){for(var n=a,e=t();;)try{if(877885==parseInt(n(134))/1+-parseInt(n(140))/2+-parseInt(n(139))/3+-parseInt(n(135))/4*(-parseInt(n(131))/5)+-parseInt(n(132))/6*(-parseInt(n(138))/7)+-parseInt(n(137))/8+-parseInt(n(145))/9*(-parseInt(n(133))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(s),t[r(136)]=function(t){var n=a,e=document[n(143)]("style");return t[n(144)](e,t.attributes),t[n(142)](e,t[n(141)]),e}},614(t,n,e){t=e.nmd(t);var r=a;function s(){var t=["3mFbkKI","5384136qNsmOS","24WufJCT","10XZltUa","4528152GOxUCO","10023277LnSItB","10AhTzKY","681355cwstXC","6135260fyYFTG","239998CXxazD","283591CJXndU","exports","132ffPurC","nonce"];return(s=function(){return t})()}function a(t,n){return t-=364,s()[t]}!function(t){for(var n=a,e=t();;)try{if(890479==-parseInt(n(370))/1*(parseInt(n(376))/2)+-parseInt(n(367))/3*(parseInt(n(375))/4)+-parseInt(n(374))/5+parseInt(n(365))/6*(parseInt(n(377))/7)+-parseInt(n(369))/8*(-parseInt(n(371))/9)+parseInt(n(373))/10*(parseInt(n(372))/11)+parseInt(n(368))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(s),t[r(364)]=function(t){var n=a,r=e.nc;r&&t.setAttribute(n(366),r)}},271(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=234,a()[t]}function a(){var t=["parentNode","125745Uqvgsr","undefined","@layer"," */","sourceMap","media","options","67177MXVDAy","length","40sYLcwU","removeChild","2tlVmKS","@supports (","2280VqrgwO","supports","layer","@media ","1262367baEwnB","168xviiBE","concat","2418178SnZaRT","exports","7636266aNEcxj","16101CdrHwR","5999984NTsJgz","\n/*# sourceMappingURL=data:application/json;base64,","stringify","10SRzVqw","styleTagTransform"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(704553==-parseInt(n(239))/1*(-parseInt(n(263))/2)+-parseInt(n(245))/3*(-parseInt(n(261))/4)+parseInt(n(252))/5*(-parseInt(n(240))/6)+-parseInt(n(242))/7+parseInt(n(246))/8+parseInt(n(244))/9*(parseInt(n(249))/10)+-parseInt(n(259))/11*(parseInt(n(235))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(243)]=function(t){if(typeof document===s(253))return{update:function(){},remove:function(){}};var n=t.insertStyleElement(t);return{update:function(e){!function(t,n,e){var r=s,a="";e[r(236)]&&(a+=r(234)[r(241)](e.supports,") {")),e[r(257)]&&(a+=r(238)[r(241)](e[r(257)]," {"));var i=typeof e[r(237)]!==r(253);i&&(a+=r(254).concat(e[r(237)][r(260)]>0?" "[r(241)](e[r(237)]):""," {")),a+=e.css,i&&(a+="}"),e[r(257)]&&(a+="}"),e[r(236)]&&(a+="}");var o=e[r(256)];o&&typeof btoa!==r(253)&&(a+=r(247)[r(241)](btoa(unescape(encodeURIComponent(JSON[r(248)](o)))),r(255))),n[r(250)](a,t,n[r(258)])}(n,t,e)},remove:function(){!function(t){var n=s;if(null===t[n(251)])return!1;t[n(251)][n(262)](t)}(n)}}}},439(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=343,a()[t]}function a(){var t=["3gOgMTx","8355528IVPQTd","8774830ecjtAl","cssText","createTextNode","appendChild","exports","364ACRSFD","2754372CsePZr","removeChild","5sozuxV","firstChild","2110230nyztNW","648468lJEGul","271770FSOfHB","157136ocITzz"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(977589==parseInt(n(354))/1+-parseInt(n(352))/2*(-parseInt(n(356))/3)+parseInt(n(353))/4+parseInt(n(350))/5*(parseInt(n(348))/6)+-parseInt(n(347))/7*(parseInt(n(355))/8)+parseInt(n(357))/9+-parseInt(n(358))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(346)]=function(t,n){var e=s;if(n.styleSheet)n.styleSheet[e(343)]=t;else{for(;n[e(351)];)n[e(349)](n[e(351)]);n[e(345)](document[e(344)](t))}}}},n={};function e(r){var s=n[r];if(void 0!==s)return s.exports;var a=n[r]={id:r,loaded:!1,exports:{}};return t[r](a,a.exports,e),a.loaded=!0,a.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),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(){const t=["342455UDEWTK","23078DirICb","arc","645930kJYaum","10ThfQvz","935508rAyEfJ","219357ojDceD","khw","158820FAnczb","56672cSGfqt","390HThaaS","6VYaxiy","16CGOAwQ"];return(c=function(){return t})()}const u=l;function l(t,n){return t-=355,c()[t]}!function(){const t=l,n=c();for(;;)try{if(145836==parseInt(t(357))/1+-parseInt(t(355))/2*(-parseInt(t(359))/3)+parseInt(t(360))/4+-parseInt(t(364))/5*(-parseInt(t(362))/6)+parseInt(t(356))/7*(-parseInt(t(363))/8)+-parseInt(t(367))/9+-parseInt(t(361))/10*(parseInt(t(365))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const d=["ar",u(366),"dv","fa","ha","he",u(358),"ks","ku","ps","ur","yi"];var p=e(22),h=e.n(p),f=e(271),I=e.n(f),g=e(365),m=e.n(g),v=e(614),y=e.n(v),b=e(866),w=e.n(b),x=e(439),A=e.n(x),S=e(137),k={};k.styleTagTransform=A(),k.setAttributes=y(),k.insert=m().bind(null,"head"),k.domAPI=I(),k.insertStyleElement=w(),h()(S.A,k),S.A&&S.A.locals&&S.A.locals;const C=M;function M(t,n){return t-=312,T()[t]}function T(){const t=["brightnessSVGPath","userCorrelationId","onclick","showBranding","text","loadingContainer","_brandingText","_feedbackMessageStyles","endpoint","faceId","sendErrorToServer","replace","src","validate","_locale","hideLoadingAnimation","_userCorrelationId","61695ahStvY","100838DtMObJ","smilePath","_showBranding","brightnessImagePath","_languageDictionary","fontSize","isRtl","append","createElement","languageDictionary","_moduleAborted","keys","en-US","10HKEIYy","cancelButton","5496161RtlcSD","error","textContent","path","mediaInfoDeviceId","Module error not available before cancellation","_mediaInfoDeviceId","_originalStart","split","AzureAIVisionFace","remove","/en.json","includes","loading-dot","button","logo","checkModuleDefined","725328IuPeHF","_cancelModuleLoading","User reuse a cancelled or failed module, causing new failure: ","invalid token","hasOwnProperty","cleanup","_skipInstructions","_deviceCorrelationId","6cjPdFt","feedbackMessageStyles","div"," strings file: ","_brandingImage","substring","./facelivenessdetector-assets/i18n/","skipInstructions","script","body","1693660mKWiET","loadLanguageDictionary","_fontFamily","UserCancelledLoading","face","_baseAssetsURL","isConnected","isDefined","Failed to load locale: ","2954871hoenwv","getAttemptEndPath","AZAIF_FeedbackTakingLong","4lWDXvO","disconnectedCallback","warn","Error parsing JWT token:","activeMotionVisualHint","None","start","showLoadingAnimation","fontFamily","808780tEqbPG","head","cancelLoadingButtonTimeout","face-liveness-loading","_fontSize","56JPzeRy","AZAIF_CancelPrompt","length","Failed to send module abort error:","FaceRecoEngineAdapter","AzureAIVisionFace.js","attempt/end","brandingImage","find","Unknown Module abort error","authToken","undefined","statusText","Module","_continueButtonStyles","parse","cancelLoading","bind","_handleModuleAbortedStart","className","_moduleAbortedError","endsWith","metadata","appendChild","_brightnessImagePath"];return(T=function(){return t})()}!function(){const t=M,n=T();for(;;)try{if(185728==-parseInt(t(407))/1*(-parseInt(t(350))/2)+-parseInt(t(406))/3*(-parseInt(t(364))/4)+-parseInt(t(338))/5+-parseInt(t(328))/6*(-parseInt(t(359))/7)+parseInt(t(320))/8+-parseInt(t(347))/9*(-parseInt(t(420))/10)+-parseInt(t(422))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var _="AzureAIVisionFace_SIMD.js";try{0==WebAssembly[C(402)](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]))&&(_=C(369))}catch(t){_=C(369)}class E extends HTMLElement{constructor(){const t=C;super(),this[t(408)]=r,this[t(356)]=this[t(356)][t(381)](this),this[t(388)]="",this[t(378)]="",this[t(396)]="",this[t(363)]="",this[t(340)]="",this._languageDictionary={},this[t(413)]=!1,this[t(403)]=t(419),this[t(343)]="./",this[t(428)]="",this[t(326)]=!0,this[t(327)]="",this[t(405)]="",this[t(345)]=!1,this.isHTMLInit=!1,this.authToken="",this[t(398)]=a,this[t(354)]=i,this[t(389)]=s,this[t(332)]="",this._brandingText="",this[t(409)]=!1,this[t(318)]=o,this[t(417)]=!1,this._moduleAbortedError="",this[t(429)]=null,this[t(321)]=!1}set[C(410)](t){this[C(388)]=t}set[C(412)](t){this[C(363)]=t}set[C(358)](t){this[C(340)]=t}set buttonStyles(t){this._continueButtonStyles=t}set[C(329)](t){this[C(396)]=t}set locale(t){const n=C;this[n(403)]=t,d[n(315)](t)&&(this.isRtl=!0)}set[C(416)](t){const n=C;this[n(411)]=t||this[n(411)]}set[C(426)](t){this[C(428)]=t}set[C(335)](t){this[C(326)]=t}set deviceCorrelationId(t){this._deviceCorrelationId=t}set[C(390)](t){this._userCorrelationId=t}set[C(392)](t){this[C(409)]=Boolean(t)}set[C(371)](t){this[C(332)]=t}set brandingText(t){const n=C;t&&t[n(366)]>30&&(t=t[n(333)](0,30)),this[n(395)]=t}getAttemptEndPath(t){const n=C;try{const e=t[n(430)](".");if(3===e.length){const t=JSON[n(379)](atob(e[1]));if(t.hasOwnProperty(n(342))){const e=JSON[n(379)](t[n(342)]);if(e&&e.endpoint&&t[n(324)]("allowed-paths")){const r=JSON.parse(t["allowed-paths"])[n(372)](t=>t[n(425)]&&t[n(425)].includes(n(370)));return r?e[n(397)]+"/"+r[n(425)]:(console.warn(n(323)),null)}}}}catch(t){return console[n(423)](n(353),t),null}return null}async[C(399)](t,n){const e=C;window._AzureAIVisionFace_ModuleErrorSent&&(n=e(322)+n);const r=this[e(348)](t);if(r)try{const s=new FormData;s[e(414)](e(386),JSON.stringify({clientSDKversion:"1.4.8",failureReason:n}));const a=await fetch(r,{method:"POST",headers:{Authorization:"Bearer "+t},body:s});return window._AzureAIVisionFace_ModuleErrorSent=!0,a}catch(t){throw console.error("Error sending error:",t),t}else console[e(352)]("No attempt end path found")}_handleModuleAbortedStart=async t=>{const n=C;try{await this[n(399)](t,""+this[n(384)])}catch(t){console[n(423)](n(367),t)}return new Promise((t,e)=>{e({livenessError:"Unexpected",recognitionError:n(355)})})};start=async t=>{const n=C;if(this[n(374)]=t,this[n(345)]=await this[n(319)](1,1),await this[n(339)](),!this.isDefined&&this[n(357)](),this[n(345)]=await this[n(319)](1e3,30),this[n(404)](),!this.isDefined)return!this[n(384)]&&(this._moduleAbortedError="Module not loaded on timeout"),this._cancelModuleLoading?new Promise((t,e)=>{e({livenessError:"UserCancelledLoading",recognitionError:n(355)})}):this[n(382)](t);if(this._cancelModuleLoading)return new Promise((t,e)=>{const r=n;e({livenessError:r(341),recognitionError:r(355)})});try{return Module.start(this)}catch{return this[n(382)](t)}};async connectedCallback(){const t=C;if(this[t(344)]&&(typeof Module===t(375)||typeof Module[t(368)]===t(375))){const n=this._baseAssetsURL[t(400)](/\/$/,"")+"/facelivenessdetector-assets/js/";window[t(377)]={locateFile:function(e,r){const s=t;return e.includes(s(312))&&e[s(385)](".wasm")?n+e:r+e},onAbort:n=>{const e=t;console[e(423)]("Module loading aborted:",n);const r=n||e(373);this[e(417)]=!0,this[e(384)]=r}};const e=document[t(415)](t(336));e[t(401)]=n+_,document[t(360)][t(387)](e)}}[C(351)](){const t=C;typeof Module!==t(375)&&"function"==typeof Module[t(325)]&&Module[t(325)]()}async loadLanguageDictionary(){const t=C;if(0===Object[t(418)](this._languageDictionary)[t(366)]){let n=await fetch(t(334)+this[t(403)]+t(314));if(!n.ok)throw new Error(t(346)+this[t(403)]+t(331)+n[t(376)]+".");let e=await n[t(393)]();this[t(411)]=JSON[t(379)](e)}}async[C(319)](t,n){const e=C;let r=0;for(;r<n;){if(r++,typeof Module!==e(375)&&typeof Module[e(368)]!==e(375))return!0;if(this[e(321)])return!this[e(384)]&&(this[e(384)]=e(427)),!1;if(this[e(417)])return!1;await new Promise(n=>setTimeout(n,t))}return!1}async[C(357)](){const t=C;this[t(404)]();const n=document.createElement("div");n.id=t(362);const e=document[t(415)](t(330));e[t(383)]="loading-text",e.textContent=this[t(411)].AZAIF_FeedbackStarting;const r=document[t(415)]("div");r[t(383)]="dots-container";for(let n=0;n<3;n++){const n=document[t(415)](t(330));n[t(383)]=t(316),r[t(387)](n)}const s=document.createElement(t(317));s[t(383)]="cancel-button",s[t(424)]=this[t(411)][t(365)],s[t(391)]=()=>this[t(380)](),n[t(387)](e),n[t(387)](r),this[t(361)]=setTimeout(()=>{const r=t;this.loadingContainer&&(e.textContent=this._languageDictionary[r(349)],n[r(387)](s))},1e4),document[t(337)].appendChild(n),this.loadingContainer=n}hideLoadingAnimation(){const t=C;this.loadingContainer&&(this[t(394)].remove(),this.loadingContainer=null),this[t(361)]&&(clearTimeout(this.cancelLoadingButtonTimeout),this[t(361)]=null),this[t(421)]&&(this.cancelButton[t(313)](),this.cancelButton=null)}cancelLoading(){const t=C;this[t(404)](),this[t(321)]=!0,this[t(399)](this[t(374)],"UserCancelledLoading")}}var F=L;function L(t,n){return t-=231,D()[t]}function D(){var t=["25425ydcRdA","2884077DlyUEQ","945636olUkTT","define","azure-ai-vision-face-ui","296MDkwFQ","2bqbsbZ","1400808vweFhd","253398ZBjmyF","22VANPvw","8588980pSceJR","486757yPpbju","63ZgAbFZ"];return(D=function(){return t})()}!function(){for(var t=L,n=D();;)try{if(294310==-parseInt(t(238))/1+parseInt(t(233))/2*(parseInt(t(242))/3)+-parseInt(t(232))/4*(parseInt(t(240))/5)+-parseInt(t(235))/6*(parseInt(t(239))/7)+-parseInt(t(234))/8+-parseInt(t(241))/9+parseInt(t(237))/10*(parseInt(t(236))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),customElements[F(243)](F(231),E);export var LivenessStatus;
|
|
2
2
|
(function (LivenessStatus) {
|
|
3
3
|
LivenessStatus["RealFace"] = "RealFace";
|
|
4
4
|
LivenessStatus["SpoofFace"] = "SpoofFace";
|
package/package.json
CHANGED