UNPKG

@innovatrics/dot-auto-capture-ui

Version:
40 lines (25 loc) 98.5 kB
(function(H){typeof define=="function"&&define.amd?define(H):H()})(function(){"use strict";var Ga=Object.defineProperty;var Va=(H,p,fe)=>p in H?Ga(H,p,{enumerable:!0,configurable:!0,writable:!0,value:fe}):H[p]=fe;var Ot=(H,p,fe)=>Va(H,typeof p!="symbol"?p+"":p,fe);var H,p,fe,de,bn,$n,Nt,It,Tt,xt,kn,De={},On=[],yo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ke=Array.isArray;function K(e,t){for(var n in t)e[n]=t[n];return e}function Nn(e){var t=e.parentNode;t&&t.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]===void 0&&(s[i]=e.defaultProps[i]);return Me(e,s,r,o,null)}function Me(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++fe,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function vo(){return{current:null}}function F(e){return e.children}function G(e,t){this.props=e,this.context=t}function _e(e,t){if(t==null)return e.__?_e(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"?_e(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 At(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Qe.__r++||bn!==p.debounceRendering)&&((bn=p.debounceRendering)||$n)(Qe)}function Qe(){var e,t,n,r,o,i,s,a;for(de.sort(Nt);e=de.shift();)e.__d&&(t=de.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=K({},o)).__v=o.__v+1,p.vnode&&p.vnode(r),Rt(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??_e(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ln(s,r,a),r.__e!=i&&In(r)),de.length>t&&de.sort(Nt));Qe.__r=0}function Tn(e,t,n,r,o,i,s,a,c,u,d){var l,h,_,v,w,$=r&&r.__k||On,m=t.length;for(n.__d=c,Co(n,t,$),c=n.__d,l=0;l<m;l++)(_=n.__k[l])!=null&&typeof _!="boolean"&&typeof _!="function"&&(h=_.__i===-1?De:$[_.__i]||De,_.__i=l,Rt(e,_,h,o,i,s,a,c,u,d),v=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&Lt(h.ref,null,_),d.push(_.ref,_.__c||v,_)),w==null&&v!=null&&(w=v),65536&_.__u||h.__k===_.__k?(c&&typeof _.type=="string"&&!e.contains(c)&&(c=_e(h)),c=xn(_,c,e)):typeof _.type=="function"&&_.__d!==void 0?c=_.__d:v&&(c=v.nextSibling),_.__d=void 0,_.__u&=-196609);n.__d=c,n.__e=w}function Co(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)s=r+l,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Me(null,o,null,null,null):Ke(o)?Me(F,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Me(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=So(o,n,s,d),o.__i=a,i=null,a!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a==s-1?l=a-s:a==s+1?l++:a>s?d>c-s?l+=a-s:l--:a<s&&l++,a!==r+l&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=_e(i)),Pt(i,i,!1),n[s]=null,d--);if(d)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=_e(i)),Pt(i,i))}function xn(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=xn(r[o],t,n));return t}e.__e!=t&&(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"||(Ke(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function So(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function An(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||yo.test(t)?n:n+"px"}function Je(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||An(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||An(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$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=It,e.addEventListener(t,i?xt:Tt,i)):e.removeEventListener(t,i?xt:Tt,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 Rn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=It++;else if(t.t<n.u)return;return n(p.event?p.event(t):t)}}}function Rt(e,t,n,r,o,i,s,a,c,u){var d,l,h,_,v,w,$,m,g,k,b,N,S,y,W,X,z=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=p.__b)&&d(t);e:if(typeof z=="function")try{if(m=t.props,g="prototype"in z&&z.prototype.render,k=(d=z.contextType)&&r[d.__c],b=d?k?k.props.value:d.__:r,n.__c?$=(l=t.__c=n.__c).__=l.__E:(g?t.__c=l=new z(m,b):(t.__c=l=new G(m,b),l.constructor=z,l.render=wo),k&&k.sub(l),l.props=m,l.state||(l.state={}),l.context=b,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),g&&l.__s==null&&(l.__s=l.state),g&&z.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=K({},l.__s)),K(l.__s,z.getDerivedStateFromProps(m,l.__s))),_=l.props,v=l.state,l.__v=t,h)g&&z.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),g&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g&&z.getDerivedStateFromProps==null&&m!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,b),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,b)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Le){Le&&(Le.__=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(m,l.__s,b),g&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,v,w)})}if(l.context=b,l.props=m,l.__P=e,l.__e=!1,S=p.__r,y=0,g){for(l.state=l.__s,l.__d=!1,S&&S(t),d=l.render(l.props,l.state,l.context),W=0;W<l._sb.length;W++)l.__h.push(l._sb[W]);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&&++y<25);l.state=l.__s,l.getChildContext!=null&&(r=K(K({},r),l.getChildContext())),g&&!h&&l.getSnapshotBeforeUpdate!=null&&(w=l.getSnapshotBeforeUpdate(_,v)),Tn(e,Ke(X=d!=null&&d.type===F&&d.key==null?d.props.children:d)?X:[X],t,n,r,o,i,s,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),$&&(l.__E=l.__=null)}catch(Le){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),p.__e(Le,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Eo(n.__e,t,n,r,o,i,s,c,u);(d=p.diffed)&&d(t)}function Ln(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Lt(n[r],n[++r],n[++r]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){p.__e(i,o.__v)}})}function Eo(e,t,n,r,o,i,s,a,c){var u,d,l,h,_,v,w,$=n.props,m=t.props,g=t.type;if(g==="svg"?o="http://www.w3.org/2000/svg":g==="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 _==!!g&&(g?_.localName===g:_.nodeType===3)){e=_,i[u]=null;break}}if(e==null){if(g===null)return document.createTextNode(m);e=document.createElementNS(o,g,m.is&&m),i=null,a=!1}if(g===null)$===m||a&&e.data===m||(e.data=m);else{if(i=i&&H.call(e.childNodes),$=n.props||De,!a&&i!=null)for($={},u=0;u<e.attributes.length;u++)$[(_=e.attributes[u]).name]=_.value;for(u in $)if(_=$[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(u!=="key"&&!(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"?w=_:u==="key"||a&&typeof _!="function"||$[u]===_||Je(e,u,_,$[u],o);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Tn(e,Ke(h)?h:[h],t,n,r,g==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&_e(n,0),a,c),i!=null)for(u=i.length;u--;)i[u]!=null&&Nn(i[u]);a||(u="value",v!==void 0&&(v!==e[u]||g==="progress"&&!v||g==="option"&&v!==$[u])&&Je(e,u,v,$[u],o),u="checked",w!==void 0&&w!==e[u]&&Je(e,u,w,$[u],o))}return e}function Lt(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){p.__e(r,n)}}function Pt(e,t,n){var r,o;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Lt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){p.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Pt(r[o],t,n||typeof e.type!="function");n||e.__e==null||Nn(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function wo(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,s;p.__&&p.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Rt(t,e=(!r&&n||t).__k=D(F,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),Ln(i,e,s)}function Dt(e,t){se(e,t,Dt)}function Mt(e,t,n){var r,o,i,s,a=K({},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]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?H.call(arguments,2):n),Me(e.type,a,r||e.key,o||e.ref,null)}function Pn(e,t){var n={__c:t="__cC"+kn++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,At(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}H=On.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(a){e=a}throw e}},fe=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=K({},this.state),typeof e=="function"&&(e=e(K({},n),this.props)),e&&K(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),At(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),At(this))},G.prototype.render=F,de=[],$n=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nt=function(e,t){return e.__v.__b-t.__v.__b},Qe.__r=0,It=0,Tt=Rn(!1),xt=Rn(!0),kn=0;function Ht(){return(Ht=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 bo=["context","children"];function $o(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},c=Object.keys(r);for(s=0;s<c.length;s++)o.indexOf(i=c[s])>=0||(a[i]=r[i]);return a}(e,bo);return Mt(t,n)}function ko(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=D($o,Ht({},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,c=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Dn(a[s].name)]=a[s].value);for(s=c.length;s--;){var u=t(c[s],null),d=c[s].slot;d?i[d]=D(Mn,{name:d},u):o[s]=u}var l=r?D(Mn,null,o):o;return D(r||n.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Dt:se)(this._vdom,this._root)}function Dn(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[Dn(e)]=n,this._vdom=Mt(this._vdom,r),se(this._vdom,this._root)}}function No(){se(this._vdom=null,this._root)}function Mn(e,t){var n=this;return D("slot",Ht({},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 Io(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=ko,o.prototype.attributeChangedCallback=Oo,o.prototype.disconnectedCallback=No,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 To=0;function f(e,t,n,r,o,i){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?s=t[a]:c[a]=t[a];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--To,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return p.vnode&&p.vnode(u),u}const Hn={CONTINUE_DETECTION:"continue-detection",SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var He=(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))(He||{}),Ut=(e=>(e.INSTRUCTION_ESCALATED="smile:instruction-escalated",e.STATUS_CHANGED="smile-auto-capture:status-changed",e))(Ut||{});const Un={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_${Un.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${Un.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"},xo={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING"},J={...L,SMILE:"smile",SMILE_CANDIDATE_SELECTION:"smile_candidate_selection",KEEP_NEUTRAL_EXPRESSION:"keep_neutral_expression"},et={NEUTRAL:"NEUTRAL",SMILE:"SMILE"},be={...xo,DONE:"DONE"};var ae,I,Ft,Fn,$e=0,Bn=[],x=p,Wn=x.__b,zn=x.__r,jn=x.diffed,Gn=x.__c,Vn=x.unmount,Yn=x.__;function ke(e,t){x.__h&&x.__h(I,e,$e||t),$e=0;var n=I.__H||(I.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function M(e){return $e=1,Bt(Kn,e)}function Bt(e,t,n){var r=ke(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Kn(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=I,!I.u)){var o=function(a,c,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,c,u);var l=!1;return d.forEach(function(h){if(h.__N){var _=h.__[0];h.__=h.__N,h.__N=void 0,_!==h.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!i||i.call(this,a,c,u))};I.u=!0;var i=I.shouldComponentUpdate,s=I.componentWillUpdate;I.componentWillUpdate=function(a,c,u){if(this.__e){var d=i;i=void 0,o(a,c,u),i=d}s&&s.call(this,a,c,u)},I.shouldComponentUpdate=o}return r.__N||r.__}function Y(e,t){var n=ke(ae++,3);!x.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,I.__H.__h.push(n))}function Oe(e,t){var n=ke(ae++,4);!x.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,I.__h.push(n))}function tt(e){return $e=5,ee(function(){return{current:e}},[])}function Zn(e,t,n){$e=6,Oe(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ee(e,t){var n=ke(ae++,7);return zt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return $e=8,ee(function(){return e},t)}function Ue(e){var t=I.context[e.__c],n=ke(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(I)),t.props.value):e.__}function nt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function qn(){var e=ke(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 Ao(){for(var e;e=Bn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rt),e.__H.__h.forEach(Wt),e.__H.__h=[]}catch(t){e.__H.__h=[],x.__e(t,e.__v)}}x.__b=function(e){I=null,Wn&&Wn(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yn&&Yn(e,t)},x.__r=function(e){zn&&zn(e),ae=0;var t=(I=e.__c).__H;t&&(Ft===I?(t.__h=[],I.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(rt),t.__h.forEach(Wt),t.__h=[],ae=0)),Ft=I},x.diffed=function(e){jn&&jn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Bn.push(t)!==1&&Fn===x.requestAnimationFrame||((Fn=x.requestAnimationFrame)||Ro)(Ao)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Ft=I=null},x.__c=function(e,t){t.some(function(n){try{n.__h.forEach(rt),n.__h=n.__h.filter(function(r){return!r.__||Wt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(r,n.__v)}}),Gn&&Gn(e,t)},x.unmount=function(e){Vn&&Vn(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 Xn=typeof requestAnimationFrame=="function";function Ro(e){var t,n=function(){clearTimeout(r),Xn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xn&&(t=requestAnimationFrame(n))}function rt(e){var t=I,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),I=t}function Wt(e){var t=I;e.__c=e.__(),I=t}function zt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Kn(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 pe(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 Po=/^((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)-.*))$/,Do=Lo(function(e){return Po.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Qn(e,t){for(var n in t)e[n]=t[n];return e}function jt(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 Gt(e,t){this.props=e,this.context=t}function Mo(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:jt(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}(Gt.prototype=new G).isPureReactComponent=!0,Gt.prototype.shouldComponentUpdate=function(e,t){return jt(this.props,e)||jt(this.state,t)};var Jn=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Jn&&Jn(e)};var Ho=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Uo(e){function t(n){var r=Qn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ho,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var er=function(e,t){return e==null?null:Q(Q(e).map(t))},Fo={map:er,forEach:er,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},Bo=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)}Bo(e,t,n,r)};var tr=p.unmount;function nr(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=Qn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return nr(r,t,n)})),e}function rr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return rr(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.t=null,this.__b=null}function or(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Wo(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 Fe(){this.u=null,this.o=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tr&&tr(e)},(ot.prototype=new G).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=or(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 c=r.state.__a;r.__v.__k[0]=rr(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.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.t=[]},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]=nr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&D(F,null,e.fallback);return o&&(o.__u&=-33),[D(F,null,t.__a?null:e.children),o]};var ir=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function zo(e){return this.getChildContext=function(){return e.context},e.children}function jo(e){var t=this,n=e.i;t.componentWillUnmount=function(){se(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),se(D(zo,{context:t.context},e.__v),t.l)}function Go(e,t){var n=D(jo,{__v:e,i:t});return n.containerInfo=t,n}(Fe.prototype=new G).__a=function(e){var t=this,n=or(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ir(t,e,r)):o()};n?n(i):i()}},Fe.prototype.render=function(e){this.u=null,this.o=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ir(e,n,t)})};var sr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Vo=/^(?: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]/,Yo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zo=/[A-Z0-9]/g,qo=typeof document<"u",Xo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ko(e,t,n){return t.__k==null&&(t.textContent=""),se(e,t),typeof n=="function"&&n(),e?e.__c:null}function Qo(e,t,n){return Dt(e,t),typeof n=="function"&&n(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ar=p.event;function Jo(){}function ei(){return this.cancelBubble}function ti(){return this.defaultPrevented}p.event=function(e){return ar&&(e=ar(e)),e.persist=Jo,e.isPropagationStopped=ei,e.isDefaultPrevented=ti,e.nativeEvent=e};var Vt,ni={enumerable:!1,configurable:!0,get:function(){return this.class}},cr=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||qo&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Xo(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Yo.test(i)?i=a:r.indexOf("-")===-1&&Vo.test(i)?i=i.replace(Zo,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Q(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ni)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=sr,cr&&cr(e)};var lr=p.__r;p.__r=function(e){lr&&lr(e),Vt=e.__c};var ur=p.diffed;p.diffed=function(e){ur&&ur(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),Vt=null};var ri={ReactCurrentDispatcher:{current:{readContext:function(e){return Vt.__n[e.__c].props.value},useCallback:he,useContext:Ue,useDebugValue:nt,useDeferredValue:dr,useEffect:Y,useId:qn,useImperativeHandle:Zn,useInsertionEffect:hr,useLayoutEffect:Oe,useMemo:ee,useReducer:Bt,useRef:tt,useState:M,useSyncExternalStore:pr,useTransition:_r}}};function oi(e){return D.bind(null,e)}function it(e){return!!e&&e.$$typeof===sr}function ii(e){return it(e)&&e.type===F}function si(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ai(e){return it(e)?Mt.apply(null,arguments):e}function ci(e){return!!e.__k&&(se(null,e),!0)}function li(e){return e&&(e.base||e.nodeType===1&&e)||null}var ui=function(e,t){return e(t)},fi=function(e,t){return e(t)},di=F;function fr(e){e()}function dr(e){return e}function _r(){return[!1,fr]}var hr=Oe,_i=it;function pr(e,t){var n=t(),r=M({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Oe(function(){o.__=n,o.v=t,Yt(o)&&i({h:o})},[e,n,t]),Y(function(){return Yt(o)&&i({h:o}),e(function(){Yt(o)&&i({h:o})})},[e]),n}function Yt(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var te={useState:M,useId:qn,useReducer:Bt,useEffect:Y,useLayoutEffect:Oe,useInsertionEffect:hr,useTransition:_r,useDeferredValue:dr,useSyncExternalStore:pr,startTransition:fr,useRef:tt,useImperativeHandle:Zn,useMemo:ee,useCallback:he,useContext:Ue,useDebugValue:nt,version:"17.0.2",Children:Fo,render:Ko,hydrate:Qo,unmountComponentAtNode:ci,createPortal:Go,createElement:D,createContext:Pn,createFactory:oi,cloneElement:ai,createRef:vo,Fragment:F,isValidElement:it,isElement:_i,isFragment:ii,isMemo:si,findDOMNode:li,Component:G,PureComponent:Gt,memo:Mo,forwardRef:Uo,flushSync:fi,unstable_batchedUpdates:ui,StrictMode:di,Suspense:ot,SuspenseList:Fe,lazy:Wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ri};function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pi=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 c=Object.prototype.hasOwnProperty.bind(n),u=0;u<s.length;u++){var d=s[u];if(!c(d))return!1;var l=t[d],h=n[d];if(i=r?r.call(o,l,h,d):void 0,i===!1||i===void 0&&l!==h)return!1}return!0};const mi=hi(pi);var T="-ms-",Be="-moz-",O="-webkit-",mr="comm",st="rule",Zt="decl",gi="@import",gr="@keyframes",yi="@layer",yr=Math.abs,qt=String.fromCharCode,Xt=Object.assign;function vi(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 vr(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 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 Z(e){return e.length}function Cr(e){return e.length}function We(e,t){return t.push(e),e}function Ci(e,t){return e.map(t).join("")}function Sr(e,t){return e.filter(function(n){return!ne(n,t)})}var ct=1,Ie=1,Er=0,B=0,A=0,Te="";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 ce(e,t){return Xt(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xe(e){for(;e.root;)e=ce(e.root,{children:[e]});We(e,e.siblings)}function Si(){return A}function Ei(){return A=B>0?R(Te,--B):0,Ie--,A===10&&(Ie=1,ct--),A}function V(){return A=B<Er?R(Te,B++):0,Ie++,A===10&&(Ie=1,ct++),A}function me(){return R(Te,B)}function ut(){return B}function ft(e,t){return Ne(Te,e,t)}function Kt(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 wi(e){return ct=Ie=1,Er=Z(Te=e),B=0,[]}function bi(e){return Te="",e}function Qt(e){return vr(ft(B-1,Jt(e===91?e+2:e===40?e+1:e)))}function $i(e){for(;(A=me())&&A<33;)V();return Kt(e)>2||Kt(A)>3?"":" "}function ki(e,t){for(;--t&&V()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return ft(e,ut()+(t<6&&me()==32&&V()==32))}function Jt(e){for(;V();)switch(A){case e:return B;case 34:case 39:e!==34&&e!==39&&Jt(A);break;case 40:e===41&&Jt(e);break;case 92:V();break}return B}function Oi(e,t){for(;V()&&e+A!==57;)if(e+A===84&&me()===47)break;return"/*"+ft(t,B-1)+"*"+qt(e===47?e:V())}function Ni(e){for(;!Kt(me());)V();return ft(e,B)}function Ii(e){return bi(dt("",null,null,null,[""],e=wi(e),0,[0],e))}function dt(e,t,n,r,o,i,s,a,c){for(var u=0,d=0,l=s,h=0,_=0,v=0,w=1,$=1,m=1,g=0,k="",b=o,N=i,S=r,y=k;$;)switch(v=g,g=V()){case 40:if(v!=108&&R(y,l-1)==58){at(y+=C(Qt(g),"&","&\f"),"&\f",yr(u?a[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:y+=Qt(g);break;case 9:case 10:case 13:case 32:y+=$i(v);break;case 92:y+=ki(ut()-1,7);continue;case 47:switch(me()){case 42:case 47:We(Ti(Oi(V(),ut()),t,n,c),c);break;default:y+="/"}break;case 123*w:a[u++]=Z(y)*m;case 125*w:case 59:case 0:switch(g){case 0:case 125:$=0;case 59+d:m==-1&&(y=C(y,/\f/g,"")),_>0&&Z(y)-l&&We(_>32?br(y+";",r,n,l-1,c):br(C(y," ","")+";",r,n,l-2,c),c);break;case 59:y+=";";default:if(We(S=wr(y,t,n,u,d,o,a,k,b=[],N=[],l,i),i),g===123)if(d===0)dt(y,t,S,S,b,i,l,a,N);else switch(h===99&&R(y,3)===110?100:h){case 100:case 108:case 109:case 115:dt(e,S,S,r&&We(wr(e,S,S,0,0,o,a,k,o,b=[],l,N),N),o,N,l,a,r?b:N);break;default:dt(y,S,S,S,[""],N,0,a,N)}}u=d=_=0,w=m=1,k=y="",l=s;break;case 58:l=1+Z(y),_=v;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&Ei()==125)continue}switch(y+=qt(g),g*w){case 38:m=d>0?1:(y+="\f",-1);break;case 44:a[u++]=(Z(y)-1)*m,m=1;break;case 64:me()===45&&(y+=Qt(V())),h=me(),d=l=Z(k=y+=Ni(ut())),g++;break;case 45:v===45&&Z(y)==2&&(w=0)}}return i}function wr(e,t,n,r,o,i,s,a,c,u,d,l){for(var h=o-1,_=o===0?i:[""],v=Cr(_),w=0,$=0,m=0;w<r;++w)for(var g=0,k=Ne(e,h+1,h=yr($=s[w])),b=e;g<v;++g)(b=vr($>0?_[g]+" "+k:C(k,/&\f/g,_[g])))&&(c[m++]=b);return lt(e,t,n,o===0?st:a,c,u,d,l)}function Ti(e,t,n,r){return lt(e,t,n,mr,qt(Si()),Ne(e,2,-2),0,r)}function br(e,t,n,r,o){return lt(e,t,n,Zt,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function $r(e,t,n){switch(vi(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+Be+e+T+e+e;case 5936:switch(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"+Ne(e,t)+e;break;case 2592:case 3360:return T+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~at(e+(n=n[t].value),"span",0)?e:T+C(e,"-start","")+e+T+"grid-row-span:"+(~at(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(Z(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"+Be+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at(e,"stretch",0)?$r(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,a,c,u){return T+o+":"+i+u+(s?T+o+"-span:"+(a?c:+c-+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 xi(e,t,n,r){switch(e.type){case yi:if(e.children.length)break;case gi:case Zt:return e.return=e.return||e.value;case mr:return"";case gr:return e.return=e.value+"{"+_t(e.children,r)+"}";case st:if(!Z(e.value=e.props.join(",")))return""}return Z(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ai(e){var t=Cr(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 Ri(e){return function(t){t.root||(t=t.return)&&e(t)}}function Li(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=$r(e.value,e.length,n);return;case gr:return _t([ce(e,{value:C(e.value,"@","@"+O)})],r);case st:if(e.length)return Ci(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xe(ce(e,{props:[C(o,/:(read-\w+)/,":"+Be+"$1")]})),xe(ce(e,{props:[o]})),Xt(e,{props:Sr(n,r)});break;case"::placeholder":xe(ce(e,{props:[C(o,/:(plac\w+)/,":"+O+"input-$1")]})),xe(ce(e,{props:[C(o,/:(plac\w+)/,":"+Be+"$1")]})),xe(ce(e,{props:[C(o,/:(plac\w+)/,T+"input-$1")]})),xe(ce(e,{props:[o]})),Xt(e,{props:Sr(n,r)});break}return""})}}var Pi={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},E={},ge=typeof process<"u"&&E!==void 0&&(E.REACT_APP_SC_ATTR||E.SC_ATTR)||"data-styled",kr="active",Or="data-styled-version",ht="6.1.11",en=`/*!sc*/ `,tn=typeof window<"u"&&"HTMLElement"in window,Di=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&E!==void 0&&E.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&E.REACT_APP_SC_DISABLE_SPEEDY!==""?E.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&E.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&E!==void 0&&E.SC_DISABLE_SPEEDY!==void 0&&E.SC_DISABLE_SPEEDY!==""?E.SC_DISABLE_SPEEDY!=="false"&&E.SC_DISABLE_SPEEDY:E.NODE_ENV!=="production"),Nr=/invalid hook call/i,pt=new Set,Mi=function(e,t){if(E.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically. `)+`You may see this warning because you've called styled inside another component. To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];Nr.test(s)?(i=!1,pt.delete(r)):o.apply(void 0,pe([s],a,!1))},tt(),i&&!pt.has(r)&&(console.warn(r),pt.add(r))}catch(s){Nr.test(s.message)&&pt.delete(r)}finally{console.error=o}}},mt=Object.freeze([]),Ae=Object.freeze({});function Hi(e,t,n){return n===void 0&&(n=Ae),e.theme!==n.theme&&e.theme||t||n.theme}var nn=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"]),Ui=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fi=/(^-|-$)/g;function Ir(e){return e.replace(Ui,"-").replace(Fi,"")}var Bi=/(a)(d)/gi,gt=52,Tr=function(e){return String.fromCharCode(e+(e>25?39:97))};function rn(e){var t,n="";for(t=Math.abs(e);t>gt;t=t/gt|0)n=Tr(t%gt)+n;return(Tr(t%gt)+n).replace(Bi,"$1-$2")}var on,xr=5381,ye=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ar=function(e){return ye(xr,e)};function Rr(e){return rn(Ar(e)>>>0)}function Lr(e){return E.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function sn(e){return typeof e=="string"&&(E.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Pr=typeof Symbol=="function"&&Symbol.for,Dr=Pr?Symbol.for("react.memo"):60115,Wi=Pr?Symbol.for("react.forward_ref"):60112,zi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ji={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gi=((on={})[Wi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},on[Dr]=Mr,on);function Hr(e){return("type"in(t=e)&&t.type.$$typeof)===Dr?Mr:"$$typeof"in e?Gi[e.$$typeof]:zi;var t}var Vi=Object.defineProperty,Yi=Object.getOwnPropertyNames,Ur=Object.getOwnPropertySymbols,Zi=Object.getOwnPropertyDescriptor,qi=Object.getPrototypeOf,Fr=Object.prototype;function Br(e,t,n){if(typeof t!="string"){if(Fr){var r=qi(t);r&&r!==Fr&&Br(e,r,n)}var o=Yi(t);Ur&&(o=o.concat(Ur(t)));for(var i=Hr(e),s=Hr(t),a=0;a<o.length;++a){var c=o[a];if(!(c in ji||n&&n[c]||s&&c in s||i&&c in i)){var u=Zi(t,c);try{Vi(e,c,u)}catch{}}}}return e}function ve(e){return typeof e=="function"}function an(e){return typeof e=="object"&&"styledComponentId"in e}function Ce(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function cn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Re(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ln(e,t,n){if(n===void 0&&(n=!1),!n&&!Re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ln(e[r],t[r]);else if(Re(t))for(var r in t)e[r]=ln(e[r],t[r]);return e}function un(e,t){Object.defineProperty(e,"toString",{value:t})}var Xi=E.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s. `,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. - Are you trying to reuse it across renders? - Are you accidentally calling collectStyles twice? `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser. `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop! - Does this error occur on the client and is your target falsy? - Does this error occur on the server and is the sheet falsy? `,5:`The clone method cannot be used on the client! - Are you running in a client-like environment on the server? - Are you trying to run SSR on the client? `,6:`Trying to insert a new style tag, but the given Node is unmounted! - Are you using a custom target that isn't mounted? - Does your document not have a valid head element? - Have you accidentally removed a style tag manually? `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object. `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s 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. `,14:`ThemeProvider: "theme" prop is required. `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s. You may only create up to 1,073,741,824 components. If you're creating component