UNPKG

@innovatrics/dot-auto-capture-ui

Version:
43 lines (27 loc) 88.1 kB
(function(D){typeof define=="function"&&define.amd?define(D):D()})(function(){"use strict";var Ns=Object.defineProperty;var ks=(D,y,le)=>y in D?Ns(D,y,{enumerable:!0,configurable:!0,writable:!0,value:le}):D[y]=le;var $t=(D,y,le)=>ks(D,typeof y!="symbol"?y+"":y,le);var D,y,le,ue,wn,bn,Nt,kt,xt,Tt,Sn,Le={},En=[],_o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xe=Array.isArray;function K(e,t){for(var n in t)e[n]=t[n];return e}function $n(e){var t=e.parentNode;t&&t.removeChild(e)}function L(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?D.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return De(e,a,r,o,null)}function De(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??++le,__i:-1,__u:0};return o==null&&y.vnode!=null&&y.vnode(i),i}function ho(){return{current:null}}function W(e){return e.children}function G(e,t){this.props=e,this.context=t}function fe(e,t){if(t==null)return e.__?fe(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"?fe(e):null}function Nn(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 Nn(e)}}function Ot(e){(!e.__d&&(e.__d=!0)&&ue.push(e)&&!Ke.__r++||wn!==y.debounceRendering)&&((wn=y.debounceRendering)||bn)(Ke)}function Ke(){var e,t,n,r,o,i,a,s;for(ue.sort(Nt);e=ue.shift();)e.__d&&(t=ue.length,r=void 0,i=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=K({},o)).__v=o.__v+1,y.vnode&&y.vnode(r),It(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,i??fe(o),!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,In(a,r,s),r.__e!=i&&Nn(r)),ue.length>t&&ue.sort(Nt));Ke.__r=0}function kn(e,t,n,r,o,i,a,s,l,u,d){var c,h,f,p,v,C=r&&r.__k||En,m=t.length;for(n.__d=l,po(n,t,C),l=n.__d,c=0;c<m;c++)(f=n.__k[c])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?Le:C[f.__i]||Le,f.__i=c,It(e,f,h,o,i,a,s,l,u,d),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&At(h.ref,null,f),d.push(f.ref,f.__c||p,f)),v==null&&p!=null&&(v=p),65536&f.__u||h.__k===f.__k?(l&&typeof f.type=="string"&&!e.contains(l)&&(l=fe(h)),l=xn(f,l,e)):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:p&&(l=p.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=v}function po(e,t,n){var r,o,i,a,s,l=t.length,u=n.length,d=u,c=0;for(e.__k=[],r=0;r<l;r++)a=r+c,(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?De(null,o,null,null,null):Xe(o)?De(W,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?De(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=mo(o,n,a,d),o.__i=s,i=null,s!==-1&&(d--,(i=n[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s==a-1?c=s-a:s==a+1?c++:s>a?d>l-a?c+=s-a:c--:s<a&&c++,s!==r+c&&(o.__u|=65536))):(i=n[a])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=fe(i)),Rt(i,i,!1),n[a]=null,d--);if(d)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=fe(i)),Rt(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 J(e,t){return t=t||[],e==null||typeof e=="boolean"||(Xe(e)?e.some(function(n){J(n,t)}):t.push(e)),t}function mo(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function Tn(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||_o.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||Tn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Tn(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=kt,e.addEventListener(t,i?Tt:xt,i)):e.removeEventListener(t,i?Tt:xt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function On(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=kt++;else if(t.t<n.u)return;return n(y.event?y.event(t):t)}}}function It(e,t,n,r,o,i,a,s,l,u){var d,c,h,f,p,v,C,m,g,N,$,x,S,w,B,X,F=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(d=y.__b)&&d(t);e:if(typeof F=="function")try{if(m=t.props,g="prototype"in F&&F.prototype.render,N=(d=F.contextType)&&r[d.__c],$=d?N?N.props.value:d.__:r,n.__c?C=(c=t.__c=n.__c).__=c.__E:(g?t.__c=c=new F(m,$):(t.__c=c=new G(m,$),c.constructor=F,c.render=yo),N&&N.sub(c),c.props=m,c.state||(c.state={}),c.context=$,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),g&&c.__s==null&&(c.__s=c.state),g&&F.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=K({},c.__s)),K(c.__s,F.getDerivedStateFromProps(m,c.__s))),f=c.props,p=c.state,c.__v=t,h)g&&F.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),g&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(g&&F.getDerivedStateFromProps==null&&m!==f&&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.forEach(function(Re){Re&&(Re.__=t)}),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,$),g&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,p,v)})}if(c.context=$,c.props=m,c.__P=e,c.__e=!1,S=y.__r,w=0,g){for(c.state=c.__s,c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),B=0;B<c._sb.length;B++)c.__h.push(c._sb[B]);c._sb=[]}else do c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++w<25);c.state=c.__s,c.getChildContext!=null&&(r=K(K({},r),c.getChildContext())),g&&!h&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(f,p)),kn(e,Xe(X=d!=null&&d.type===W&&d.key==null?d.props.children:d)?X:[X],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),C&&(c.__E=c.__=null)}catch(Re){t.__v=null,l||i!=null?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),y.__e(Re,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=go(n.__e,t,n,r,o,i,a,l,u);(d=y.diffed)&&d(t)}function In(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)At(n[r],n[++r],n[++r]);y.__c&&y.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){y.__e(i,o.__v)}})}function go(e,t,n,r,o,i,a,s,l){var u,d,c,h,f,p,v,C=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((f=i[u])&&"setAttribute"in f==!!g&&(g?f.localName===g:f.nodeType===3)){e=f,i[u]=null;break}}if(e==null){if(g===null)return document.createTextNode(m);e=document.createElementNS(o,g,m.is&&m),i=null,s=!1}if(g===null)C===m||s&&e.data===m||(e.data=m);else{if(i=i&&D.call(e.childNodes),C=n.props||Le,!s&&i!=null)for(C={},u=0;u<e.attributes.length;u++)C[(f=e.attributes[u]).name]=f.value;for(u in C)if(f=C[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=f;else if(u!=="key"&&!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Je(e,u,null,f,o)}}for(u in m)f=m[u],u=="children"?h=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?p=f:u=="checked"?v=f:u==="key"||s&&typeof f!="function"||C[u]===f||Je(e,u,f,C[u],o);if(d)s||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),kn(e,Xe(h)?h:[h],t,n,r,g==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&fe(n,0),s,l),i!=null)for(u=i.length;u--;)i[u]!=null&&$n(i[u]);s||(u="value",p!==void 0&&(p!==e[u]||g==="progress"&&!p||g==="option"&&p!==C[u])&&Je(e,u,p,C[u],o),u="checked",v!==void 0&&v!==e[u]&&Je(e,u,v,C[u],o))}return e}function At(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){y.__e(r,n)}}function Rt(e,t,n){var r,o;if(y.unmount&&y.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||At(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){y.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Rt(r[o],t,n||typeof e.type!="function");n||e.__e==null||$n(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function yo(e,t,n){return this.constructor(e,n)}function ie(e,t,n){var r,o,i,a;y.__&&y.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],It(t,e=(!r&&n||t).__k=L(W,null,[e]),o||Le,Le,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?D.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),In(i,e,a)}function Pt(e,t){ie(e,t,Pt)}function Lt(e,t,n){var r,o,i,a,s=K({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?D.call(arguments,2):n),De(e.type,s,r||e.key,o||e.ref,null)}function An(e,t){var n={__c:t="__cC"+Sn++,__: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(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,Ot(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o&&o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}D=En.slice,y={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},le=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),Ot(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ot(this))},G.prototype.render=W,ue=[],bn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nt=function(e,t){return e.__v.__b-t.__v.__b},Ke.__r=0,kt=0,xt=On(!1),Tt=On(!0),Sn=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 vo=["context","children"];function Co(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,s={},l=Object.keys(r);for(a=0;a<l.length;a++)o.indexOf(i=l[a])>=0||(s[i]=r[i]);return s}(e,vo);return Lt(t,n)}function wo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(Co,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={},a=0,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(i[s[a].name]=s[a].value,i[Rn(s[a].name)]=s[a].value);for(a=l.length;a--;){var u=t(l[a],null),d=l[a].slot;d?i[d]=L(Pn,{name:d},u):o[a]=u}var c=r?L(Pn,null,o):o;return L(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pt:ie)(this._vdom,this._root)}function Rn(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function bo(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Rn(e)]=n,this._vdom=Lt(this._vdom,r),ie(this._vdom,this._root)}}function So(){ie(this._vdom=null,this._root)}function Pn(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 Eo(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=wo,o.prototype.attributeChangedCallback=bo,o.prototype.disconnectedCallback=So,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var $o=0;function _(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--$o,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return y.vnode&&y.vnode(u),u}const Ln={CONTINUE_DETECTION:"continue-detection",SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var Dn=(e=>(e.CAMERA_PROPS_CHANGED="document-auto-capture:camera-props-changed",e.CONTROL="document-auto-capture:control",e.DETECTED_DOCUMENT_CHANGED="document-auto-capture:detected-document-changed",e.DOCUMENT_DETECTION="document-auto-capture:document-detection",e.INSTRUCTION_CHANGED="document-auto-capture:instruction-changed",e.INSTRUCTION_ESCALATED="document-auto-capture:instruction-escalated",e.STATE_CHANGED="document-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="document-auto-capture:video-element-size",e))(Dn||{}),de=(e=>(e.CAMERA_PROPS_CHANGED="palm-capture:camera-props-changed",e.CONTROL="palm-capture:control",e.DETECTED_PALM_CHANGED="palm-capture:detected-palm-changed",e.INSTRUCTION_CHANGED="palm-capture:instruction-changed",e.STATE_CHANGED="palm-capture:state-changed",e.VIDEO_ELEMENT_SIZE="palm-capture:video-element-size",e))(de||{});const Z={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING"},j={CANDIDATE_SELECTION:"candidate_selection",PALM_CENTERING:"palm_centering",PALM_NOT_PRESENT:"palm_not_present",PALM_TOO_FAR:"palm_too_far",PALM_TOO_CLOSE:"palm_too_close",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched"};var ae,T,Mt,Mn,Se=0,Hn=[],I=y,Un=I.__b,Bn=I.__r,Fn=I.diffed,zn=I.__c,Wn=I.unmount,Gn=I.__;function Ee(e,t){I.__h&&I.__h(T,e,Se||t),Se=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function H(e){return Se=1,Ht(Yn,e)}function Ht(e,t,n){var r=Ee(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Yn(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.u)){var o=function(s,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,s,l,u);var c=!1;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(c=!0)}}),!(!c&&r.__c.props===s)&&(!i||i.call(this,s,l,u))};T.u=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(s,l,u){if(this.__e){var d=i;i=void 0,o(s,l,u),i=d}a&&a.call(this,s,l,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function Q(e,t){var n=Ee(ae++,3);!I.__s&&Bt(n.__H,t)&&(n.__=e,n.i=t,T.__H.__h.push(n))}function $e(e,t){var n=Ee(ae++,4);!I.__s&&Bt(n.__H,t)&&(n.__=e,n.i=t,T.__h.push(n))}function Me(e){return Se=5,ee(function(){return{current:e}},[])}function jn(e,t,n){Se=6,$e(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=Ee(ae++,7);return Bt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _e(e,t){return Se=8,ee(function(){return e},t)}function He(e){var t=T.context[e.__c],n=Ee(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function Qe(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function Vn(){var e=Ee(ae++,11);if(!e.__){for(var t=T.__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 No(){for(var e;e=Hn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(et),e.__H.__h.forEach(Ut),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){T=null,Un&&Un(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Gn&&Gn(e,t)},I.__r=function(e){Bn&&Bn(e),ae=0;var t=(T=e.__c).__H;t&&(Mt===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(et),t.__h.forEach(Ut),t.__h=[],ae=0)),Mt=T},I.diffed=function(e){Fn&&Fn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Hn.push(t)!==1&&Mn===I.requestAnimationFrame||((Mn=I.requestAnimationFrame)||ko)(No)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Mt=T=null},I.__c=function(e,t){t.some(function(n){try{n.__h.forEach(et),n.__h=n.__h.filter(function(r){return!r.__||Ut(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(r,n.__v)}}),zn&&zn(e,t)},I.unmount=function(e){Wn&&Wn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{et(r)}catch(o){t=o}}),n.__H=void 0,t&&I.__e(t,n.__v))};var Zn=typeof requestAnimationFrame=="function";function ko(e){var t,n=function(){clearTimeout(r),Zn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Zn&&(t=requestAnimationFrame(n))}function et(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Ut(e){var t=T;e.__c=e.__(),T=t}function Bt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Yn(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 he(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 xo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var To=/^((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)-.*))$/,Oo=xo(function(e){return To.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 Ft(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 zt(e,t){this.props=e,this.context=t}function Io(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ft(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}(zt.prototype=new G).isPureReactComponent=!0,zt.prototype.shouldComponentUpdate=function(e,t){return Ft(this.props,e)||Ft(this.state,t)};var Xn=y.__b;y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xn&&Xn(e)};var Ao=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ro(e){function t(n){var r=qn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ao,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Kn=function(e,t){return e==null?null:J(J(e).map(t))},Po={map:Kn,forEach:Kn,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},Lo=y.__e;y.__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)}Lo(e,t,n,r)};var Jn=y.unmount;function Qn(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 Qn(r,t,n)})),e}function er(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return er(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 tt(){this.__u=0,this.t=null,this.__b=null}function tr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Do(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return L(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Ue(){this.u=null,this.o=null}y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Jn&&Jn(e)},(tt.prototype=new G).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=tr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=er(l,l.__c.__P,l.__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(a,a)},tt.prototype.componentWillUnmount=function(){this.t=[]},tt.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]=Qn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&L(W,null,e.fallback);return o&&(o.__u&=-33),[L(W,null,t.__a?null:e.children),o]};var nr=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 Mo(e){return this.getChildContext=function(){return e.context},e.children}function Ho(e){var t=this,n=e.i;t.componentWillUnmount=function(){ie(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)}}),ie(L(Mo,{context:t.context},e.__v),t.l)}function Uo(e,t){var n=L(Ho,{__v:e,i:t});return n.containerInfo=t,n}(Ue.prototype=new G).__a=function(e){var t=this,n=tr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),nr(t,e,r)):o()};n?n(i):i()}},Ue.prototype.render=function(e){this.u=null,this.o=new Map;var t=J(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},Ue.prototype.componentDidUpdate=Ue.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){nr(e,n,t)})};var rr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Bo=/^(?: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]/,Fo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zo=/[A-Z0-9]/g,Wo=typeof document<"u",Go=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function jo(e,t,n){return t.__k==null&&(t.textContent=""),ie(e,t),typeof n=="function"&&n(),e?e.__c:null}function Vo(e,t,n){return Pt(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 or=y.event;function Zo(){}function Yo(){return this.cancelBubble}function qo(){return this.defaultPrevented}y.event=function(e){return or&&(e=or(e)),e.persist=Zo,e.isPropagationStopped=Yo,e.isDefaultPrevented=qo,e.nativeEvent=e};var Wt,Xo={enumerable:!1,configurable:!0,get:function(){return this.class}},ir=y.vnode;y.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Wo&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||Go(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":Fo.test(i)?i=s:r.indexOf("-")===-1&&Bo.test(i)?i=i.replace(zo,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=J(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=J(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Xo)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=rr,ir&&ir(e)};var ar=y.__r;y.__r=function(e){ar&&ar(e),Wt=e.__c};var sr=y.diffed;y.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),Wt=null};var Ko={ReactCurrentDispatcher:{current:{readContext:function(e){return Wt.__n[e.__c].props.value},useCallback:_e,useContext:He,useDebugValue:Qe,useDeferredValue:lr,useEffect:Q,useId:Vn,useImperativeHandle:jn,useInsertionEffect:fr,useLayoutEffect:$e,useMemo:ee,useReducer:Ht,useRef:Me,useState:H,useSyncExternalStore:dr,useTransition:ur}}};function Jo(e){return L.bind(null,e)}function nt(e){return!!e&&e.$$typeof===rr}function Qo(e){return nt(e)&&e.type===W}function ei(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ti(e){return nt(e)?Lt.apply(null,arguments):e}function ni(e){return!!e.__k&&(ie(null,e),!0)}function ri(e){return e&&(e.base||e.nodeType===1&&e)||null}var oi=function(e,t){return e(t)},ii=function(e,t){return e(t)},ai=W;function cr(e){e()}function lr(e){return e}function ur(){return[!1,cr]}var fr=$e,si=nt;function dr(e,t){var n=t(),r=H({h:{__:n,v:t}}),o=r[0].h,i=r[1];return $e(function(){o.__=n,o.v=t,Gt(o)&&i({h:o})},[e,n,t]),Q(function(){return Gt(o)&&i({h:o}),e(function(){Gt(o)&&i({h:o})})},[e]),n}function Gt(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:H,useId:Vn,useReducer:Ht,useEffect:Q,useLayoutEffect:$e,useInsertionEffect:fr,useTransition:ur,useDeferredValue:lr,useSyncExternalStore:dr,startTransition:cr,useRef:Me,useImperativeHandle:jn,useMemo:ee,useCallback:_e,useContext:He,useDebugValue:Qe,version:"17.0.2",Children:Po,render:jo,hydrate:Vo,unmountComponentAtNode:ni,createPortal:Uo,createElement:L,createContext:An,createFactory:Jo,cloneElement:ti,createRef:ho,Fragment:W,isValidElement:nt,isElement:si,isFragment:Qo,isMemo:ei,findDOMNode:ri,Component:G,PureComponent:zt,memo:Io,forwardRef:Ro,flushSync:ii,unstable_batchedUpdates:oi,StrictMode:ai,Suspense:tt,SuspenseList:Ue,lazy:Do,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ko};function ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var li=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var d=a[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};const ui=ci(li);var O="-ms-",Be="-moz-",k="-webkit-",_r="comm",rt="rule",jt="decl",fi="@import",hr="@keyframes",di="@layer",pr=Math.abs,Vt=String.fromCharCode,Zt=Object.assign;function _i(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 mr(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function ot(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 Y(e){return e.length}function gr(e){return e.length}function Fe(e,t){return t.push(e),e}function hi(e,t){return e.map(t).join("")}function yr(e,t){return e.filter(function(n){return!ne(n,t)})}var it=1,ke=1,vr=0,U=0,A=0,xe="";function at(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:it,column:ke,length:a,return:"",siblings:s}}function se(e,t){return Zt(at("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=se(e.root,{children:[e]});Fe(e,e.siblings)}function pi(){return A}function mi(){return A=U>0?R(xe,--U):0,ke--,A===10&&(ke=1,it--),A}function V(){return A=U<vr?R(xe,U++):0,ke++,A===10&&(ke=1,it++),A}function pe(){return R(xe,U)}function st(){return U}function ct(e,t){return Ne(xe,e,t)}function Yt(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 gi(e){return it=ke=1,vr=Y(xe=e),U=0,[]}function yi(e){return xe="",e}function qt(e){return mr(ct(U-1,Xt(e===91?e+2:e===40?e+1:e)))}function vi(e){for(;(A=pe())&&A<33;)V();return Yt(e)>2||Yt(A)>3?"":" "}function Ci(e,t){for(;--t&&V()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return ct(e,st()+(t<6&&pe()==32&&V()==32))}function Xt(e){for(;V();)switch(A){case e:return U;case 34:case 39:e!==34&&e!==39&&Xt(A);break;case 40:e===41&&Xt(e);break;case 92:V();break}return U}function wi(e,t){for(;V()&&e+A!==57;)if(e+A===84&&pe()===47)break;return"/*"+ct(t,U-1)+"*"+Vt(e===47?e:V())}function bi(e){for(;!Yt(pe());)V();return ct(e,U)}function Si(e){return yi(lt("",null,null,null,[""],e=gi(e),0,[0],e))}function lt(e,t,n,r,o,i,a,s,l){for(var u=0,d=0,c=a,h=0,f=0,p=0,v=1,C=1,m=1,g=0,N="",$=o,x=i,S=r,w=N;C;)switch(p=g,g=V()){case 40:if(p!=108&&R(w,c-1)==58){ot(w+=b(qt(g),"&","&\f"),"&\f",pr(u?s[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:w+=qt(g);break;case 9:case 10:case 13:case 32:w+=vi(p);break;case 92:w+=Ci(st()-1,7);continue;case 47:switch(pe()){case 42:case 47:Fe(Ei(wi(V(),st()),t,n,l),l);break;default:w+="/"}break;case 123*v:s[u++]=Y(w)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+d:m==-1&&(w=b(w,/\f/g,"")),f>0&&Y(w)-c&&Fe(f>32?wr(w+";",r,n,c-1,l):wr(b(w," ","")+";",r,n,c-2,l),l);break;case 59:w+=";";default:if(Fe(S=Cr(w,t,n,u,d,o,s,N,$=[],x=[],c,i),i),g===123)if(d===0)lt(w,t,S,S,$,i,c,s,x);else switch(h===99&&R(w,3)===110?100:h){case 100:case 108:case 109:case 115:lt(e,S,S,r&&Fe(Cr(e,S,S,0,0,o,s,N,o,$=[],c,x),x),o,x,c,s,r?$:x);break;default:lt(w,S,S,S,[""],x,0,s,x)}}u=d=f=0,v=m=1,N=w="",c=a;break;case 58:c=1+Y(w),f=p;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&mi()==125)continue}switch(w+=Vt(g),g*v){case 38:m=d>0?1:(w+="\f",-1);break;case 44:s[u++]=(Y(w)-1)*m,m=1;break;case 64:pe()===45&&(w+=qt(V())),h=pe(),d=c=Y(N=w+=bi(st())),g++;break;case 45:p===45&&Y(w)==2&&(v=0)}}return i}function Cr(e,t,n,r,o,i,a,s,l,u,d,c){for(var h=o-1,f=o===0?i:[""],p=gr(f),v=0,C=0,m=0;v<r;++v)for(var g=0,N=Ne(e,h+1,h=pr(C=a[v])),$=e;g<p;++g)($=mr(C>0?f[g]+" "+N:b(N,/&\f/g,f[g])))&&(l[m++]=$);return at(e,t,n,o===0?rt:s,l,u,d,c)}function Ei(e,t,n,r){return at(e,t,n,_r,Vt(pi()),Ne(e,2,-2),0,r)}function wr(e,t,n,r,o){return at(e,t,n,jt,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function br(e,t,n){switch(_i(e,t)){case 5103:return k+"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 k+e+e;case 4789:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+Be+e+O+e+e;case 5936:switch(R(e,t+11)){case 114:return k+e+O+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+O+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+O+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+O+e+e;case 6165:return k+e+O+"flex-"+e+e;case 5187:return k+e+b(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return k+e+O+"flex-item-"+b(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":O+"grid-row-"+b(e,/flex-|-self/g,""))+e;case 4675:return k+e+O+"flex-line-pack"+b(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+O+b(e,"shrink","negative")+e;case 5292:return k+e+O+b(e,"basis","preferred-size")+e;case 6060:return k+"box-"+b(e,"-grow","")+k+e+O+b(e,"grow","positive")+e;case 4554:return k+b(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!ne(e,/flex-|baseline/))return O+"grid-column-align"+Ne(e,t)+e;break;case 2592:case 3360:return O+b(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~ot(e+(n=n[t].value),"span",0)?e:O+b(e,"-start","")+e+O+"grid-row-span:"+(~ot(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":O+b(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:O+b(b(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,k+"$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(Y(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Be+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ot(e,"stretch",0)?br(b(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return b(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,s,l,u){return O+o+":"+i+u+(a?O+o+"-span:"+(s?l:+l-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return b(e,":",":"+k)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return b(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(R(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+O+"$2box$3")+e;case 100:return b(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(e,"scroll-","scroll-snap-")+e}return e}function ut(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $i(e,t,n,r){switch(e.type){case di:if(e.children.length)break;case fi:case jt:return e.return=e.return||e.value;case _r:return"";case hr:return e.return=e.value+"{"+ut(e.children,r)+"}";case rt:if(!Y(e.value=e.props.join(",")))return""}return Y(n=ut(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ni(e){var t=gr(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function ki(e){return function(t){t.root||(t=t.return)&&e(t)}}function xi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jt:e.return=br(e.value,e.length,n);return;case hr:return ut([se(e,{value:b(e.value,"@","@"+k)})],r);case rt:if(e.length)return hi(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(se(e,{props:[b(o,/:(read-\w+)/,":"+Be+"$1")]})),Te(se(e,{props:[o]})),Zt(e,{props:yr(n,r)});break;case"::placeholder":Te(se(e,{props:[b(o,/:(plac\w+)/,":"+k+"input-$1")]})),Te(se(e,{props:[b(o,/:(plac\w+)/,":"+Be+"$1")]})),Te(se(e,{props:[b(o,/:(plac\w+)/,O+"input-$1")]})),Te(se(e,{props:[o]})),Zt(e,{props:yr(n,r)});break}return""})}}var Ti={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},E={},me=typeof process<"u"&&E!==void 0&&(E.REACT_APP_SC_ATTR||E.SC_ATTR)||"data-styled",Sr="active",Er="data-styled-version",ft="6.1.11",Kt=`/*!sc*/ `,Jt=typeof window<"u"&&"HTMLElement"in window,Oi=!!(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"),$r=/invalid hook call/i,dt=new Set,Ii=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(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];$r.test(a)?(i=!1,dt.delete(r)):o.apply(void 0,he([a],s,!1))},Me(),i&&!dt.has(r)&&(console.warn(r),dt.add(r))}catch(a){$r.test(a.message)&&dt.delete(r)}finally{console.error=o}}},_t=Object.freeze([]),Oe=Object.freeze({});function Ai(e,t,n){return n===void 0&&(n=Oe),e.theme!==n.theme&&e.theme||t||n.theme}var Qt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ri=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Pi=/(^-|-$)/g;function Nr(e){return e.replace(Ri,"-").replace(Pi,"")}var Li=/(a)(d)/gi,ht=52,kr=function(e){return String.fromCharCode(e+(e>25?39:97))};function en(e){var t,n="";for(t=Math.abs(e);t>ht;t=t/ht|0)n=kr(t%ht)+n;return(kr(t%ht)+n).replace(Li,"$1-$2")}var tn,xr=5381,ge=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Tr=function(e){return ge(xr,e)};function Or(e){return en(Tr(e)>>>0)}function Ir(e){return E.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function nn(e){return typeof e=="string"&&(E.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ar=typeof Symbol=="function"&&Symbol.for,Rr=Ar?Symbol.for("react.memo"):60115,Di=Ar?Symbol.for("react.forward_ref"):60112,Mi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Hi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Pr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ui=((tn={})[Di]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tn[Rr]=Pr,tn);function Lr(e){return("type"in(t=e)&&t.type.$$typeof)===Rr?Pr:"$$typeof"in e?Ui[e.$$typeof]:Mi;var t}var Bi=Object.defineProperty,Fi=Object.getOwnPropertyNames,Dr=Object.getOwnPropertySymbols,zi=Object.getOwnPropertyDescriptor,Wi=Object.getPrototypeOf,Mr=Object.prototype;function Hr(e,t,n){if(typeof t!="string"){if(Mr){var r=Wi(t);r&&r!==Mr&&Hr(e,r,n)}var o=Fi(t);Dr&&(o=o.concat(Dr(t)));for(var i=Lr(e),a=Lr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Hi||n&&n[l]||a&&l in a||i&&l in i)){var u=zi(t,l);try{Bi(e,l,u)}catch{}}}}return e}function ye(e){return typeof e=="function"}function rn(e){return typeof e=="object"&&"styledComponentId"in e}function ve(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 Ie(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function an(e,t,n){if(n===void 0&&(n=!1),!n&&!Ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=an(e[r],t[r]);else if(Ie(t))for(var r in t)e[r]=an(e[r],t[r]);return e}function sn(e,t){Object.defineProperty(e,"toString",{value:t})}var Gi=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 components dynamically, as for instance in your render method then you may be running into this limitation. `,17:`CSSStyleSheet could not be fou