@ahmed_hani/dot-auto-capture-ui 7.6.1 → 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 +7 -4
- 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 -35
- 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/smile-liveness.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(H){typeof define=="function"&&define.amd?define(H):H()})(function(){"use strict";var Ka=Object.defineProperty;var Qa=(H,p,fe)=>p in H?Ka(H,p,{enumerable:!0,configurable:!0,writable:!0,value:fe}):H[p]=fe;var It=(H,p,fe)=>Qa(H,typeof p!="symbol"?p+"":p,fe);var H,p,fe,de,On,Nn,In,Tn,Tt,xt,At,xn,De={},An=[],ko=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function q(e,t){for(var n in t)e[n]=t[n];return e}function Rt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?H.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]==null&&(s[i]=e.defaultProps[i]);return He(e,s,r,o,null)}function He(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??++fe,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function Oo(){return{current:null}}function B(e){return e.children}function V(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 Rn(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 Rn(e)}}function Lt(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Je.__r++||On!=p.debounceRendering)&&((On=p.debounceRendering)||Nn)(Je)}function Je(){for(var e,t,n,r,o,i,s,c=1;de.length;)de.length>c&&de.sort(In),e=de.shift(),c=de.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=q({},r)).__v=r.__v+1,p.vnode&&p.vnode(n),Pt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??be(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Hn(i,n,s),n.__e!=o&&Rn(n)));Je.__r=0}function Ln(e,t,n,r,o,i,s,c,a,u,d){var l,_,h,y,E,$,g=r&&r.__k||An,m=t.length;for(a=No(n,t,g,a,m),l=0;l<m;l++)(h=n.__k[l])!=null&&(_=h.__i==-1?De:g[h.__i]||De,h.__i=l,$=Pt(e,h,_,o,i,s,c,a,u,d),y=h.__e,h.ref&&_.ref!=h.ref&&(_.ref&&Dt(_.ref,null,h),d.push(h.ref,h.__c||y,h)),E==null&&y!=null&&(E=y),4&h.__u||_.__k===h.__k?a=Pn(h,a,e):typeof h.type=="function"&&$!==void 0?a=$:y&&(a=y.nextSibling),h.__u&=-7);return n.__e=E,a}function No(e,t,n,r,o){var i,s,c,a,u,d=n.length,l=d,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+_,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?He(null,s,null,null,null):Me(s)?He(B,{children:s},null,null,null):s.constructor==null&&s.__b>0?He(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,c=null,(u=s.__i=Io(s,n,a,l))!=-1&&(l--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>d?_--:o<d&&_++),typeof s.type!="function"&&(s.__u|=4)):u!=a&&(u==a-1?_--:u==a+1?_++:(u>a?_--:_++,s.__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)),Fn(c,c));return r}function Pn(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=Pn(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 Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Me(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function Io(e,t,n,r){var o,i,s=e.key,c=e.type,a=t[n];if(a===null&&e.key==null||a&&s==a.key&&c==a.type&&(2&a.__u)==0)return n;if(r>(a!=null&&(2&a.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((a=t[o])&&(2&a.__u)==0&&s==a.key&&c==a.type)return o;o--}if(i<t.length){if((a=t[i])&&(2&a.__u)==0&&s==a.key&&c==a.type)return i;i++}}return-1}function Dn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||ko.test(t)?n:n+"px"}function et(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||Dn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Dn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Tn,"$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=Tt,e.addEventListener(t,i?At:xt,i)):e.removeEventListener(t,i?At: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 Mn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Tt++;else if(t.t<n.u)return;return n(p.event?p.event(t):t)}}}function Pt(e,t,n,r,o,i,s,c,a,u){var d,l,_,h,y,E,$,g,m,k,b,N,S,v,F,z,Ze,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),i=[c=t.__e=n.__e]),(d=p.__b)&&d(t);e:if(typeof j=="function")try{if(g=t.props,m="prototype"in j&&j.prototype.render,k=(d=j.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 j(g,b):(t.__c=l=new V(g,b),l.constructor=j,l.render=xo),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&&j.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=q({},l.__s)),q(l.__s,j.getDerivedStateFromProps(g,l.__s))),h=l.props,y=l.state,l.__v=t,_)m&&j.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&j.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(we){we&&(we.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&s.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,S=p.__r,v=0,m){for(l.state=l.__s,l.__d=!1,S&&S(t),d=l.render(l.props,l.state,l.context),F=0;F<l._sb.length;F++)l.__h.push(l._sb[F]);l._sb=[]}else do l.__d=!1,S&&S(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=q(q({},r),l.getChildContext())),m&&!_&&l.getSnapshotBeforeUpdate!=null&&(E=l.getSnapshotBeforeUpdate(h,y)),z=d,d!=null&&d.type===B&&d.key==null&&(z=Un(d.props.children)),c=Ln(e,Me(z)?z:[z],t,n,r,o,i,s,c,a,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),$&&(l.__E=l.__=null)}catch(we){if(t.__v=null,a||i!=null)if(we.then){for(t.__u|=a?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--;)Rt(i[Ze]);else t.__e=n.__e,t.__k=n.__k;p.__e(we,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=To(n.__e,t,n,r,o,i,s,a,u);return(d=p.diffed)&&d(t),128&t.__u?void 0:c}function Hn(e,t,n){for(var r=0;r<n.length;r++)Dt(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 Un(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(Un):q({},e)}function To(e,t,n,r,o,i,s,c,a){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||De,!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;et(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||et(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=""),Ln(t.type=="template"?e.content:e,Me(_)?_:[_],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&be(n,0),c,a),i!=null)for(u=i.length;u--;)Rt(i[u]);c||(u="value",m=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[u]||m=="progress"&&!y||m=="option"&&y!=$[u])&&et(e,u,y,$[u],o),u="checked",E!=null&&E!=e[u]&&et(e,u,E,$[u],o))}return e}function Dt(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 Fn(e,t,n){var r,o;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Dt(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]&&Fn(r[o],t,n||typeof e.type!="function");n||Rt(e.__e),e.__c=e.__=e.__e=void 0}function xo(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),p.__&&p.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Pt(t,e=(!r&&n||t).__k=D(B,null,[e]),o||De,De,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?H.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Hn(i,e,s)}function Mt(e,t){se(e,t,Mt)}function Ht(e,t,n){var r,o,i,s,c=q({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&s!=null?s[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?H.call(arguments,2):n),He(e.type,c,r||e.key,o||e.ref,null)}function Bn(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(s){s.__e=!0,Lt(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+xn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}H=An.slice,p={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(c){e=c}throw e}},fe=0,V.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},n),this.props)),e&&q(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Lt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lt(this))},V.prototype.render=B,de=[],Nn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,In=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,Tn=/(PointerCapture)$|Capture$/i,Tt=0,xt=Mn(!1),At=Mn(!0),xn=0;function Ut(){return(Ut=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 Ao=["context","children"];function Ro(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,c={},a=Object.keys(r);for(s=0;s<a.length;s++)o.indexOf(i=a[s])>=0||(c[i]=r[i]);return c}(e,Ao);return Ht(t,n)}function Lo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=D(Ro,Ut({},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={},s=0,c=n.attributes,a=n.childNodes;for(s=c.length;s--;)c[s].name!=="slot"&&(i[c[s].name]=c[s].value,i[Wn(c[s].name)]=c[s].value);for(s=a.length;s--;){var u=t(a[s],null),d=a[s].slot;d?i[d]=D(zn,{name:d},u):o[s]=u}var l=r?D(zn,null,o):o;return D(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Mt:se)(this._vdom,this._root)}function Wn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Po(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Wn(e)]=n,this._vdom=Ht(this._vdom,r),se(this._vdom,this._root)}}function Do(){se(this._vdom=null,this._root)}function zn(e,t){var n=this;return D("slot",Ut({},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 Mo(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=Lo,o.prototype.attributeChangedCallback=Po,o.prototype.disconnectedCallback=Do,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(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var c=typeof s;s!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}var Ho=0;function f(e,t,n,r,o,i){t||(t={});var s,c,a=t;if("ref"in a)for(c in a={},t)c=="ref"?s=t[c]:a[c]=t[c];var u={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ho,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(c in s)a[c]===void 0&&(a[c]=s[c]);return p.vnode&&p.vnode(u),u}const jn={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.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))(Ue||{}),Ft=(e=>(e.CONTROL="smile-auto-capture:control",e.INSTRUCTION_ESCALATED="smile:instruction-escalated",e.STATUS_CHANGED="smile-auto-capture:status-changed",e))(Ft||{});const Bt={...{LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING",COMPLETE:"COMPLETE"},DONE:"DONE"},Gn={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_${Gn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Gn.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"},J={...L,SMILE:"smile",SMILE_CANDIDATE_SELECTION:"smile_candidate_selection",KEEP_NEUTRAL_EXPRESSION:"keep_neutral_expression"},tt={NEUTRAL:"NEUTRAL",SMILE:"SMILE"},$e=Bt;var ae,I,Wt,Vn,ke=0,Yn=[],x=p,qn=x.__b,Zn=x.__r,Xn=x.diffed,Kn=x.__c,Qn=x.unmount,Jn=x.__;function Oe(e,t){x.__h&&x.__h(I,e,ke||t),ke=0;var n=I.__H||(I.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function M(e){return ke=1,zt(rr,e)}function zt(e,t,n){var r=Oe(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):rr(void 0,t),function(c){var a=r.__N?r.__N[0]:r.__[0],u=r.t(a,c);a!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=I,!I.__f)){var o=function(c,a,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,a,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,a,u)||l};I.__f=!0;var i=I.shouldComponentUpdate,s=I.componentWillUpdate;I.componentWillUpdate=function(c,a,u){if(this.__e){var d=i;i=void 0,o(c,a,u),i=d}s&&s.call(this,c,a,u)},I.shouldComponentUpdate=o}return r.__N||r.__}function Z(e,t){var n=Oe(ae++,3);!x.__s&&Gt(n.__H,t)&&(n.__=e,n.u=t,I.__H.__h.push(n))}function Ne(e,t){var n=Oe(ae++,4);!x.__s&&Gt(n.__H,t)&&(n.__=e,n.u=t,I.__h.push(n))}function nt(e){return ke=5,ee(function(){return{current:e}},[])}function er(e,t,n){ke=6,Ne(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 ee(e,t){var n=Oe(ae++,7);return Gt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return ke=8,ee(function(){return e},t)}function Fe(e){var t=I.context[e.__c],n=Oe(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(I)),t.props.value):e.__}function rt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function tr(){var e=Oe(ae++,11);if(!e.__){for(var t=I.__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 Uo(){for(var e;e=Yn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ot),e.__H.__h.forEach(jt),e.__H.__h=[]}catch(t){e.__H.__h=[],x.__e(t,e.__v)}}x.__b=function(e){I=null,qn&&qn(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jn&&Jn(e,t)},x.__r=function(e){Zn&&Zn(e),ae=0;var t=(I=e.__c).__H;t&&(Wt===I?(t.__h=[],I.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ot),t.__h.forEach(jt),t.__h=[],ae=0)),Wt=I},x.diffed=function(e){Xn&&Xn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yn.push(t)!==1&&Vn===x.requestAnimationFrame||((Vn=x.requestAnimationFrame)||Fo)(Uo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Wt=I=null},x.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ot),n.__h=n.__h.filter(function(r){return!r.__||jt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(r,n.__v)}}),Kn&&Kn(e,t)},x.unmount=function(e){Qn&&Qn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ot(r)}catch(o){t=o}}),n.__H=void 0,t&&x.__e(t,n.__v))};var nr=typeof requestAnimationFrame=="function";function Fo(e){var t,n=function(){clearTimeout(r),nr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);nr&&(t=requestAnimationFrame(n))}function ot(e){var t=I,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),I=t}function jt(e){var t=I;e.__c=e.__(),I=t}function Gt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function rr(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 Bo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Wo=/^((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)-.*))$/,zo=Bo(function(e){return Wo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function or(e,t){for(var n in t)e[n]=t[n];return e}function Vt(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 ir(e,t){var n=t(),r=M({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Ne(function(){o.__=n,o.u=t,Yt(o)&&i({t:o})},[e,n,t]),Z(function(){return Yt(o)&&i({t:o}),e(function(){Yt(o)&&i({t:o})})},[e]),n}function Yt(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 sr(e){e()}function ar(e){return e}function cr(){return[!1,sr]}var lr=Ne;function qt(e,t){this.props=e,this.context=t}function jo(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Vt(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}(qt.prototype=new V).isPureReactComponent=!0,qt.prototype.shouldComponentUpdate=function(e,t){return Vt(this.props,e)||Vt(this.state,t)};var ur=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ur&&ur(e)};var Go=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vo(e){function t(n){var r=or({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Go,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var fr=function(e,t){return e==null?null:Q(Q(e).map(t))},Yo={map:fr,forEach:fr,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},qo=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)}qo(e,t,n,r)};var dr=p.unmount;function hr(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=or({},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 hr(r,t,n)})),e}function _r(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return _r(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 it(){this.__u=0,this.o=null,this.__b=null}function pr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Zo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return D(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Be(){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),dr&&dr(e)},(it.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=pr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=s;var c=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=_r(a,a.__c.__P,a.__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(s,s)},it.prototype.componentWillUnmount=function(){this.o=[]},it.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]=hr(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 mr=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 Xo(e){return this.getChildContext=function(){return e.context},e.children}function Ko(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){se(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)}}}se(D(Xo,{context:t.context},e.__v),t.v)}function Qo(e,t){var n=D(Ko,{__v:e,h:t});return n.containerInfo=t,n}(Be.prototype=new V).__a=function(e){var t=this,n=pr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),mr(t,e,r)):o()};n?n(i):i()}},Be.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 n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){mr(e,n,t)})};var gr=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]/,ei=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ti=/[A-Z0-9]/g,ni=typeof document<"u",ri=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function oi(e,t,n){return t.__k==null&&(t.textContent=""),se(e,t),typeof n=="function"&&n(),e?e.__c:null}function ii(e,t,n){return Mt(e,t),typeof n=="function"&&n(),e?e.__c:null}V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var yr=p.event;function si(){}function ai(){return this.cancelBubble}function ci(){return this.defaultPrevented}p.event=function(e){return yr&&(e=yr(e)),e.persist=si,e.isPropagationStopped=ai,e.isDefaultPrevented=ci,e.nativeEvent=e};var Zt,li={enumerable:!1,configurable:!0,get:function(){return this.class}},vr=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 s in n){var c=n[s];if(!(s==="value"&&"defaultValue"in n&&c==null||ni&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&c===!0?c="":a==="translate"&&c==="no"?c=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ri(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":ei.test(s)&&(s=a):a=s="oninput":i&&Jo.test(s)?s=s.replace(ti,"-$&").toLowerCase():c===null&&(c=void 0),a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Q(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",li)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=gr,vr&&vr(e)};var Cr=p.__r;p.__r=function(e){Cr&&Cr(e),Zt=e.__c};var Sr=p.diffed;p.diffed=function(e){Sr&&Sr(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),Zt=null};var ui={ReactCurrentDispatcher:{current:{readContext:function(e){return Zt.__n[e.__c].props.value},useCallback:he,useContext:Fe,useDebugValue:rt,useDeferredValue:ar,useEffect:Z,useId:tr,useImperativeHandle:er,useInsertionEffect:lr,useLayoutEffect:Ne,useMemo:ee,useReducer:zt,useRef:nt,useState:M,useSyncExternalStore:ir,useTransition:cr}}};function fi(e){return D.bind(null,e)}function st(e){return!!e&&e.$$typeof===gr}function di(e){return st(e)&&e.type===B}function hi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _i(e){return st(e)?Ht.apply(null,arguments):e}function pi(e){return!!e.__k&&(se(null,e),!0)}function mi(e){return e&&(e.base||e.nodeType===1&&e)||null}var gi=function(e,t){return e(t)},yi=function(e,t){return e(t)},vi=B,Ci=st,te={useState:M,useId:tr,useReducer:zt,useEffect:Z,useLayoutEffect:Ne,useInsertionEffect:lr,useTransition:cr,useDeferredValue:ar,useSyncExternalStore:ir,startTransition:sr,useRef:nt,useImperativeHandle:er,useMemo:ee,useCallback:he,useContext:Fe,useDebugValue:rt,version:"18.3.1",Children:Yo,render:oi,hydrate:ii,unmountComponentAtNode:pi,createPortal:Qo,createElement:D,createContext:Bn,createFactory:fi,cloneElement:_i,createRef:Oo,Fragment:B,isValidElement:st,isElement:Ci,isFragment:di,isMemo:hi,findDOMNode:mi,Component:V,PureComponent:qt,memo:jo,forwardRef:Vo,flushSync:yi,unstable_batchedUpdates:gi,StrictMode:vi,Suspense:it,SuspenseList:Be,lazy:Zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ui};function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt,wr;function wi(){return wr||(wr=1,Xt=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 s=Object.keys(t),c=Object.keys(n);if(s.length!==c.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(n),u=0;u<s.length;u++){var d=s[u];if(!a(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}),Xt}var Ei=wi();const bi=Si(Ei);var T="-ms-",We="-moz-",O="-webkit-",Er="comm",at="rule",Kt="decl",$i="@import",br="@keyframes",ki="@layer",$r=Math.abs,Qt=String.fromCharCode,Jt=Object.assign;function Oi(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function kr(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function ct(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function X(e){return e.length}function Or(e){return e.length}function ze(e,t){return t.push(e),e}function Ni(e,t){return e.map(t).join("")}function Nr(e,t){return e.filter(function(n){return!ne(n,t)})}var lt=1,Te=1,Ir=0,W=0,A=0,xe="";function ut(e,t,n,r,o,i,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lt,column:Te,length:s,return:"",siblings:c}}function ce(e,t){return Jt(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ae(e){for(;e.root;)e=ce(e.root,{children:[e]});ze(e,e.siblings)}function Ii(){return A}function Ti(){return A=W>0?R(xe,--W):0,Te--,A===10&&(Te=1,lt--),A}function Y(){return A=W<Ir?R(xe,W++):0,Te++,A===10&&(Te=1,lt++),A}function pe(){return R(xe,W)}function ft(){return W}function dt(e,t){return Ie(xe,e,t)}function en(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 xi(e){return lt=Te=1,Ir=X(xe=e),W=0,[]}function Ai(e){return xe="",e}function tn(e){return kr(dt(W-1,nn(e===91?e+2:e===40?e+1:e)))}function Ri(e){for(;(A=pe())&&A<33;)Y();return en(e)>2||en(A)>3?"":" "}function Li(e,t){for(;--t&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return dt(e,ft()+(t<6&&pe()==32&&Y()==32))}function nn(e){for(;Y();)switch(A){case e:return W;case 34:case 39:e!==34&&e!==39&&nn(A);break;case 40:e===41&&nn(e);break;case 92:Y();break}return W}function Pi(e,t){for(;Y()&&e+A!==57;)if(e+A===84&&pe()===47)break;return"/*"+dt(t,W-1)+"*"+Qt(e===47?e:Y())}function Di(e){for(;!en(pe());)Y();return dt(e,W)}function Mi(e){return Ai(ht("",null,null,null,[""],e=xi(e),0,[0],e))}function ht(e,t,n,r,o,i,s,c,a){for(var u=0,d=0,l=s,_=0,h=0,y=0,E=1,$=1,g=1,m=0,k="",b=o,N=i,S=r,v=k;$;)switch(y=m,m=Y()){case 40:if(y!=108&&R(v,l-1)==58){ct(v+=C(tn(m),"&","&\f"),"&\f",$r(u?c[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:v+=tn(m);break;case 9:case 10:case 13:case 32:v+=Ri(y);break;case 92:v+=Li(ft()-1,7);continue;case 47:switch(pe()){case 42:case 47:ze(Hi(Pi(Y(),ft()),t,n,a),a);break;default:v+="/"}break;case 123*E:c[u++]=X(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&&X(v)-l&&ze(h>32?xr(v+";",r,n,l-1,a):xr(C(v," ","")+";",r,n,l-2,a),a);break;case 59:v+=";";default:if(ze(S=Tr(v,t,n,u,d,o,c,k,b=[],N=[],l,i),i),m===123)if(d===0)ht(v,t,S,S,b,i,l,c,N);else switch(_===99&&R(v,3)===110?100:_){case 100:case 108:case 109:case 115:ht(e,S,S,r&&ze(Tr(e,S,S,0,0,o,c,k,o,b=[],l,N),N),o,N,l,c,r?b:N);break;default:ht(v,S,S,S,[""],N,0,c,N)}}u=d=h=0,E=g=1,k=v="",l=s;break;case 58:l=1+X(v),h=y;default:if(E<1){if(m==123)--E;else if(m==125&&E++==0&&Ti()==125)continue}switch(v+=Qt(m),m*E){case 38:g=d>0?1:(v+="\f",-1);break;case 44:c[u++]=(X(v)-1)*g,g=1;break;case 64:pe()===45&&(v+=tn(Y())),_=pe(),d=l=X(k=v+=Di(ft())),m++;break;case 45:y===45&&X(v)==2&&(E=0)}}return i}function Tr(e,t,n,r,o,i,s,c,a,u,d,l){for(var _=o-1,h=o===0?i:[""],y=Or(h),E=0,$=0,g=0;E<r;++E)for(var m=0,k=Ie(e,_+1,_=$r($=s[E])),b=e;m<y;++m)(b=kr($>0?h[m]+" "+k:C(k,/&\f/g,h[m])))&&(a[g++]=b);return ut(e,t,n,o===0?at:c,a,u,d,l)}function Hi(e,t,n,r){return ut(e,t,n,Er,Qt(Ii()),Ie(e,2,-2),0,r)}function xr(e,t,n,r,o){return ut(e,t,n,Kt,Ie(e,0,r),Ie(e,r+1,-1),r,o)}function Ar(e,t,n){switch(Oi(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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+We+e+T+e+e;case 5936:switch(R(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,"")+(ne(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(!ne(e,/flex-|baseline/))return T+"grid-column-align"+Ie(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,ne(r.props,/grid-\w+-end/)})?~ct(e+(n=n[t].value),"span",0)?e:T+C(e,"-start","")+e+T+"grid-row-span:"+(~ct(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":T+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(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(X(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+We+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?Ar(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,s,c,a,u){return T+o+":"+i+u+(s?T+o+"-span:"+(c?a:+a-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return C(e,":",":"+O)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(R(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 _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ui(e,t,n,r){switch(e.type){case ki:if(e.children.length)break;case $i:case Kt:return e.return=e.return||e.value;case Er:return"";case br:return e.return=e.value+"{"+_t(e.children,r)+"}";case at:if(!X(e.value=e.props.join(",")))return""}return X(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fi(e){var t=Or(e);return function(n,r,o,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,i)||"";return s}}function Bi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=Ar(e.value,e.length,n);return;case br:return _t([ce(e,{value:C(e.value,"@","@"+O)})],r);case at:if(e.length)return Ni(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ae(ce(e,{props:[C(o,/:(read-\w+)/,":"+We+"$1")]})),Ae(ce(e,{props:[o]})),Jt(e,{props:Nr(n,r)});break;case"::placeholder":Ae(ce(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),Ae(ce(e,{props:[C(o,/:(plac\w+)/,":"+We+"$1")]})),Ae(ce(e,{props:[C(o,/:(plac\w+)/,T+"input-$1")]})),Ae(ce(e,{props:[o]})),Jt(e,{props:Nr(n,r)});break}return""})}}var zi={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},w={},me=typeof process<"u"&&w!==void 0&&(w.REACT_APP_SC_ATTR||w.SC_ATTR)||"data-styled",Rr="active",Lr="data-styled-version",pt="6.1.18",rn=`/*!sc*/
|
|
2
|
-
`,
|
|
1
|
+
(function(ie){typeof define=="function"&&define.amd?define(ie):ie()})(function(){"use strict";var ie,S,Sn,de,En,wn,bn,$n,Nt,It,Ot,kn,De={},Nn=[],Co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function q(e,t){for(var n in t)e[n]=t[n];return e}function Tt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ie.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]==null&&(s[i]=e.defaultProps[i]);return He(e,s,r,o,null)}function He(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??++Sn,__i:-1,__u:0};return o==null&&S.vnode!=null&&S.vnode(i),i}function So(){return{current:null}}function B(e){return e.children}function V(e,t){this.props=e,this.context=t}function we(e,t){if(t==null)return e.__?we(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"?we(e):null}function In(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 In(e)}}function xt(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Qe.__r++||En!=S.debounceRendering)&&((En=S.debounceRendering)||wn)(Qe)}function Qe(){for(var e,t,n,r,o,i,s,a=1;de.length;)de.length>a&&de.sort(bn),e=de.shift(),a=de.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=q({},r)).__v=r.__v+1,S.vnode&&S.vnode(n),At(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??we(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Rn(i,n,s),n.__e!=o&&In(n)));Qe.__r=0}function On(e,t,n,r,o,i,s,a,l,u,d){var c,h,_,v,g,y,m=r&&r.__k||Nn,p=t.length;for(l=Eo(n,t,m,l,p),c=0;c<p;c++)(_=n.__k[c])!=null&&(h=_.__i==-1?De:m[_.__i]||De,_.__i=c,y=At(e,_,h,o,i,s,a,l,u,d),v=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&Rt(h.ref,null,_),d.push(_.ref,_.__c||v,_)),g==null&&v!=null&&(g=v),4&_.__u||h.__k===_.__k?l=Tn(_,l,e):typeof _.type=="function"&&y!==void 0?l=y:v&&(l=v.nextSibling),_.__u&=-7);return n.__e=g,l}function Eo(e,t,n,r,o){var i,s,a,l,u,d=n.length,c=d,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+h,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?He(null,s,null,null,null):Me(s)?He(B,{children:s},null,null,null):s.constructor==null&&s.__b>0?He(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=wo(s,n,l,c))!=-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(o>d?h--:o<d&&h++),typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<d;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=we(a)),Ln(a,a));return r}function Tn(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=Tn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=we(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"||(Me(e)?e.some(function(n){J(n,t)}):t.push(e)),t}function wo(e,t,n,r){var o,i,s=e.key,a=e.type,l=t[n];if(l===null&&e.key==null||l&&s==l.key&&a==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&s==l.key&&a==l.type)return o;o--}if(i<t.length){if((l=t[i])&&(2&l.__u)==0&&s==l.key&&a==l.type)return i;i++}}return-1}function xn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Co.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||xn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||xn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace($n,"$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?Ot:It,i)):e.removeEventListener(t,i?Ot:It,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 An(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(S.event?S.event(t):t)}}}function At(e,t,n,r,o,i,s,a,l,u){var d,c,h,_,v,g,y,m,p,k,$,I,w,C,F,j,qe,z=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=S.__b)&&d(t);e:if(typeof z=="function")try{if(m=t.props,p="prototype"in z&&z.prototype.render,k=(d=z.contextType)&&r[d.__c],$=d?k?k.props.value:d.__:r,n.__c?y=(c=t.__c=n.__c).__=c.__E:(p?t.__c=c=new z(m,$):(t.__c=c=new V(m,$),c.constructor=z,c.render=$o),k&&k.sub(c),c.props=m,c.state||(c.state={}),c.context=$,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),p&&c.__s==null&&(c.__s=c.state),p&&z.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=q({},c.__s)),q(c.__s,z.getDerivedStateFromProps(m,c.__s))),_=c.props,v=c.state,c.__v=t,h)p&&z.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),p&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(p&&z.getDerivedStateFromProps==null&&m!==_&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,$),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,$)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Se){Se&&(Se.__=t)}),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,$),p&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(_,v,g)})}if(c.context=$,c.props=m,c.__P=e,c.__e=!1,w=S.__r,C=0,p){for(c.state=c.__s,c.__d=!1,w&&w(t),d=c.render(c.props,c.state,c.context),F=0;F<c._sb.length;F++)c.__h.push(c._sb[F]);c._sb=[]}else do c.__d=!1,w&&w(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++C<25);c.state=c.__s,c.getChildContext!=null&&(r=q(q({},r),c.getChildContext())),p&&!h&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(_,v)),j=d,d!=null&&d.type===B&&d.key==null&&(j=Pn(d.props.children)),a=On(e,Me(j)?j:[j],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),y&&(c.__E=c.__=null)}catch(Se){if(t.__v=null,l||i!=null)if(Se.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(qe=i.length;qe--;)Tt(i[qe]);else t.__e=n.__e,t.__k=n.__k;S.__e(Se,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=bo(n.__e,t,n,r,o,i,s,l,u);return(d=S.diffed)&&d(t),128&t.__u?void 0:a}function Rn(e,t,n){for(var r=0;r<n.length;r++)Rt(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){S.__e(i,o.__v)}})}function Pn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(Pn):q({},e)}function bo(e,t,n,r,o,i,s,a,l){var u,d,c,h,_,v,g,y=n.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),a&&(S.__m&&S.__m(t,i),a=!1),i=null}if(p==null)y===m||a&&e.data==m||(e.data=m);else{if(i=i&&ie.call(e.childNodes),y=n.props||De,!a&&i!=null)for(y={},u=0;u<e.attributes.length;u++)y[(_=e.attributes[u]).name]=_.value;for(u in y)if(_=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=_;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Je(e,u,null,_,o)}}for(u in m)_=m[u],u=="children"?h=_:u=="dangerouslySetInnerHTML"?d=_:u=="value"?v=_:u=="checked"?g=_:a&&typeof _!="function"||y[u]===_||Je(e,u,_,y[u],o);if(d)a||c&&(d.__html==c.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),On(t.type=="template"?e.content:e,Me(h)?h:[h],t,n,r,p=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&we(n,0),a,l),i!=null)for(u=i.length;u--;)Tt(i[u]);a||(u="value",p=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[u]||p=="progress"&&!v||p=="option"&&v!=y[u])&&Je(e,u,v,y[u],o),u="checked",g!=null&&g!=e[u]&&Je(e,u,g,y[u],o))}return e}function Rt(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){S.__e(o,n)}}function Ln(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Rt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){S.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ln(r[o],t,n||typeof e.type!="function");n||Tt(e.__e),e.__c=e.__=e.__e=void 0}function $o(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],At(t,e=(!r&&n||t).__k=L(B,null,[e]),o||De,De,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ie.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Rn(i,e,s)}function Pt(e,t){se(e,t,Pt)}function Lt(e,t,n){var r,o,i,s,a=q({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]==null&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?ie.call(arguments,2):n),He(e.type,a,r||e.key,o||e.ref,null)}function Dn(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(s){s.__e=!0,xt(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+kn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}ie=Nn.slice,S={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Sn=0,V.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},n),this.props)),e&&q(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),xt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xt(this))},V.prototype.render=B,de=[],wn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,bn=function(e,t){return e.__v.__b-t.__v.__b},Qe.__r=0,$n=/(PointerCapture)$|Capture$/i,Nt=0,It=An(!1),Ot=An(!0),kn=0;function Dt(){return(Dt=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 ko=["context","children"];function No(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,ko);return Lt(t,n)}function Io(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(No,Dt({},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={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Mn(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),d=l[s].slot;d?i[d]=L(Hn,{name:d},u):o[s]=u}var c=r?L(Hn,null,o):o;return L(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pt:se)(this._vdom,this._root)}function Mn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Oo(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Mn(e)]=n,this._vdom=Lt(this._vdom,r),se(this._vdom,this._root)}}function To(){se(this._vdom=null,this._root)}function Hn(e,t){var n=this;return L("slot",Dt({},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 xo(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=Io,o.prototype.attributeChangedCallback=Oo,o.prototype.disconnectedCallback=To,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(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}var Ao=0;function f(e,t,n,r,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ao,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return S.vnode&&S.vnode(u),u}const Un={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"},Ue={CAMERA_PROPS_CHANGED:"smile-auto-capture:camera-props-changed",CONTROL:"smile-auto-capture:control",INSTRUCTION_CHANGED:"smile-auto-capture:instruction-changed",INSTRUCTION_ESCALATED:"smile-auto-capture:instruction-escalated",VIDEO_ELEMENT_SIZE:"smile-auto-capture:video-element-size",STATE_CHANGED:"smile-auto-capture:state-changed",PHASE_CHANGED:"smile-auto-capture:phase-changed"},H={LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete"},Fn={EYE_NOT_PRESENT:"eye_not_present"},M={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_${Fn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Fn.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"},Z={CANDIDATE_SELECTION:"candidate_selection",FACE_NOT_PRESENT:"face_not_present",SMILE:"smile",SMILE_CANDIDATE_SELECTION:"smile_candidate_selection",KEEP_NEUTRAL_EXPRESSION:"keep_neutral_expression"},et={NEUTRAL:"NEUTRAL",SMILE:"SMILE"};var ae,O,Mt,Bn,be=0,Wn=[],x=S,jn=x.__b,zn=x.__r,Gn=x.diffed,Vn=x.__c,Yn=x.unmount,qn=x.__;function $e(e,t){x.__h&&x.__h(O,e,be||t),be=0;var n=O.__H||(O.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function D(e){return be=1,Ht(Qn,e)}function Ht(e,t,n){var r=$e(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qn(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=O,!O.__f)){var o=function(a,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return d.forEach(function(h){if(h.__N){var _=h.__[0];h.__=h.__N,h.__N=void 0,_!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};O.__f=!0;var i=O.shouldComponentUpdate,s=O.componentWillUpdate;O.componentWillUpdate=function(a,l,u){if(this.__e){var d=i;i=void 0,o(a,l,u),i=d}s&&s.call(this,a,l,u)},O.shouldComponentUpdate=o}return r.__N||r.__}function X(e,t){var n=$e(ae++,3);!x.__s&&Ft(n.__H,t)&&(n.__=e,n.u=t,O.__H.__h.push(n))}function ke(e,t){var n=$e(ae++,4);!x.__s&&Ft(n.__H,t)&&(n.__=e,n.u=t,O.__h.push(n))}function tt(e){return be=5,ee(function(){return{current:e}},[])}function Zn(e,t,n){be=6,ke(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 ee(e,t){var n=$e(ae++,7);return Ft(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ce(e,t){return be=8,ee(function(){return e},t)}function Fe(e){var t=O.context[e.__c],n=$e(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(O)),t.props.value):e.__}function nt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function Xn(){var e=$e(ae++,11);if(!e.__){for(var t=O.__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 Ro(){for(var e;e=Wn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rt),e.__H.__h.forEach(Ut),e.__H.__h=[]}catch(t){e.__H.__h=[],x.__e(t,e.__v)}}x.__b=function(e){O=null,jn&&jn(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qn&&qn(e,t)},x.__r=function(e){zn&&zn(e),ae=0;var t=(O=e.__c).__H;t&&(Mt===O?(t.__h=[],O.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(rt),t.__h.forEach(Ut),t.__h=[],ae=0)),Mt=O},x.diffed=function(e){Gn&&Gn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Wn.push(t)!==1&&Bn===x.requestAnimationFrame||((Bn=x.requestAnimationFrame)||Po)(Ro)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Mt=O=null},x.__c=function(e,t){t.some(function(n){try{n.__h.forEach(rt),n.__h=n.__h.filter(function(r){return!r.__||Ut(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(r,n.__v)}}),Vn&&Vn(e,t)},x.unmount=function(e){Yn&&Yn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{rt(r)}catch(o){t=o}}),n.__H=void 0,t&&x.__e(t,n.__v))};var Kn=typeof requestAnimationFrame=="function";function Po(e){var t,n=function(){clearTimeout(r),Kn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Kn&&(t=requestAnimationFrame(n))}function rt(e){var t=O,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),O=t}function Ut(e){var t=O;e.__c=e.__(),O=t}function Ft(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Qn(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 Lo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Do=/^((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)-.*))$/,Mo=Lo(function(e){return Do.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jn(e,t){for(var n in t)e[n]=t[n];return e}function Bt(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 er(e,t){var n=t(),r=D({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ke(function(){o.__=n,o.u=t,Wt(o)&&i({t:o})},[e,n,t]),X(function(){return Wt(o)&&i({t:o}),e(function(){Wt(o)&&i({t:o})})},[e]),n}function Wt(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 tr(e){e()}function nr(e){return e}function rr(){return[!1,tr]}var or=ke;function jt(e,t){this.props=e,this.context=t}function Ho(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Bt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,L(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(jt.prototype=new V).isPureReactComponent=!0,jt.prototype.shouldComponentUpdate=function(e,t){return Bt(this.props,e)||Bt(this.state,t)};var ir=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ir&&ir(e)};var Uo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Fo(e){function t(n){var r=Jn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Uo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var sr=function(e,t){return e==null?null:J(J(e).map(t))},Bo={map:sr,forEach:sr,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},Wo=S.__e;S.__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)}Wo(e,t,n,r)};var ar=S.unmount;function cr(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=Jn({},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 cr(r,t,n)})),e}function lr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return lr(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 ot(){this.__u=0,this.o=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function jo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return L(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Be(){this.i=null,this.l=null}S.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ar&&ar(e)},(ot.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ur(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=lr(l,l.__c.__P,l.__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(s,s)},ot.prototype.componentWillUnmount=function(){this.o=[]},ot.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]=cr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&L(B,null,e.fallback);return o&&(o.__u&=-33),[L(B,null,t.__a?null:e.children),o]};var fr=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 zo(e){return this.getChildContext=function(){return e.context},e.children}function Go(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){se(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)}}}se(L(zo,{context:t.context},e.__v),t.v)}function Vo(e,t){var n=L(Go,{__v:e,h:t});return n.containerInfo=t,n}(Be.prototype=new V).__a=function(e){var t=this,n=ur(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),fr(t,e,r)):o()};n?n(i):i()}},Be.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},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){fr(e,n,t)})};var dr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yo=/^(?: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]/,qo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zo=/[A-Z0-9]/g,Xo=typeof document<"u",Ko=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Qo(e,t,n){return t.__k==null&&(t.textContent=""),se(e,t),typeof n=="function"&&n(),e?e.__c:null}function Jo(e,t,n){return Pt(e,t),typeof n=="function"&&n(),e?e.__c:null}V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _r=S.event;function ei(){}function ti(){return this.cancelBubble}function ni(){return this.defaultPrevented}S.event=function(e){return _r&&(e=_r(e)),e.persist=ei,e.isPropagationStopped=ti,e.isDefaultPrevented=ni,e.nativeEvent=e};var zt,ri={enumerable:!1,configurable:!0,get:function(){return this.class}},hr=S.vnode;S.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Xo&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ko(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":qo.test(s)&&(s=l):l=s="oninput":i&&Yo.test(s)?s=s.replace(Zo,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}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",ri)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=dr,hr&&hr(e)};var pr=S.__r;S.__r=function(e){pr&&pr(e),zt=e.__c};var mr=S.diffed;S.diffed=function(e){mr&&mr(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),zt=null};var oi={ReactCurrentDispatcher:{current:{readContext:function(e){return zt.__n[e.__c].props.value},useCallback:ce,useContext:Fe,useDebugValue:nt,useDeferredValue:nr,useEffect:X,useId:Xn,useImperativeHandle:Zn,useInsertionEffect:or,useLayoutEffect:ke,useMemo:ee,useReducer:Ht,useRef:tt,useState:D,useSyncExternalStore:er,useTransition:rr}}};function ii(e){return L.bind(null,e)}function it(e){return!!e&&e.$$typeof===dr}function si(e){return it(e)&&e.type===B}function ai(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ci(e){return it(e)?Lt.apply(null,arguments):e}function li(e){return!!e.__k&&(se(null,e),!0)}function ui(e){return e&&(e.base||e.nodeType===1&&e)||null}var fi=function(e,t){return e(t)},di=function(e,t){return e(t)},_i=B,hi=it,te={useState:D,useId:Xn,useReducer:Ht,useEffect:X,useLayoutEffect:ke,useInsertionEffect:or,useTransition:rr,useDeferredValue:nr,useSyncExternalStore:er,startTransition:tr,useRef:tt,useImperativeHandle:Zn,useMemo:ee,useCallback:ce,useContext:Fe,useDebugValue:nt,version:"18.3.1",Children:Bo,render:Qo,hydrate:Jo,unmountComponentAtNode:li,createPortal:Vo,createElement:L,createContext:Dn,createFactory:ii,cloneElement:ci,createRef:So,Fragment:B,isValidElement:it,isElement:hi,isFragment:si,isMemo:ai,findDOMNode:ui,Component:V,PureComponent:jt,memo:Ho,forwardRef:Fo,flushSync:di,unstable_batchedUpdates:fi,StrictMode:_i,Suspense:ot,SuspenseList:Be,lazy:jo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oi};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt,gr;function mi(){return gr||(gr=1,Gt=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 s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<s.length;u++){var d=s[u];if(!l(d))return!1;var c=t[d],h=n[d];if(i=r?r.call(o,c,h,d):void 0,i===!1||i===void 0&&c!==h)return!1}return!0}),Gt}var gi=mi();const yi=pi(gi);var T="-ms-",We="-moz-",N="-webkit-",yr="comm",st="rule",Vt="decl",vi="@import",vr="@keyframes",Ci="@layer",Cr=Math.abs,Yt=String.fromCharCode,qt=Object.assign;function Si(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function Sr(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function at(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function K(e){return e.length}function Er(e){return e.length}function je(e,t){return t.push(e),e}function Ei(e,t){return e.map(t).join("")}function wr(e,t){return e.filter(function(n){return!ne(n,t)})}var ct=1,Ie=1,br=0,W=0,A=0,Oe="";function lt(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ct,column:Ie,length:s,return:"",siblings:a}}function le(e,t){return qt(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=le(e.root,{children:[e]});je(e,e.siblings)}function wi(){return A}function bi(){return A=W>0?R(Oe,--W):0,Ie--,A===10&&(Ie=1,ct--),A}function Y(){return A=W<br?R(Oe,W++):0,Ie++,A===10&&(Ie=1,ct++),A}function he(){return R(Oe,W)}function ut(){return W}function ft(e,t){return Ne(Oe,e,t)}function Zt(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 $i(e){return ct=Ie=1,br=K(Oe=e),W=0,[]}function ki(e){return Oe="",e}function Xt(e){return Sr(ft(W-1,Kt(e===91?e+2:e===40?e+1:e)))}function Ni(e){for(;(A=he())&&A<33;)Y();return Zt(e)>2||Zt(A)>3?"":" "}function Ii(e,t){for(;--t&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return ft(e,ut()+(t<6&&he()==32&&Y()==32))}function Kt(e){for(;Y();)switch(A){case e:return W;case 34:case 39:e!==34&&e!==39&&Kt(A);break;case 40:e===41&&Kt(e);break;case 92:Y();break}return W}function Oi(e,t){for(;Y()&&e+A!==57;)if(e+A===84&&he()===47)break;return"/*"+ft(t,W-1)+"*"+Yt(e===47?e:Y())}function Ti(e){for(;!Zt(he());)Y();return ft(e,W)}function xi(e){return ki(dt("",null,null,null,[""],e=$i(e),0,[0],e))}function dt(e,t,n,r,o,i,s,a,l){for(var u=0,d=0,c=s,h=0,_=0,v=0,g=1,y=1,m=1,p=0,k="",$=o,I=i,w=r,C=k;y;)switch(v=p,p=Y()){case 40:if(v!=108&&R(C,c-1)==58){at(C+=E(Xt(p),"&","&\f"),"&\f",Cr(u?a[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Xt(p);break;case 9:case 10:case 13:case 32:C+=Ni(v);break;case 92:C+=Ii(ut()-1,7);continue;case 47:switch(he()){case 42:case 47:je(Ai(Oi(Y(),ut()),t,n,l),l);break;default:C+="/"}break;case 123*g:a[u++]=K(C)*m;case 125*g:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+d:m==-1&&(C=E(C,/\f/g,"")),_>0&&K(C)-c&&je(_>32?kr(C+";",r,n,c-1,l):kr(E(C," ","")+";",r,n,c-2,l),l);break;case 59:C+=";";default:if(je(w=$r(C,t,n,u,d,o,a,k,$=[],I=[],c,i),i),p===123)if(d===0)dt(C,t,w,w,$,i,c,a,I);else switch(h===99&&R(C,3)===110?100:h){case 100:case 108:case 109:case 115:dt(e,w,w,r&&je($r(e,w,w,0,0,o,a,k,o,$=[],c,I),I),o,I,c,a,r?$:I);break;default:dt(C,w,w,w,[""],I,0,a,I)}}u=d=_=0,g=m=1,k=C="",c=s;break;case 58:c=1+K(C),_=v;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&bi()==125)continue}switch(C+=Yt(p),p*g){case 38:m=d>0?1:(C+="\f",-1);break;case 44:a[u++]=(K(C)-1)*m,m=1;break;case 64:he()===45&&(C+=Xt(Y())),h=he(),d=c=K(k=C+=Ti(ut())),p++;break;case 45:v===45&&K(C)==2&&(g=0)}}return i}function $r(e,t,n,r,o,i,s,a,l,u,d,c){for(var h=o-1,_=o===0?i:[""],v=Er(_),g=0,y=0,m=0;g<r;++g)for(var p=0,k=Ne(e,h+1,h=Cr(y=s[g])),$=e;p<v;++p)($=Sr(y>0?_[p]+" "+k:E(k,/&\f/g,_[p])))&&(l[m++]=$);return lt(e,t,n,o===0?st:a,l,u,d,c)}function Ai(e,t,n,r){return lt(e,t,n,yr,Yt(wi()),Ne(e,2,-2),0,r)}function kr(e,t,n,r,o){return lt(e,t,n,Vt,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function Nr(e,t,n){switch(Si(e,t)){case 5103:return N+"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 N+e+e;case 4789:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+We+e+T+e+e;case 5936:switch(R(e,t+11)){case 114:return N+e+T+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+T+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+T+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return N+e+T+e+e;case 6165:return N+e+T+"flex-"+e+e;case 5187:return N+e+E(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return N+e+T+"flex-item-"+E(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":T+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return N+e+T+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return N+e+T+E(e,"shrink","negative")+e;case 5292:return N+e+T+E(e,"basis","preferred-size")+e;case 6060:return N+"box-"+E(e,"-grow","")+N+e+T+E(e,"grow","positive")+e;case 4554:return N+E(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4200:if(!ne(e,/flex-|baseline/))return T+"grid-column-align"+Ne(e,t)+e;break;case 2592:case 3360:return T+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~at(e+(n=n[t].value),"span",0)?e:T+E(e,"-start","")+e+T+"grid-row-span:"+(~at(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":T+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:T+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,N+"$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(K(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+We+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at(e,"stretch",0)?Nr(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,u){return T+o+":"+i+u+(s?T+o+"-span:"+(a?l:+l-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return E(e,":",":"+N)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+N+(R(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+T+"$2box$3")+e;case 100:return E(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ri(e,t,n,r){switch(e.type){case Ci:if(e.children.length)break;case vi:case Vt:return e.return=e.return||e.value;case yr:return"";case vr:return e.return=e.value+"{"+_t(e.children,r)+"}";case st:if(!K(e.value=e.props.join(",")))return""}return K(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pi(e){var t=Er(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Li(e){return function(t){t.root||(t=t.return)&&e(t)}}function Di(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Vt:e.return=Nr(e.value,e.length,n);return;case vr:return _t([le(e,{value:E(e.value,"@","@"+N)})],r);case st:if(e.length)return Ei(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(le(e,{props:[E(o,/:(read-\w+)/,":"+We+"$1")]})),Te(le(e,{props:[o]})),qt(e,{props:wr(n,r)});break;case"::placeholder":Te(le(e,{props:[E(o,/:(plac\w+)/,":"+N+"input-$1")]})),Te(le(e,{props:[E(o,/:(plac\w+)/,":"+We+"$1")]})),Te(le(e,{props:[E(o,/:(plac\w+)/,T+"input-$1")]})),Te(le(e,{props:[o]})),qt(e,{props:wr(n,r)});break}return""})}}var Mi={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},b={},pe=typeof process<"u"&&b!==void 0&&(b.REACT_APP_SC_ATTR||b.SC_ATTR)||"data-styled",Ir="active",Or="data-styled-version",ht="6.1.18",Qt=`/*!sc*/
|
|
2
|
+
`,pt=typeof window<"u"&&typeof document<"u",Hi=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==""?b.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&b.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.SC_DISABLE_SPEEDY!==void 0&&b.SC_DISABLE_SPEEDY!==""?b.SC_DISABLE_SPEEDY!=="false"&&b.SC_DISABLE_SPEEDY:b.NODE_ENV!=="production"),Tr=/invalid hook call/i,mt=new Set,Ui=function(e,t){if(b.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` 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(s){for(var
|
|
6
|
+
`,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];Tr.test(s)?(i=!1,mt.delete(r)):o.apply(void 0,_e([s],a,!1))},tt(),i&&!mt.has(r)&&(console.warn(r),mt.add(r))}catch(s){Tr.test(s.message)&&mt.delete(r)}finally{console.error=o}}},gt=Object.freeze([]),xe=Object.freeze({});function Fi(e,t,n){return n===void 0&&(n=xe),e.theme!==n.theme&&e.theme||t||n.theme}var Jt=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"]),Bi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Wi=/(^-|-$)/g;function xr(e){return e.replace(Bi,"-").replace(Wi,"")}var ji=/(a)(d)/gi,yt=52,Ar=function(e){return String.fromCharCode(e+(e>25?39:97))};function en(e){var t,n="";for(t=Math.abs(e);t>yt;t=t/yt|0)n=Ar(t%yt)+n;return(Ar(t%yt)+n).replace(ji,"$1-$2")}var tn,Rr=5381,me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pr=function(e){return me(Rr,e)};function Lr(e){return en(Pr(e)>>>0)}function Dr(e){return b.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function nn(e){return typeof e=="string"&&(b.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Mr=typeof Symbol=="function"&&Symbol.for,Hr=Mr?Symbol.for("react.memo"):60115,zi=Mr?Symbol.for("react.forward_ref"):60112,Gi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ur={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yi=((tn={})[zi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tn[Hr]=Ur,tn);function Fr(e){return("type"in(t=e)&&t.type.$$typeof)===Hr?Ur:"$$typeof"in e?Yi[e.$$typeof]:Gi;var t}var qi=Object.defineProperty,Zi=Object.getOwnPropertyNames,Br=Object.getOwnPropertySymbols,Xi=Object.getOwnPropertyDescriptor,Ki=Object.getPrototypeOf,Wr=Object.prototype;function jr(e,t,n){if(typeof t!="string"){if(Wr){var r=Ki(t);r&&r!==Wr&&jr(e,r,n)}var o=Zi(t);Br&&(o=o.concat(Br(t)));for(var i=Fr(e),s=Fr(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Vi||n&&n[l]||s&&l in s||i&&l in i)){var u=Xi(t,l);try{qi(e,l,u)}catch{}}}}return e}function ge(e){return typeof e=="function"}function rn(e){return typeof e=="object"&&"styledComponentId"in e}function ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function on(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ae(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function sn(e,t,n){if(n===void 0&&(n=!1),!n&&!Ae(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=sn(e[r],t[r]);else if(Ae(t))for(var r in t)e[r]=sn(e[r],t[r]);return e}function an(e,t){Object.defineProperty(e,"toString",{value:t})}var Qi=b.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 is(){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(s){n=n.replace(/%[a-z]/,s)}),n}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w.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(is.apply(void 0,_e([os[e]],t,!1)).trim())}var ss=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 s=o;s<i;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(t+1),a=(s=0,n.length);s<a;s++)this.tag.insertRule(c,n[s])&&(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,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(rn);return n},e}(),as=1<<30,Ct=new Map,St=new Map,wt=1,Et=function(e){if(Ct.has(e))return Ct.get(e);for(;St.has(wt);)wt++;var t=wt++;if(w.NODE_ENV!=="production"&&((0|t)<0||t>as))throw K(16,"".concat(t));return Ct.set(e,t),St.set(t,e),t},cs=function(e,t){wt=t+1,Ct.set(e,t),St.set(t,e)},ls="style[".concat(me,"][").concat(Lr,'="').concat(pt,'"]'),us=new RegExp("^".concat(me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fs=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},ds=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(rn),o=[],i=0,s=r.length;i<s;i++){var c=r[i].trim();if(c){var a=c.match(us);if(a){var u=0|parseInt(a[1],10),d=a[2];u!==0&&(cs(d,u),fs(e,d,a[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Zr=function(e){for(var t=document.querySelectorAll(ls),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(me)!==Rr&&(ds(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function hs(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var a=Array.from(c.querySelectorAll("style[".concat(me,"]")));return a[a.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(me,Rr),r.setAttribute(Lr,pt);var s=hs();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},_s=function(){function e(t){this.element=Xr(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 s=r[o];if(s.ownerNode===n)return s}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}(),ps=function(){function e(t){this.element=Xr(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}(),ms=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}(),Kr=mt,gs={isServer:!mt,useCSSOMInjection:!ji},Qr=function(){function e(t,n,r){t===void 0&&(t=Re),n===void 0&&(n={});var o=this;this.options=P(P({},gs),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&mt&&Kr&&(Kr=!1,Zr(this)),dn(this,function(){return function(i){for(var s=i.getTag(),c=s.length,a="",u=function(l){var _=function(g){return St.get(g)}(l);if(_===void 0)return"continue";var h=i.names.get(_),y=s.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,","))}),a+="".concat(y).concat(E,'{content:"').concat($,'"}').concat(rn)},d=0;d<c;d++)u(d);return a}(o)})}return e.registerId=function(t){return Et(t)},e.prototype.rehydrate=function(){!this.server&&mt&&Zr(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 ms(o):r?new _s(o):new ps(o)}(this.options),new ss(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(Et(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(Et(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Et(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ys=/&/g,vs=/^\s*\/\/.*$/gm;function Jr(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=Jr(n.children,t)),n})}function eo(e){var t,n,r,o=e===void 0?Re:e,i=o.options,s=i===void 0?Re:i,c=o.plugins,a=c===void 0?yt:c,u=function(_,h,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):_},d=a.slice();d.push(function(_){_.type===at&&_.value.includes("&")&&(_.props[0]=_.props[0].replace(ys,n).replace(r,u))}),s.prefix&&d.push(Wi),d.push(Ui);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(vs,""),g=Mi(y||h?"".concat(y," ").concat(h," { ").concat($," }"):$);s.namespace&&(g=Jr(g,s.namespace));var m=[];return _t(g,Fi(d.concat(Bi(function(k){return m.push(k)})))),m};return l.hash=a.length?a.reduce(function(_,h){return h.name||K(15),ge(_,h.name)},Hr).toString():"",l}var Cs=new Qr,hn=eo(),_n=te.createContext({shouldForwardProp:void 0,styleSheet:Cs,stylis:hn});_n.Consumer;var Ss=te.createContext(void 0);function pn(){return Fe(_n)}function ws(e){var t=M(e.stylisPlugins),n=t[0],r=t[1],o=pn().styleSheet,i=ee(function(){var a=o;return e.sheet?a=e.sheet:e.target&&(a=a.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(a=a.reconstructWithOptions({useCSSOMInjection:!1})),a},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=ee(function(){return eo({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);Z(function(){bi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=ee(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return te.createElement(_n.Provider,{value:c},te.createElement(Ss.Provider,{value:s},e.children))}var mn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=hn);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,dn(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hn),this.name+t.hash},e}(),Es=function(e){return e>="A"&&e<="Z"};function to(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Es(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var no=function(e){return e==null||e===!1||e===""},ro=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!no(i)&&(Array.isArray(i)&&i.isCss||ye(i)?r.push("".concat(to(o),":"),i,";"):Le(i)?r.push.apply(r,_e(_e(["".concat(o," {")],ro(i),!1),["}"],!1)):r.push("".concat(to(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in zi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ce(e,t,n,r){if(no(e))return[];if(ln(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 w.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof mn||Le(o)||o===null||console.error("".concat(Br(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 mn?n?(e.inject(n,r),[e.getName(r)]):[e]:Le(e)?ro(e):Array.isArray(e)?Array.prototype.concat.apply(yt,e.map(function(s){return Ce(s,t,n,r)})):[e.toString()]}function bs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ye(n)&&!ln(n))return!1}return!0}var $s=Ur(pt),ks=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=w.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&bs(t),this.componentId=n,this.baseHash=ge($s,n),this.baseStyle=r,Qr.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=un(Ce(this.rules,t,n,r)),s=sn(ge(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var c=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,c)}o=ve(o,s),this.staticRulesId=s}else{for(var a=ge(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var l=this.rules[d];if(typeof l=="string")u+=l,w.NODE_ENV!=="production"&&(a=ge(a,l));else if(l){var _=un(Ce(l,t,n,r));a=ge(a,_+d),u+=_}}if(u){var h=sn(a>>>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}(),je=te.createContext(void 0);je.Consumer;function Os(){var e=Fe(je);if(!e)throw K(18);return e}function Ns(e){var t=te.useContext(je),n=ee(function(){return function(r,o){if(!r)throw K(14);if(ye(r)){var i=r(o);if(w.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?te.createElement(je.Provider,{value:n},e.children):null}var gn={},oo=new Set;function Is(e,t,n){var r=ln(e),o=e,i=!cn(e),s=t.attrs,c=s===void 0?yt:s,a=t.componentId,u=a===void 0?function(b,N){var S=typeof b!="string"?"sc":Dr(b);gn[S]=(gn[S]||0)+1;var v="".concat(S,"-").concat(Fr(pt+S+gn[S]));return N?"".concat(N,"-").concat(v):v}(t.displayName,t.parentComponentId):a,d=t.displayName,l=d===void 0?function(b){return cn(b)?"styled.".concat(b):"Styled(".concat(Br(b),")")}(e):d,_=t.displayName&&t.componentId?"".concat(Dr(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 ks(n,_,r?o.componentStyle:void 0);function m(b,N){return function(S,v,F){var z=S.attrs,Ze=S.componentStyle,j=S.defaultProps,we=S.foldedComponentIds,bo=S.styledComponentId,qa=S.target,Za=te.useContext(je),Xa=pn(),En=S.shouldForwardProp||Xa.shouldForwardProp;w.NODE_ENV!=="production"&&rt(bo);var $o=Vi(v,Za,j)||Re,ie=function(kt,Qe,Ot){for(var Pe,Ee=P(P({},Qe),{className:void 0,theme:Ot}),kn=0;kn<kt.length;kn+=1){var Nt=ye(Pe=kt[kn])?Pe(Ee):Pe;for(var ue in Nt)Ee[ue]=ue==="className"?ve(Ee[ue],Nt[ue]):ue==="style"?P(P({},Ee[ue]),Nt[ue]):Nt[ue]}return Qe.className&&(Ee.className=ve(Ee.className,Qe.className)),Ee}(z,v,$o),Xe=ie.as||qa,Ke={};for(var G in ie)ie[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ie.theme===$o||(G==="forwardedAs"?Ke.as=ie.forwardedAs:En&&!En(G,Xe)||(Ke[G]=ie[G],En||w.NODE_ENV!=="development"||zo(G)||oo.has(G)||!on.has(Xe)||(oo.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" 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 bn=function(kt,Qe){var Ot=pn(),Pe=kt.generateAndInjectStyles(Qe,Ot.styleSheet,Ot.stylis);return w.NODE_ENV!=="production"&&rt(Pe),Pe}(Ze,ie);w.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(bn);var $n=ve(we,bo);return bn&&($n+=" "+bn),ie.className&&($n+=" "+ie.className),Ke[cn(Xe)&&!on.has(Xe)?"class":"className"]=$n,F&&(Ke.ref=F),D(Xe,Ke)}(k,b,N)}m.displayName=l;var k=te.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 S=[],v=1;v<arguments.length;v++)S[v-1]=arguments[v];for(var F=0,z=S;F<z.length;F++)fn(N,z[F],!0);return N}({},o.defaultProps,b):b}}),w.NODE_ENV!=="production"&&(Gi(l,_),k.warnTooManyClasses=function(b,N){var S={},v=!1;return function(F){if(!v&&(S[F]=!0,Object.keys(S).length>=200)){var z=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(z,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ji(){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(s){n=n.replace(/%[a-z]/,s)}),n}function Q(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return b.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(Ji.apply(void 0,_e([Qi[e]],t,!1)).trim())}var es=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 Q(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++)},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,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Qt);return n},e}(),ts=1<<30,vt=new Map,Ct=new Map,St=1,Et=function(e){if(vt.has(e))return vt.get(e);for(;Ct.has(St);)St++;var t=St++;if(b.NODE_ENV!=="production"&&((0|t)<0||t>ts))throw Q(16,"".concat(t));return vt.set(e,t),Ct.set(t,e),t},ns=function(e,t){St=t+1,vt.set(e,t),Ct.set(t,e)},rs="style[".concat(pe,"][").concat(Or,'="').concat(ht,'"]'),os=new RegExp("^".concat(pe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),is=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},ss=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Qt),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(os);if(l){var u=0|parseInt(l[1],10),d=l[2];u!==0&&(ns(d,u),is(e,d,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},zr=function(e){for(var t=document.querySelectorAll(rs),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(pe)!==Ir&&(ss(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function as(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Gr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(a){var l=Array.from(a.querySelectorAll("style[".concat(pe,"]")));return l[l.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(pe,Ir),r.setAttribute(Or,ht);var s=as();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},cs=function(){function e(t){this.element=Gr(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 s=r[o];if(s.ownerNode===n)return s}throw Q(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}(),ls=function(){function e(t){this.element=Gr(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}(),us=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}(),Vr=pt,fs={isServer:!pt,useCSSOMInjection:!Hi},Yr=function(){function e(t,n,r){t===void 0&&(t=xe),n===void 0&&(n={});var o=this;this.options=P(P({},fs),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&pt&&Vr&&(Vr=!1,zr(this)),an(this,function(){return function(i){for(var s=i.getTag(),a=s.length,l="",u=function(c){var h=function(m){return Ct.get(m)}(c);if(h===void 0)return"continue";var _=i.names.get(h),v=s.getGroup(c);if(_===void 0||!_.size||v.length===0)return"continue";var g="".concat(pe,".g").concat(c,'[id="').concat(h,'"]'),y="";_!==void 0&&_.forEach(function(m){m.length>0&&(y+="".concat(m,","))}),l+="".concat(v).concat(g,'{content:"').concat(y,'"}').concat(Qt)},d=0;d<a;d++)u(d);return l}(o)})}return e.registerId=function(t){return Et(t)},e.prototype.rehydrate=function(){!this.server&&pt&&zr(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 us(o):r?new cs(o):new ls(o)}(this.options),new es(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(Et(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(Et(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Et(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ds=/&/g,_s=/^\s*\/\/.*$/gm;function qr(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=qr(n.children,t)),n})}function Zr(e){var t,n,r,o=e===void 0?xe:e,i=o.options,s=i===void 0?xe:i,a=o.plugins,l=a===void 0?gt:a,u=function(h,_,v){return v.startsWith(n)&&v.endsWith(n)&&v.replaceAll(n,"").length>0?".".concat(t):h},d=l.slice();d.push(function(h){h.type===st&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(ds,n).replace(r,u))}),s.prefix&&d.push(Di),d.push(Ri);var c=function(h,_,v,g){_===void 0&&(_=""),v===void 0&&(v=""),g===void 0&&(g="&"),t=g,n=_,r=new RegExp("\\".concat(n,"\\b"),"g");var y=h.replace(_s,""),m=xi(v||_?"".concat(v," ").concat(_," { ").concat(y," }"):y);s.namespace&&(m=qr(m,s.namespace));var p=[];return _t(m,Pi(d.concat(Li(function(k){return p.push(k)})))),p};return c.hash=l.length?l.reduce(function(h,_){return _.name||Q(15),me(h,_.name)},Rr).toString():"",c}var hs=new Yr,cn=Zr(),ln=te.createContext({shouldForwardProp:void 0,styleSheet:hs,stylis:cn});ln.Consumer;var ps=te.createContext(void 0);function un(){return Fe(ln)}function ms(e){var t=D(e.stylisPlugins),n=t[0],r=t[1],o=un().styleSheet,i=ee(function(){var l=o;return e.sheet?l=e.sheet:e.target&&(l=l.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=ee(function(){return Zr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);X(function(){yi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var a=ee(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return te.createElement(ln.Provider,{value:a},te.createElement(ps.Provider,{value:s},e.children))}var fn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=cn);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,an(this,function(){throw Q(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=cn),this.name+t.hash},e}(),gs=function(e){return e>="A"&&e<="Z"};function Xr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;gs(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Kr=function(e){return e==null||e===!1||e===""},Qr=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Kr(i)&&(Array.isArray(i)&&i.isCss||ge(i)?r.push("".concat(Xr(o),":"),i,";"):Ae(i)?r.push.apply(r,_e(_e(["".concat(o," {")],Qr(i),!1),["}"],!1)):r.push("".concat(Xr(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Mi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ve(e,t,n,r){if(Kr(e))return[];if(rn(e))return[".".concat(e.styledComponentId)];if(ge(e)){if(!ge(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return b.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof fn||Ae(o)||o===null||console.error("".concat(Dr(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.")),ve(o,t,n,r)}var i;return e instanceof fn?n?(e.inject(n,r),[e.getName(r)]):[e]:Ae(e)?Qr(e):Array.isArray(e)?Array.prototype.concat.apply(gt,e.map(function(s){return ve(s,t,n,r)})):[e.toString()]}function ys(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ge(n)&&!rn(n))return!1}return!0}var vs=Pr(ht),Cs=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=b.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ys(t),this.componentId=n,this.baseHash=me(vs,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=ye(o,this.staticRulesId);else{var i=on(ve(this.rules,t,n,r)),s=en(me(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=ye(o,s),this.staticRulesId=s}else{for(var l=me(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var c=this.rules[d];if(typeof c=="string")u+=c,b.NODE_ENV!=="production"&&(l=me(l,c));else if(c){var h=on(ve(c,t,n,r));l=me(l,h+d),u+=h}}if(u){var _=en(l>>>0);n.hasNameForId(this.componentId,_)||n.insertRules(this.componentId,_,r(u,".".concat(_),void 0,this.componentId)),o=ye(o,_)}}return o},e}(),ze=te.createContext(void 0);ze.Consumer;function Ss(){var e=Fe(ze);if(!e)throw Q(18);return e}function Es(e){var t=te.useContext(ze),n=ee(function(){return function(r,o){if(!r)throw Q(14);if(ge(r)){var i=r(o);if(b.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw Q(7);return i}if(Array.isArray(r)||typeof r!="object")throw Q(8);return o?P(P({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?te.createElement(ze.Provider,{value:n},e.children):null}var dn={},Jr=new Set;function ws(e,t,n){var r=rn(e),o=e,i=!nn(e),s=t.attrs,a=s===void 0?gt:s,l=t.componentId,u=l===void 0?function($,I){var w=typeof $!="string"?"sc":xr($);dn[w]=(dn[w]||0)+1;var C="".concat(w,"-").concat(Lr(ht+w+dn[w]));return I?"".concat(I,"-").concat(C):C}(t.displayName,t.parentComponentId):l,d=t.displayName,c=d===void 0?function($){return nn($)?"styled.".concat($):"Styled(".concat(Dr($),")")}(e):d,h=t.displayName&&t.componentId?"".concat(xr(t.displayName),"-").concat(t.componentId):t.componentId||u,_=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,v=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;v=function($,I){return g($,I)&&y($,I)}}else v=g}var m=new Cs(n,h,r?o.componentStyle:void 0);function p($,I){return function(w,C,F){var j=w.attrs,qe=w.componentStyle,z=w.defaultProps,Se=w.foldedComponentIds,yo=w.styledComponentId,Fa=w.target,Ba=te.useContext(ze),Wa=un(),gn=w.shouldForwardProp||Wa.shouldForwardProp;b.NODE_ENV!=="production"&&nt(yo);var vo=Fi(C,Ba,z)||xe,oe=function(bt,Ke,$t){for(var Le,Ee=P(P({},Ke),{className:void 0,theme:$t}),Cn=0;Cn<bt.length;Cn+=1){var kt=ge(Le=bt[Cn])?Le(Ee):Le;for(var fe in kt)Ee[fe]=fe==="className"?ye(Ee[fe],kt[fe]):fe==="style"?P(P({},Ee[fe]),kt[fe]):kt[fe]}return Ke.className&&(Ee.className=ye(Ee.className,Ke.className)),Ee}(j,C,vo),Ze=oe.as||Fa,Xe={};for(var G in oe)oe[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&oe.theme===vo||(G==="forwardedAs"?Xe.as=oe.forwardedAs:gn&&!gn(G,Ze)||(Xe[G]=oe[G],gn||b.NODE_ENV!=="development"||Mo(G)||Jr.has(G)||!Jt.has(Ze)||(Jr.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" 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 yn=function(bt,Ke){var $t=un(),Le=bt.generateAndInjectStyles(Ke,$t.styleSheet,$t.stylis);return b.NODE_ENV!=="production"&&nt(Le),Le}(qe,oe);b.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(yn);var vn=ye(Se,yo);return yn&&(vn+=" "+yn),oe.className&&(vn+=" "+oe.className),Xe[nn(Ze)&&!Jt.has(Ze)?"class":"className"]=vn,F&&(Xe.ref=F),L(Ze,Xe)}(k,$,I)}p.displayName=c;var k=te.forwardRef(p);return k.attrs=_,k.componentStyle=m,k.displayName=c,k.shouldForwardProp=v,k.foldedComponentIds=r?ye(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=h,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=r?function(I){for(var w=[],C=1;C<arguments.length;C++)w[C-1]=arguments[C];for(var F=0,j=w;F<j.length;F++)sn(I,j[F],!0);return I}({},o.defaultProps,$):$}}),b.NODE_ENV!=="production"&&(Ui(c,h),k.warnTooManyClasses=function($,I){var w={},C=!1;return function(F){if(!C&&(w[F]=!0,Object.keys(w).length>=200)){var j=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(j,`.
|
|
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 />`),C=!0,w={}}}}(c,h)),an(k,function(){return".".concat(k.styledComponentId)}),i&&jr(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function eo(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var to=function(e){return Object.assign(e,{isCss:!0})};function _n(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ge(e)||Ae(e))return to(ve(eo(gt,_e([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ve(r):to(ve(eo(r,t)))}function hn(e,t,n){if(n===void 0&&(n=xe),!t)throw Q(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,_n.apply(void 0,_e([o],i,!1)))};return r.attrs=function(o){return hn(e,t,P(P({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return hn(e,t,P(P({},n),o))},r}var no=function(e){return hn(ws,e)},U=no;Jt.forEach(function(e){U[e]=no(e)});function ue(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];b.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 r=on(_n.apply(void 0,_e([e],t,!1))),o=Lr(r);return new fn(o,r)}b.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(pe,"__");b.NODE_ENV!=="production"&&b.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"},ro=14,bs=.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 Ge={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}},pn={loading:{text:"Loading. Please wait.",visible:!0},waiting:{text:"Waiting for input...",visible:!0}},$s={...{[M.CANDIDATE_SELECTION]:"Stay still…",[M.FACE_TOO_CLOSE]:"Move back",[M.FACE_TOO_FAR]:"Move closer",[M.FACE_CENTERING]:"Center your face",[M.FACE_NOT_PRESENT]:"Position your face into the circle",[M.SHARPNESS_TOO_LOW]:"Turn face against light",[M.BRIGHTNESS_TOO_LOW]:"Turn face against light",[M.BRIGHTNESS_TOO_HIGH]:"Less light needed",[M.DEVICE_PITCHED]:"Hold your phone at eye level",[M.LEFT_EYE_NOT_PRESENT]:"Position your face into the circle",[M.RIGHT_EYE_NOT_PRESENT]:"Position your face into the circle",[M.MOUTH_SCORE_TOO_HIGH]:"Keep neutral expression",[M.MOUTH_SCORE_TOO_LOW]:"Smile :)",[M.MOUTH_NOT_PRESENT]:"Position your face into the circle"},[Z.SMILE]:"Smile :)",[Z.SMILE_CANDIDATE_SELECTION]:"Smile :)",[Z.KEEP_NEUTRAL_EXPRESSION]:"Keep neutral expression"},ks={[Z.SMILE]:"Smile more!",[Z.KEEP_NEUTRAL_EXPRESSION]:"Don't smile"},Ns="rgba(19, 19, 19, 0.5)",Is=34;function oo(e,t){return Math.max(t,t+(e-400)*bs+2)}const Os=(e,t=ro)=>e?e.width<e.height?oo(e.width,t):oo(e.height,t):t,Ts=e=>e>re.Default?Ge[re.Default]:e>re.L?Ge[re.L]:e>re.M?Ge[re.M]:Ge[re.S],xs=e=>e?Ts(e.width):Ge[re.Default];function As(){const e="https://fonts.googleapis.com/css?family=Montserrat:600";if(!document.querySelector(`link[href="${e}"]`)){const n=document.createElement("link");n.href=e,n.rel="stylesheet",document.head.appendChild(n)}}function Rs({currentInstruction:e,escalatedInstructions:t,instructions:n}){const{code:r,isEscalated:o}=e;if(r)return o&&t&&r in t?t[r]:n[r]}const Ve=Dn(void 0);Ve.displayName="ConfigurationContext";function Ce(){const e=Fe(Ve);if(!e)throw new Error(`${Ve.displayName} must be used within a ${Ve.displayName} Provider`);return e}function Ps({children:e,configuration:t,videoElementSize:n}){const{font:r}=Ss(),o=ee(()=>({...t,videoElementSize:n,fontSize:Os(n,r.minimumSize)}),[t,r.minimumSize,n]);return f(Ve.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"})}),Ls=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
76
76
|
aspect-ratio: 9/16;
|
|
77
77
|
}
|
|
78
78
|
`}
|
|
79
|
-
`,
|
|
79
|
+
`,Ds=U.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
|
+
`,Ms=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
91
91
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
92
92
|
line-height: 1em;
|
|
93
93
|
max-width: 80%;
|
|
94
|
-
`,
|
|
94
|
+
`,mn=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=Ce();return f(Ls,{$isCameraReady:t,$position:n,children:f(Ds,{children:[e?f(e,{svgSize:o*2}):null,f(Ms,{$fontSize:o,children:r})]})})},so=({text:e="An unknown error has occurred"})=>f(mn,{Icon:io,position:"relative",text:e});class Hs extends V{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n)}render(){return this.state.hasError?f(so,{Icon:io,isCameraReady:!1}):this.props.children}}const Us=U.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 Fs({children:e,uiConfiguration:t,videoElementSize:n}){return X(()=>{As()},[]),f(ms,{target:t.styleTarget,children:f(Es,{theme:t.styling.theme,children:f(Us,{children:f(Hs,{videoElementSize:n,children:f(Ps,{configuration:t,videoElementSize:n,children:e})})})})})}const Bs=.75,Ws="dot-auto-capture-video";function Pe(e,t){const n=tt(t);X(()=>{n.current=t},[t]),X(()=>{if(!e)return;const r=o=>n.current(o);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[e])}function js(e){const[t,n]=D(),r=ce(o=>{var i;n((i=o.detail)==null?void 0:i.size)},[n]);return Pe(e,r),ke(()=>{if(!t){const o=document.getElementById(Ws);o&&n(o.getBoundingClientRect())}},[t,n]),t}function zs(e,t){return e?`${e}, ${t}`:t}const Ye={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:ro}},Gs=e=>{var t;return e?{...Ye,...e,colors:{...Ye.colors,...e.colors},font:{...Ye.font,...e.font,family:zs((t=e.font)==null?void 0:t.family,Ye.font.family)}}:Ye},ao=(e,t)=>Math.min(e,t),Vs=({height:e,width:t},n)=>{const r=ao(t,e)*n,o=(t-r)/2,i=(e-r)/2;return{shiftX:o,shiftY:i,width:r,height:r}},Ys=(e,t)=>{const{height:n,shiftX:r,shiftY:o,width:i}=Vs(e,t);return{shiftX:r/e.width,shiftY:o/e.height,width:i/e.width,height:n/e.height}};function qs(e){return Ys(e,Bs)}const Zs=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},co=(e,t)=>{Zs(e,{instruction:t})};async function Xs(){return navigator.mediaDevices.enumerateDevices()}async function Ks(){return(await Xs()).filter(t=>t.kind==="videoinput")}const Qs=()=>{const[e,t]=D(!1);return X(()=>{(async()=>{(await Ks()).length>1&&t(!0)})()},[]),e},Js=({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"})]}),ea=({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"})]}),lo=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
105
105
|
&:disabled {
|
|
106
106
|
cursor: not-allowed;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,ta=({marginLeft:e,size:t,...n})=>f(lo,{$marginLeft:e,...n,children:f(Js,{size:t})}),na=({marginLeft:e,size:t,...n})=>f(lo,{$marginLeft:e,...n,children:f(ea,{size:t})}),ra=U.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
|
+
`,oa=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{control:{showCameraButtons:n},videoElementSize:r}=Ce(),o=Qs();if(!n)return null;const{buttonPadding:i,iconSize:s,marginLeft:a}=xs(r);return f(ra,{$padding:i,children:[o&&f(na,{disabled:t,onClick:()=>{co(e,Un.SWITCH_CAMERA)},size:s}),f(ta,{marginLeft:o?a:0,onClick:()=>{co(e,Un.TOGGLE_MIRROR)},size:s})]})},ia="2.5s",sa="0.3s",aa="linear",ca=ue`
|
|
115
115
|
0% {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
100% {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`;
|
|
121
|
+
`;ue`
|
|
122
122
|
100% {
|
|
123
123
|
transform: translate(-50%, -50%) scale(2.6);
|
|
124
124
|
top: 50%;
|
|
125
125
|
left: 50%;
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,ue`
|
|
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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
147
147
|
transform: translate(-50%, -50%) scale(0.85);
|
|
148
148
|
opacity: 0.5;
|
|
149
149
|
}
|
|
150
|
-
`,
|
|
150
|
+
`,ue`
|
|
151
151
|
5% {
|
|
152
152
|
opacity: 1;
|
|
153
153
|
}
|
|
@@ -159,16 +159,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
159
159
|
transform: scale(1);
|
|
160
160
|
opacity: 1;
|
|
161
161
|
}
|
|
162
|
-
`;const
|
|
162
|
+
`;const la=U.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&&_n`
|
|
169
|
+
animation: ${ca} ${sa}
|
|
170
|
+
${aa} both;
|
|
171
|
+
animation-delay: ${ia};
|
|
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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
192
192
|
${e=>e.$cssTop||e.$isPortrait?"-50%":e.$isPortrait?"":"50%"}
|
|
193
193
|
);
|
|
194
194
|
z-index: 2;
|
|
195
|
-
`,
|
|
195
|
+
`,ua=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
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
|
+
`,fa=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:s}=Ce();return f(la,{$cssBottom:t,$cssTop:n,$isAnimating:r,$isPortrait:i,children:f(ua,{$fontSize:s,$isInCandidateSelection:o,$wrap:e.length>Is,children:e})})},da=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
215
215
|
transform: rotate(-360deg);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
`,
|
|
218
|
+
`,_a=({svgSize:e})=>f(da,{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"})]})}),ha=U.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[bt]+=1);const re={CIRCLE_SOLI
|
|
|
232
232
|
transform: scale(0.5);
|
|
233
233
|
translate: 25% 25%;
|
|
234
234
|
}
|
|
235
|
-
`,
|
|
235
|
+
`,uo=({children:e,height:t,scale:n,width:r})=>{const{styling:{backdropColor:o}}=Ce(),i=ao(r,t);return f(ha,{$backdropColor:o,$scale:n,$shorterSide:i,children:f("svg",{viewBox:`0 0 ${r} ${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 pa({cameraHeight:e,cameraWidth:t,isBackdrop:n,state:r}){const{appStateInstructions:o}=Ce(),i=r===H.ERROR||r===H.RUNNING;return!r||i||!(o!=null&&o[r].visible)?null:r===H.WAITING||r===H.COMPLETE?f(B,{children:[n&&e&&t&&f(uo,{height:e,width:t}),f(mn,{isCameraReady:!0,text:o[H.WAITING].text})]}):f(mn,{Icon:_a,isCameraReady:!0,text:o[H.LOADING].text})}function ma({isRounded:e,isSquare:t,...n}){return e?f("rect",{fill:"#000",...n,rx:"2%"}):f("rect",{fill:"#000",...n,rx:t?"0":"50%"})}const ga=()=>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 ya(){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 va(){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 Ca(){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 Sa(){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 Ea=U.div`
|
|
236
236
|
z-index: 1;
|
|
237
237
|
position: absolute;
|
|
238
238
|
top: ${e=>e.$placeholderRectangle.shiftY*100}%;
|
|
@@ -246,14 +246,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
246
246
|
width: 100%;
|
|
247
247
|
height: 100%;
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`,wa=({children:e,className:t,isInCandidateSelection:n,onAnimationEnd:r,placeholderRectangle:o,scale:i})=>f(Ea,{$isInCandidateSelection:n,$placeholderRectangle:o,$scale:i,className:t,onAnimationEnd:r,children:e}),ba={[Re.CIRCLE_SOLID]:f(ga,{}),[Re.SQUARE_ROUNDED_DASH]:f(va,{}),[Re.SQUARE_ROUNDED_SOLID]:f(Ca,{}),[Re.SQUARE_DASH]:f(ya,{}),[Re.SQUARE_SOLID]:f(Sa,{})};function $a({backdropHeight:e,backdropWidth:t,isBackdrop:n,placeholderRectangle:r,...o}){const{placeholder:i}=Ce(),s=i.toLowerCase().includes("square"),a=i.toLowerCase().includes("rounded");return f(B,{children:[n&&f(uo,{height:e,width:t,children:f(ma,{height:`${r.height*100}%`,isRounded:a,isSquare:s,width:`${r.width*100}%`,x:`${r.shiftX*100}%`,y:`${r.shiftY*100}%`})}),f(wa,{placeholderRectangle:r,...o,children:ba[i]})]})}function ka({eventName:e}){const[t,n]=D([]),r=ce(o=>{var s;const i=(s=o.detail)==null?void 0:s.instructionCode;i&&n(a=>[...a,i])},[n]);return Pe(e,r),{escalatedInstructionCodes:t}}function Na({customEvents:e,defaultInstructionCode:t}){const[n,r]=D(),[o,i]=D(!1),s=ce(g=>{var m,p;r((m=g==null?void 0:g.detail)==null?void 0:m.cameraResolution);const y=(p=g==null?void 0:g.detail)==null?void 0:p.isMirroring;y!==void 0&&i(y)},[r]);Pe(e.CAMERA_PROPS_CHANGED,s);const[a,l]=D({code:t,isEscalated:!1}),u=ce(g=>{var m,p;const y=g;l({code:(m=y==null?void 0:y.detail)==null?void 0:m.instructionCode,isEscalated:((p=y==null?void 0:y.detail)==null?void 0:p.isEscalated)??!1})},[l]);Pe(e.INSTRUCTION_CHANGED,u);const[d,c]=D(H.LOADING),[h,_]=D(),v=ce(g=>{var m,p;c((m=g.detail)==null?void 0:m.appState);const y=(p=g==null?void 0:g.detail)==null?void 0:p.error;y&&_(y)},[c,_]);return Pe(e.STATE_CHANGED,v),{cameraResolution:n,instruction:a,isMirroring:o,appState:d,error:h}}function Ia(){const e=Na({customEvents:Ue,defaultInstructionCode:Z.FACE_NOT_PRESENT}),[t,n]=D(et.NEUTRAL),r=ce(o=>{const i=o,{phaseName:s}=i.detail;n(s)},[]);return Pe(Ue.PHASE_CHANGED,r),{...e,phase:t}}const fo=".3s",Oa=".2s",Ta=".8s",_o=".4s",ho=".4s",xa=".5s",Aa="1.5s",Ra=2e3,po=ue`
|
|
250
250
|
0%, 100% {
|
|
251
251
|
transform: scale(1);
|
|
252
252
|
}
|
|
253
253
|
50% {
|
|
254
254
|
transform: scale(2);
|
|
255
255
|
}
|
|
256
|
-
`,
|
|
256
|
+
`,Pa=ue`
|
|
257
257
|
0%, 100% {
|
|
258
258
|
transform: scale(1,1);
|
|
259
259
|
opacity: 1;
|
|
@@ -262,27 +262,27 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const re={CIRCLE_SOLI
|
|
|
262
262
|
transform: scale(1,0.1);
|
|
263
263
|
opacity: 0.5;
|
|
264
264
|
}
|
|
265
|
-
`,
|
|
265
|
+
`,mo=ue`
|
|
266
266
|
0% {
|
|
267
267
|
stroke-dashoffset: 100;
|
|
268
268
|
}
|
|
269
269
|
100% {
|
|
270
270
|
stroke-dashoffset: 200;
|
|
271
271
|
}
|
|
272
|
-
`,
|
|
272
|
+
`,go=ue`
|
|
273
273
|
from {
|
|
274
274
|
opacity: 1;
|
|
275
275
|
}
|
|
276
276
|
to {
|
|
277
277
|
opacity: 0;
|
|
278
278
|
}
|
|
279
|
-
`,
|
|
279
|
+
`,La=(e,t)=>{const[n,r]=D(!1);return X(()=>{if(t!==et.SMILE){r(!1);return}r(!0);const o=setTimeout(()=>{r(!1)},Ra);return()=>clearTimeout(o)},[t]),t===et.SMILE&&e===Z.CANDIDATE_SELECTION?Z.SMILE_CANDIDATE_SELECTION:n?Z.SMILE:e},Da=U.div`
|
|
280
280
|
position: absolute;
|
|
281
281
|
top: ${e=>e.$initialPosition.shiftY*100}%;
|
|
282
282
|
bottom: ${e=>(1-e.$initialPosition.shiftY-e.$initialPosition.height)*100}%;
|
|
283
283
|
left: ${e=>e.$initialPosition.shiftX*100}%;
|
|
284
284
|
right: ${e=>(1-e.$initialPosition.shiftX-e.$initialPosition.width)*100}%;
|
|
285
|
-
animation: ${
|
|
285
|
+
animation: ${go} ${xa} ${Aa} ease-in-out;
|
|
286
286
|
animation-fill-mode: forwards;
|
|
287
287
|
z-index: 1;
|
|
288
288
|
|
|
@@ -293,7 +293,7 @@ to {
|
|
|
293
293
|
stroke-linecap: round;
|
|
294
294
|
stroke-dasharray: 100;
|
|
295
295
|
stroke-dashoffset: 100;
|
|
296
|
-
animation: ${
|
|
296
|
+
animation: ${mo} ${_o} ${ho} forwards;
|
|
297
297
|
}
|
|
298
298
|
#right-mouth {
|
|
299
299
|
fill: none;
|
|
@@ -304,18 +304,18 @@ to {
|
|
|
304
304
|
stroke-dashoffset: 100;
|
|
305
305
|
transform: scale(-1, 1);
|
|
306
306
|
transform-origin: 119.4px 191.7px;
|
|
307
|
-
animation: ${
|
|
307
|
+
animation: ${mo} ${_o} ${ho} forwards;
|
|
308
308
|
}
|
|
309
309
|
#left-eye {
|
|
310
310
|
transform-origin: 86.8px 96px;
|
|
311
311
|
fill: #ffffff;
|
|
312
|
-
animation: ${
|
|
312
|
+
animation: ${po} ${fo} forwards;
|
|
313
313
|
}
|
|
314
314
|
#right-eye {
|
|
315
315
|
transform-origin: 173.2px 96px;
|
|
316
316
|
fill: #ffffff;
|
|
317
317
|
animation:
|
|
318
|
-
${
|
|
319
|
-
${
|
|
318
|
+
${po} ${fo} forwards,
|
|
319
|
+
${Pa} ${Oa} ${Ta} forwards;
|
|
320
320
|
}
|
|
321
|
-
`,
|
|
321
|
+
`,Ma=({animate:e,initialPosition:t,show:n})=>{const[r,o]=D(!0);return X(()=>{(e||n)&&o(!0)},[e,n]),!r||!n?null:f(Da,{$initialPosition:t,onAnimationEnd:i=>i.animationName===go.getName()&&o(!1),children:f("svg",{viewBox:"0 0 260 260",children:[f("circle",{cx:"86.8",cy:"96",id:"left-eye",r:"9.6"}),f("circle",{cx:"173.2",cy:"96",id:"right-eye",r:"9.6"}),f("path",{d:"M62.8,156.3c0,0,20.4,35.4,66.6,35.4",id:"left-mouth"}),f("path",{d:"M42.8,156.3c0,0,20.4,35.4,66.6,35.4",id:"right-mouth"})]})})},Ha=()=>{const{appState:e,cameraResolution:t,error:n,instruction:r,phase:o}=Ia(),i=La(r.code,o),{escalatedInstructionCodes:s}=ka({eventName:Ue.INSTRUCTION_ESCALATED}),{escalatedInstructions:a,instructions:l}=Ce(),u=r.code===Z.CANDIDATE_SELECTION,d=Rs({escalatedInstructions:a,instructions:l,currentInstruction:{...r,code:i}});if(e===H.ERROR)return f(so,{text:n==null?void 0:n.message});if((e===H.RUNNING||e===H.WAITING)&&t){const c=qs(t);return f(B,{children:[f($a,{backdropHeight:t.height,backdropWidth:t.width,isBackdrop:!0,isInCandidateSelection:u,placeholderRectangle:c}),f(Ma,{animate:s.includes("mouth_score_too_low"),initialPosition:c,show:o===et.SMILE}),d&&f(fa,{cssBottom:(c.height+c.shiftY)*100,isAnimating:!1,isInCandidateSelection:u,isPortrait:t.width<t.height,children:d}),f(oa,{customControlEvent:Ue.CONTROL,isSwitchCameraDisabled:u})]})}return f(pa,{cameraHeight:t==null?void 0:t.height,cameraWidth:t==null?void 0:t.width,isBackdrop:!0,state:e})};function Ua(e){var s,a,l,u,d,c;const t={...$s,...e==null?void 0:e.instructions},n={...ks,...e==null?void 0:e.escalatedInstructions};t.mouth_score_too_low=t.smile,n.mouth_score_too_low=n.smile,t.mouth_score_too_high=t.keep_neutral_expression,n.mouth_score_too_high=n.keep_neutral_expression;const r={[H.LOADING]:{...pn.loading,...(s=e==null?void 0:e.appStateInstructions)==null?void 0:s.loading},[H.WAITING]:{...pn.waiting,...(a=e==null?void 0:e.appStateInstructions)==null?void 0:a.waiting},[H.COMPLETE]:{...pn.waiting,...(l=e==null?void 0:e.appStateInstructions)==null?void 0:l.waiting}},o={...e==null?void 0:e.styling,backdropColor:((u=e==null?void 0:e.styling)==null?void 0:u.backdropColor)??Ns,theme:Gs((d=e==null?void 0:e.styling)==null?void 0:d.theme)},i={showCameraButtons:((c=e==null?void 0:e.control)==null?void 0:c.showCameraButtons)??!1};return{placeholder:Re.CIRCLE_SOLID,instructions:t,appStateInstructions:r,escalatedInstructions:n,styling:o,control:i}}xo(({configuration:e})=>{const t=js(Ue.VIDEO_ELEMENT_SIZE);return f(Fs,{uiConfiguration:Ua(e),videoElementSize:t,children:f(Ha,{})})},"x-dot-smile-liveness-ui",["configuration"])});
|