From c2c7bf05044e8ad413bc005205fd472a713be22c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 10:52:09 +0000 Subject: [PATCH] DEP Update JS dependencies --- client/dist/js/bundle.js | 2 +- yarn.lock | 3150 ++++++++++++++++++-------------------- 2 files changed, 1492 insertions(+), 1660 deletions(-) diff --git a/client/dist/js/bundle.js b/client/dist/js/bundle.js index 660c717..f521767 100644 --- a/client/dist/js/bundle.js +++ b/client/dist/js/bundle.js @@ -1 +1 @@ -!function(){var e={274:function(e,t,r){"use strict";var a=s(r(521)),n=s(r(180));function s(e){return e&&e.__esModule?e:{default:e}}window.document.addEventListener("DOMContentLoaded",(()=>{(0,a.default)(),(0,n.default)()}))},521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(648)),n=i(r(273)),s=i(r(834));function i(e){return e&&e.__esModule?e:{default:e}}t.default=()=>{a.default.component.registerMany({WebAuthnRegister:n.default,WebAuthnVerify:s.default})}},180:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r(648)),n=s(r(675));function s(e){return e&&e.__esModule?e:{default:e}}t.default=()=>{a.default.reducer.register("web-authnAvailability",n.default)}},388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(294))&&a.__esModule?a:{default:a};t.default=()=>n.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 240 240"},n.default.createElement("defs",null,n.default.createElement("style",null,".a{fill:none;}.b{fill:#549ad3;}.c,.g{fill:#333a48;}.d{fill:#ffcf6e;}.e{clip-path:url(#a);}.f{fill:#d6e1ea;}.g{opacity:0.2;}.h{fill:url(#b);}.i{fill:#fff;}"),n.default.createElement("clipPath",{id:"a"},n.default.createElement("circle",{className:"a",cx:"120",cy:"120",r:"120"})),n.default.createElement("linearGradient",{id:"b",x1:"-26.14",y1:"68.86",x2:"-11.09",y2:"-38.22",gradientUnits:"userSpaceOnUse"},n.default.createElement("stop",{offset:"0.58",stopColor:"#333a48"}),n.default.createElement("stop",{offset:"0.59",stopColor:"#424a5c"}))),n.default.createElement("title",null,"U2F"),n.default.createElement("circle",{className:"b",cx:"120",cy:"120",r:"120"}),n.default.createElement("path",{className:"c",d:"M127.91,93.4a1.22,1.22,0,0,0,1.21,1.22h35.61a3.77,3.77,0,0,0,3.56-4V74.33a3.77,3.77,0,0,0-3.56-4H129.12a1.22,1.22,0,0,0-1.21,1.22Zm34.38-13.32A2.22,2.22,0,1,1,160,82.3,2.24,2.24,0,0,1,162.29,80.08Z"}),n.default.createElement("path",{className:"c",d:"M114.18,76.44h15.35a0,0,0,0,1,0,0v9.12a3,3,0,0,1-3,3h-9.35a3,3,0,0,1-3-3V76.44A0,0,0,0,1,114.18,76.44Z",transform:"translate(204.35 -39.35) rotate(90)"}),n.default.createElement("circle",{className:"d",cx:"146.94",cy:"82.77",r:"7.27"}),n.default.createElement("rect",{className:"d",x:"121.65",y:"82.3",width:"2.02",height:"10.5",transform:"translate(210.21 -35.11) rotate(90)"}),n.default.createElement("rect",{className:"d",x:"122.46",y:"79.87",width:"2.02",height:"8.88",transform:"translate(207.78 -39.15) rotate(90)"}),n.default.createElement("rect",{className:"d",x:"121.65",y:"72.2",width:"2.02",height:"10.5",transform:"translate(200.11 -45.21) rotate(90)"}),n.default.createElement("rect",{className:"d",x:"122.46",y:"76.24",width:"2.02",height:"8.88",transform:"translate(204.15 -42.78) rotate(90)"}),n.default.createElement("g",{className:"e"},n.default.createElement("rect",{className:"f",x:"-157.14",y:"54",width:"285",height:"192",rx:"10",ry:"10"}),n.default.createElement("rect",{className:"c",x:"-139.64",y:"70",width:"250",height:"97",rx:"2",ry:"2"}),n.default.createElement("rect",{className:"g",x:"-62.64",y:"175",width:"96",height:"62",rx:"3",ry:"3"}),n.default.createElement("rect",{className:"c",x:"-139.64",y:"54",width:"250",height:"5"}),n.default.createElement("path",{className:"h",d:"M-149.51,51.5a2.52,2.52,0,0,1-2.25-1.41l-30.14-62a2.49,2.49,0,0,1,.13-2.42,2.47,2.47,0,0,1,2.12-1.17h330a2.47,2.47,0,0,1,2.12,1.17,2.47,2.47,0,0,1,.13,2.42l-30.14,62a2.5,2.5,0,0,1-2.25,1.41Z"}),n.default.createElement("path",{className:"c",d:"M150.37-13h0L120.23,49H-149.51l-30.14-62h330m0-5h-330a5,5,0,0,0-4.49,7.19l30.13,62a5,5,0,0,0,4.5,2.81H120.23a5,5,0,0,0,4.5-2.81l30.14-62a5,5,0,0,0-4.5-7.19Z"})),n.default.createElement("path",{className:"i",d:"M159,107.75a5.47,5.47,0,0,1,1.83.32,5.64,5.64,0,0,1,3.76,5.37c0,2.26,0,4.51,0,6.77v18.2a.6.6,0,0,0,.61.6.57.57,0,0,0,.5-.29c.89-1.49,2.34-3.08,4.49-3.08a6,6,0,0,1,4.32,1.5,5.45,5.45,0,0,1,1.43,2.18,1.28,1.28,0,0,0,1.2.86,1.2,1.2,0,0,0,.67-.21,5.81,5.81,0,0,1,3.2-1,5.33,5.33,0,0,1,2.77.76,5.81,5.81,0,0,1,2.43,3,5,5,0,0,1,.28,1.19,1.05,1.05,0,0,0,1,.93,1.07,1.07,0,0,0,.43-.09,5.53,5.53,0,0,1,2.4-.55h.08a5.57,5.57,0,0,1,5.45,4.66,17.12,17.12,0,0,1,.07,2.89v7.1c0,3.09-2.59,29-18,29H161.34l-1.1,0a4,4,0,0,1-1.42-.21A4.63,4.63,0,0,1,157,186a6,6,0,0,1-.5-.71L137,153.54a4.89,4.89,0,0,1,3.92-7.27h.22a5,5,0,0,1,3.86,1.86,8.76,8.76,0,0,1,.79,1.22l2.55,4.42,1.72,3a1.72,1.72,0,0,0,1.52.89,1.77,1.77,0,0,0,1.81-1.74c0-.73,0-1.26,0-1.42V113.52a5.62,5.62,0,0,1,5.61-5.77m0-5h0a10.6,10.6,0,0,0-10.61,10.75v30.94a10.12,10.12,0,0,0-7.28-3.18h-.47a9.9,9.9,0,0,0-8,14.77l0,.06,0,.05,19.47,31.75a12.19,12.19,0,0,0,4.79,4.45,8.84,8.84,0,0,0,3.29.57h17.65c18.94,0,23-27.28,23-34v-7.1c0-.4,0-.73,0-1a12.7,12.7,0,0,0-.16-2.75,10.55,10.55,0,0,0-10.37-8.8H190a10.89,10.89,0,0,0-3.7-3.75A10.45,10.45,0,0,0,181,134a10.69,10.69,0,0,0-2.34.25,10.59,10.59,0,0,0-.74-.76,10.91,10.91,0,0,0-7.74-2.85h-.6V118c0-1.51,0-3,0-4.55a10.61,10.61,0,0,0-7.09-10.06,10.38,10.38,0,0,0-3.5-.6Z"}))},947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(294))&&a.__esModule?a:{default:a};t.default=e=>{let{color:t="currentColor",size:r="3em"}=e;return n.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r,width:r},n.default.createElement("g",{fill:t},n.default.createElement("path",{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"})))}},409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(294))&&a.__esModule?a:{default:a};t.default=e=>{let{color:t="currentColor",size:r="3em"}=e;return n.default.createElement("svg",{width:r,height:r,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg"},n.default.createElement("g",{fill:t,fillRule:"nonzero"},n.default.createElement("path",{d:"M39.8233243,0 C17.9664349,0 0.272762495,17.8947368 0.272762495,40 C0.272762495,62.1052632 17.9664349,80 39.8233243,80 C61.6802137,80 79.3738861,62.1052632 79.3738861,40 C79.3738861,17.8947368 61.6802137,0 39.8233243,0 Z M44.5069435,62.6315789 C43.2926718,63.8596491 41.7314654,64.5614035 40.170259,64.5614035 C38.4355853,64.5614035 36.8743789,63.8596491 35.8335746,62.6315789 C34.619303,61.5789474 33.9254335,60 33.9254335,58.245614 C33.9254335,56.6666667 34.619303,55.0877193 35.8335746,53.8596491 C38.0886505,51.5789474 42.2518676,51.5789474 44.5069435,53.8596491 C45.7212151,55.0877193 46.2416172,56.6666667 46.2416172,58.245614 C46.4150846,60 45.7212151,61.5789474 44.5069435,62.6315789 Z M47.2824215,23.3333333 L45.0273456,44.0350877 C44.8538782,46.8421053 42.4253349,48.7719298 39.6498569,48.5964912 C37.2213136,48.245614 35.4866399,46.4912281 35.3131725,44.0350877 L33.0580966,23.3333333 C32.7111619,19.2982456 35.4866399,15.7894737 39.4763895,15.2631579 C43.4661392,14.9122807 46.9354867,17.8947368 47.2824215,21.9298246 C47.4558889,22.2807018 47.4558889,22.8070175 47.2824215,23.3333333 Z"})))}},292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r(294)),n=s(r(184));function s(e){return e&&e.__esModule?e:{default:e}}t.default=e=>{let{block:t=!1,size:r="6em"}=e;return a.default.createElement("div",{style:{height:r,width:r},className:(0,n.default)({"mfa-loading-indicator":!0,"mfa-loading-indicator--block":t})})}},273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.VIEWS=t.Component=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}a.default=e,r&&r.set(e,a);return a}(r(294)),n=d(r(697)),s=r(28),i=d(r(184)),u=d(r(947)),o=d(r(409)),l=d(r(292)),c=d(r(388)),f=d(r(462));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}const h={LOADING:"LOADING",READY:"READY",ERROR:"ERROR",PROMPTING:"PROMPTING",FAILURE:"FAILURE",SUCCESS:"SUCCESS"};t.VIEWS=h;class m extends a.Component{constructor(e){super(e);let t=h.LOADING;e.keyData?t=h.READY:e.errors.length&&(t=h.ERROR),this.state={view:t,registrationData:null},this.handleBack=this.handleBack.bind(this),this.handleNext=this.handleNext.bind(this),this.handleStartRegistration=this.handleStartRegistration.bind(this)}componentDidUpdate(){const{keyData:e}=this.props,{view:t}=this.state;t===h.LOADING&&e&&this.setState({view:h.READY})}handleBack(){this.props.onBack()}handleNext(){const{registrationData:e}=this.state;null!==e?this.props.onCompleteRegistration(e):this.setState({view:h.FAILURE})}handleStartRegistration(){this.setState({view:h.PROMPTING}),(0,s.performRegistration)(this.props.keyData).then((e=>this.setState({view:h.SUCCESS,registrationData:e}))).catch((()=>this.setState({view:h.FAILURE})))}renderDescription(){const{ss:{i18n:e}}=window,{method:{supportLink:t,supportText:r}}=this.props,n=e._t("MFAWebAuthnRegister.REGISTER",f.default["MFAWebAuthnRegister.REGISTER"]),s=e.inject(e._t("MFAWebAuthnRegister.INSTRUCTION",f.default["MFAWebAuthnRegister.INSTRUCTION"]),{button:`${n}`});return a.default.createElement("div",{className:"mfa-registration-container__description"},a.default.createElement("p",null,e._t("MFAWebAuthnRegister.DESCRIPTION",f.default["MFAWebAuthnRegister.DESCRIPTION"]),t&&a.default.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},r||e._t("MFAWebAuthnRegister.HELP",f.default["MFAWebAuthnRegister.HELP"]))),a.default.createElement("p",{dangerouslySetInnerHTML:{__html:s}}))}renderStatus(){const{errors:e}=this.props,{ss:{i18n:t}}=window;switch(this.state.view){case h.READY:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--empty"});case h.SUCCESS:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--success"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(u.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},t._t("MFAWebAuthnRegister.SUCCESS",f.default["MFAWebAuthnRegister.SUCCESS"])));case h.FAILURE:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--failure"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},t._t("MFAWebAuthnRegister.FAILURE",f.default["MFAWebAuthnRegister.FAILURE"])));case h.ERROR:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--error"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},e.join(", ")));default:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--loading"},a.default.createElement(l.default,{size:"3em"}),a.default.createElement("span",{className:"status-message__description"},t._t("MFAWebAuthnRegister.WAITING",f.default["MFAWebAuthnRegister.WAITING"])))}}renderThumbnail(){return a.default.createElement("div",{className:"mfa-registration-container__thumbnail"},a.default.createElement(c.default,null))}renderActions(){const{ss:{i18n:e}}=window,{view:t}=this.state;let r=[];switch(t){case h.FAILURE:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.RETRY",f.default["MFAWebAuthnRegister.RETRY"])},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"])}];break;case h.ERROR:r=[];break;case h.READY:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.REGISTER",f.default["MFAWebAuthnRegister.REGISTER"])},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"])}];break;case h.PROMPTING:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.REGISTERING",f.default["MFAWebAuthnRegister.REGISTERING"]),disabled:!0},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"]),disabled:!0}];break;case h.SUCCESS:r=[{action:this.handleNext,name:e._t("MFAWebAuthnRegister.COMPLETEREGISTRATION",f.default["MFAWebAuthnRegister.COMPLETEREGISTRATION"])}];break;default:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.REGISTERING",f.default["MFAWebAuthnRegister.REGISTERING"]),disabled:!0},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"])}]}return a.default.createElement("div",{className:"mfa-registration-container__actions mfa-action-list"},r.map(((e,t)=>{const r=0===t,n=(0,i.default)("btn","mfa-action-list__item",{"btn-primary":r,"btn-secondary":!r});return a.default.createElement("button",{key:e.name,className:n,disabled:e.disabled||!1,onClick:e.action,type:"button"},e.name)})))}render(){return a.default.createElement("div",{className:"mfa-registration-container mfa-registration-container--web-authn"},this.renderDescription(),this.renderStatus(),this.renderThumbnail(),this.renderActions())}}t.Component=m,m.propTypes={keyData:n.default.object,method:n.default.object.isRequired,errors:n.default.arrayOf(n.default.string),onBack:n.default.func.isRequired,onCompleteRegistration:n.default.func.isRequired},m.defaultProps={errors:[]},m.displayName="WebAuthnRegister";var y=m;t.default=y},834:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}a.default=e,r&&r.set(e,a);return a}(r(294)),n=d(r(697)),s=d(r(342)),i=r(28),u=d(r(947)),o=d(r(409)),l=d(r(292)),c=d(r(388)),f=d(r(462));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}class h extends a.Component{constructor(e){super(e),this.state={failure:!1,success:!1},this.startAuth=this.startAuth.bind(this),this.handleRetry=this.handleRetry.bind(this)}handleRetry(e){e.preventDefault(),this.setState({failure:!1})}startAuth(){const{publicKey:e,onCompleteVerification:t}=this.props;(0,i.performVerification)(e).then((e=>{this.setState({success:!0},(()=>setTimeout((()=>{t(e)}),1e3)))})).catch((()=>this.setState({failure:!0})))}renderDescription(){const{ss:{i18n:e}}=window,{method:{supportLink:t}}=this.props,r=e._t("MFAWebAuthnVerify.VERIFY",f.default["MFAWebAuthnVerify.VERIFY"]),n=e.inject(e._t("MFAWebAuthnVerify.INSTRUCTION",f.default["MFAWebAuthnVerify.INSTRUCTION"]),{button:`${r}`});return a.default.createElement("div",{className:"mfa-verification-container__description"},a.default.createElement("p",null,e._t("MFAWebAuthnVerify.DESCRIPTION",f.default["MFAWebAuthnVerify.DESCRIPTION"]),t&&a.default.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},e._t("MFAWebAuthnVerify.HELP",f.default["MFAWebAuthnVerify.HELP"]))),a.default.createElement("p",{dangerouslySetInnerHTML:{__html:n}}))}renderStatus(){const{ss:{i18n:e}}=window,{errors:t}=this.props,{failure:r,success:n}=this.state;return t.length?a.default.createElement("div",{className:"mfa-verification-container__status status-message--error"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},t.join(", "))):n?a.default.createElement("div",{className:"mfa-verification-container__status status-message--success"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(u.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},e._t("MFAWebAuthnVerify.SUCCESS",f.default["MFAWebAuthnVerify.SUCCESS"]))):r?a.default.createElement("div",{className:"mfa-verification-container__status status-message--failure"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},e._t("MFAWebAuthnVerify.FAILURE",f.default["MFAWebAuthnVerify.FAILURE"]))):a.default.createElement("div",{className:"mfa-verification-container__status status-message--loading"},a.default.createElement(l.default,{size:"3em"}),a.default.createElement("span",{className:"status-message__description"},e._t("MFAWebAuthnVerify.WAITING",f.default["MFAWebAuthnVerify.WAITING"])))}renderThumbnail(){return a.default.createElement("div",{className:"mfa-verification-container__thumbnail"},a.default.createElement(c.default,null))}renderActions(){const{ss:{i18n:e}}=window,{moreOptionsControl:t}=this.props,{failure:r,success:n}=this.state;if(n)return a.default.createElement("div",{className:"mfa-verification-container__actions mfa-action-list"});const s=e._t("MFAWebAuthnVerify.RETRY",f.default["MFAWebAuthnVerify.RETRY"]),i=a.default.createElement("button",{key:s,className:"btn mfa-action-list__item btn-primary",disabled:!1,onClick:this.handleRetry,type:"button"},s);return a.default.createElement("div",{className:"mfa-verification-container__actions mfa-action-list"},r?i:null,t)}render(){const{failure:e,success:t}=this.state;return e||t||this.startAuth(),a.default.createElement("div",{className:"mfa-verification-container mfa-verification-container--web-authn"},this.renderDescription(),this.renderStatus(),this.renderThumbnail(),this.renderActions())}}h.propTypes={method:n.default.object.isRequired,publicKey:s.default,onCompleteVerification:n.default.func.isRequired,moreOptionsControl:n.default.oneOfType([n.default.object,n.default.func]),errors:n.default.arrayOf(n.default.string)},h.defaultProps={errors:[]};var m=h;t.default=m},28:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performVerification=t.performRegistration=void 0;var a=r(132);t.performRegistration=e=>new Promise(((t,r)=>{void 0!==e.user&&void 0!==e.challenge||r("keyData not provided");const n={...e.user,id:(0,a.base64ToByteArray)(e.user.id)},s={...e,user:n,challenge:(0,a.base64ToByteArray)(e.challenge)},{navigator:i}=window;i.credentials.create({publicKey:s}).then((e=>{t({credentials:btoa(JSON.stringify({id:e.id,type:e.type,rawId:(0,a.byteArrayToBase64)(e.rawId),response:{clientDataJSON:(0,a.byteArrayToBase64)(e.response.clientDataJSON),attestationObject:(0,a.byteArrayToBase64)(e.response.attestationObject)}}))})})).catch((e=>{r(e.message)}))}));t.performVerification=e=>new Promise(((t,r)=>{const n={...e,challenge:(0,a.base64ToByteArray)(e.challenge),allowCredentials:e.allowCredentials.map((e=>({...e,id:(0,a.base64ToByteArray)(e.id)})))};navigator.credentials.get({publicKey:n}).then((e=>{t({credentials:btoa(JSON.stringify({id:e.id,type:e.type,rawId:(0,a.byteArrayToBase64)(e.rawId),response:{clientDataJSON:(0,a.byteArrayToBase64)(e.response.clientDataJSON),authenticatorData:(0,a.byteArrayToBase64)(e.response.authenticatorData),signature:(0,a.byteArrayToBase64)(e.response.signature),userHandle:e.response.userHandle?(0,a.byteArrayToBase64)(e.response.userHandle):null}}))})})).catch((e=>{r(e.message)}))}))},132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteArrayToBase64=t.base64ToByteArray=void 0;t.base64ToByteArray=e=>{const t=atob(e.replace(/_/g,"/").replace(/-/g,"+"));return Uint8Array.from(t,(e=>e.charCodeAt(0)))};t.byteArrayToBase64=e=>{const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/\=+$/,"")}},675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!0,r=null;"https:"!==window.location.protocol?(t=!1,r=window.ss.i18n._t("WebAuthnReducer.NOT_ON_HTTPS","This method can only be used over HTTPS.")):void 0===window.AuthenticatorResponse&&(t=!1,r=window.ss.i18n._t("WebAuthnReducer.UNSUPPORTED_BROWSER","Security keys are not supported by this browser"));return{...e,...t?{}:{isAvailable:t,unavailableMessage:r}}}},342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(697))&&a.__esModule?a:{default:a};var s=n.default.shape({challenge:n.default.string.isRequired,rpId:n.default.string,userVerification:n.default.string,allowCredentials:n.default.arrayOf(n.default.shape({id:n.default.string.isRequired,type:n.default.string.isRequired,transports:n.default.arrayOf(n.default.string)})),extensions:n.default.Object,timeout:n.default.number});t.default=s},184:function(e,t){var r;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t{(0,a.default)(),(0,n.default)()}))},521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(648)),n=i(r(273)),s=i(r(834));function i(e){return e&&e.__esModule?e:{default:e}}t.default=()=>{a.default.component.registerMany({WebAuthnRegister:n.default,WebAuthnVerify:s.default})}},180:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r(648)),n=s(r(675));function s(e){return e&&e.__esModule?e:{default:e}}t.default=()=>{a.default.reducer.register("web-authnAvailability",n.default)}},388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(294))&&a.__esModule?a:{default:a};t.default=()=>n.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 240 240"},n.default.createElement("defs",null,n.default.createElement("style",null,".a{fill:none;}.b{fill:#549ad3;}.c,.g{fill:#333a48;}.d{fill:#ffcf6e;}.e{clip-path:url(#a);}.f{fill:#d6e1ea;}.g{opacity:0.2;}.h{fill:url(#b);}.i{fill:#fff;}"),n.default.createElement("clipPath",{id:"a"},n.default.createElement("circle",{className:"a",cx:"120",cy:"120",r:"120"})),n.default.createElement("linearGradient",{id:"b",x1:"-26.14",y1:"68.86",x2:"-11.09",y2:"-38.22",gradientUnits:"userSpaceOnUse"},n.default.createElement("stop",{offset:"0.58",stopColor:"#333a48"}),n.default.createElement("stop",{offset:"0.59",stopColor:"#424a5c"}))),n.default.createElement("title",null,"U2F"),n.default.createElement("circle",{className:"b",cx:"120",cy:"120",r:"120"}),n.default.createElement("path",{className:"c",d:"M127.91,93.4a1.22,1.22,0,0,0,1.21,1.22h35.61a3.77,3.77,0,0,0,3.56-4V74.33a3.77,3.77,0,0,0-3.56-4H129.12a1.22,1.22,0,0,0-1.21,1.22Zm34.38-13.32A2.22,2.22,0,1,1,160,82.3,2.24,2.24,0,0,1,162.29,80.08Z"}),n.default.createElement("path",{className:"c",d:"M114.18,76.44h15.35a0,0,0,0,1,0,0v9.12a3,3,0,0,1-3,3h-9.35a3,3,0,0,1-3-3V76.44A0,0,0,0,1,114.18,76.44Z",transform:"translate(204.35 -39.35) rotate(90)"}),n.default.createElement("circle",{className:"d",cx:"146.94",cy:"82.77",r:"7.27"}),n.default.createElement("rect",{className:"d",x:"121.65",y:"82.3",width:"2.02",height:"10.5",transform:"translate(210.21 -35.11) rotate(90)"}),n.default.createElement("rect",{className:"d",x:"122.46",y:"79.87",width:"2.02",height:"8.88",transform:"translate(207.78 -39.15) rotate(90)"}),n.default.createElement("rect",{className:"d",x:"121.65",y:"72.2",width:"2.02",height:"10.5",transform:"translate(200.11 -45.21) rotate(90)"}),n.default.createElement("rect",{className:"d",x:"122.46",y:"76.24",width:"2.02",height:"8.88",transform:"translate(204.15 -42.78) rotate(90)"}),n.default.createElement("g",{className:"e"},n.default.createElement("rect",{className:"f",x:"-157.14",y:"54",width:"285",height:"192",rx:"10",ry:"10"}),n.default.createElement("rect",{className:"c",x:"-139.64",y:"70",width:"250",height:"97",rx:"2",ry:"2"}),n.default.createElement("rect",{className:"g",x:"-62.64",y:"175",width:"96",height:"62",rx:"3",ry:"3"}),n.default.createElement("rect",{className:"c",x:"-139.64",y:"54",width:"250",height:"5"}),n.default.createElement("path",{className:"h",d:"M-149.51,51.5a2.52,2.52,0,0,1-2.25-1.41l-30.14-62a2.49,2.49,0,0,1,.13-2.42,2.47,2.47,0,0,1,2.12-1.17h330a2.47,2.47,0,0,1,2.12,1.17,2.47,2.47,0,0,1,.13,2.42l-30.14,62a2.5,2.5,0,0,1-2.25,1.41Z"}),n.default.createElement("path",{className:"c",d:"M150.37-13h0L120.23,49H-149.51l-30.14-62h330m0-5h-330a5,5,0,0,0-4.49,7.19l30.13,62a5,5,0,0,0,4.5,2.81H120.23a5,5,0,0,0,4.5-2.81l30.14-62a5,5,0,0,0-4.5-7.19Z"})),n.default.createElement("path",{className:"i",d:"M159,107.75a5.47,5.47,0,0,1,1.83.32,5.64,5.64,0,0,1,3.76,5.37c0,2.26,0,4.51,0,6.77v18.2a.6.6,0,0,0,.61.6.57.57,0,0,0,.5-.29c.89-1.49,2.34-3.08,4.49-3.08a6,6,0,0,1,4.32,1.5,5.45,5.45,0,0,1,1.43,2.18,1.28,1.28,0,0,0,1.2.86,1.2,1.2,0,0,0,.67-.21,5.81,5.81,0,0,1,3.2-1,5.33,5.33,0,0,1,2.77.76,5.81,5.81,0,0,1,2.43,3,5,5,0,0,1,.28,1.19,1.05,1.05,0,0,0,1,.93,1.07,1.07,0,0,0,.43-.09,5.53,5.53,0,0,1,2.4-.55h.08a5.57,5.57,0,0,1,5.45,4.66,17.12,17.12,0,0,1,.07,2.89v7.1c0,3.09-2.59,29-18,29H161.34l-1.1,0a4,4,0,0,1-1.42-.21A4.63,4.63,0,0,1,157,186a6,6,0,0,1-.5-.71L137,153.54a4.89,4.89,0,0,1,3.92-7.27h.22a5,5,0,0,1,3.86,1.86,8.76,8.76,0,0,1,.79,1.22l2.55,4.42,1.72,3a1.72,1.72,0,0,0,1.52.89,1.77,1.77,0,0,0,1.81-1.74c0-.73,0-1.26,0-1.42V113.52a5.62,5.62,0,0,1,5.61-5.77m0-5h0a10.6,10.6,0,0,0-10.61,10.75v30.94a10.12,10.12,0,0,0-7.28-3.18h-.47a9.9,9.9,0,0,0-8,14.77l0,.06,0,.05,19.47,31.75a12.19,12.19,0,0,0,4.79,4.45,8.84,8.84,0,0,0,3.29.57h17.65c18.94,0,23-27.28,23-34v-7.1c0-.4,0-.73,0-1a12.7,12.7,0,0,0-.16-2.75,10.55,10.55,0,0,0-10.37-8.8H190a10.89,10.89,0,0,0-3.7-3.75A10.45,10.45,0,0,0,181,134a10.69,10.69,0,0,0-2.34.25,10.59,10.59,0,0,0-.74-.76,10.91,10.91,0,0,0-7.74-2.85h-.6V118c0-1.51,0-3,0-4.55a10.61,10.61,0,0,0-7.09-10.06,10.38,10.38,0,0,0-3.5-.6Z"}))},947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(294))&&a.__esModule?a:{default:a};t.default=e=>{let{color:t="currentColor",size:r="3em"}=e;return n.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r,width:r},n.default.createElement("g",{fill:t},n.default.createElement("path",{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"})))}},409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(294))&&a.__esModule?a:{default:a};t.default=e=>{let{color:t="currentColor",size:r="3em"}=e;return n.default.createElement("svg",{width:r,height:r,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg"},n.default.createElement("g",{fill:t,fillRule:"nonzero"},n.default.createElement("path",{d:"M39.8233243,0 C17.9664349,0 0.272762495,17.8947368 0.272762495,40 C0.272762495,62.1052632 17.9664349,80 39.8233243,80 C61.6802137,80 79.3738861,62.1052632 79.3738861,40 C79.3738861,17.8947368 61.6802137,0 39.8233243,0 Z M44.5069435,62.6315789 C43.2926718,63.8596491 41.7314654,64.5614035 40.170259,64.5614035 C38.4355853,64.5614035 36.8743789,63.8596491 35.8335746,62.6315789 C34.619303,61.5789474 33.9254335,60 33.9254335,58.245614 C33.9254335,56.6666667 34.619303,55.0877193 35.8335746,53.8596491 C38.0886505,51.5789474 42.2518676,51.5789474 44.5069435,53.8596491 C45.7212151,55.0877193 46.2416172,56.6666667 46.2416172,58.245614 C46.4150846,60 45.7212151,61.5789474 44.5069435,62.6315789 Z M47.2824215,23.3333333 L45.0273456,44.0350877 C44.8538782,46.8421053 42.4253349,48.7719298 39.6498569,48.5964912 C37.2213136,48.245614 35.4866399,46.4912281 35.3131725,44.0350877 L33.0580966,23.3333333 C32.7111619,19.2982456 35.4866399,15.7894737 39.4763895,15.2631579 C43.4661392,14.9122807 46.9354867,17.8947368 47.2824215,21.9298246 C47.4558889,22.2807018 47.4558889,22.8070175 47.2824215,23.3333333 Z"})))}},292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r(294)),n=s(r(967));function s(e){return e&&e.__esModule?e:{default:e}}t.default=e=>{let{block:t=!1,size:r="6em"}=e;return a.default.createElement("div",{style:{height:r,width:r},className:(0,n.default)({"mfa-loading-indicator":!0,"mfa-loading-indicator--block":t})})}},273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.VIEWS=t.Component=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,r&&r.set(e,a),a}(r(294)),n=d(r(697)),s=r(28),i=d(r(967)),u=d(r(947)),o=d(r(409)),l=d(r(292)),c=d(r(388)),f=d(r(462));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}const h=t.VIEWS={LOADING:"LOADING",READY:"READY",ERROR:"ERROR",PROMPTING:"PROMPTING",FAILURE:"FAILURE",SUCCESS:"SUCCESS"};class m extends a.Component{constructor(e){super(e);let t=h.LOADING;e.keyData?t=h.READY:e.errors.length&&(t=h.ERROR),this.state={view:t,registrationData:null},this.handleBack=this.handleBack.bind(this),this.handleNext=this.handleNext.bind(this),this.handleStartRegistration=this.handleStartRegistration.bind(this)}componentDidUpdate(){const{keyData:e}=this.props,{view:t}=this.state;t===h.LOADING&&e&&this.setState({view:h.READY})}handleBack(){this.props.onBack()}handleNext(){const{registrationData:e}=this.state;null!==e?this.props.onCompleteRegistration(e):this.setState({view:h.FAILURE})}handleStartRegistration(){this.setState({view:h.PROMPTING}),(0,s.performRegistration)(this.props.keyData).then((e=>this.setState({view:h.SUCCESS,registrationData:e}))).catch((()=>this.setState({view:h.FAILURE})))}renderDescription(){const{ss:{i18n:e}}=window,{method:{supportLink:t,supportText:r}}=this.props,n=e._t("MFAWebAuthnRegister.REGISTER",f.default["MFAWebAuthnRegister.REGISTER"]),s=e.inject(e._t("MFAWebAuthnRegister.INSTRUCTION",f.default["MFAWebAuthnRegister.INSTRUCTION"]),{button:`${n}`});return a.default.createElement("div",{className:"mfa-registration-container__description"},a.default.createElement("p",null,e._t("MFAWebAuthnRegister.DESCRIPTION",f.default["MFAWebAuthnRegister.DESCRIPTION"]),t&&a.default.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},r||e._t("MFAWebAuthnRegister.HELP",f.default["MFAWebAuthnRegister.HELP"]))),a.default.createElement("p",{dangerouslySetInnerHTML:{__html:s}}))}renderStatus(){const{errors:e}=this.props,{ss:{i18n:t}}=window;switch(this.state.view){case h.READY:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--empty"});case h.SUCCESS:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--success"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(u.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},t._t("MFAWebAuthnRegister.SUCCESS",f.default["MFAWebAuthnRegister.SUCCESS"])));case h.FAILURE:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--failure"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},t._t("MFAWebAuthnRegister.FAILURE",f.default["MFAWebAuthnRegister.FAILURE"])));case h.ERROR:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--error"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},e.join(", ")));default:return a.default.createElement("div",{className:"mfa-registration-container__status status-message--loading"},a.default.createElement(l.default,{size:"3em"}),a.default.createElement("span",{className:"status-message__description"},t._t("MFAWebAuthnRegister.WAITING",f.default["MFAWebAuthnRegister.WAITING"])))}}renderThumbnail(){return a.default.createElement("div",{className:"mfa-registration-container__thumbnail"},a.default.createElement(c.default,null))}renderActions(){const{ss:{i18n:e}}=window,{view:t}=this.state;let r=[];switch(t){case h.FAILURE:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.RETRY",f.default["MFAWebAuthnRegister.RETRY"])},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"])}];break;case h.ERROR:r=[];break;case h.READY:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.REGISTER",f.default["MFAWebAuthnRegister.REGISTER"])},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"])}];break;case h.PROMPTING:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.REGISTERING",f.default["MFAWebAuthnRegister.REGISTERING"]),disabled:!0},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"]),disabled:!0}];break;case h.SUCCESS:r=[{action:this.handleNext,name:e._t("MFAWebAuthnRegister.COMPLETEREGISTRATION",f.default["MFAWebAuthnRegister.COMPLETEREGISTRATION"])}];break;default:r=[{action:this.handleStartRegistration,name:e._t("MFAWebAuthnRegister.REGISTERING",f.default["MFAWebAuthnRegister.REGISTERING"]),disabled:!0},{action:this.handleBack,name:e._t("MFAWebAuthnRegister.BACK",f.default["MFAWebAuthnRegister.BACK"])}]}return a.default.createElement("div",{className:"mfa-registration-container__actions mfa-action-list"},r.map(((e,t)=>{const r=0===t,n=(0,i.default)("btn","mfa-action-list__item",{"btn-primary":r,"btn-secondary":!r});return a.default.createElement("button",{key:e.name,className:n,disabled:e.disabled||!1,onClick:e.action,type:"button"},e.name)})))}render(){return a.default.createElement("div",{className:"mfa-registration-container mfa-registration-container--web-authn"},this.renderDescription(),this.renderStatus(),this.renderThumbnail(),this.renderActions())}}t.Component=m,m.propTypes={keyData:n.default.object,method:n.default.object.isRequired,errors:n.default.arrayOf(n.default.string),onBack:n.default.func.isRequired,onCompleteRegistration:n.default.func.isRequired},m.defaultProps={errors:[]},m.displayName="WebAuthnRegister";t.default=m},834:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,r&&r.set(e,a),a}(r(294)),n=d(r(697)),s=d(r(342)),i=r(28),u=d(r(947)),o=d(r(409)),l=d(r(292)),c=d(r(388)),f=d(r(462));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}class h extends a.Component{constructor(e){super(e),this.state={failure:!1,success:!1},this.startAuth=this.startAuth.bind(this),this.handleRetry=this.handleRetry.bind(this)}handleRetry(e){e.preventDefault(),this.setState({failure:!1})}startAuth(){const{publicKey:e,onCompleteVerification:t}=this.props;(0,i.performVerification)(e).then((e=>{this.setState({success:!0},(()=>setTimeout((()=>{t(e)}),1e3)))})).catch((()=>this.setState({failure:!0})))}renderDescription(){const{ss:{i18n:e}}=window,{method:{supportLink:t}}=this.props,r=e._t("MFAWebAuthnVerify.VERIFY",f.default["MFAWebAuthnVerify.VERIFY"]),n=e.inject(e._t("MFAWebAuthnVerify.INSTRUCTION",f.default["MFAWebAuthnVerify.INSTRUCTION"]),{button:`${r}`});return a.default.createElement("div",{className:"mfa-verification-container__description"},a.default.createElement("p",null,e._t("MFAWebAuthnVerify.DESCRIPTION",f.default["MFAWebAuthnVerify.DESCRIPTION"]),t&&a.default.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},e._t("MFAWebAuthnVerify.HELP",f.default["MFAWebAuthnVerify.HELP"]))),a.default.createElement("p",{dangerouslySetInnerHTML:{__html:n}}))}renderStatus(){const{ss:{i18n:e}}=window,{errors:t}=this.props,{failure:r,success:n}=this.state;return t.length?a.default.createElement("div",{className:"mfa-verification-container__status status-message--error"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},t.join(", "))):n?a.default.createElement("div",{className:"mfa-verification-container__status status-message--success"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(u.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},e._t("MFAWebAuthnVerify.SUCCESS",f.default["MFAWebAuthnVerify.SUCCESS"]))):r?a.default.createElement("div",{className:"mfa-verification-container__status status-message--failure"},a.default.createElement("span",{className:"status-message__icon"},a.default.createElement(o.default,{size:"32px"})),a.default.createElement("span",{className:"status-message__description"},e._t("MFAWebAuthnVerify.FAILURE",f.default["MFAWebAuthnVerify.FAILURE"]))):a.default.createElement("div",{className:"mfa-verification-container__status status-message--loading"},a.default.createElement(l.default,{size:"3em"}),a.default.createElement("span",{className:"status-message__description"},e._t("MFAWebAuthnVerify.WAITING",f.default["MFAWebAuthnVerify.WAITING"])))}renderThumbnail(){return a.default.createElement("div",{className:"mfa-verification-container__thumbnail"},a.default.createElement(c.default,null))}renderActions(){const{ss:{i18n:e}}=window,{moreOptionsControl:t}=this.props,{failure:r,success:n}=this.state;if(n)return a.default.createElement("div",{className:"mfa-verification-container__actions mfa-action-list"});const s=e._t("MFAWebAuthnVerify.RETRY",f.default["MFAWebAuthnVerify.RETRY"]),i=a.default.createElement("button",{key:s,className:"btn mfa-action-list__item btn-primary",disabled:!1,onClick:this.handleRetry,type:"button"},s);return a.default.createElement("div",{className:"mfa-verification-container__actions mfa-action-list"},r?i:null,t)}render(){const{failure:e,success:t}=this.state;return e||t||this.startAuth(),a.default.createElement("div",{className:"mfa-verification-container mfa-verification-container--web-authn"},this.renderDescription(),this.renderStatus(),this.renderThumbnail(),this.renderActions())}}h.propTypes={method:n.default.object.isRequired,publicKey:s.default,onCompleteVerification:n.default.func.isRequired,moreOptionsControl:n.default.oneOfType([n.default.object,n.default.func]),errors:n.default.arrayOf(n.default.string)},h.defaultProps={errors:[]};t.default=h},28:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performVerification=t.performRegistration=void 0;var a=r(132);t.performRegistration=e=>new Promise(((t,r)=>{void 0!==e.user&&void 0!==e.challenge||r("keyData not provided");const n={...e.user,id:(0,a.base64ToByteArray)(e.user.id)},s={...e,user:n,challenge:(0,a.base64ToByteArray)(e.challenge)},{navigator:i}=window;i.credentials.create({publicKey:s}).then((e=>{t({credentials:btoa(JSON.stringify({id:e.id,type:e.type,rawId:(0,a.byteArrayToBase64)(e.rawId),response:{clientDataJSON:(0,a.byteArrayToBase64)(e.response.clientDataJSON),attestationObject:(0,a.byteArrayToBase64)(e.response.attestationObject)}}))})})).catch((e=>{r(e.message)}))}));t.performVerification=e=>new Promise(((t,r)=>{const n={...e,challenge:(0,a.base64ToByteArray)(e.challenge),allowCredentials:e.allowCredentials.map((e=>({...e,id:(0,a.base64ToByteArray)(e.id)})))};navigator.credentials.get({publicKey:n}).then((e=>{t({credentials:btoa(JSON.stringify({id:e.id,type:e.type,rawId:(0,a.byteArrayToBase64)(e.rawId),response:{clientDataJSON:(0,a.byteArrayToBase64)(e.response.clientDataJSON),authenticatorData:(0,a.byteArrayToBase64)(e.response.authenticatorData),signature:(0,a.byteArrayToBase64)(e.response.signature),userHandle:e.response.userHandle?(0,a.byteArrayToBase64)(e.response.userHandle):null}}))})})).catch((e=>{r(e.message)}))}))},132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteArrayToBase64=t.base64ToByteArray=void 0;t.base64ToByteArray=e=>{const t=atob(e.replace(/_/g,"/").replace(/-/g,"+"));return Uint8Array.from(t,(e=>e.charCodeAt(0)))};t.byteArrayToBase64=e=>{const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/\=+$/,"")}},675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!0,r=null;"https:"!==window.location.protocol?(t=!1,r=window.ss.i18n._t("WebAuthnReducer.NOT_ON_HTTPS","This method can only be used over HTTPS.")):void 0===window.AuthenticatorResponse&&(t=!1,r=window.ss.i18n._t("WebAuthnReducer.UNSUPPORTED_BROWSER","Security keys are not supported by this browser"));return{...e,...t?{}:{isAvailable:t,unavailableMessage:r}}}},342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(697))&&a.__esModule?a:{default:a};t.default=n.default.shape({challenge:n.default.string.isRequired,rpId:n.default.string,userVerification:n.default.string,allowCredentials:n.default.arrayOf(n.default.shape({id:n.default.string.isRequired,type:n.default.string.isRequired,transports:n.default.arrayOf(n.default.string)})),extensions:n.default.Object,timeout:n.default.number})},703:function(e,t,r){"use strict";var a=r(414);function n(){}function s(){}s.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,s,i){if(i!==a){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:n};return r.PropTypes=r,r}},697:function(e,t,r){e.exports=r(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},408:function(e,t){"use strict";var r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}function A(){}function _(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=b.prototype;var g=_.prototype=new A;g.constructor=_,m(g,b.prototype),g.isPureReactComponent=!0;var E=Array.isArray,R=Object.prototype.hasOwnProperty,v={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,a){var n,s={},i=null,u=null;if(null!=t)for(n in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)R.call(t,n)&&!S.hasOwnProperty(n)&&(s[n]=t[n]);var o=arguments.length-2;if(1===o)s.children=a;else if(1=3.0.0 <4.0.0" immutable "^4.0.0" @@ -7276,6 +7131,25 @@ set-blocking@^2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== +set-function-length@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" + integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== + dependencies: + define-data-property "^1.1.1" + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +set-function-name@^2.0.0, set-function-name@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" + integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== + dependencies: + define-data-property "^1.0.1" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.0" + shallow-clone@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" @@ -7314,19 +7188,14 @@ signal-exit@^3.0.3, signal-exit@^3.0.7: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== -signal-exit@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" - integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== - -sirv@^1.0.7: - version "1.0.19" - resolved "https://registry.yarnpkg.com/sirv/-/sirv-1.0.19.tgz#1d73979b38c7fe91fcba49c85280daa9c2363b49" - integrity sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ== +sirv@^2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.4.tgz#5dd9a725c578e34e449f332703eb2a74e46a29b0" + integrity sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ== dependencies: - "@polka/url" "^1.0.0-next.20" - mrmime "^1.0.0" - totalist "^1.0.0" + "@polka/url" "^1.0.0-next.24" + mrmime "^2.0.0" + totalist "^3.0.0" sisteransi@^1.0.5: version "1.0.5" @@ -7418,22 +7287,15 @@ spdx-expression-parse@^3.0.0: spdx-license-ids "^3.0.0" spdx-license-ids@^3.0.0: - version "3.0.13" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz#7189a474c46f8d47c7b0da4b987bb45e908bd2d5" - integrity sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w== + version "3.0.16" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz#a14f64e0954f6e25cc6587bd4f392522db0d998f" + integrity sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw== sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -ssri@^10.0.0: - version "10.0.5" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-10.0.5.tgz#e49efcd6e36385196cb515d3a2ad6c3f0265ef8c" - integrity sha512-bSf16tAFkGeRlUNDjXu8FzaMQt6g2HZJrun7mtMbIPOddxt3GLMSz5VWUWcqTJUPfLEaDIepGxv+bYQW49596A== - dependencies: - minipass "^7.0.3" - ssri@^9.0.0, ssri@^9.0.1: version "9.0.1" resolved "https://registry.yarnpkg.com/ssri/-/ssri-9.0.1.tgz#544d4c357a8d7b71a19700074b6883fcb4eae057" @@ -7463,15 +7325,6 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - string-width@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -7481,6 +7334,15 @@ string-width@^1.0.1: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + string-width@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" @@ -7489,55 +7351,47 @@ string-width@^2.0.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" -string-width@^5.0.1, string-width@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" - integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== - dependencies: - eastasianwidth "^0.2.0" - emoji-regex "^9.2.2" - strip-ansi "^7.0.1" - string.prototype.matchall@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3" - integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg== + version "4.0.10" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz#a1553eb532221d4180c51581d6072cd65d1ee100" + integrity sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - get-intrinsic "^1.1.3" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" has-symbols "^1.0.3" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.3" + internal-slot "^1.0.5" + regexp.prototype.flags "^1.5.0" + set-function-name "^2.0.0" side-channel "^1.0.4" -string.prototype.trim@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz#a68352740859f6893f14ce3ef1bb3037f7a90533" - integrity sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg== +string.prototype.trim@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd" + integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" -string.prototype.trimend@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" - integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== +string.prototype.trimend@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" + integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" -string.prototype.trimstart@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" - integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== +string.prototype.trimstart@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" + integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" string_decoder@^1.1.1: version "1.3.0" @@ -7553,13 +7407,6 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - strip-ansi@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" @@ -7574,12 +7421,12 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -strip-ansi@^7.0.1: - version "7.1.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" - integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: - ansi-regex "^6.0.1" + ansi-regex "^5.0.1" strip-bom@^3.0.0: version "3.0.0" @@ -7665,9 +7512,9 @@ tapable@^2.1.1, tapable@^2.2.0: integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== tar@^6.1.0, tar@^6.1.11, tar@^6.1.2: - version "6.1.15" - resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.15.tgz#c9738b0b98845a3b344d334b8fa3041aaba53a69" - integrity sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A== + version "6.2.0" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.0.tgz#b14ce49a79cb1cd23bc9b016302dea5474493f73" + integrity sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ== dependencies: chownr "^2.0.0" fs-minipass "^2.0.0" @@ -7677,20 +7524,20 @@ tar@^6.1.0, tar@^6.1.11, tar@^6.1.2: yallist "^4.0.0" terser-webpack-plugin@^5.3.7: - version "5.3.9" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz#832536999c51b46d468067f9e37662a3b96adfe1" - integrity sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA== + version "5.3.10" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz#904f4c9193c6fd2a03f693a2150c62a92f40d199" + integrity sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w== dependencies: - "@jridgewell/trace-mapping" "^0.3.17" + "@jridgewell/trace-mapping" "^0.3.20" jest-worker "^27.4.5" schema-utils "^3.1.1" serialize-javascript "^6.0.1" - terser "^5.16.8" + terser "^5.26.0" -terser@^5.16.8: - version "5.19.2" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.19.2.tgz#bdb8017a9a4a8de4663a7983f45c506534f9234e" - integrity sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA== +terser@^5.26.0: + version "5.26.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.26.0.tgz#ee9f05d929f4189a9c28a0feb889d96d50126fe1" + integrity sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -7738,10 +7585,10 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -totalist@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/totalist/-/totalist-1.1.0.tgz#a4d65a3e546517701e3e5c37a47a70ac97fe56df" - integrity sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g== +totalist@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.1.tgz#ba3a3d600c915b1a97872348f79c127475f6acf8" + integrity sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ== tough-cookie@^4.1.2: version "4.1.3" @@ -7770,10 +7617,10 @@ treeverse@^2.0.0: resolved "https://registry.yarnpkg.com/treeverse/-/treeverse-2.0.0.tgz#036dcef04bc3fd79a9b79a68d4da03e882d8a9ca" integrity sha512-N5gJCkLu1aXccpOTtqV6ddSEi6ZmGkh3hjmbu1IjcavJK4qyOVQmi0myQKM7z5jVGmD68SJoliaVrMmVObhj6A== -tsconfig-paths@^3.14.2: - version "3.14.2" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" - integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== +tsconfig-paths@^3.15.0: + version "3.15.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4" + integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg== dependencies: "@types/json5" "^0.0.29" json5 "^1.0.2" @@ -7878,6 +7725,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" @@ -7908,13 +7760,6 @@ unique-filename@^2.0.0: dependencies: unique-slug "^3.0.0" -unique-filename@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea" - integrity sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g== - dependencies: - unique-slug "^4.0.0" - unique-slug@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-3.0.0.tgz#6d347cf57c8a7a7a6044aabd0e2d74e4d76dc7c9" @@ -7922,13 +7767,6 @@ unique-slug@^3.0.0: dependencies: imurmurhash "^0.1.4" -unique-slug@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-4.0.0.tgz#6bae6bb16be91351badd24cdce741f892a6532e3" - integrity sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ== - dependencies: - imurmurhash "^0.1.4" - universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" @@ -7939,10 +7777,10 @@ universalify@^0.2.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" - integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== +update-browserslist-db@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" + integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== dependencies: escalade "^3.1.1" picocolors "^1.0.0" @@ -7982,13 +7820,13 @@ util@^0.10.3: inherits "2.0.3" v8-to-istanbul@^9.0.1: - version "9.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz#1b83ed4e397f58c85c266a570fc2558b5feb9265" - integrity sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA== + version "9.2.0" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz#2ed7644a245cddd83d4e087b9b33b3e62dfd10ad" + integrity sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA== dependencies: "@jridgewell/trace-mapping" "^0.3.12" "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" + convert-source-map "^2.0.0" validate-npm-package-license@^3.0.4: version "3.0.4" @@ -8050,19 +7888,22 @@ webidl-conversions@^7.0.0: integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== webpack-bundle-analyzer@^4.7.0: - version "4.9.0" - resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz#fc093c4ab174fd3dcbd1c30b763f56d10141209d" - integrity sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw== + version "4.10.1" + resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.1.tgz#84b7473b630a7b8c21c741f81d8fe4593208b454" + integrity sha512-s3P7pgexgT/HTUSYgxJyn28A+99mmLq4HsJepMPzu0R8ImJc52QNqaFYW1Z2z2uIb1/J3eYgaAWVpaC+v/1aAQ== dependencies: "@discoveryjs/json-ext" "0.5.7" acorn "^8.0.4" acorn-walk "^8.0.0" - chalk "^4.1.0" commander "^7.2.0" + debounce "^1.2.1" + escape-string-regexp "^4.0.0" gzip-size "^6.0.0" - lodash "^4.17.20" + html-escaper "^2.0.2" + is-plain-object "^5.0.0" opener "^1.5.2" - sirv "^1.0.7" + picocolors "^1.0.0" + sirv "^2.0.3" ws "^7.3.1" webpack-cli@^5.0.0: @@ -8085,11 +7926,12 @@ webpack-cli@^5.0.0: webpack-merge "^5.7.3" webpack-merge@^5.7.3: - version "5.9.0" - resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.9.0.tgz#dc160a1c4cf512ceca515cc231669e9ddb133826" - integrity sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg== + version "5.10.0" + resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" + integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== dependencies: clone-deep "^4.0.1" + flat "^5.0.2" wildcard "^2.0.0" webpack-sources@^3.2.3: @@ -8098,9 +7940,9 @@ webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.74.0: - version "5.88.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.88.2.tgz#f62b4b842f1c6ff580f3fcb2ed4f0b579f4c210e" - integrity sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ== + version "5.89.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.89.0.tgz#56b8bf9a34356e93a6625770006490bf3a7f32dc" + integrity sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw== dependencies: "@types/eslint-scope" "^3.7.3" "@types/estree" "^1.0.0" @@ -8135,9 +7977,9 @@ whatwg-encoding@^2.0.0: iconv-lite "0.6.3" whatwg-fetch@^3.4.1: - version "3.6.17" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.17.tgz#009bbbfc122b227b74ba1ff31536b3a1a0e0e212" - integrity sha512-c4ghIvG6th0eudYwKZY5keb81wtFz9/WeAHAoy8+r18kcWlitUIrmGFQ2rWEl4UCKUilD3zCLHOIPheHx5ypRQ== + version "3.6.20" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz#580ce6d791facec91d37c72890995a0b48d31c70" + integrity sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg== whatwg-mimetype@^3.0.0: version "3.0.0" @@ -8204,13 +8046,13 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== -which-typed-array@^1.1.10, which-typed-array@^1.1.11, which-typed-array@^1.1.9: - version "1.1.11" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.11.tgz#99d691f23c72aab6768680805a271b69761ed61a" - integrity sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew== +which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.9: + version "1.1.13" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" + integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== dependencies: available-typed-arrays "^1.0.5" - call-bind "^1.0.2" + call-bind "^1.0.4" for-each "^0.3.3" gopd "^1.0.1" has-tostringtag "^1.0.0" @@ -8239,16 +8081,6 @@ word-wrap@~1.2.3: resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: - name wrap-ansi-cjs - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" @@ -8258,14 +8090,14 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" - integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== dependencies: - ansi-styles "^6.1.0" - string-width "^5.0.1" - strip-ansi "^7.0.1" + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" wrappy@1: version "1.0.2" @@ -8293,9 +8125,9 @@ ws@^7.3.1: integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== ws@^8.11.0: - version "8.13.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" - integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== + version "8.16.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.16.0.tgz#d1cd774f36fbc07165066a60e40323eab6446fd4" + integrity sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ== xml-name-validator@^4.0.0: version "4.0.0" @@ -8332,10 +8164,10 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^2.1.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" - integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== +yaml@^2.3.4: + version "2.3.4" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.4.tgz#53fc1d514be80aabf386dc6001eb29bf3b7523b2" + integrity sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA== yargs-parser@^18.1.2: version "18.1.3"