@ahmed_hani/dot-auto-capture-ui 7.7.0 → 8.0.0
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/document.mjs +865 -874
- package/document.umd.js +27 -27
- package/face.mjs +1252 -1323
- package/face.umd.js +27 -27
- package/magnifeye-liveness.mjs +766 -789
- package/magnifeye-liveness.umd.js +45 -45
- package/multi-range-liveness.mjs +841 -856
- package/multi-range-liveness.umd.js +24 -24
- package/package.json +6 -3
- package/palm.mjs +873 -891
- package/palm.umd.js +27 -27
- package/smile-liveness.mjs +1143 -1187
- package/smile-liveness.umd.js +37 -37
- package/ui/src/types/common.d.ts +3 -19
- package/ui/src/types/configuration.d.ts +60 -0
- package/ui/src/types/document.d.ts +8 -7
- package/ui/src/types/eye-gaze.d.ts +9 -8
- package/ui/src/types/face.d.ts +8 -20
- package/ui/src/types/magnifeye.d.ts +7 -7
- package/ui/src/types/multi-range.d.ts +8 -8
- package/ui/src/types/palm.d.ts +8 -7
- package/ui/src/types/smile.d.ts +8 -15
- package/ui-common/src/types/common.d.ts +21 -36
- package/ui-common/src/types/document.d.ts +1 -9
- package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
- package/ui-common/src/types/events/common.d.ts +0 -13
- package/ui-common/src/types/events/document.d.ts +3 -7
- package/ui-common/src/types/events/face.d.ts +9 -2
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/palm.d.ts +3 -2
- package/ui-common/src/types/events/smile.d.ts +10 -5
- package/ui-common/src/types/eye-gaze.d.ts +6 -6
- package/ui-common/src/types/face.d.ts +1 -20
- package/ui-common/src/types/magnifeye.d.ts +6 -6
- package/ui-common/src/types/modality/detection/document.d.ts +9 -0
- package/ui-common/src/types/modality/detection/face.d.ts +20 -0
- package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
- package/ui-common/src/types/palm.d.ts +1 -20
- package/ui-common/src/types/smile.d.ts +23 -16
package/face.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(H){typeof define=="function"&&define.amd?define(H):H()})(function(){"use strict";var Hs=Object.defineProperty;var Fs=(H,p,ue)=>p in H?Hs(H,p,{enumerable:!0,configurable:!0,writable:!0,value:ue}):H[p]=ue;var Ot=(H,p,ue)=>Fs(H,typeof p!="symbol"?p+"":p,ue);var H,p,ue,fe,bn,$n,kn,On,Nt,xt,Tt,Nn,Pe={},xn=[],go=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function X(e,t){for(var n in t)e[n]=t[n];return e}function It(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?H.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return Me(e,a,r,o,null)}function Me(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++ue,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function yo(){return{current:null}}function B(e){return e.children}function q(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?be(e):null}function Tn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Tn(e)}}function Rt(e){(!e.__d&&(e.__d=!0)&&fe.push(e)&&!Ke.__r++||bn!=p.debounceRendering)&&((bn=p.debounceRendering)||$n)(Ke)}function Ke(){for(var e,t,n,r,o,i,a,c=1;fe.length;)fe.length>c&&fe.sort(kn),e=fe.shift(),c=fe.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=X({},r)).__v=r.__v+1,p.vnode&&p.vnode(n),At(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??be(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Pn(i,n,a),n.__e!=o&&Tn(n)));Ke.__r=0}function In(e,t,n,r,o,i,a,c,s,u,d){var l,_,h,y,E,$,g=r&&r.__k||xn,m=t.length;for(s=vo(n,t,g,s,m),l=0;l<m;l++)(h=n.__k[l])!=null&&(_=h.__i==-1?Pe:g[h.__i]||Pe,h.__i=l,$=At(e,h,_,o,i,a,c,s,u,d),y=h.__e,h.ref&&_.ref!=h.ref&&(_.ref&&Lt(_.ref,null,h),d.push(h.ref,h.__c||y,h)),E==null&&y!=null&&(E=y),4&h.__u||_.__k===h.__k?s=Rn(h,s,e):typeof h.type=="function"&&$!==void 0?s=$:y&&(s=y.nextSibling),h.__u&=-7);return n.__e=E,s}function vo(e,t,n,r,o){var i,a,c,s,u,d=n.length,l=d,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(s=i+_,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Me(null,a,null,null,null):De(a)?Me(B,{children:a},null,null,null):a.constructor==null&&a.__b>0?Me(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(u=a.__i=Co(a,n,s,l))!=-1&&(l--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>d?_--:o<d&&_++),typeof a.type!="function"&&(a.__u|=4)):u!=s&&(u==s-1?_--:u==s+1?_++:(u>s?_--:_++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<d;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=be(c)),Mn(c,c));return r}function Rn(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Rn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=be(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function J(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(n){J(n,t)}):t.push(e)),t}function Co(e,t,n,r){var o,i,a=e.key,c=e.type,s=t[n];if(s===null&&e.key==null||s&&a==s.key&&c==s.type&&(2&s.__u)==0)return n;if(r>(s!=null&&(2&s.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((s=t[o])&&(2&s.__u)==0&&a==s.key&&c==s.type)return o;o--}if(i<t.length){if((s=t[i])&&(2&s.__u)==0&&a==s.key&&c==s.type)return i;i++}}return-1}function An(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||go.test(t)?n:n+"px"}function Je(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||An(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||An(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(On,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Nt,e.addEventListener(t,i?Tt:xt,i)):e.removeEventListener(t,i?Tt:xt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ln(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Nt++;else if(t.t<n.u)return;return n(p.event?p.event(t):t)}}}function At(e,t,n,r,o,i,a,c,s,u){var d,l,_,h,y,E,$,g,m,k,b,N,w,v,U,j,Ze,G=t.type;if(t.constructor!=null)return null;128&n.__u&&(s=!!(32&n.__u),i=[c=t.__e=n.__e]),(d=p.__b)&&d(t);e:if(typeof G=="function")try{if(g=t.props,m="prototype"in G&&G.prototype.render,k=(d=G.contextType)&&r[d.__c],b=d?k?k.props.value:d.__:r,n.__c?$=(l=t.__c=n.__c).__=l.__E:(m?t.__c=l=new G(g,b):(t.__c=l=new q(g,b),l.constructor=G,l.render=So),k&&k.sub(l),l.props=g,l.state||(l.state={}),l.context=b,l.__n=r,_=l.__d=!0,l.__h=[],l._sb=[]),m&&l.__s==null&&(l.__s=l.state),m&&G.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=X({},l.__s)),X(l.__s,G.getDerivedStateFromProps(g,l.__s))),h=l.props,y=l.state,l.__v=t,_)m&&G.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&G.getDerivedStateFromProps==null&&g!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,b),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,b)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Se){Se&&(Se.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,b),m&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,y,E)})}if(l.context=b,l.props=g,l.__P=e,l.__e=!1,w=p.__r,v=0,m){for(l.state=l.__s,l.__d=!1,w&&w(t),d=l.render(l.props,l.state,l.context),U=0;U<l._sb.length;U++)l.__h.push(l._sb[U]);l._sb=[]}else do l.__d=!1,w&&w(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++v<25);l.state=l.__s,l.getChildContext!=null&&(r=X(X({},r),l.getChildContext())),m&&!_&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(h,y)),j=d,d!=null&&d.type===B&&d.key==null&&(j=Dn(d.props.children)),c=In(e,De(j)?j:[j],t,n,r,o,i,a,c,s,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),$&&(l.__E=l.__=null)}catch(Se){if(t.__v=null,s||i!=null)if(Se.then){for(t.__u|=s?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(Ze=i.length;Ze--;)It(i[Ze]);else t.__e=n.__e,t.__k=n.__k;p.__e(Se,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=wo(n.__e,t,n,r,o,i,a,s,u);return(d=p.diffed)&&d(t),128&t.__u?void 0:c}function Pn(e,t,n){for(var r=0;r<n.length;r++)Lt(n[r],n[++r],n[++r]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){p.__e(i,o.__v)}})}function Dn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(Dn):X({},e)}function wo(e,t,n,r,o,i,a,c,s){var u,d,l,_,h,y,E,$=n.props,g=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!m&&(m?h.localName==m:h.nodeType==3)){e=h,i[u]=null;break}}if(e==null){if(m==null)return document.createTextNode(g);e=document.createElementNS(o,m,g.is&&g),c&&(p.__m&&p.__m(t,i),c=!1),i=null}if(m==null)$===g||c&&e.data==g||(e.data=g);else{if(i=i&&H.call(e.childNodes),$=n.props||Pe,!c&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(h=e.attributes[u]).name]=h.value;for(u in $)if(h=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=h;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;Je(e,u,null,h,o)}}for(u in g)h=g[u],u=="children"?_=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?y=h:u=="checked"?E=h:c&&typeof h!="function"||$[u]===h||Je(e,u,h,$[u],o);if(d)c||l&&(d.__html==l.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),In(t.type=="template"?e.content:e,De(_)?_:[_],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&be(n,0),c,s),i!=null)for(u=i.length;u--;)It(i[u]);c||(u="value",m=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[u]||m=="progress"&&!y||m=="option"&&y!=$[u])&&Je(e,u,y,$[u],o),u="checked",E!=null&&E!=e[u]&&Je(e,u,E,$[u],o))}return e}function Lt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){p.__e(o,n)}}function Mn(e,t,n){var r,o;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Lt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){p.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Mn(r[o],t,n||typeof e.type!="function");n||It(e.__e),e.__c=e.__=e.__e=void 0}function So(e,t,n){return this.constructor(e,n)}function ae(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),p.__&&p.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],At(t,e=(!r&&n||t).__k=D(B,null,[e]),o||Pe,Pe,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?H.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Pn(i,e,a)}function Pt(e,t){ae(e,t,Pt)}function Dt(e,t,n){var r,o,i,a,c=X({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?H.call(arguments,2):n),Me(e.type,c,r||e.key,o||e.ref,null)}function Hn(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,Rt(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+Nn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}H=xn.slice,p={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},ue=0,q.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=X({},this.state),typeof e=="function"&&(e=e(X({},n),this.props)),e&&X(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rt(this))},q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rt(this))},q.prototype.render=B,fe=[],$n=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kn=function(e,t){return e.__v.__b-t.__v.__b},Ke.__r=0,On=/(PointerCapture)$|Capture$/i,Nt=0,xt=Ln(!1),Tt=Ln(!0),Nn=0;function Mt(){return(Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Eo=["context","children"];function bo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,c={},s=Object.keys(r);for(a=0;a<s.length;a++)o.indexOf(i=s[a])>=0||(c[i]=r[i]);return c}(e,Eo);return Dt(t,n)}function $o(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=D(bo,Mt({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},a=0,c=n.attributes,s=n.childNodes;for(a=c.length;a--;)c[a].name!=="slot"&&(i[c[a].name]=c[a].value,i[Fn(c[a].name)]=c[a].value);for(a=s.length;a--;){var u=t(s[a],null),d=s[a].slot;d?i[d]=D(Un,{name:d},u):o[a]=u}var l=r?D(Un,null,o):o;return D(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pt:ae)(this._vdom,this._root)}function Fn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function ko(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Fn(e)]=n,this._vdom=Dt(this._vdom,r),ae(this._vdom,this._root)}}function Oo(){ae(this._vdom=null,this._root)}function Un(e,t){var n=this;return D("slot",Mt({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function No(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=$o,o.prototype.attributeChangedCallback=ko,o.prototype.disconnectedCallback=Oo,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var c=typeof a;a!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var xo=0;function f(e,t,n,r,o,i){t||(t={});var a,c,s=t;if("ref"in s)for(c in s={},t)c=="ref"?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--xo,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)s[c]===void 0&&(s[c]=a[c]);return p.vnode&&p.vnode(u),u}const Bn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var de=(e=>(e.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",e.CONTROL="face-auto-capture:control",e.DETECTED_FACE_CHANGED="face-auto-capture:detected-face-changed",e.FACE_DETECTION="face-auto-capture:face-detection",e.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",e.STATE_CHANGED="face-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",e))(de||{});const Z={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING",COMPLETE:"COMPLETE"},Wn={EYE_NOT_PRESENT:"eye_not_present"},L={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_CENTERING:"face_centering",FACE_NOT_PRESENT:"face_not_present",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",LEFT_EYE_NOT_PRESENT:`left_${Wn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Wn.EYE_NOT_PRESENT}`,MOUTH_NOT_PRESENT:"mouth_not_present",MOUTH_SCORE_TOO_HIGH:"mouth_score_too_high",MOUTH_SCORE_TOO_LOW:"mouth_score_too_low"};var se,x,Ht,zn,$e=0,jn=[],I=p,Gn=I.__b,Vn=I.__r,qn=I.diffed,Zn=I.__c,Yn=I.unmount,Xn=I.__;function ke(e,t){I.__h&&I.__h(x,e,$e||t),$e=0;var n=x.__H||(x.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function W(e){return $e=1,Ft(er,e)}function Ft(e,t,n){var r=ke(se++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):er(void 0,t),function(c){var s=r.__N?r.__N[0]:r.__[0],u=r.t(s,c);s!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=x,!x.__f)){var o=function(c,s,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(_){return!!_.__c});if(d.every(function(_){return!_.__N}))return!i||i.call(this,c,s,u);var l=r.__c.props!==c;return d.forEach(function(_){if(_.__N){var h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(l=!0)}}),i&&i.call(this,c,s,u)||l};x.__f=!0;var i=x.shouldComponentUpdate,a=x.componentWillUpdate;x.componentWillUpdate=function(c,s,u){if(this.__e){var d=i;i=void 0,o(c,s,u),i=d}a&&a.call(this,c,s,u)},x.shouldComponentUpdate=o}return r.__N||r.__}function ee(e,t){var n=ke(se++,3);!I.__s&&Bt(n.__H,t)&&(n.__=e,n.u=t,x.__H.__h.push(n))}function Oe(e,t){var n=ke(se++,4);!I.__s&&Bt(n.__H,t)&&(n.__=e,n.u=t,x.__h.push(n))}function He(e){return $e=5,te(function(){return{current:e}},[])}function Qn(e,t,n){$e=6,Oe(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function te(e,t){var n=ke(se++,7);return Bt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return $e=8,te(function(){return e},t)}function Fe(e){var t=x.context[e.__c],n=ke(se++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(x)),t.props.value):e.__}function et(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function Kn(){var e=ke(se++,11);if(!e.__){for(var t=x.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function To(){for(var e;e=jn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tt),e.__H.__h.forEach(Ut),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){x=null,Gn&&Gn(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Xn&&Xn(e,t)},I.__r=function(e){Vn&&Vn(e),se=0;var t=(x=e.__c).__H;t&&(Ht===x?(t.__h=[],x.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(tt),t.__h.forEach(Ut),t.__h=[],se=0)),Ht=x},I.diffed=function(e){qn&&qn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jn.push(t)!==1&&zn===I.requestAnimationFrame||((zn=I.requestAnimationFrame)||Io)(To)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ht=x=null},I.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tt),n.__h=n.__h.filter(function(r){return!r.__||Ut(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(r,n.__v)}}),Zn&&Zn(e,t)},I.unmount=function(e){Yn&&Yn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{tt(r)}catch(o){t=o}}),n.__H=void 0,t&&I.__e(t,n.__v))};var Jn=typeof requestAnimationFrame=="function";function Io(e){var t,n=function(){clearTimeout(r),Jn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Jn&&(t=requestAnimationFrame(n))}function tt(e){var t=x,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),x=t}function Ut(e){var t=x;e.__c=e.__(),x=t}function Bt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function er(e,t){return typeof t=="function"?t(e):t}var P=function(){return P=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},P.apply(this,arguments)};function _e(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ro(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ao=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Lo=Ro(function(e){return Ao.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function tr(e,t){for(var n in t)e[n]=t[n];return e}function Wt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function nr(e,t){var n=t(),r=W({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Oe(function(){o.__=n,o.u=t,zt(o)&&i({t:o})},[e,n,t]),ee(function(){return zt(o)&&i({t:o}),e(function(){zt(o)&&i({t:o})})},[e]),n}function zt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function rr(e){e()}function or(e){return e}function ir(){return[!1,rr]}var ar=Oe;function jt(e,t){this.props=e,this.context=t}function Po(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Wt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,D(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(jt.prototype=new q).isPureReactComponent=!0,jt.prototype.shouldComponentUpdate=function(e,t){return Wt(this.props,e)||Wt(this.state,t)};var sr=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),sr&&sr(e)};var Do=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mo(e){function t(n){var r=tr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Do,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var cr=function(e,t){return e==null?null:J(J(e).map(t))},Ho={map:cr,forEach:cr,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:J},Fo=p.__e;p.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Fo(e,t,n,r)};var lr=p.unmount;function ur(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=tr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ur(r,t,n)})),e}function fr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return fr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function nt(){this.__u=0,this.o=null,this.__b=null}function dr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Uo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return D(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Ue(){this.i=null,this.l=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),lr&&lr(e)},(nt.prototype=new q).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=dr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=fr(s,s.__c.__P,s.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},nt.prototype.componentWillUnmount=function(){this.o=[]},nt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ur(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&D(B,null,e.fallback);return o&&(o.__u&=-33),[D(B,null,t.__a?null:e.children),o]};var hr=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Bo(e){return this.getChildContext=function(){return e.context},e.children}function Wo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ae(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}ae(D(Bo,{context:t.context},e.__v),t.v)}function zo(e,t){var n=D(Wo,{__v:e,h:t});return n.containerInfo=t,n}(Ue.prototype=new q).__a=function(e){var t=this,n=dr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),hr(t,e,r)):o()};n?n(i):i()}},Ue.prototype.render=function(e){this.i=null,this.l=new Map;var t=J(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Ue.prototype.componentDidUpdate=Ue.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){hr(e,n,t)})};var _r=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,jo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Go=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vo=/[A-Z0-9]/g,qo=typeof document<"u",Zo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Yo(e,t,n){return t.__k==null&&(t.textContent=""),ae(e,t),typeof n=="function"&&n(),e?e.__c:null}function Xo(e,t,n){return Pt(e,t),typeof n=="function"&&n(),e?e.__c:null}q.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(q.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var pr=p.event;function Qo(){}function Ko(){return this.cancelBubble}function Jo(){return this.defaultPrevented}p.event=function(e){return pr&&(e=pr(e)),e.persist=Qo,e.isPropagationStopped=Ko,e.isDefaultPrevented=Jo,e.nativeEvent=e};var Gt,ei={enumerable:!1,configurable:!0,get:function(){return this.class}},mr=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var c=n[a];if(!(a==="value"&&"defaultValue"in n&&c==null||qo&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&c===!0?c="":s==="translate"&&c==="no"?c=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?a="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||Zo(n.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":Go.test(a)&&(a=s):s=a="oninput":i&&jo.test(a)?a=a.replace(Vo,"-$&").toLowerCase():c===null&&(c=void 0),s==="oninput"&&o[a=s]&&(a="oninputCapture"),o[a]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=J(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=J(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ei)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=_r,mr&&mr(e)};var gr=p.__r;p.__r=function(e){gr&&gr(e),Gt=e.__c};var yr=p.diffed;p.diffed=function(e){yr&&yr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Gt=null};var ti={ReactCurrentDispatcher:{current:{readContext:function(e){return Gt.__n[e.__c].props.value},useCallback:he,useContext:Fe,useDebugValue:et,useDeferredValue:or,useEffect:ee,useId:Kn,useImperativeHandle:Qn,useInsertionEffect:ar,useLayoutEffect:Oe,useMemo:te,useReducer:Ft,useRef:He,useState:W,useSyncExternalStore:nr,useTransition:ir}}};function ni(e){return D.bind(null,e)}function rt(e){return!!e&&e.$$typeof===_r}function ri(e){return rt(e)&&e.type===B}function oi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ii(e){return rt(e)?Dt.apply(null,arguments):e}function ai(e){return!!e.__k&&(ae(null,e),!0)}function si(e){return e&&(e.base||e.nodeType===1&&e)||null}var ci=function(e,t){return e(t)},li=function(e,t){return e(t)},ui=B,fi=rt,ne={useState:W,useId:Kn,useReducer:Ft,useEffect:ee,useLayoutEffect:Oe,useInsertionEffect:ar,useTransition:ir,useDeferredValue:or,useSyncExternalStore:nr,startTransition:rr,useRef:He,useImperativeHandle:Qn,useMemo:te,useCallback:he,useContext:Fe,useDebugValue:et,version:"18.3.1",Children:Ho,render:Yo,hydrate:Xo,unmountComponentAtNode:ai,createPortal:zo,createElement:D,createContext:Hn,createFactory:ni,cloneElement:ii,createRef:yo,Fragment:B,isValidElement:rt,isElement:fi,isFragment:ri,isMemo:oi,findDOMNode:si,Component:q,PureComponent:jt,memo:Po,forwardRef:Mo,flushSync:li,unstable_batchedUpdates:ci,StrictMode:ui,Suspense:nt,SuspenseList:Ue,lazy:Uo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ti};function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt,vr;function hi(){return vr||(vr=1,Vt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var d=a[u];if(!s(d))return!1;var l=t[d],_=n[d];if(i=r?r.call(o,l,_,d):void 0,i===!1||i===void 0&&l!==_)return!1}return!0}),Vt}var _i=hi();const pi=di(_i);var T="-ms-",Be="-moz-",O="-webkit-",Cr="comm",ot="rule",qt="decl",mi="@import",wr="@keyframes",gi="@layer",Sr=Math.abs,Zt=String.fromCharCode,Yt=Object.assign;function yi(e,t){return A(e,0)^45?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}function Er(e){return e.trim()}function re(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function it(e,t,n){return e.indexOf(t,n)}function A(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function br(e){return e.length}function We(e,t){return t.push(e),e}function vi(e,t){return e.map(t).join("")}function $r(e,t){return e.filter(function(n){return!re(n,t)})}var at=1,xe=1,kr=0,z=0,R=0,Te="";function st(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:at,column:xe,length:a,return:"",siblings:c}}function ce(e,t){return Yt(st("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ie(e){for(;e.root;)e=ce(e.root,{children:[e]});We(e,e.siblings)}function Ci(){return R}function wi(){return R=z>0?A(Te,--z):0,xe--,R===10&&(xe=1,at--),R}function Y(){return R=z<kr?A(Te,z++):0,xe++,R===10&&(xe=1,at++),R}function pe(){return A(Te,z)}function ct(){return z}function lt(e,t){return Ne(Te,e,t)}function Xt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Si(e){return at=xe=1,kr=Q(Te=e),z=0,[]}function Ei(e){return Te="",e}function Qt(e){return Er(lt(z-1,Kt(e===91?e+2:e===40?e+1:e)))}function bi(e){for(;(R=pe())&&R<33;)Y();return Xt(e)>2||Xt(R)>3?"":" "}function $i(e,t){for(;--t&&Y()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return lt(e,ct()+(t<6&&pe()==32&&Y()==32))}function Kt(e){for(;Y();)switch(R){case e:return z;case 34:case 39:e!==34&&e!==39&&Kt(R);break;case 40:e===41&&Kt(e);break;case 92:Y();break}return z}function ki(e,t){for(;Y()&&e+R!==57;)if(e+R===84&&pe()===47)break;return"/*"+lt(t,z-1)+"*"+Zt(e===47?e:Y())}function Oi(e){for(;!Xt(pe());)Y();return lt(e,z)}function Ni(e){return Ei(ut("",null,null,null,[""],e=Si(e),0,[0],e))}function ut(e,t,n,r,o,i,a,c,s){for(var u=0,d=0,l=a,_=0,h=0,y=0,E=1,$=1,g=1,m=0,k="",b=o,N=i,w=r,v=k;$;)switch(y=m,m=Y()){case 40:if(y!=108&&A(v,l-1)==58){it(v+=C(Qt(m),"&","&\f"),"&\f",Sr(u?c[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:v+=Qt(m);break;case 9:case 10:case 13:case 32:v+=bi(y);break;case 92:v+=$i(ct()-1,7);continue;case 47:switch(pe()){case 42:case 47:We(xi(ki(Y(),ct()),t,n,s),s);break;default:v+="/"}break;case 123*E:c[u++]=Q(v)*g;case 125*E:case 59:case 0:switch(m){case 0:case 125:$=0;case 59+d:g==-1&&(v=C(v,/\f/g,"")),h>0&&Q(v)-l&&We(h>32?Nr(v+";",r,n,l-1,s):Nr(C(v," ","")+";",r,n,l-2,s),s);break;case 59:v+=";";default:if(We(w=Or(v,t,n,u,d,o,c,k,b=[],N=[],l,i),i),m===123)if(d===0)ut(v,t,w,w,b,i,l,c,N);else switch(_===99&&A(v,3)===110?100:_){case 100:case 108:case 109:case 115:ut(e,w,w,r&&We(Or(e,w,w,0,0,o,c,k,o,b=[],l,N),N),o,N,l,c,r?b:N);break;default:ut(v,w,w,w,[""],N,0,c,N)}}u=d=h=0,E=g=1,k=v="",l=a;break;case 58:l=1+Q(v),h=y;default:if(E<1){if(m==123)--E;else if(m==125&&E++==0&&wi()==125)continue}switch(v+=Zt(m),m*E){case 38:g=d>0?1:(v+="\f",-1);break;case 44:c[u++]=(Q(v)-1)*g,g=1;break;case 64:pe()===45&&(v+=Qt(Y())),_=pe(),d=l=Q(k=v+=Oi(ct())),m++;break;case 45:y===45&&Q(v)==2&&(E=0)}}return i}function Or(e,t,n,r,o,i,a,c,s,u,d,l){for(var _=o-1,h=o===0?i:[""],y=br(h),E=0,$=0,g=0;E<r;++E)for(var m=0,k=Ne(e,_+1,_=Sr($=a[E])),b=e;m<y;++m)(b=Er($>0?h[m]+" "+k:C(k,/&\f/g,h[m])))&&(s[g++]=b);return st(e,t,n,o===0?ot:c,s,u,d,l)}function xi(e,t,n,r){return st(e,t,n,Cr,Zt(Ci()),Ne(e,2,-2),0,r)}function Nr(e,t,n,r,o){return st(e,t,n,qt,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function xr(e,t,n){switch(yi(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+Be+e+T+e+e;case 5936:switch(A(e,t+11)){case 114:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+T+e+e;case 6165:return O+e+T+"flex-"+e+e;case 5187:return O+e+C(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return O+e+T+"flex-item-"+C(e,/flex-|-self/g,"")+(re(e,/flex-|baseline/)?"":T+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return O+e+T+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+T+C(e,"shrink","negative")+e;case 5292:return O+e+T+C(e,"basis","preferred-size")+e;case 6060:return O+"box-"+C(e,"-grow","")+O+e+T+C(e,"grow","positive")+e;case 4554:return O+C(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!re(e,/flex-|baseline/))return T+"grid-column-align"+Ne(e,t)+e;break;case 2592:case 3360:return T+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,re(r.props,/grid-\w+-end/)})?~it(e+(n=n[t].value),"span",0)?e:T+C(e,"-start","")+e+T+"grid-row-span:"+(~it(n,"span",0)?re(n,/\d+/):+re(n,/\d+/)-+re(e,/\d+/))+";":T+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return re(r.props,/grid-\w+-start/)})?e:T+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(A(e,t+1)){case 109:if(A(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+Be+(A(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~it(e,"stretch",0)?xr(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,c,s,u){return T+o+":"+i+u+(a?T+o+"-span:"+(c?s:+s-+i)+u:"")+e});case 4949:if(A(e,t+6)===121)return C(e,":",":"+O)+e;break;case 6444:switch(A(e,A(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(A(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+T+"$2box$3")+e;case 100:return C(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ti(e,t,n,r){switch(e.type){case gi:if(e.children.length)break;case mi:case qt:return e.return=e.return||e.value;case Cr:return"";case wr:return e.return=e.value+"{"+ft(e.children,r)+"}";case ot:if(!Q(e.value=e.props.join(",")))return""}return Q(n=ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ii(e){var t=br(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function Ri(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ai(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qt:e.return=xr(e.value,e.length,n);return;case wr:return ft([ce(e,{value:C(e.value,"@","@"+O)})],r);case ot:if(e.length)return vi(n=e.props,function(o){switch(re(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ie(ce(e,{props:[C(o,/:(read-\w+)/,":"+Be+"$1")]})),Ie(ce(e,{props:[o]})),Yt(e,{props:$r(n,r)});break;case"::placeholder":Ie(ce(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),Ie(ce(e,{props:[C(o,/:(plac\w+)/,":"+Be+"$1")]})),Ie(ce(e,{props:[C(o,/:(plac\w+)/,T+"input-$1")]})),Ie(ce(e,{props:[o]})),Yt(e,{props:$r(n,r)});break}return""})}}var Li={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},S={},me=typeof process<"u"&&S!==void 0&&(S.REACT_APP_SC_ATTR||S.SC_ATTR)||"data-styled",Tr="active",Ir="data-styled-version",dt="6.1.18",Jt=`/*!sc*/
|
|
2
|
-
`,
|
|
1
|
+
(function(oe){typeof define=="function"&&define.amd?define(oe):oe()})(function(){"use strict";var oe,v,yr,le,vr,Cr,wr,Sr,$t,kt,Ot,br,Ae={},Er=[],ho=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function Y(e,t){for(var r in t)e[r]=t[r];return e}function Nt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?oe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return Le(e,a,n,o,null)}function Le(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++yr,__i:-1,__u:0};return o==null&&v.vnode!=null&&v.vnode(i),i}function _o(){return{current:null}}function F(e){return e.children}function G(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Se(e):null}function $r(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return $r(e)}}function xt(e){(!e.__d&&(e.__d=!0)&&le.push(e)&&!Qe.__r++||vr!=v.debounceRendering)&&((vr=v.debounceRendering)||Cr)(Qe)}function Qe(){for(var e,t,r,n,o,i,a,c=1;le.length;)le.length>c&&le.sort(wr),e=le.shift(),c=le.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=Y({},n)).__v=n.__v+1,v.vnode&&v.vnode(r),Tt(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o??Se(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Tr(i,r,a),r.__e!=o&&$r(r)));Qe.__r=0}function kr(e,t,r,n,o,i,a,c,s,u,d){var l,h,_,g,b,$,m=n&&n.__k||Er,p=t.length;for(s=po(r,t,m,s,p),l=0;l<p;l++)(_=r.__k[l])!=null&&(h=_.__i==-1?Ae:m[_.__i]||Ae,_.__i=l,$=Tt(e,_,h,o,i,a,c,s,u,d),g=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&It(h.ref,null,_),d.push(_.ref,_.__c||g,_)),b==null&&g!=null&&(b=g),4&_.__u||h.__k===_.__k?s=Or(_,s,e):typeof _.type=="function"&&$!==void 0?s=$:g&&(s=g.nextSibling),_.__u&=-7);return r.__e=b,s}function po(e,t,r,n,o){var i,a,c,s,u,d=r.length,l=d,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(s=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Le(null,a,null,null,null):De(a)?Le(F,{children:a},null,null,null):a.constructor==null&&a.__b>0?Le(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(u=a.__i=mo(a,r,s,l))!=-1&&(l--,(c=r[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>d?h--:o<d&&h++),typeof a.type!="function"&&(a.__u|=4)):u!=s&&(u==s-1?h--:u==s+1?h++:(u>s?h--:h++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<d;i++)(c=r[i])!=null&&(2&c.__u)==0&&(c.__e==n&&(n=Se(c)),Rr(c,c));return n}function Or(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Or(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Se(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(r){Q(r,t)}):t.push(e)),t}function mo(e,t,r,n){var o,i,a=e.key,c=e.type,s=t[r];if(s===null&&e.key==null||s&&a==s.key&&c==s.type&&(2&s.__u)==0)return r;if(n>(s!=null&&(2&s.__u)==0?1:0))for(o=r-1,i=r+1;o>=0||i<t.length;){if(o>=0){if((s=t[o])&&(2&s.__u)==0&&a==s.key&&c==s.type)return o;o--}if(i<t.length){if((s=t[i])&&(2&s.__u)==0&&a==s.key&&c==s.type)return i;i++}}return-1}function Nr(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ho.test(t)?r:r+"px"}function Ke(e,t,r,n,o){var i;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Nr(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Nr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Sr,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=$t,e.addEventListener(t,i?Ot:kt,i)):e.removeEventListener(t,i?Ot:kt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function xr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=$t++;else if(t.t<r.u)return;return r(v.event?v.event(t):t)}}}function Tt(e,t,r,n,o,i,a,c,s,u){var d,l,h,_,g,b,$,m,p,k,E,N,w,y,H,W,qe,z=t.type;if(t.constructor!=null)return null;128&r.__u&&(s=!!(32&r.__u),i=[c=t.__e=r.__e]),(d=v.__b)&&d(t);e:if(typeof z=="function")try{if(m=t.props,p="prototype"in z&&z.prototype.render,k=(d=z.contextType)&&n[d.__c],E=d?k?k.props.value:d.__:n,r.__c?$=(l=t.__c=r.__c).__=l.__E:(p?t.__c=l=new z(m,E):(t.__c=l=new G(m,E),l.constructor=z,l.render=yo),k&&k.sub(l),l.props=m,l.state||(l.state={}),l.context=E,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),p&&l.__s==null&&(l.__s=l.state),p&&z.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Y({},l.__s)),Y(l.__s,z.getDerivedStateFromProps(m,l.__s))),_=l.props,g=l.state,l.__v=t,h)p&&z.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),p&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(p&&z.getDerivedStateFromProps==null&&m!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,E),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,E)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Ce){Ce&&(Ce.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,E),p&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,g,b)})}if(l.context=E,l.props=m,l.__P=e,l.__e=!1,w=v.__r,y=0,p){for(l.state=l.__s,l.__d=!1,w&&w(t),d=l.render(l.props,l.state,l.context),H=0;H<l._sb.length;H++)l.__h.push(l._sb[H]);l._sb=[]}else do l.__d=!1,w&&w(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++y<25);l.state=l.__s,l.getChildContext!=null&&(n=Y(Y({},n),l.getChildContext())),p&&!h&&l.getSnapshotBeforeUpdate!=null&&(b=l.getSnapshotBeforeUpdate(_,g)),W=d,d!=null&&d.type===F&&d.key==null&&(W=Ir(d.props.children)),c=kr(e,De(W)?W:[W],t,r,n,o,i,a,c,s,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),$&&(l.__E=l.__=null)}catch(Ce){if(t.__v=null,s||i!=null)if(Ce.then){for(t.__u|=s?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(qe=i.length;qe--;)Nt(i[qe]);else t.__e=r.__e,t.__k=r.__k;v.__e(Ce,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=go(r.__e,t,r,n,o,i,a,s,u);return(d=v.diffed)&&d(t),128&t.__u?void 0:c}function Tr(e,t,r){for(var n=0;n<r.length;n++)It(r[n],r[++n],r[++n]);v.__c&&v.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){v.__e(i,o.__v)}})}function Ir(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(Ir):Y({},e)}function go(e,t,r,n,o,i,a,c,s){var u,d,l,h,_,g,b,$=r.props,m=t.props,p=t.type;if(p=="svg"?o="http://www.w3.org/2000/svg":p=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((_=i[u])&&"setAttribute"in _==!!p&&(p?_.localName==p:_.nodeType==3)){e=_,i[u]=null;break}}if(e==null){if(p==null)return document.createTextNode(m);e=document.createElementNS(o,p,m.is&&m),c&&(v.__m&&v.__m(t,i),c=!1),i=null}if(p==null)$===m||c&&e.data==m||(e.data=m);else{if(i=i&&oe.call(e.childNodes),$=r.props||Ae,!c&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(_=e.attributes[u]).name]=_.value;for(u in $)if(_=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Ke(e,u,null,_,o)}}for(u in m)_=m[u],u=="children"?h=_:u=="dangerouslySetInnerHTML"?d=_:u=="value"?g=_:u=="checked"?b=_:c&&typeof _!="function"||$[u]===_||Ke(e,u,_,$[u],o);if(d)c||l&&(d.__html==l.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),kr(t.type=="template"?e.content:e,De(h)?h:[h],t,r,n,p=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&Se(r,0),c,s),i!=null)for(u=i.length;u--;)Nt(i[u]);c||(u="value",p=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[u]||p=="progress"&&!g||p=="option"&&g!=$[u])&&Ke(e,u,g,$[u],o),u="checked",b!=null&&b!=e[u]&&Ke(e,u,b,$[u],o))}return e}function It(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){v.__e(o,r)}}function Rr(e,t,r){var n,o;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||It(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){v.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Rr(n[o],t,r||typeof e.type!="function");r||Nt(e.__e),e.__c=e.__=e.__e=void 0}function yo(e,t,r){return this.constructor(e,r)}function ie(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),v.__&&v.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],Tt(t,e=(!n&&r||t).__k=L(F,null,[e]),o||Ae,Ae,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?oe.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),Tr(i,e,a)}function Rt(e,t){ie(e,t,Rt)}function Pt(e,t,r){var n,o,i,a,c=Y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?oe.call(arguments,2):r),Le(e.type,c,n||e.key,o||e.ref,null)}function Pr(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(a){a.__e=!0,xt(a)})},this.sub=function(i){n.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),a&&a.call(i)}}),r.children}return t.__c="__cC"+br++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}oe=Er.slice,v={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},yr=0,G.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Y({},this.state),typeof e=="function"&&(e=e(Y({},r),this.props)),e&&Y(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),xt(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xt(this))},G.prototype.render=F,le=[],Cr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wr=function(e,t){return e.__v.__b-t.__v.__b},Qe.__r=0,Sr=/(PointerCapture)$|Capture$/i,$t=0,kt=xr(!1),Ot=xr(!0),br=0;function At(){return(At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var vo=["context","children"];function Co(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,a,c={},s=Object.keys(n);for(a=0;a<s.length;a++)o.indexOf(i=s[a])>=0||(c[i]=n[i]);return c}(e,vo);return Pt(t,r)}function wo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(Co,At({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},a=0,c=r.attributes,s=r.childNodes;for(a=c.length;a--;)c[a].name!=="slot"&&(i[c[a].name]=c[a].value,i[Ar(c[a].name)]=c[a].value);for(a=s.length;a--;){var u=t(s[a],null),d=s[a].slot;d?i[d]=L(Dr,{name:d},u):o[a]=u}var l=n?L(Dr,null,o):o;return L(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Rt:ie)(this._vdom,this._root)}function Ar(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function So(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[Ar(e)]=r,this._vdom=Pt(this._vdom,n),ie(this._vdom,this._root)}}function bo(){ie(this._vdom=null,this._root)}function Dr(e,t){var r=this;return L("slot",At({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Eo(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=wo,o.prototype.attributeChangedCallback=So,o.prototype.disconnectedCallback=bo,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var c=typeof a;a!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var $o=0;function f(e,t,r,n,o,i){t||(t={});var a,c,s=t;if("ref"in s)for(c in s={},t)c=="ref"?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--$o,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)s[c]===void 0&&(s[c]=a[c]);return v.vnode&&v.vnode(u),u}const Lr={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var ue=(e=>(e.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",e.CONTROL="face-auto-capture:control",e.DETECTION_CHANGED="face-auto-capture:detection-changed",e.FACE_DETECTION="face-auto-capture:face-detection",e.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",e.STATE_CHANGED="face-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",e))(ue||{});const V={LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete"},Mr={EYE_NOT_PRESENT:"eye_not_present"},A={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_CENTERING:"face_centering",FACE_NOT_PRESENT:"face_not_present",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",LEFT_EYE_NOT_PRESENT:`left_${Mr.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Mr.EYE_NOT_PRESENT}`,MOUTH_NOT_PRESENT:"mouth_not_present",MOUTH_SCORE_TOO_HIGH:"mouth_score_too_high",MOUTH_SCORE_TOO_LOW:"mouth_score_too_low"};var ae,x,Dt,Hr,be=0,Fr=[],I=v,Ur=I.__b,Br=I.__r,Wr=I.diffed,zr=I.__c,jr=I.unmount,Gr=I.__;function Ee(e,t){I.__h&&I.__h(x,e,be||t),be=0;var r=x.__H||(x.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function U(e){return be=1,Lt(Zr,e)}function Lt(e,t,r){var n=Ee(ae++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Zr(void 0,t),function(c){var s=n.__N?n.__N[0]:n.__[0],u=n.t(s,c);s!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=x,!x.__f)){var o=function(c,s,u){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,c,s,u);var l=n.__c.props!==c;return d.forEach(function(h){if(h.__N){var _=h.__[0];h.__=h.__N,h.__N=void 0,_!==h.__[0]&&(l=!0)}}),i&&i.call(this,c,s,u)||l};x.__f=!0;var i=x.shouldComponentUpdate,a=x.componentWillUpdate;x.componentWillUpdate=function(c,s,u){if(this.__e){var d=i;i=void 0,o(c,s,u),i=d}a&&a.call(this,c,s,u)},x.shouldComponentUpdate=o}return n.__N||n.__}function K(e,t){var r=Ee(ae++,3);!I.__s&&Ht(r.__H,t)&&(r.__=e,r.u=t,x.__H.__h.push(r))}function $e(e,t){var r=Ee(ae++,4);!I.__s&&Ht(r.__H,t)&&(r.__=e,r.u=t,x.__h.push(r))}function Me(e){return be=5,J(function(){return{current:e}},[])}function Vr(e,t,r){be=6,$e(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function J(e,t){var r=Ee(ae++,7);return Ht(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function fe(e,t){return be=8,J(function(){return e},t)}function He(e){var t=x.context[e.__c],r=Ee(ae++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(x)),t.props.value):e.__}function Je(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function qr(){var e=Ee(ae++,11);if(!e.__){for(var t=x.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ko(){for(var e;e=Fr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(et),e.__H.__h.forEach(Mt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){x=null,Ur&&Ur(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Gr&&Gr(e,t)},I.__r=function(e){Br&&Br(e),ae=0;var t=(x=e.__c).__H;t&&(Dt===x?(t.__h=[],x.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(et),t.__h.forEach(Mt),t.__h=[],ae=0)),Dt=x},I.diffed=function(e){Wr&&Wr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fr.push(t)!==1&&Hr===I.requestAnimationFrame||((Hr=I.requestAnimationFrame)||Oo)(ko)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Dt=x=null},I.__c=function(e,t){t.some(function(r){try{r.__h.forEach(et),r.__h=r.__h.filter(function(n){return!n.__||Mt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(n,r.__v)}}),zr&&zr(e,t)},I.unmount=function(e){jr&&jr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{et(n)}catch(o){t=o}}),r.__H=void 0,t&&I.__e(t,r.__v))};var Yr=typeof requestAnimationFrame=="function";function Oo(e){var t,r=function(){clearTimeout(n),Yr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Yr&&(t=requestAnimationFrame(r))}function et(e){var t=x,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),x=t}function Mt(e){var t=x;e.__c=e.__(),x=t}function Ht(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Zr(e,t){return typeof t=="function"?t(e):t}var D=function(){return D=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},D.apply(this,arguments)};function de(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function No(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var xo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,To=No(function(e){return xo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Xr(e,t){for(var r in t)e[r]=t[r];return e}function Ft(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Qr(e,t){var r=t(),n=U({t:{__:r,u:t}}),o=n[0].t,i=n[1];return $e(function(){o.__=r,o.u=t,Ut(o)&&i({t:o})},[e,r,t]),K(function(){return Ut(o)&&i({t:o}),e(function(){Ut(o)&&i({t:o})})},[e]),r}function Ut(e){var t,r,n=e.u,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function Kr(e){e()}function Jr(e){return e}function en(){return[!1,Kr]}var tn=$e;function Bt(e,t){this.props=e,this.context=t}function Io(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ft(this.props,o)}function n(o){return this.shouldComponentUpdate=r,L(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Bt.prototype=new G).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(e,t){return Ft(this.props,e)||Ft(this.state,t)};var rn=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),rn&&rn(e)};var Ro=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Po(e){function t(r){var n=Xr({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Ro,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nn=function(e,t){return e==null?null:Q(Q(e).map(t))},Ao={map:nn,forEach:nn,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},Do=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Do(e,t,r,n)};var on=v.unmount;function an(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Xr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return an(n,t,r)})),e}function sn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return sn(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function tt(){this.__u=0,this.o=null,this.__b=null}function cn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lo(e){var t,r,n;function o(i){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return L(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Fe(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),on&&on(e)},(tt.prototype=new G).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=cn(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var c=function(){if(!--n.__u){if(n.state.__a){var s=n.state.__a;n.__v.__k[0]=sn(s,s.__c.__P,s.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},tt.prototype.componentWillUnmount=function(){this.o=[]},tt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=an(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&L(F,null,e.fallback);return o&&(o.__u&=-33),[L(F,null,t.__a?null:e.children),o]};var ln=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Mo(e){return this.getChildContext=function(){return e.context},e.children}function Ho(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){ie(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}ie(L(Mo,{context:t.context},e.__v),t.v)}function Fo(e,t){var r=L(Ho,{__v:e,h:t});return r.containerInfo=t,r}(Fe.prototype=new G).__a=function(e){var t=this,r=cn(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),ln(t,e,n)):o()};r?r(i):i()}},Fe.prototype.render=function(e){this.i=null,this.l=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){ln(e,r,t)})};var un=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Uo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Bo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Wo=/[A-Z0-9]/g,zo=typeof document<"u",jo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Go(e,t,r){return t.__k==null&&(t.textContent=""),ie(e,t),typeof r=="function"&&r(),e?e.__c:null}function Vo(e,t,r){return Rt(e,t),typeof r=="function"&&r(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var fn=v.event;function qo(){}function Yo(){return this.cancelBubble}function Zo(){return this.defaultPrevented}v.event=function(e){return fn&&(e=fn(e)),e.persist=qo,e.isPropagationStopped=Yo,e.isDefaultPrevented=Zo,e.nativeEvent=e};var Wt,Xo={enumerable:!1,configurable:!0,get:function(){return this.class}},dn=v.vnode;v.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var c=r[a];if(!(a==="value"&&"defaultValue"in r&&c==null||zo&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&c===!0?c="":s==="translate"&&c==="no"?c=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?a="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||jo(r.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":Bo.test(a)&&(a=s):s=a="oninput":i&&Uo.test(a)?a=a.replace(Wo,"-$&").toLowerCase():c===null&&(c=void 0),s==="oninput"&&o[a=s]&&(a="oninputCapture"),o[a]=c}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Q(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Xo)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=un,dn&&dn(e)};var hn=v.__r;v.__r=function(e){hn&&hn(e),Wt=e.__c};var _n=v.diffed;v.diffed=function(e){_n&&_n(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Wt=null};var Qo={ReactCurrentDispatcher:{current:{readContext:function(e){return Wt.__n[e.__c].props.value},useCallback:fe,useContext:He,useDebugValue:Je,useDeferredValue:Jr,useEffect:K,useId:qr,useImperativeHandle:Vr,useInsertionEffect:tn,useLayoutEffect:$e,useMemo:J,useReducer:Lt,useRef:Me,useState:U,useSyncExternalStore:Qr,useTransition:en}}};function Ko(e){return L.bind(null,e)}function rt(e){return!!e&&e.$$typeof===un}function Jo(e){return rt(e)&&e.type===F}function ei(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ti(e){return rt(e)?Pt.apply(null,arguments):e}function ri(e){return!!e.__k&&(ie(null,e),!0)}function ni(e){return e&&(e.base||e.nodeType===1&&e)||null}var oi=function(e,t){return e(t)},ii=function(e,t){return e(t)},ai=F,si=rt,ee={useState:U,useId:qr,useReducer:Lt,useEffect:K,useLayoutEffect:$e,useInsertionEffect:tn,useTransition:en,useDeferredValue:Jr,useSyncExternalStore:Qr,startTransition:Kr,useRef:Me,useImperativeHandle:Vr,useMemo:J,useCallback:fe,useContext:He,useDebugValue:Je,version:"18.3.1",Children:Ao,render:Go,hydrate:Vo,unmountComponentAtNode:ri,createPortal:Fo,createElement:L,createContext:Pr,createFactory:Ko,cloneElement:ti,createRef:_o,Fragment:F,isValidElement:rt,isElement:si,isFragment:Jo,isMemo:ei,findDOMNode:ni,Component:G,PureComponent:Bt,memo:Io,forwardRef:Po,flushSync:ii,unstable_batchedUpdates:oi,StrictMode:ai,Suspense:tt,SuspenseList:Fe,lazy:Lo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qo};function ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt,pn;function li(){return pn||(pn=1,zt=function(t,r,n,o){var i=n?n.call(o,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),c=Object.keys(r);if(a.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),u=0;u<a.length;u++){var d=a[u];if(!s(d))return!1;var l=t[d],h=r[d];if(i=n?n.call(o,l,h,d):void 0,i===!1||i===void 0&&l!==h)return!1}return!0}),zt}var ui=li();const fi=ci(ui);var T="-ms-",Ue="-moz-",O="-webkit-",mn="comm",nt="rule",jt="decl",di="@import",gn="@keyframes",hi="@layer",yn=Math.abs,Gt=String.fromCharCode,Vt=Object.assign;function _i(e,t){return P(e,0)^45?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}function vn(e){return e.trim()}function te(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,r){return e.replace(t,r)}function ot(e,t,r){return e.indexOf(t,r)}function P(e,t){return e.charCodeAt(t)|0}function ke(e,t,r){return e.slice(t,r)}function Z(e){return e.length}function Cn(e){return e.length}function Be(e,t){return t.push(e),e}function pi(e,t){return e.map(t).join("")}function wn(e,t){return e.filter(function(r){return!te(r,t)})}var it=1,Oe=1,Sn=0,B=0,R=0,Ne="";function at(e,t,r,n,o,i,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:it,column:Oe,length:a,return:"",siblings:c}}function se(e,t){return Vt(at("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xe(e){for(;e.root;)e=se(e.root,{children:[e]});Be(e,e.siblings)}function mi(){return R}function gi(){return R=B>0?P(Ne,--B):0,Oe--,R===10&&(Oe=1,it--),R}function q(){return R=B<Sn?P(Ne,B++):0,Oe++,R===10&&(Oe=1,it++),R}function he(){return P(Ne,B)}function st(){return B}function ct(e,t){return ke(Ne,e,t)}function qt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yi(e){return it=Oe=1,Sn=Z(Ne=e),B=0,[]}function vi(e){return Ne="",e}function Yt(e){return vn(ct(B-1,Zt(e===91?e+2:e===40?e+1:e)))}function Ci(e){for(;(R=he())&&R<33;)q();return qt(e)>2||qt(R)>3?"":" "}function wi(e,t){for(;--t&&q()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return ct(e,st()+(t<6&&he()==32&&q()==32))}function Zt(e){for(;q();)switch(R){case e:return B;case 34:case 39:e!==34&&e!==39&&Zt(R);break;case 40:e===41&&Zt(e);break;case 92:q();break}return B}function Si(e,t){for(;q()&&e+R!==57;)if(e+R===84&&he()===47)break;return"/*"+ct(t,B-1)+"*"+Gt(e===47?e:q())}function bi(e){for(;!qt(he());)q();return ct(e,B)}function Ei(e){return vi(lt("",null,null,null,[""],e=yi(e),0,[0],e))}function lt(e,t,r,n,o,i,a,c,s){for(var u=0,d=0,l=a,h=0,_=0,g=0,b=1,$=1,m=1,p=0,k="",E=o,N=i,w=n,y=k;$;)switch(g=p,p=q()){case 40:if(g!=108&&P(y,l-1)==58){ot(y+=C(Yt(p),"&","&\f"),"&\f",yn(u?c[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:y+=Yt(p);break;case 9:case 10:case 13:case 32:y+=Ci(g);break;case 92:y+=wi(st()-1,7);continue;case 47:switch(he()){case 42:case 47:Be($i(Si(q(),st()),t,r,s),s);break;default:y+="/"}break;case 123*b:c[u++]=Z(y)*m;case 125*b:case 59:case 0:switch(p){case 0:case 125:$=0;case 59+d:m==-1&&(y=C(y,/\f/g,"")),_>0&&Z(y)-l&&Be(_>32?En(y+";",n,r,l-1,s):En(C(y," ","")+";",n,r,l-2,s),s);break;case 59:y+=";";default:if(Be(w=bn(y,t,r,u,d,o,c,k,E=[],N=[],l,i),i),p===123)if(d===0)lt(y,t,w,w,E,i,l,c,N);else switch(h===99&&P(y,3)===110?100:h){case 100:case 108:case 109:case 115:lt(e,w,w,n&&Be(bn(e,w,w,0,0,o,c,k,o,E=[],l,N),N),o,N,l,c,n?E:N);break;default:lt(y,w,w,w,[""],N,0,c,N)}}u=d=_=0,b=m=1,k=y="",l=a;break;case 58:l=1+Z(y),_=g;default:if(b<1){if(p==123)--b;else if(p==125&&b++==0&&gi()==125)continue}switch(y+=Gt(p),p*b){case 38:m=d>0?1:(y+="\f",-1);break;case 44:c[u++]=(Z(y)-1)*m,m=1;break;case 64:he()===45&&(y+=Yt(q())),h=he(),d=l=Z(k=y+=bi(st())),p++;break;case 45:g===45&&Z(y)==2&&(b=0)}}return i}function bn(e,t,r,n,o,i,a,c,s,u,d,l){for(var h=o-1,_=o===0?i:[""],g=Cn(_),b=0,$=0,m=0;b<n;++b)for(var p=0,k=ke(e,h+1,h=yn($=a[b])),E=e;p<g;++p)(E=vn($>0?_[p]+" "+k:C(k,/&\f/g,_[p])))&&(s[m++]=E);return at(e,t,r,o===0?nt:c,s,u,d,l)}function $i(e,t,r,n){return at(e,t,r,mn,Gt(mi()),ke(e,2,-2),0,n)}function En(e,t,r,n,o){return at(e,t,r,jt,ke(e,0,n),ke(e,n+1,-1),n,o)}function $n(e,t,r){switch(_i(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+Ue+e+T+e+e;case 5936:switch(P(e,t+11)){case 114:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+T+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+T+e+e;case 6165:return O+e+T+"flex-"+e+e;case 5187:return O+e+C(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return O+e+T+"flex-item-"+C(e,/flex-|-self/g,"")+(te(e,/flex-|baseline/)?"":T+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return O+e+T+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+T+C(e,"shrink","negative")+e;case 5292:return O+e+T+C(e,"basis","preferred-size")+e;case 6060:return O+"box-"+C(e,"-grow","")+O+e+T+C(e,"grow","positive")+e;case 4554:return O+C(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!te(e,/flex-|baseline/))return T+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return T+C(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,te(n.props,/grid-\w+-end/)})?~ot(e+(r=r[t].value),"span",0)?e:T+C(e,"-start","")+e+T+"grid-row-span:"+(~ot(r,"span",0)?te(r,/\d+/):+te(r,/\d+/)-+te(e,/\d+/))+";":T+C(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return te(n.props,/grid-\w+-start/)})?e:T+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Z(e)-1-t>6)switch(P(e,t+1)){case 109:if(P(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+Ue+(P(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ot(e,"stretch",0)?$n(C(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,s,u){return T+o+":"+i+u+(a?T+o+"-span:"+(c?s:+s-+i)+u:"")+e});case 4949:if(P(e,t+6)===121)return C(e,":",":"+O)+e;break;case 6444:switch(P(e,P(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(P(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+T+"$2box$3")+e;case 100:return C(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ut(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ki(e,t,r,n){switch(e.type){case hi:if(e.children.length)break;case di:case jt:return e.return=e.return||e.value;case mn:return"";case gn:return e.return=e.value+"{"+ut(e.children,n)+"}";case nt:if(!Z(e.value=e.props.join(",")))return""}return Z(r=ut(e.children,n))?e.return=e.value+"{"+r+"}":""}function Oi(e){var t=Cn(e);return function(r,n,o,i){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,i)||"";return a}}function Ni(e){return function(t){t.root||(t=t.return)&&e(t)}}function xi(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case jt:e.return=$n(e.value,e.length,r);return;case gn:return ut([se(e,{value:C(e.value,"@","@"+O)})],n);case nt:if(e.length)return pi(r=e.props,function(o){switch(te(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xe(se(e,{props:[C(o,/:(read-\w+)/,":"+Ue+"$1")]})),xe(se(e,{props:[o]})),Vt(e,{props:wn(r,n)});break;case"::placeholder":xe(se(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),xe(se(e,{props:[C(o,/:(plac\w+)/,":"+Ue+"$1")]})),xe(se(e,{props:[C(o,/:(plac\w+)/,T+"input-$1")]})),xe(se(e,{props:[o]})),Vt(e,{props:wn(r,n)});break}return""})}}var Ti={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},S={},_e=typeof process<"u"&&S!==void 0&&(S.REACT_APP_SC_ATTR||S.SC_ATTR)||"data-styled",kn="active",On="data-styled-version",ft="6.1.18",Xt=`/*!sc*/
|
|
2
|
+
`,dt=typeof window<"u"&&typeof document<"u",Ii=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&S!==void 0&&S.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&S.REACT_APP_SC_DISABLE_SPEEDY!==""?S.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&S.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&S!==void 0&&S.SC_DISABLE_SPEEDY!==void 0&&S.SC_DISABLE_SPEEDY!==""?S.SC_DISABLE_SPEEDY!=="false"&&S.SC_DISABLE_SPEEDY:S.NODE_ENV!=="production"),Nn=/invalid hook call/i,ht=new Set,Ri=function(e,t){if(S.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],s=1;s<arguments.length;s++)c[s-1]=arguments[s];
|
|
6
|
+
`,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],s=1;s<arguments.length;s++)c[s-1]=arguments[s];Nn.test(a)?(i=!1,ht.delete(n)):o.apply(void 0,de([a],c,!1))},Me(),i&&!ht.has(n)&&(console.warn(n),ht.add(n))}catch(a){Nn.test(a.message)&&ht.delete(n)}finally{console.error=o}}},_t=Object.freeze([]),Te=Object.freeze({});function Pi(e,t,r){return r===void 0&&(r=Te),e.theme!==r.theme&&e.theme||t||r.theme}var Qt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ai=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Di=/(^-|-$)/g;function xn(e){return e.replace(Ai,"-").replace(Di,"")}var Li=/(a)(d)/gi,pt=52,Tn=function(e){return String.fromCharCode(e+(e>25?39:97))};function Kt(e){var t,r="";for(t=Math.abs(e);t>pt;t=t/pt|0)r=Tn(t%pt)+r;return(Tn(t%pt)+r).replace(Li,"$1-$2")}var Jt,In=5381,pe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Rn=function(e){return pe(In,e)};function Pn(e){return Kt(Rn(e)>>>0)}function An(e){return S.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function er(e){return typeof e=="string"&&(S.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Dn=typeof Symbol=="function"&&Symbol.for,Ln=Dn?Symbol.for("react.memo"):60115,Mi=Dn?Symbol.for("react.forward_ref"):60112,Hi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ui=((Jt={})[Mi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jt[Ln]=Mn,Jt);function Hn(e){return("type"in(t=e)&&t.type.$$typeof)===Ln?Mn:"$$typeof"in e?Ui[e.$$typeof]:Hi;var t}var Bi=Object.defineProperty,Wi=Object.getOwnPropertyNames,Fn=Object.getOwnPropertySymbols,zi=Object.getOwnPropertyDescriptor,ji=Object.getPrototypeOf,Un=Object.prototype;function Bn(e,t,r){if(typeof t!="string"){if(Un){var n=ji(t);n&&n!==Un&&Bn(e,n,r)}var o=Wi(t);Fn&&(o=o.concat(Fn(t)));for(var i=Hn(e),a=Hn(t),c=0;c<o.length;++c){var s=o[c];if(!(s in Fi||r&&r[s]||a&&s in a||i&&s in i)){var u=zi(t,s);try{Bi(e,s,u)}catch{}}}}return e}function me(e){return typeof e=="function"}function tr(e){return typeof e=="object"&&"styledComponentId"in e}function ge(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function rr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ie(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nr(e,t,r){if(r===void 0&&(r=!1),!r&&!Ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=nr(e[n],t[n]);else if(Ie(t))for(var n in t)e[n]=nr(e[n],t[n]);return e}function or(e,t){Object.defineProperty(e,"toString",{value:t})}var Gi=S.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
7
|
|
|
8
8
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
9
|
|
|
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
44
44
|
|
|
45
45
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
46
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Xi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return S.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Xi.apply(void 0,_e([Yi[e]],t,!1)).trim())}var Qi=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw K(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),s=(a=0,n.length);a<s;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,a=o;a<i;a++)n+="".concat(this.tag.getRule(a)).concat(Jt);return n},e}(),Ki=1<<30,gt=new Map,yt=new Map,vt=1,Ct=function(e){if(gt.has(e))return gt.get(e);for(;yt.has(vt);)vt++;var t=vt++;if(S.NODE_ENV!=="production"&&((0|t)<0||t>Ki))throw K(16,"".concat(t));return gt.set(e,t),yt.set(t,e),t},Ji=function(e,t){vt=t+1,gt.set(e,t),yt.set(t,e)},ea="style[".concat(me,"][").concat(Ir,'="').concat(dt,'"]'),ta=new RegExp("^".concat(me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),na=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},ra=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Jt),o=[],i=0,a=r.length;i<a;i++){var c=r[i].trim();if(c){var s=c.match(ta);if(s){var u=0|parseInt(s[1],10),d=s[2];u!==0&&(Ji(d,u),na(e,d,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Vr=function(e){for(var t=document.querySelectorAll(ea),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(me)!==Tr&&(ra(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function oa(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var qr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var s=Array.from(c.querySelectorAll("style[".concat(me,"]")));return s[s.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(me,Tr),r.setAttribute(Ir,dt);var a=oa();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ia=function(){function e(t){this.element=qr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var a=r[o];if(a.ownerNode===n)return a}throw K(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),aa=function(){function e(t){this.element=qr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),sa=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Zr=ht,ca={isServer:!ht,useCSSOMInjection:!Pi},Yr=function(){function e(t,n,r){t===void 0&&(t=Re),n===void 0&&(n={});var o=this;this.options=P(P({},ca),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ht&&Zr&&(Zr=!1,Vr(this)),cn(this,function(){return function(i){for(var a=i.getTag(),c=a.length,s="",u=function(l){var _=function(g){return yt.get(g)}(l);if(_===void 0)return"continue";var h=i.names.get(_),y=a.getGroup(l);if(h===void 0||!h.size||y.length===0)return"continue";var E="".concat(me,".g").concat(l,'[id="').concat(_,'"]'),$="";h!==void 0&&h.forEach(function(g){g.length>0&&($+="".concat(g,","))}),s+="".concat(y).concat(E,'{content:"').concat($,'"}').concat(Jt)},d=0;d<c;d++)u(d);return s}(o)})}return e.registerId=function(t){return Ct(t)},e.prototype.rehydrate=function(){!this.server&&ht&&Vr(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(P(P({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new sa(o):r?new ia(o):new aa(o)}(this.options),new Qi(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Ct(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ct(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ct(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),la=/&/g,ua=/^\s*\/\/.*$/gm;function Xr(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Xr(n.children,t)),n})}function Qr(e){var t,n,r,o=e===void 0?Re:e,i=o.options,a=i===void 0?Re:i,c=o.plugins,s=c===void 0?pt:c,u=function(_,h,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):_},d=s.slice();d.push(function(_){_.type===ot&&_.value.includes("&")&&(_.props[0]=_.props[0].replace(la,n).replace(r,u))}),a.prefix&&d.push(Ai),d.push(Ti);var l=function(_,h,y,E){h===void 0&&(h=""),y===void 0&&(y=""),E===void 0&&(E="&"),t=E,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var $=_.replace(ua,""),g=Ni(y||h?"".concat(y," ").concat(h," { ").concat($," }"):$);a.namespace&&(g=Xr(g,a.namespace));var m=[];return ft(g,Ii(d.concat(Ri(function(k){return m.push(k)})))),m};return l.hash=s.length?s.reduce(function(_,h){return h.name||K(15),ge(_,h.name)},Pr).toString():"",l}var fa=new Yr,ln=Qr(),un=ne.createContext({shouldForwardProp:void 0,styleSheet:fa,stylis:ln});un.Consumer;var da=ne.createContext(void 0);function fn(){return Fe(un)}function ha(e){var t=W(e.stylisPlugins),n=t[0],r=t[1],o=fn().styleSheet,i=te(function(){var s=o;return e.sheet?s=e.sheet:e.target&&(s=s.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(s=s.reconstructWithOptions({useCSSOMInjection:!1})),s},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=te(function(){return Qr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);ee(function(){pi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=te(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return ne.createElement(un.Provider,{value:c},ne.createElement(da.Provider,{value:a},e.children))}var dn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=ln);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,cn(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ln),this.name+t.hash},e}(),_a=function(e){return e>="A"&&e<="Z"};function Kr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;_a(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Jr=function(e){return e==null||e===!1||e===""},eo=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Jr(i)&&(Array.isArray(i)&&i.isCss||ye(i)?r.push("".concat(Kr(o),":"),i,";"):Ae(i)?r.push.apply(r,_e(_e(["".concat(o," {")],eo(i),!1),["}"],!1)):r.push("".concat(Kr(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Li||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ce(e,t,n,r){if(Jr(e))return[];if(on(e))return[".".concat(e.styledComponentId)];if(ye(e)){if(!ye(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return S.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof dn||Ae(o)||o===null||console.error("".concat(Hr(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ce(o,t,n,r)}var i;return e instanceof dn?n?(e.inject(n,r),[e.getName(r)]):[e]:Ae(e)?eo(e):Array.isArray(e)?Array.prototype.concat.apply(pt,e.map(function(a){return Ce(a,t,n,r)})):[e.toString()]}function pa(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ye(n)&&!on(n))return!1}return!0}var ma=Dr(dt),ga=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=S.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&pa(t),this.componentId=n,this.baseHash=ge(ma,n),this.baseStyle=r,Yr.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ve(o,this.staticRulesId);else{var i=an(Ce(this.rules,t,n,r)),a=tn(ge(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=ve(o,a),this.staticRulesId=a}else{for(var s=ge(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var l=this.rules[d];if(typeof l=="string")u+=l,S.NODE_ENV!=="production"&&(s=ge(s,l));else if(l){var _=an(Ce(l,t,n,r));s=ge(s,_+d),u+=_}}if(u){var h=tn(s>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),o=ve(o,h)}}return o},e}(),ze=ne.createContext(void 0);ze.Consumer;function to(){var e=Fe(ze);if(!e)throw K(18);return e}function ya(e){var t=ne.useContext(ze),n=te(function(){return function(r,o){if(!r)throw K(14);if(ye(r)){var i=r(o);if(S.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw K(7);return i}if(Array.isArray(r)||typeof r!="object")throw K(8);return o?P(P({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?ne.createElement(ze.Provider,{value:n},e.children):null}var hn={},no=new Set;function va(e,t,n){var r=on(e),o=e,i=!rn(e),a=t.attrs,c=a===void 0?pt:a,s=t.componentId,u=s===void 0?function(b,N){var w=typeof b!="string"?"sc":Ar(b);hn[w]=(hn[w]||0)+1;var v="".concat(w,"-").concat(Mr(dt+w+hn[w]));return N?"".concat(N,"-").concat(v):v}(t.displayName,t.parentComponentId):s,d=t.displayName,l=d===void 0?function(b){return rn(b)?"styled.".concat(b):"Styled(".concat(Hr(b),")")}(e):d,_=t.displayName&&t.componentId?"".concat(Ar(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var $=t.shouldForwardProp;y=function(b,N){return E(b,N)&&$(b,N)}}else y=E}var g=new ga(n,_,r?o.componentStyle:void 0);function m(b,N){return function(w,v,U){var j=w.attrs,Ze=w.componentStyle,G=w.defaultProps,Se=w.foldedComponentIds,po=w.styledComponentId,Ps=w.target,Ds=ne.useContext(ze),Ms=fn(),Cn=w.shouldForwardProp||Ms.shouldForwardProp;S.NODE_ENV!=="production"&&et(po);var mo=Mi(v,Ds,G)||Re,ie=function(bt,Qe,$t){for(var Le,Ee=P(P({},Qe),{className:void 0,theme:$t}),En=0;En<bt.length;En+=1){var kt=ye(Le=bt[En])?Le(Ee):Le;for(var le in kt)Ee[le]=le==="className"?ve(Ee[le],kt[le]):le==="style"?P(P({},Ee[le]),kt[le]):kt[le]}return Qe.className&&(Ee.className=ve(Ee.className,Qe.className)),Ee}(j,v,mo),Ye=ie.as||Ps,Xe={};for(var V in ie)ie[V]===void 0||V[0]==="$"||V==="as"||V==="theme"&&ie.theme===mo||(V==="forwardedAs"?Xe.as=ie.forwardedAs:Cn&&!Cn(V,Ye)||(Xe[V]=ie[V],Cn||S.NODE_ENV!=="development"||Lo(V)||no.has(V)||!en.has(Ye)||(no.add(V),console.warn('styled-components: it looks like an unknown prop "'.concat(V,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var wn=function(bt,Qe){var $t=fn(),Le=bt.generateAndInjectStyles(Qe,$t.styleSheet,$t.stylis);return S.NODE_ENV!=="production"&&et(Le),Le}(Ze,ie);S.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(wn);var Sn=ve(Se,po);return wn&&(Sn+=" "+wn),ie.className&&(Sn+=" "+ie.className),Xe[rn(Ye)&&!en.has(Ye)?"class":"className"]=Sn,U&&(Xe.ref=U),D(Ye,Xe)}(k,b,N)}m.displayName=l;var k=ne.forwardRef(m);return k.attrs=h,k.componentStyle=g,k.displayName=l,k.shouldForwardProp=y,k.foldedComponentIds=r?ve(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=_,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?function(N){for(var w=[],v=1;v<arguments.length;v++)w[v-1]=arguments[v];for(var U=0,j=w;U<j.length;U++)sn(N,j[U],!0);return N}({},o.defaultProps,b):b}}),S.NODE_ENV!=="production"&&(Di(l,_),k.warnTooManyClasses=function(b,N){var w={},v=!1;return function(U){if(!v&&(w[U]=!0,Object.keys(w).length>=200)){var j=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(j,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Vi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function X(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return S.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Vi.apply(void 0,de([Gi[e]],t,!1)).trim())}var qi=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw X(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),s=(a=0,r.length);a<s;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Xt);return r},e}(),Yi=1<<30,mt=new Map,gt=new Map,yt=1,vt=function(e){if(mt.has(e))return mt.get(e);for(;gt.has(yt);)yt++;var t=yt++;if(S.NODE_ENV!=="production"&&((0|t)<0||t>Yi))throw X(16,"".concat(t));return mt.set(e,t),gt.set(t,e),t},Zi=function(e,t){yt=t+1,mt.set(e,t),gt.set(t,e)},Xi="style[".concat(_e,"][").concat(On,'="').concat(ft,'"]'),Qi=new RegExp("^".concat(_e,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ki=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ji=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Xt),o=[],i=0,a=n.length;i<a;i++){var c=n[i].trim();if(c){var s=c.match(Qi);if(s){var u=0|parseInt(s[1],10),d=s[2];u!==0&&(Zi(d,u),Ki(e,d,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Wn=function(e){for(var t=document.querySelectorAll(Xi),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(_e)!==kn&&(Ji(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ea(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var zn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(c){var s=Array.from(c.querySelectorAll("style[".concat(_e,"]")));return s[s.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(_e,kn),n.setAttribute(On,ft);var a=ea();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ta=function(){function e(t){this.element=zn(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw X(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),ra=function(){function e(t){this.element=zn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),na=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),jn=dt,oa={isServer:!dt,useCSSOMInjection:!Ii},Gn=function(){function e(t,r,n){t===void 0&&(t=Te),r===void 0&&(r={});var o=this;this.options=D(D({},oa),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&dt&&jn&&(jn=!1,Wn(this)),or(this,function(){return function(i){for(var a=i.getTag(),c=a.length,s="",u=function(l){var h=function(m){return gt.get(m)}(l);if(h===void 0)return"continue";var _=i.names.get(h),g=a.getGroup(l);if(_===void 0||!_.size||g.length===0)return"continue";var b="".concat(_e,".g").concat(l,'[id="').concat(h,'"]'),$="";_!==void 0&&_.forEach(function(m){m.length>0&&($+="".concat(m,","))}),s+="".concat(g).concat(b,'{content:"').concat($,'"}').concat(Xt)},d=0;d<c;d++)u(d);return s}(o)})}return e.registerId=function(t){return vt(t)},e.prototype.rehydrate=function(){!this.server&&dt&&Wn(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(D(D({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new na(o):n?new ta(o):new ra(o)}(this.options),new qi(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(vt(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(vt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(vt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ia=/&/g,aa=/^\s*\/\/.*$/gm;function Vn(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Vn(r.children,t)),r})}function qn(e){var t,r,n,o=e===void 0?Te:e,i=o.options,a=i===void 0?Te:i,c=o.plugins,s=c===void 0?_t:c,u=function(h,_,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):h},d=s.slice();d.push(function(h){h.type===nt&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(ia,r).replace(n,u))}),a.prefix&&d.push(xi),d.push(ki);var l=function(h,_,g,b){_===void 0&&(_=""),g===void 0&&(g=""),b===void 0&&(b="&"),t=b,r=_,n=new RegExp("\\".concat(r,"\\b"),"g");var $=h.replace(aa,""),m=Ei(g||_?"".concat(g," ").concat(_," { ").concat($," }"):$);a.namespace&&(m=Vn(m,a.namespace));var p=[];return ut(m,Oi(d.concat(Ni(function(k){return p.push(k)})))),p};return l.hash=s.length?s.reduce(function(h,_){return _.name||X(15),pe(h,_.name)},In).toString():"",l}var sa=new Gn,ir=qn(),ar=ee.createContext({shouldForwardProp:void 0,styleSheet:sa,stylis:ir});ar.Consumer;var ca=ee.createContext(void 0);function sr(){return He(ar)}function la(e){var t=U(e.stylisPlugins),r=t[0],n=t[1],o=sr().styleSheet,i=J(function(){var s=o;return e.sheet?s=e.sheet:e.target&&(s=s.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(s=s.reconstructWithOptions({useCSSOMInjection:!1})),s},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=J(function(){return qn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);K(function(){fi(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var c=J(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return ee.createElement(ar.Provider,{value:c},ee.createElement(ca.Provider,{value:a},e.children))}var cr=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=ir);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,or(this,function(){throw X(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ir),this.name+t.hash},e}(),ua=function(e){return e>="A"&&e<="Z"};function Yn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;ua(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Zn=function(e){return e==null||e===!1||e===""},Xn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Zn(i)&&(Array.isArray(i)&&i.isCss||me(i)?n.push("".concat(Yn(o),":"),i,";"):Ie(i)?n.push.apply(n,de(de(["".concat(o," {")],Xn(i),!1),["}"],!1)):n.push("".concat(Yn(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Ti||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ye(e,t,r,n){if(Zn(e))return[];if(tr(e))return[".".concat(e.styledComponentId)];if(me(e)){if(!me(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return S.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof cr||Ie(o)||o===null||console.error("".concat(An(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ye(o,t,r,n)}var i;return e instanceof cr?r?(e.inject(r,n),[e.getName(n)]):[e]:Ie(e)?Xn(e):Array.isArray(e)?Array.prototype.concat.apply(_t,e.map(function(a){return ye(a,t,r,n)})):[e.toString()]}function fa(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(me(r)&&!tr(r))return!1}return!0}var da=Rn(ft),ha=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=S.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&fa(t),this.componentId=r,this.baseHash=pe(da,r),this.baseStyle=n,Gn.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=ge(o,this.staticRulesId);else{var i=rr(ye(this.rules,t,r,n)),a=Kt(pe(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=ge(o,a),this.staticRulesId=a}else{for(var s=pe(this.baseHash,n.hash),u="",d=0;d<this.rules.length;d++){var l=this.rules[d];if(typeof l=="string")u+=l,S.NODE_ENV!=="production"&&(s=pe(s,l));else if(l){var h=rr(ye(l,t,r,n));s=pe(s,h+d),u+=h}}if(u){var _=Kt(s>>>0);r.hasNameForId(this.componentId,_)||r.insertRules(this.componentId,_,n(u,".".concat(_),void 0,this.componentId)),o=ge(o,_)}}return o},e}(),We=ee.createContext(void 0);We.Consumer;function Qn(){var e=He(We);if(!e)throw X(18);return e}function _a(e){var t=ee.useContext(We),r=J(function(){return function(n,o){if(!n)throw X(14);if(me(n)){var i=n(o);if(S.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw X(7);return i}if(Array.isArray(n)||typeof n!="object")throw X(8);return o?D(D({},o),n):n}(e.theme,t)},[e.theme,t]);return e.children?ee.createElement(We.Provider,{value:r},e.children):null}var lr={},Kn=new Set;function pa(e,t,r){var n=tr(e),o=e,i=!er(e),a=t.attrs,c=a===void 0?_t:a,s=t.componentId,u=s===void 0?function(E,N){var w=typeof E!="string"?"sc":xn(E);lr[w]=(lr[w]||0)+1;var y="".concat(w,"-").concat(Pn(ft+w+lr[w]));return N?"".concat(N,"-").concat(y):y}(t.displayName,t.parentComponentId):s,d=t.displayName,l=d===void 0?function(E){return er(E)?"styled.".concat(E):"Styled(".concat(An(E),")")}(e):d,h=t.displayName&&t.componentId?"".concat(xn(t.displayName),"-").concat(t.componentId):t.componentId||u,_=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var b=o.shouldForwardProp;if(t.shouldForwardProp){var $=t.shouldForwardProp;g=function(E,N){return b(E,N)&&$(E,N)}}else g=b}var m=new ha(r,h,n?o.componentStyle:void 0);function p(E,N){return function(w,y,H){var W=w.attrs,qe=w.componentStyle,z=w.defaultProps,Ce=w.foldedComponentIds,uo=w.styledComponentId,xs=w.target,Ts=ee.useContext(We),Is=sr(),_r=w.shouldForwardProp||Is.shouldForwardProp;S.NODE_ENV!=="production"&&Je(uo);var fo=Pi(y,Ts,z)||Te,ne=function(St,Xe,bt){for(var Pe,we=D(D({},Xe),{className:void 0,theme:bt}),gr=0;gr<St.length;gr+=1){var Et=me(Pe=St[gr])?Pe(we):Pe;for(var ce in Et)we[ce]=ce==="className"?ge(we[ce],Et[ce]):ce==="style"?D(D({},we[ce]),Et[ce]):Et[ce]}return Xe.className&&(we.className=ge(we.className,Xe.className)),we}(W,y,fo),Ye=ne.as||xs,Ze={};for(var j in ne)ne[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&ne.theme===fo||(j==="forwardedAs"?Ze.as=ne.forwardedAs:_r&&!_r(j,Ye)||(Ze[j]=ne[j],_r||S.NODE_ENV!=="development"||To(j)||Kn.has(j)||!Qt.has(Ye)||(Kn.add(j),console.warn('styled-components: it looks like an unknown prop "'.concat(j,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var pr=function(St,Xe){var bt=sr(),Pe=St.generateAndInjectStyles(Xe,bt.styleSheet,bt.stylis);return S.NODE_ENV!=="production"&&Je(Pe),Pe}(qe,ne);S.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(pr);var mr=ge(Ce,uo);return pr&&(mr+=" "+pr),ne.className&&(mr+=" "+ne.className),Ze[er(Ye)&&!Qt.has(Ye)?"class":"className"]=mr,H&&(Ze.ref=H),L(Ye,Ze)}(k,E,N)}p.displayName=l;var k=ee.forwardRef(p);return k.attrs=_,k.componentStyle=m,k.displayName=l,k.shouldForwardProp=g,k.foldedComponentIds=n?ge(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=h,k.target=n?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=n?function(N){for(var w=[],y=1;y<arguments.length;y++)w[y-1]=arguments[y];for(var H=0,W=w;H<W.length;H++)nr(N,W[H],!0);return N}({},o.defaultProps,E):E}}),S.NODE_ENV!=="production"&&(Ri(l,h),k.warnTooManyClasses=function(E,N){var w={},y=!1;return function(H){if(!y&&(w[H]=!0,Object.keys(w).length>=200)){var W=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(W,`.
|
|
48
48
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
49
|
Example:
|
|
50
50
|
const Component = styled.div.attrs(props => ({
|
|
@@ -53,11 +53,11 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),y=!0,w={}}}}(l,h)),or(k,function(){return".".concat(k.styledComponentId)}),i&&Bn(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Jn(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var eo=function(e){return Object.assign(e,{isCss:!0})};function ur(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(me(e)||Ie(e))return eo(ye(Jn(_t,de([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?ye(n):eo(ye(Jn(n,t)))}function fr(e,t,r){if(r===void 0&&(r=Te),!t)throw X(1,t);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,ur.apply(void 0,de([o],i,!1)))};return n.attrs=function(o){return fr(e,t,D(D({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return fr(e,t,D(D({},r),o))},n}var to=function(e){return fr(pa,e)},M=to;Qt.forEach(function(e){M[e]=to(e)});function Ct(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];S.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=rr(ur.apply(void 0,de([e],t,!1))),o=Pn(n);return new cr(o,n)}S.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var wt="__sc-".concat(_e,"__");S.NODE_ENV!=="production"&&S.NODE_ENV!=="test"&&typeof window<"u"&&(window[wt]||(window[wt]=0),window[wt]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
59
|
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const Re={CIRCLE_SOLID:"circle-solid",SQUARE_ROUNDED_DASH:"square-rounded-dash",SQUARE_ROUNDED_SOLID:"square-rounded-solid",SQUARE_DASH:"square-dash",SQUARE_SOLID:"square-solid"},ma=2,ro=14,ga=.0276;var re=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(re||{});const ze={300:{iconSize:40,marginLeft:12,buttonPadding:4},400:{iconSize:45,marginLeft:12,buttonPadding:8},500:{iconSize:52,marginLeft:12,buttonPadding:12},600:{iconSize:52,marginLeft:12,buttonPadding:24}},no={loading:{text:"Loading. Please wait.",visible:!0},waiting:{text:"Waiting for input...",visible:!0}},ya={[A.CANDIDATE_SELECTION]:"Stay still…",[A.FACE_TOO_CLOSE]:"Move back",[A.FACE_TOO_FAR]:"Move closer",[A.FACE_CENTERING]:"Center your face",[A.FACE_NOT_PRESENT]:"Position your face into the circle",[A.SHARPNESS_TOO_LOW]:"Turn face against light",[A.BRIGHTNESS_TOO_LOW]:"Turn face against light",[A.BRIGHTNESS_TOO_HIGH]:"Less light needed",[A.DEVICE_PITCHED]:"Hold your phone at eye level",[A.LEFT_EYE_NOT_PRESENT]:"Position your face into the circle",[A.RIGHT_EYE_NOT_PRESENT]:"Position your face into the circle",[A.MOUTH_SCORE_TOO_HIGH]:"Keep neutral expression",[A.MOUTH_SCORE_TOO_LOW]:"Smile :)",[A.MOUTH_NOT_PRESENT]:"Position your face into the circle"},va=Re.CIRCLE_SOLID,Ca="rgba(19, 19, 19, 0.5)",wa=34;function oo(e,t){return Math.max(t,t+(e-400)*ga+2)}const Sa=(e,t=ro)=>e?e.width<e.height?oo(e.width,t):oo(e.height,t):t,ba=e=>e>re.Default?ze[re.Default]:e>re.L?ze[re.L]:e>re.M?ze[re.M]:ze[re.S],Ea=e=>e?ba(e.width):ze[re.Default];function $a(){const e="https://fonts.googleapis.com/css?family=Montserrat:600";if(!document.querySelector(`link[href="${e}"]`)){const r=document.createElement("link");r.href=e,r.rel="stylesheet",document.head.appendChild(r)}}const je=Pr(void 0);je.displayName="ConfigurationContext";function ve(){const e=He(je);if(!e)throw new Error(`${je.displayName} must be used within a ${je.displayName} Provider`);return e}function ka({children:e,configuration:t,videoElementSize:r}){const{font:n}=Qn(),o=J(()=>({...t,videoElementSize:r,fontSize:Sa(r,n.minimumSize)}),[t,n.minimumSize,r]);return f(je.Provider,{value:o,children:e})}const io=({svgSize:e})=>f("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:f("path",{clipRule:"evenodd",d:"M14.3062 13.5002H1.69384C0.932655 13.5002 0.450552 12.6837 0.818264 12.0172L7.12444 0.587236C7.5047 -0.101994 8.49533 -0.101996 8.87559 0.587234L15.1818 12.0172C15.5495 12.6837 15.0674 13.5002 14.3062 13.5002ZM8.00001 3.25025C8.41423 3.25025 8.75002 3.58604 8.75002 4.00025V8.50025C8.75002 8.91446 8.41423 9.25025 8.00001 9.25025C7.5858 9.25025 7.25001 8.91446 7.25001 8.50025V4.00025C7.25001 3.58604 7.5858 3.25025 8.00001 3.25025ZM8.75002 11.2502C8.75002 11.6645 8.41423 12.0002 8.00001 12.0002C7.5858 12.0002 7.25001 11.6645 7.25001 11.2502C7.25001 10.836 7.5858 10.5002 8.00001 10.5002C8.41423 10.5002 8.75002 10.836 8.75002 11.2502Z",fill:"currentColor",fillRule:"evenodd"})}),Oa=M.div`
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
63
63
|
top: 0;
|
|
@@ -76,14 +76,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
76
76
|
aspect-ratio: 9/16;
|
|
77
77
|
}
|
|
78
78
|
`}
|
|
79
|
-
`,
|
|
79
|
+
`,Na=M.div`
|
|
80
80
|
width: 100%;
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
justify-content: center;
|
|
84
84
|
align-items: center;
|
|
85
85
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
86
|
-
`,
|
|
86
|
+
`,xa=M.p`
|
|
87
87
|
background: ${e=>e.theme.colors.instructionColor};
|
|
88
88
|
border-radius: 0.25em;
|
|
89
89
|
padding: 0.583em 0.666em;
|
|
@@ -91,11 +91,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
91
91
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
92
92
|
line-height: 1em;
|
|
93
93
|
max-width: 80%;
|
|
94
|
-
`,
|
|
94
|
+
`,dr=({Icon:e,isCameraReady:t,position:r="absolute",text:n})=>{const{fontSize:o}=ve();return f(Oa,{$isCameraReady:t,$position:r,children:f(Na,{children:[e?f(e,{svgSize:o*2}):null,f(xa,{$fontSize:o,children:n})]})})},ao=({text:e="An unknown error has occurred"})=>f(dr,{Icon:io,position:"relative",text:e});class Ta extends G{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?f(ao,{Icon:io,isCameraReady:!1}):this.props.children}}const Ia=M.div`
|
|
95
95
|
font-family: ${e=>e.theme.font.family};
|
|
96
96
|
font-style: ${e=>e.theme.font.style};
|
|
97
97
|
font-weight: ${e=>e.theme.font.weight};
|
|
98
|
-
|
|
98
|
+
`;function Ra({children:e,uiConfiguration:t,videoElementSize:r}){return K(()=>{$a()},[]),f(la,{target:t.styleTarget,children:f(_a,{theme:t.styling.theme,children:f(Ia,{children:f(Ta,{videoElementSize:r,children:f(ka,{configuration:t,videoElementSize:r,children:e})})})})})}const Pa=.75,Aa=2,Da="dot-auto-capture-video";function Ge(e,t){const r=Me(t);K(()=>{r.current=t},[t]),K(()=>{if(!e)return;const n=o=>r.current(o);return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},[e])}function La(e){const[t,r]=U(),n=fe(o=>{var i;r((i=o.detail)==null?void 0:i.size)},[r]);return Ge(e,n),$e(()=>{if(!t){const o=document.getElementById(Da);o&&r(o.getBoundingClientRect())}},[t,r]),t}function Ma(e,t){return e?`${e}, ${t}`:t}const Ve={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:ro}},Ha=e=>{var t;return e?{...Ve,...e,colors:{...Ve.colors,...e.colors},font:{...Ve.font,...e.font,family:Ma((t=e.font)==null?void 0:t.family,Ve.font.family)}}:Ve},Fa=e=>Number.parseFloat(e.toFixed(3)),hr=(e,t)=>Math.min(e,t),Ua=({height:e,width:t},r)=>{const n=hr(t,e)*r,o=(t-n)/2,i=(e-n)/2;return{shiftX:o,shiftY:i,width:n,height:n}},Ba=(e,t)=>{const{height:r,shiftX:n,shiftY:o,width:i}=Ua(e,t);return{shiftX:n/e.width,shiftY:o/e.height,width:i/e.width,height:r/e.height}};function Wa(e,t){const r=hr(t.width,t.height);return Fa(e*r)}function za(e){return Ba(e,Pa)}function ja(e,t){return Wa(e,t)*Aa}const Ga=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},so=(e,t)=>{Ga(e,{instruction:t})};async function Va(){return navigator.mediaDevices.enumerateDevices()}async function qa(){return(await Va()).filter(t=>t.kind==="videoinput")}const Ya=()=>{const[e,t]=U(!1);return K(()=>{(async()=>{(await qa()).length>1&&t(!0)})()},[]),e},Za=({size:e})=>f("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[f("path",{d:"M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",fill:"#131313",fillOpacity:"0.3"}),f("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),f("path",{d:"M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",stroke:"white",strokeWidth:"2"}),f("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),f("path",{d:"M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",stroke:"white",strokeWidth:"2"})]}),Xa=({size:e})=>f("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[f("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),f("path",{d:"M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",fill:"white"})]}),co=M.button`
|
|
99
99
|
background: none;
|
|
100
100
|
border: none;
|
|
101
101
|
padding: 0;
|
|
@@ -105,26 +105,26 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
105
105
|
&:disabled {
|
|
106
106
|
cursor: not-allowed;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,Qa=({marginLeft:e,size:t,...r})=>f(co,{$marginLeft:e,...r,children:f(Za,{size:t})}),Ka=({marginLeft:e,size:t,...r})=>f(co,{$marginLeft:e,...r,children:f(Xa,{size:t})}),Ja=M.div`
|
|
109
109
|
position: absolute;
|
|
110
110
|
top: 0;
|
|
111
111
|
right: 0;
|
|
112
112
|
padding: ${e=>`${e.$padding}px`};
|
|
113
113
|
z-index: 2;
|
|
114
|
-
`,
|
|
114
|
+
`,es=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{control:{showCameraButtons:r},videoElementSize:n}=ve(),o=Ya();if(!r)return null;const{buttonPadding:i,iconSize:a,marginLeft:c}=Ea(n);return f(Ja,{$padding:i,children:[o&&f(Ka,{disabled:t,onClick:()=>{so(e,Lr.SWITCH_CAMERA)},size:a}),f(Qa,{marginLeft:o?c:0,onClick:()=>{so(e,Lr.TOGGLE_MIRROR)},size:a})]})},ts="2.5s",rs="0.3s",ns="linear",os=Ct`
|
|
115
115
|
0% {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
100% {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`;
|
|
121
|
+
`;Ct`
|
|
122
122
|
100% {
|
|
123
123
|
transform: translate(-50%, -50%) scale(2.6);
|
|
124
124
|
top: 50%;
|
|
125
125
|
left: 50%;
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,Ct`
|
|
128
128
|
5% {
|
|
129
129
|
transform: translate(-50%, -50%) scale(0.7);
|
|
130
130
|
opacity: 1;
|
|
@@ -147,7 +147,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
147
147
|
transform: translate(-50%, -50%) scale(0.85);
|
|
148
148
|
opacity: 0.5;
|
|
149
149
|
}
|
|
150
|
-
`,
|
|
150
|
+
`,Ct`
|
|
151
151
|
5% {
|
|
152
152
|
opacity: 1;
|
|
153
153
|
}
|
|
@@ -159,16 +159,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
159
159
|
transform: scale(1);
|
|
160
160
|
opacity: 1;
|
|
161
161
|
}
|
|
162
|
-
`;const
|
|
162
|
+
`;const is=M.div`
|
|
163
163
|
position: absolute;
|
|
164
164
|
left: 50%;
|
|
165
165
|
|
|
166
166
|
${e=>e.$cssTop?`top: ${e.$cssTop}%;`:""}
|
|
167
167
|
${e=>e.$cssBottom?`bottom: ${e.$cssBottom}%;`:""}
|
|
168
|
-
${e=>e.$isAnimating&&
|
|
169
|
-
animation: ${
|
|
170
|
-
${
|
|
171
|
-
animation-delay: ${
|
|
168
|
+
${e=>e.$isAnimating&&ur`
|
|
169
|
+
animation: ${os} ${rs}
|
|
170
|
+
${ns} both;
|
|
171
|
+
animation-delay: ${ts};
|
|
172
172
|
|
|
173
173
|
@media (orientation: landscape) {
|
|
174
174
|
bottom: ${e.$cssBottom?e.$cssBottom-15:""}%;
|
|
@@ -192,7 +192,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
192
192
|
${e=>e.$cssTop||e.$isPortrait?"-50%":e.$isPortrait?"":"50%"}
|
|
193
193
|
);
|
|
194
194
|
z-index: 2;
|
|
195
|
-
`,
|
|
195
|
+
`,as=M.div`
|
|
196
196
|
display: flex;
|
|
197
197
|
align-items: center;
|
|
198
198
|
justify-content: center;
|
|
@@ -206,7 +206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
206
206
|
line-height: 1em;
|
|
207
207
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
208
208
|
white-space: ${e=>e.$wrap?"break-spaces":"nowrap"};
|
|
209
|
-
`,
|
|
209
|
+
`,ss=({children:e,cssBottom:t,cssTop:r,isAnimating:n,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:a}=ve();return f(is,{$cssBottom:t,$cssTop:r,$isAnimating:n,$isPortrait:i,children:f(as,{$fontSize:a,$isInCandidateSelection:o,$wrap:e.length>wa,children:e})})},cs=M.div`
|
|
210
210
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
211
211
|
animation: spin 2s linear infinite;
|
|
212
212
|
|
|
@@ -215,7 +215,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
215
215
|
transform: rotate(-360deg);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
`,
|
|
218
|
+
`,ls=({svgSize:e})=>f(cs,{children:f("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[f("path",{d:"M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",fill:"currentColor"}),f("path",{d:"M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",fill:"currentColor"}),f("path",{d:"M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",fill:"currentColor"}),f("path",{d:"M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",fill:"currentColor"}),f("path",{d:"M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",fill:"currentColor"}),f("path",{d:"M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",fill:"currentColor"}),f("path",{d:"M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",fill:"currentColor"}),f("path",{d:"M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",fill:"currentColor"})]})}),us=M.div`
|
|
219
219
|
z-index: 1;
|
|
220
220
|
position: absolute;
|
|
221
221
|
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
@@ -232,7 +232,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
232
232
|
transform: scale(0.5);
|
|
233
233
|
translate: 25% 25%;
|
|
234
234
|
}
|
|
235
|
-
`,
|
|
235
|
+
`,lo=({children:e,height:t,scale:r,width:n})=>{const{styling:{backdropColor:o}}=ve(),i=hr(n,t);return f(us,{$backdropColor:o,$scale:r,$shorterSide:i,children:f("svg",{viewBox:`0 0 ${n} ${t}`,children:[f("defs",{children:f("mask",{id:"mask",children:[f("rect",{fill:"#fff",height:"100%",width:"100%"}),f("g",{children:e})]})}),f("rect",{fill:o,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function fs({cameraHeight:e,cameraWidth:t,isBackdrop:r,state:n}){const{appStateInstructions:o}=ve(),i=n===V.ERROR||n===V.RUNNING;return!n||i||!(o!=null&&o[n].visible)?null:n===V.WAITING||n===V.COMPLETE?f(F,{children:[r&&e&&t&&f(lo,{height:e,width:t}),f(dr,{isCameraReady:!0,text:o[V.WAITING].text})]}):f(dr,{Icon:ls,isCameraReady:!0,text:o[V.LOADING].text})}function ds({isRounded:e,isSquare:t,...r}){return e?f("rect",{fill:"#000",...r,rx:"2%"}):f("rect",{fill:"#000",...r,rx:t?"0":"50%"})}const hs=()=>f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("path",{d:"M2 240C2 108.556 108.556 2 240 2C371.444 2 478 108.556 478 240C478 371.444 371.444 478 240 478C108.556 478 2 371.444 2 240Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})});function _s(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"2",stroke:"currentColor",strokeDasharray:"48 48",strokeLinecap:"square",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function ps(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"14",stroke:"currentColor",strokeDasharray:"24 24",strokeLinecap:"square",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function ms(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4",width:"476",x:"2",y:"2"})})}function gs(){return f("svg",{fill:"none",height:"480",viewBox:"0 0 480 480",width:"480",xmlns:"http://www.w3.org/2000/svg",children:f("rect",{height:"476",rx:"2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4",width:"476",x:"2",y:"2"})})}const ys=M.div`
|
|
236
236
|
z-index: 1;
|
|
237
237
|
position: absolute;
|
|
238
238
|
top: ${e=>e.$placeholderRectangle.shiftY*100}%;
|
|
@@ -246,7 +246,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
246
246
|
width: 100%;
|
|
247
247
|
height: 100%;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
`,vs=({children:e,className:t,isInCandidateSelection:r,onAnimationEnd:n,placeholderRectangle:o,scale:i})=>f(ys,{$isInCandidateSelection:r,$placeholderRectangle:o,$scale:i,className:t,onAnimationEnd:n,children:e}),Cs={[Re.CIRCLE_SOLID]:f(hs,{}),[Re.SQUARE_ROUNDED_DASH]:f(ps,{}),[Re.SQUARE_ROUNDED_SOLID]:f(ms,{}),[Re.SQUARE_DASH]:f(_s,{}),[Re.SQUARE_SOLID]:f(gs,{})};function ws({backdropHeight:e,backdropWidth:t,isBackdrop:r,placeholderRectangle:n,...o}){const{placeholder:i}=ve(),a=i.toLowerCase().includes("square"),c=i.toLowerCase().includes("rounded");return f(F,{children:[r&&f(lo,{height:e,width:t,children:f(ds,{height:`${n.height*100}%`,isRounded:c,isSquare:a,width:`${n.width*100}%`,x:`${n.shiftX*100}%`,y:`${n.shiftY*100}%`})}),f(vs,{placeholderRectangle:n,...o,children:Cs[i]})]})}const Ss=()=>{const[e,t]=U(),[r,n]=U(!1),o=fe(s=>{var d,l;t((d=s==null?void 0:s.detail)==null?void 0:d.cameraResolution);const u=(l=s==null?void 0:s.detail)==null?void 0:l.isMirroring;u!==void 0&&n(u)},[t]);Ge(ue.CAMERA_PROPS_CHANGED,o);const[i,a]=U({code:A.FACE_NOT_PRESENT,isEscalated:!1}),c=fe(s=>{var u,d;a({code:(u=s==null?void 0:s.detail)==null?void 0:u.instructionCode,isEscalated:((d=s==null?void 0:s.detail)==null?void 0:d.isEscalated)??!1})},[a]);return Ge(ue.INSTRUCTION_CHANGED,c),{cameraResolution:e,instruction:i,isMirroring:r}},bs=()=>{const[e,t]=U(V.LOADING),[r,n]=U(),o=fe(i=>{var c,s;t((c=i.detail)==null?void 0:c.appState);const a=(s=i==null?void 0:i.detail)==null?void 0:s.error;a&&n(a)},[t,n]);return Ge(ue.STATE_CHANGED,o),{appState:e,error:r}},Es=M.canvas`
|
|
250
250
|
transform: ${e=>e.$isImageMirror?"rotateY(180deg)":"none"};
|
|
251
251
|
position: absolute;
|
|
252
252
|
top: 0;
|
|
@@ -254,4 +254,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const M={CIRCLE_SOLID
|
|
|
254
254
|
width: 100%;
|
|
255
255
|
height: 100%;
|
|
256
256
|
z-index: 1;
|
|
257
|
-
`;function
|
|
257
|
+
`;function $s(e){const t=e.getContext("2d");t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)}const ks=({cameraResolution:e,isImageMirror:t})=>{const r=Me(null),n=Qn(),[o,i]=U(),a=fe(c=>{var s;i((s=c==null?void 0:c.detail)==null?void 0:s.detectedObject)},[i]);return Ge(ue.DETECTION_CHANGED,a),K(()=>{if(!r.current)return;const c=(s,u)=>{var g;if(!u)return;const{faceCenter:d,faceSize:l}=u,h=(g=r==null?void 0:r.current)==null?void 0:g.getContext("2d");if(!h)return;const _=ja(l,s);h.beginPath(),h.arc(d.x,d.y,_,0,2*Math.PI,!1),h.lineWidth=ma,h.strokeStyle=n.colors.placeholderColor,h.stroke()};r.current.width=e.width,r.current.height=e.height,$s(r.current),c(e,o)},[e,o,n.colors.placeholderColor]),f(Es,{ref:r,$isImageMirror:t})};function Os(){const{appState:e,error:t}=bs(),{cameraResolution:r,instruction:n,isMirroring:o}=Ss(),i=n.code===A.CANDIDATE_SELECTION,{control:{showDetectionLayer:a},instructions:c}=ve();if(e===V.ERROR)return f(ao,{text:t==null?void 0:t.message});if(e===V.RUNNING&&r){const s=za(r);return f(F,{children:[a&&f(ks,{cameraResolution:r,isImageMirror:o}),f(ws,{backdropHeight:r.height,backdropWidth:r.width,isBackdrop:!0,isInCandidateSelection:i,placeholderRectangle:s}),n.code&&f(ss,{cssBottom:(s.height+s.shiftY)*100,isInCandidateSelection:i,isPortrait:r.width<r.height,children:c[n.code]}),f(es,{customControlEvent:ue.CONTROL,isSwitchCameraDisabled:i})]})}return f(fs,{cameraHeight:r==null?void 0:r.height,cameraWidth:r==null?void 0:r.width,isBackdrop:!0,state:e})}function Ns(e){var c,s,u,d,l,h;const t={...ya,...e==null?void 0:e.instructions},r={[V.LOADING]:{...no.loading,...(c=e==null?void 0:e.appStateInstructions)==null?void 0:c.loading},[V.WAITING]:{...no.waiting,...(s=e==null?void 0:e.appStateInstructions)==null?void 0:s.waiting}},n=Ha((u=e==null?void 0:e.styling)==null?void 0:u.theme),o={...e==null?void 0:e.styling,backdropColor:((d=e==null?void 0:e.styling)==null?void 0:d.backdropColor)??Ca,theme:n},i={showDetectionLayer:((l=e==null?void 0:e.control)==null?void 0:l.showDetectionLayer)??!1,showCameraButtons:((h=e==null?void 0:e.control)==null?void 0:h.showCameraButtons)??!1},a=(e==null?void 0:e.placeholder)??va;return{...e,instructions:t,appStateInstructions:r,placeholder:a,styling:o,control:i}}Eo(({configuration:e})=>{const t=La(ue.VIDEO_ELEMENT_SIZE);return f(Ra,{uiConfiguration:Ns(e),videoElementSize:t,children:f(Os,{})})},"x-dot-face-auto-capture-ui",["configuration"])});
|