UNPKG

@innovatrics/dot-auto-capture-ui

Version:
43 lines (27 loc) 107 kB
(function(R){typeof define=="function"&&define.amd?define(R):R()})(function(){"use strict";var Us=Object.defineProperty;var Ws=(R,L,ut)=>L in R?Us(R,L,{enumerable:!0,configurable:!0,writable:!0,value:ut}):R[L]=ut;var Ve=(R,L,ut)=>Ws(R,typeof L!="symbol"?L+"":L,ut);var R,L,ut,dt,wr,Sr,ke,Oe,xe,Ie,br,Rt={},Er=[],_o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Kt=Array.isArray;function J(t,e){for(var r in e)t[r]=e[r];return t}function Vr(t){var e=t.parentNode;e&&e.removeChild(t)}function T(t,e,r){var n,o,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?o=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?R.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)s[i]===void 0&&(s[i]=t.defaultProps[i]);return At(t,s,n,o,null)}function At(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ut,__i:-1,__u:0};return o==null&&L.vnode!=null&&L.vnode(i),i}function mo(){return{current:null}}function Z(t){return t.children}function G(t,e){this.props=t,this.context=e}function ft(t,e){if(e==null)return t.__?ft(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?ft(t):null}function kr(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return kr(t)}}function Ne(t){(!t.__d&&(t.__d=!0)&&dt.push(t)&&!Jt.__r++||wr!==L.debounceRendering)&&((wr=L.debounceRendering)||Sr)(Jt)}function Jt(){var t,e,r,n,o,i,s,c;for(dt.sort(ke);t=dt.shift();)t.__d&&(e=dt.length,n=void 0,i=(o=(r=t).__v).__e,s=[],c=[],r.__P&&((n=J({},o)).__v=o.__v+1,L.vnode&&L.vnode(n),$e(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[i]:null,s,i??ft(o),!!(32&o.__u),c),n.__v=o.__v,n.__.__k[n.__i]=n,$r(s,n,c),n.__e!=i&&kr(n)),dt.length>e&&dt.sort(ke));Jt.__r=0}function Or(t,e,r,n,o,i,s,c,u,d,h){var l,p,f,_,y,v=n&&n.__k||Er,m=e.length;for(r.__d=u,go(r,e,v),u=r.__d,l=0;l<m;l++)(f=r.__k[l])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?Rt:v[f.__i]||Rt,f.__i=l,$e(t,f,p,o,i,s,c,u,d,h),_=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Me(p.ref,null,f),h.push(f.ref,f.__c||_,f)),y==null&&_!=null&&(y=_),65536&f.__u||p.__k===f.__k?(u&&typeof f.type=="string"&&!t.contains(u)&&(u=ft(p)),u=xr(f,u,t)):typeof f.type=="function"&&f.__d!==void 0?u=f.__d:_&&(u=_.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=u,r.__e=y}function go(t,e,r){var n,o,i,s,c,u=e.length,d=r.length,h=d,l=0;for(t.__k=[],n=0;n<u;n++)s=n+l,(o=t.__k[n]=(o=e[n])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?At(null,o,null,null,null):Kt(o)?At(Z,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?At(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=t,o.__b=t.__b+1,c=Lo(o,r,s,h),o.__i=c,i=null,c!==-1&&(h--,(i=r[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):c!==s&&(c==s-1?l=c-s:c==s+1?l++:c>s?h>u-s?l+=c-s:l--:c<s&&l++,c!==n+l&&(o.__u|=65536))):(i=r[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=ft(i)),De(i,i,!1),r[s]=null,h--);if(h)for(n=0;n<d;n++)(i=r[n])!=null&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=ft(i)),De(i,i))}function xr(t,e,r){var n,o;if(typeof t.type=="function"){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,e=xr(n[o],e,r));return e}t.__e!=e&&(r.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function Q(t,e){return e=e||[],t==null||typeof t=="boolean"||(Kt(t)?t.some(function(r){Q(r,e)}):e.push(t)),e}function Lo(t,e,r,n){var o=t.key,i=t.type,s=r-1,c=r+1,u=e[r];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return r;if(n>(u!=null&&!(131072&u.__u)?1:0))for(;s>=0||c<e.length;){if(s>=0){if((u=e[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(c<e.length){if((u=e[c])&&!(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Ir(t,e,r){e[0]==="-"?t.setProperty(e,r??""):t[e]=r==null?"":typeof r!="number"||_o.test(e)?r:r+"px"}function Qt(t,e,r,n,o){var i;t:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||Ir(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||Ir(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n?r.u=n.u:(r.u=Oe,t.addEventListener(e,i?Ie:xe,i)):t.removeEventListener(e,i?Ie:xe,i);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r??"";break t}catch{}typeof r=="function"||(r==null||r===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function Nr(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Oe++;else if(e.t<r.u)return;return r(L.event?L.event(e):e)}}}function $e(t,e,r,n,o,i,s,c,u,d){var h,l,p,f,_,y,v,m,g,V,E,O,S,C,W,K,F=e.type;if(e.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),i=[c=e.__e=r.__e]),(h=L.__b)&&h(e);t:if(typeof F=="function")try{if(m=e.props,g="prototype"in F&&F.prototype.render,V=(h=F.contextType)&&n[h.__c],E=h?V?V.props.value:h.__:n,r.__c?v=(l=e.__c=r.__c).__=l.__E:(g?e.__c=l=new F(m,E):(e.__c=l=new G(m,E),l.constructor=F,l.render=vo),V&&V.sub(l),l.props=m,l.state||(l.state={}),l.context=E,l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),g&&l.__s==null&&(l.__s=l.state),g&&F.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=J({},l.__s)),J(l.__s,F.getDerivedStateFromProps(m,l.__s))),f=l.props,_=l.state,l.__v=e,p)g&&F.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),g&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g&&F.getDerivedStateFromProps==null&&m!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,E),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,E)===!1||e.__v===r.__v)){for(e.__v!==r.__v&&(l.props=m,l.state=l.__s,l.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(Dt){Dt&&(Dt.__=e)}),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[],l.__h.length&&s.push(l);break t}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,E),g&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,_,y)})}if(l.context=E,l.props=m,l.__P=t,l.__e=!1,S=L.__r,C=0,g){for(l.state=l.__s,l.__d=!1,S&&S(e),h=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(e),h=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++C<25);l.state=l.__s,l.getChildContext!=null&&(n=J(J({},n),l.getChildContext())),g&&!p&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(f,_)),Or(t,Kt(K=h!=null&&h.type===Z&&h.key==null?h.props.children:h)?K:[K],e,r,n,o,i,s,c,u,d),l.base=e.__e,e.__u&=-161,l.__h.length&&s.push(l),v&&(l.__E=l.__=null)}catch(Dt){e.__v=null,u||i!=null?(e.__e=c,e.__u|=u?160:32,i[i.indexOf(c)]=null):(e.__e=r.__e,e.__k=r.__k),L.__e(Dt,e,r)}else i==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=yo(r.__e,e,r,n,o,i,s,u,d);(h=L.diffed)&&h(e)}function $r(t,e,r){e.__d=void 0;for(var n=0;n<r.length;n++)Me(r[n],r[++n],r[++n]);L.__c&&L.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){L.__e(i,o.__v)}})}function yo(t,e,r,n,o,i,s,c,u){var d,h,l,p,f,_,y,v=r.props,m=e.props,g=e.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(d=0;d<i.length;d++)if((f=i[d])&&"setAttribute"in f==!!g&&(g?f.localName===g:f.nodeType===3)){t=f,i[d]=null;break}}if(t==null){if(g===null)return document.createTextNode(m);t=document.createElementNS(o,g,m.is&&m),i=null,c=!1}if(g===null)v===m||c&&t.data===m||(t.data=m);else{if(i=i&&R.call(t.childNodes),v=r.props||Rt,!c&&i!=null)for(v={},d=0;d<t.attributes.length;d++)v[(f=t.attributes[d]).name]=f.value;for(d in v)if(f=v[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=f;else if(d!=="key"&&!(d in m)){if(d=="value"&&"defaultValue"in m||d=="checked"&&"defaultChecked"in m)continue;Qt(t,d,null,f,o)}}for(d in m)f=m[d],d=="children"?p=f:d=="dangerouslySetInnerHTML"?h=f:d=="value"?_=f:d=="checked"?y=f:d==="key"||c&&typeof f!="function"||v[d]===f||Qt(t,d,f,v[d],o);if(h)c||l&&(h.__html===l.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(l&&(t.innerHTML=""),Or(t,Kt(p)?p:[p],e,r,n,g==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&ft(r,0),c,u),i!=null)for(d=i.length;d--;)i[d]!=null&&Vr(i[d]);c||(d="value",_!==void 0&&(_!==t[d]||g==="progress"&&!_||g==="option"&&_!==v[d])&&Qt(t,d,_,v[d],o),d="checked",y!==void 0&&y!==t[d]&&Qt(t,d,y,v[d],o))}return t}function Me(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(n){L.__e(n,r)}}function De(t,e,r){var n,o;if(L.unmount&&L.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||Me(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){L.__e(i,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&De(n[o],e,r||typeof t.type!="function");r||t.__e==null||Vr(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function vo(t,e,r){return this.constructor(t,r)}function at(t,e,r){var n,o,i,s;L.__&&L.__(t,e),o=(n=typeof r=="function")?null:r&&r.__k||e.__k,i=[],s=[],$e(e,t=(!n&&r||e).__k=T(Z,null,[t]),o||Rt,Rt,e.namespaceURI,!n&&r?[r]:o?null:e.firstChild?R.call(e.childNodes):null,i,!n&&r?r:o?o.__e:e.firstChild,n,s),$r(i,t,s)}function Te(t,e){at(t,e,Te)}function Re(t,e,r){var n,o,i,s,c=J({},t.props);for(i in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)i=="key"?n=e[i]:i=="ref"?o=e[i]:c[i]=e[i]===void 0&&s!==void 0?s[i]:e[i];return arguments.length>2&&(c.children=arguments.length>3?R.call(arguments,2):r),At(t.type,c,n||t.key,o||t.ref,null)}function Mr(t,e){var r={__c:e="__cC"+br++,__:t,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(c){c.__e=!0,Ne(c)})},this.sub=function(s){o.push(s);var c=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.splice(o.indexOf(s),1),c&&c.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}R=Er.slice,L={__e:function(t,e,r,n){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,n||{}),s=o.__d),s)return o.__E=o}catch(c){t=c}throw t}},ut=0,G.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=J({},this.state),typeof t=="function"&&(t=t(J({},r),this.props)),t&&J(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ne(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ne(this))},G.prototype.render=Z,dt=[],Sr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ke=function(t,e){return t.__v.__b-e.__v.__b},Jt.__r=0,Oe=0,xe=Nr(!1),Ie=Nr(!0),br=0;function Ae(){return(Ae=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var Co=["context","children"];function wo(t){this.getChildContext=function(){return t.context};var e=t.children,r=function(n,o){if(n==null)return{};var i,s,c={},u=Object.keys(n);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(c[i]=n[i]);return c}(t,Co);return Re(e,r)}function So(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=T(wo,Ae({},this._props,{context:t.detail.context}),function e(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},s=0,c=r.attributes,u=r.childNodes;for(s=c.length;s--;)c[s].name!=="slot"&&(i[c[s].name]=c[s].value,i[Dr(c[s].name)]=c[s].value);for(s=u.length;s--;){var d=e(u[s],null),h=u[s].slot;h?i[h]=T(Tr,{name:h},d):o[s]=d}var l=n?T(Tr,null,o):o;return T(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Te:at)(this._vdom,this._root)}function Dr(t){return t.replace(/-(\w)/g,function(e,r){return r?r.toUpperCase():""})}function bo(t,e,r){if(this._vdom){var n={};n[t]=r=r??void 0,n[Dr(t)]=r,this._vdom=Re(this._vdom,n),at(this._vdom,this._root)}}function Eo(){at(this._vdom=null,this._root)}function Tr(t,e){var r=this;return T("slot",Ae({},t,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=e},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Vo(t,e,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=t,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=So,o.prototype.attributeChangedCallback=bo,o.prototype.disconnectedCallback=Eo,r=r||t.observedAttributes||Object.keys(t.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var c=typeof s;s!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,s)}})}),customElements.define(e,o)}var ko=0;function a(t,e,r,n,o,i){e||(e={});var s,c,u=e;if("ref"in u)for(c in u={},e)c=="ref"?s=e[c]:u[c]=e[c];var d={type:t,props:u,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ko,__i:-1,__u:0,__source:o,__self:i};if(typeof t=="function"&&(s=t.defaultProps))for(c in s)u[c]===void 0&&(u[c]=s[c]);return L.vnode&&L.vnode(d),d}const Rr={CONTINUE_DETECTION:"continue-detection",SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var ht=(t=>(t.CAMERA_PROPS_CHANGED="document-auto-capture:camera-props-changed",t.CONTROL="document-auto-capture:control",t.DETECTED_DOCUMENT_CHANGED="document-auto-capture:detected-document-changed",t.DOCUMENT_DETECTION="document-auto-capture:document-detection",t.INSTRUCTION_CHANGED="document-auto-capture:instruction-changed",t.INSTRUCTION_ESCALATED="document-auto-capture:instruction-escalated",t.STATE_CHANGED="document-auto-capture:state-changed",t.VIDEO_ELEMENT_SIZE="document-auto-capture:video-element-size",t))(ht||{}),Ar=(t=>(t.CAMERA_PROPS_CHANGED="palm-capture:camera-props-changed",t.CONTROL="palm-capture:control",t.DETECTED_PALM_CHANGED="palm-capture:detected-palm-changed",t.INSTRUCTION_CHANGED="palm-capture:instruction-changed",t.STATE_CHANGED="palm-capture:state-changed",t.VIDEO_ELEMENT_SIZE="palm-capture:video-element-size",t))(Ar||{});const A={CANDIDATE_SELECTION:"candidate_selection",DOCUMENT_CENTERING:"document_centering",DOCUMENT_NOT_PRESENT:"document_not_present",DOCUMENT_TOO_FAR:"document_too_far",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",HOTSPOTS_PRESENT:"hotspots_present"},Y={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING"};var st,x,Pe,Pr,bt=0,Hr=[],N=L,Zr=N.__b,Br=N.__r,Ur=N.diffed,Wr=N.__c,Fr=N.unmount,zr=N.__;function Et(t,e){N.__h&&N.__h(x,t,bt||e),bt=0;var r=x.__H||(x.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function B(t){return bt=1,He(qr,t)}function He(t,e,r){var n=Et(st++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):qr(void 0,e),function(c){var u=n.__N?n.__N[0]:n.__[0],d=n.t(u,c);u!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=x,!x.u)){var o=function(c,u,d){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(p){return!!p.__c});if(h.every(function(p){return!p.__N}))return!i||i.call(this,c,u,d);var l=!1;return h.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(l=!0)}}),!(!l&&n.__c.props===c)&&(!i||i.call(this,c,u,d))};x.u=!0;var i=x.shouldComponentUpdate,s=x.componentWillUpdate;x.componentWillUpdate=function(c,u,d){if(this.__e){var h=i;i=void 0,o(c,u,d),i=h}s&&s.call(this,c,u,d)},x.shouldComponentUpdate=o}return n.__N||n.__}function tt(t,e){var r=Et(st++,3);!N.__s&&Be(r.__H,e)&&(r.__=t,r.i=e,x.__H.__h.push(r))}function Vt(t,e){var r=Et(st++,4);!N.__s&&Be(r.__H,e)&&(r.__=t,r.i=e,x.__h.push(r))}function Pt(t){return bt=5,et(function(){return{current:t}},[])}function Gr(t,e,r){bt=6,Vt(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},r==null?r:r.concat(t))}function et(t,e){var r=Et(st++,7);return Be(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function pt(t,e){return bt=8,et(function(){return t},e)}function Ht(t){var e=x.context[t.__c],r=Et(st++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(x)),e.props.value):t.__}function te(t,e){N.useDebugValue&&N.useDebugValue(e?e(t):t)}function jr(){var t=Et(st++,11);if(!t.__){for(var e=x.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Oo(){for(var t;t=Hr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ee),t.__H.__h.forEach(Ze),t.__H.__h=[]}catch(e){t.__H.__h=[],N.__e(e,t.__v)}}N.__b=function(t){x=null,Zr&&Zr(t)},N.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),zr&&zr(t,e)},N.__r=function(t){Br&&Br(t),st=0;var e=(x=t.__c).__H;e&&(Pe===x?(e.__h=[],x.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(e.__h.forEach(ee),e.__h.forEach(Ze),e.__h=[],st=0)),Pe=x},N.diffed=function(t){Ur&&Ur(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Hr.push(e)!==1&&Pr===N.requestAnimationFrame||((Pr=N.requestAnimationFrame)||xo)(Oo)),e.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),Pe=x=null},N.__c=function(t,e){e.some(function(r){try{r.__h.forEach(ee),r.__h=r.__h.filter(function(n){return!n.__||Ze(n)})}catch(n){e.some(function(o){o.__h&&(o.__h=[])}),e=[],N.__e(n,r.__v)}}),Wr&&Wr(t,e)},N.unmount=function(t){Fr&&Fr(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ee(n)}catch(o){e=o}}),r.__H=void 0,e&&N.__e(e,r.__v))};var Yr=typeof requestAnimationFrame=="function";function xo(t){var e,r=function(){clearTimeout(n),Yr&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);Yr&&(e=requestAnimationFrame(r))}function ee(t){var e=x,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),x=e}function Ze(t){var e=x;t.__c=t.__(),x=e}function Be(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function qr(t,e){return typeof e=="function"?e(t):e}var D=function(){return D=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},D.apply(this,arguments)};function _t(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;function Io(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var No=/^((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)-.*))$/,$o=Io(function(t){return No.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Xr(t,e){for(var r in e)t[r]=e[r];return t}function Ue(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function We(t,e){this.props=t,this.context=e}function Mo(t,e){function r(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!s:Ue(this.props,o)}function n(o){return this.shouldComponentUpdate=r,T(t,o)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(We.prototype=new G).isPureReactComponent=!0,We.prototype.shouldComponentUpdate=function(t,e){return Ue(this.props,t)||Ue(this.state,e)};var Kr=L.__b;L.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Kr&&Kr(t)};var Do=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function To(t){function e(r){var n=Xr({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Do,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Jr=function(t,e){return t==null?null:Q(Q(t).map(e))},Ro={map:Jr,forEach:Jr,count:function(t){return t?Q(t).length:0},only:function(t){var e=Q(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Q},Ao=L.__e;L.__e=function(t,e,r,n){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),o.__c(t,e)}Ao(t,e,r,n)};var Qr=L.unmount;function tn(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Xr({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return tn(n,e,r)})),t}function en(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return en(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function re(){this.__u=0,this.t=null,this.__b=null}function rn(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Po(t){var e,r,n;function o(i){if(e||(e=t()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw e;return T(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Zt(){this.u=null,this.o=null}L.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Qr&&Qr(t)},(re.prototype=new G).__c=function(t,e){var r=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=rn(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(c):c())};r.__R=s;var c=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=en(u,u.__c.__P,u.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.t.pop();)d.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(s,s)},re.prototype.componentWillUnmount=function(){this.t=[]},re.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=tn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__a&&T(Z,null,t.fallback);return o&&(o.__u&=-33),[T(Z,null,e.__a?null:t.children),o]};var nn=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};function Ho(t){return this.getChildContext=function(){return t.context},t.children}function Zo(t){var e=this,r=t.i;e.componentWillUnmount=function(){at(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),at(T(Ho,{context:e.context},t.__v),e.l)}function Bo(t,e){var r=T(Zo,{__v:t,i:e});return r.containerInfo=e,r}(Zt.prototype=new G).__a=function(t){var e=this,r=rn(e.__v),n=e.o.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),nn(e,t,n)):o()};r?r(i):i()}},Zt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Q(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},Zt.prototype.componentDidUpdate=Zt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){nn(t,r,e)})};var on=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Uo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Wo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fo=/[A-Z0-9]/g,zo=typeof document<"u",Go=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function jo(t,e,r){return e.__k==null&&(e.textContent=""),at(t,e),typeof r=="function"&&r(),t?t.__c:null}function Yo(t,e,r){return Te(t,e),typeof r=="function"&&r(),t?t.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(G.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var an=L.event;function qo(){}function Xo(){return this.cancelBubble}function Ko(){return this.defaultPrevented}L.event=function(t){return an&&(t=an(t)),t.persist=qo,t.isPropagationStopped=Xo,t.isDefaultPrevented=Ko,t.nativeEvent=t};var Fe,Jo={enumerable:!1,configurable:!0,get:function(){return this.class}},sn=L.vnode;L.vnode=function(t){typeof t.type=="string"&&function(e){var r=e.props,n=e.type,o={};for(var i in r){var s=r[i];if(!(i==="value"&&"defaultValue"in r&&s==null||zo&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c==="ondoubleclick"?i="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Go(r.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":Wo.test(i)?i=c:n.indexOf("-")===-1&&Uo.test(i)?i=i.replace(Fo,"-$&").toLowerCase():s===null&&(s=void 0):c=i="oninput",c==="oninput"&&o[i=c]&&(i="oninputCapture"),o[i]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Q(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Jo)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),e.props=o}(t),t.$$typeof=on,sn&&sn(t)};var cn=L.__r;L.__r=function(t){cn&&cn(t),Fe=t.__c};var ln=L.diffed;L.diffed=function(t){ln&&ln(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),Fe=null};var Qo={ReactCurrentDispatcher:{current:{readContext:function(t){return Fe.__n[t.__c].props.value},useCallback:pt,useContext:Ht,useDebugValue:te,useDeferredValue:dn,useEffect:tt,useId:jr,useImperativeHandle:Gr,useInsertionEffect:hn,useLayoutEffect:Vt,useMemo:et,useReducer:He,useRef:Pt,useState:B,useSyncExternalStore:pn,useTransition:fn}}};function ti(t){return T.bind(null,t)}function ne(t){return!!t&&t.$$typeof===on}function ei(t){return ne(t)&&t.type===Z}function ri(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function ni(t){return ne(t)?Re.apply(null,arguments):t}function oi(t){return!!t.__k&&(at(null,t),!0)}function ii(t){return t&&(t.base||t.nodeType===1&&t)||null}var ai=function(t,e){return t(e)},si=function(t,e){return t(e)},ci=Z;function un(t){t()}function dn(t){return t}function fn(){return[!1,un]}var hn=Vt,li=ne;function pn(t,e){var r=e(),n=B({h:{__:r,v:e}}),o=n[0].h,i=n[1];return Vt(function(){o.__=r,o.v=e,ze(o)&&i({h:o})},[t,r,e]),tt(function(){return ze(o)&&i({h:o}),t(function(){ze(o)&&i({h:o})})},[t]),r}function ze(t){var e,r,n=t.v,o=t.__;try{var i=n();return!((e=o)===(r=i)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch{return!0}}var rt={useState:B,useId:jr,useReducer:He,useEffect:tt,useLayoutEffect:Vt,useInsertionEffect:hn,useTransition:fn,useDeferredValue:dn,useSyncExternalStore:pn,startTransition:un,useRef:Pt,useImperativeHandle:Gr,useMemo:et,useCallback:pt,useContext:Ht,useDebugValue:te,version:"17.0.2",Children:Ro,render:jo,hydrate:Yo,unmountComponentAtNode:oi,createPortal:Bo,createElement:T,createContext:Mr,createFactory:ti,cloneElement:ni,createRef:mo,Fragment:Z,isValidElement:ne,isElement:li,isFragment:ei,isMemo:ri,findDOMNode:ii,Component:G,PureComponent:We,memo:Mo,forwardRef:To,flushSync:si,unstable_batchedUpdates:ai,StrictMode:ci,Suspense:re,SuspenseList:Zt,lazy:Po,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qo};function ui(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var di=function(e,r,n,o){var i=n?n.call(o,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var s=Object.keys(e),c=Object.keys(r);if(s.length!==c.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),d=0;d<s.length;d++){var h=s[d];if(!u(h))return!1;var l=e[h],p=r[h];if(i=n?n.call(o,l,p,h):void 0,i===!1||i===void 0&&l!==p)return!1}return!0};const fi=ui(di);var I="-ms-",Bt="-moz-",k="-webkit-",_n="comm",oe="rule",Ge="decl",hi="@import",mn="@keyframes",pi="@layer",gn=Math.abs,je=String.fromCharCode,Ye=Object.assign;function _i(t,e){return M(t,0)^45?(((e<<2^M(t,0))<<2^M(t,1))<<2^M(t,2))<<2^M(t,3):0}function Ln(t){return t.trim()}function nt(t,e){return(t=e.exec(t))?t[0]:t}function w(t,e,r){return t.replace(e,r)}function ie(t,e,r){return t.indexOf(e,r)}function M(t,e){return t.charCodeAt(e)|0}function kt(t,e,r){return t.slice(e,r)}function q(t){return t.length}function yn(t){return t.length}function Ut(t,e){return e.push(t),t}function mi(t,e){return t.map(e).join("")}function vn(t,e){return t.filter(function(r){return!nt(r,e)})}var ae=1,Ot=1,Cn=0,U=0,$=0,xt="";function se(t,e,r,n,o,i,s,c){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:ae,column:Ot,length:s,return:"",siblings:c}}function ct(t,e){return Ye(se("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function It(t){for(;t.root;)t=ct(t.root,{children:[t]});Ut(t,t.siblings)}function gi(){return $}function Li(){return $=U>0?M(xt,--U):0,Ot--,$===10&&(Ot=1,ae--),$}function j(){return $=U<Cn?M(xt,U++):0,Ot++,$===10&&(Ot=1,ae++),$}function mt(){return M(xt,U)}function ce(){return U}function le(t,e){return kt(xt,t,e)}function qe(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yi(t){return ae=Ot=1,Cn=q(xt=t),U=0,[]}function vi(t){return xt="",t}function Xe(t){return Ln(le(U-1,Ke(t===91?t+2:t===40?t+1:t)))}function Ci(t){for(;($=mt())&&$<33;)j();return qe(t)>2||qe($)>3?"":" "}function wi(t,e){for(;--e&&j()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return le(t,ce()+(e<6&&mt()==32&&j()==32))}function Ke(t){for(;j();)switch($){case t:return U;case 34:case 39:t!==34&&t!==39&&Ke($);break;case 40:t===41&&Ke(t);break;case 92:j();break}return U}function Si(t,e){for(;j()&&t+$!==57;)if(t+$===84&&mt()===47)break;return"/*"+le(e,U-1)+"*"+je(t===47?t:j())}function bi(t){for(;!qe(mt());)j();return le(t,U)}function Ei(t){return vi(ue("",null,null,null,[""],t=yi(t),0,[0],t))}function ue(t,e,r,n,o,i,s,c,u){for(var d=0,h=0,l=s,p=0,f=0,_=0,y=1,v=1,m=1,g=0,V="",E=o,O=i,S=n,C=V;v;)switch(_=g,g=j()){case 40:if(_!=108&&M(C,l-1)==58){ie(C+=w(Xe(g),"&","&\f"),"&\f",gn(d?c[d-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Xe(g);break;case 9:case 10:case 13:case 32:C+=Ci(_);break;case 92:C+=wi(ce()-1,7);continue;case 47:switch(mt()){case 42:case 47:Ut(Vi(Si(j(),ce()),e,r,u),u);break;default:C+="/"}break;case 123*y:c[d++]=q(C)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+h:m==-1&&(C=w(C,/\f/g,"")),f>0&&q(C)-l&&Ut(f>32?Sn(C+";",n,r,l-1,u):Sn(w(C," ","")+";",n,r,l-2,u),u);break;case 59:C+=";";default:if(Ut(S=wn(C,e,r,d,h,o,c,V,E=[],O=[],l,i),i),g===123)if(h===0)ue(C,e,S,S,E,i,l,c,O);else switch(p===99&&M(C,3)===110?100:p){case 100:case 108:case 109:case 115:ue(t,S,S,n&&Ut(wn(t,S,S,0,0,o,c,V,o,E=[],l,O),O),o,O,l,c,n?E:O);break;default:ue(C,S,S,S,[""],O,0,c,O)}}d=h=f=0,y=m=1,V=C="",l=s;break;case 58:l=1+q(C),f=_;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&Li()==125)continue}switch(C+=je(g),g*y){case 38:m=h>0?1:(C+="\f",-1);break;case 44:c[d++]=(q(C)-1)*m,m=1;break;case 64:mt()===45&&(C+=Xe(j())),p=mt(),h=l=q(V=C+=bi(ce())),g++;break;case 45:_===45&&q(C)==2&&(y=0)}}return i}function wn(t,e,r,n,o,i,s,c,u,d,h,l){for(var p=o-1,f=o===0?i:[""],_=yn(f),y=0,v=0,m=0;y<n;++y)for(var g=0,V=kt(t,p+1,p=gn(v=s[y])),E=t;g<_;++g)(E=Ln(v>0?f[g]+" "+V:w(V,/&\f/g,f[g])))&&(u[m++]=E);return se(t,e,r,o===0?oe:c,u,d,h,l)}function Vi(t,e,r,n){return se(t,e,r,_n,je(gi()),kt(t,2,-2),0,n)}function Sn(t,e,r,n,o){return se(t,e,r,Ge,kt(t,0,n),kt(t,n+1,-1),n,o)}function bn(t,e,r){switch(_i(t,e)){case 5103:return k+"print-"+t+t;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+t+t;case 4789:return Bt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return k+t+Bt+t+I+t+t;case 5936:switch(M(t,e+11)){case 114:return k+t+I+w(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return k+t+I+w(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return k+t+I+w(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return k+t+I+t+t;case 6165:return k+t+I+"flex-"+t+t;case 5187:return k+t+w(t,/(\w+).+(:[^]+)/,k+"box-$1$2"+I+"flex-$1$2")+t;case 5443:return k+t+I+"flex-item-"+w(t,/flex-|-self/g,"")+(nt(t,/flex-|baseline/)?"":I+"grid-row-"+w(t,/flex-|-self/g,""))+t;case 4675:return k+t+I+"flex-line-pack"+w(t,/align-content|flex-|-self/g,"")+t;case 5548:return k+t+I+w(t,"shrink","negative")+t;case 5292:return k+t+I+w(t,"basis","preferred-size")+t;case 6060:return k+"box-"+w(t,"-grow","")+k+t+I+w(t,"grow","positive")+t;case 4554:return k+w(t,/([^-])(transform)/g,"$1"+k+"$2")+t;case 6187:return w(w(w(t,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),t,"")+t;case 5495:case 3959:return w(t,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return w(w(t,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+I+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+t+t;case 4200:if(!nt(t,/flex-|baseline/))return I+"grid-column-align"+kt(t,e)+t;break;case 2592:case 3360:return I+w(t,"template-","")+t;case 4384:case 3616:return r&&r.some(function(n,o){return e=o,nt(n.props,/grid-\w+-end/)})?~ie(t+(r=r[e].value),"span",0)?t:I+w(t,"-start","")+t+I+"grid-row-span:"+(~ie(r,"span",0)?nt(r,/\d+/):+nt(r,/\d+/)-+nt(t,/\d+/))+";":I+w(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(n){return nt(n.props,/grid-\w+-start/)})?t:I+w(w(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return w(t,/(.+)-inline(.+)/,k+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(t)-1-e>6)switch(M(t,e+1)){case 109:if(M(t,e+4)!==45)break;case 102:return w(t,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Bt+(M(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ie(t,"stretch",0)?bn(w(t,"stretch","fill-available"),e,r)+t:t}break;case 5152:case 5920:return w(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,s,c,u,d){return I+o+":"+i+d+(s?I+o+"-span:"+(c?u:+u-+i)+d:"")+t});case 4949:if(M(t,e+6)===121)return w(t,":",":"+k)+t;break;case 6444:switch(M(t,M(t,14)===45?18:11)){case 120:return w(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(M(t,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+I+"$2box$3")+t;case 100:return w(t,":",":"+I)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(t,"scroll-","scroll-snap-")+t}return t}function de(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function ki(t,e,r,n){switch(t.type){case pi:if(t.children.length)break;case hi:case Ge:return t.return=t.return||t.value;case _n:return"";case mn:return t.return=t.value+"{"+de(t.children,n)+"}";case oe:if(!q(t.value=t.props.join(",")))return""}return q(r=de(t.children,n))?t.return=t.value+"{"+r+"}":""}function Oi(t){var e=yn(t);return function(r,n,o,i){for(var s="",c=0;c<e;c++)s+=t[c](r,n,o,i)||"";return s}}function xi(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ii(t,e,r,n){if(t.length>-1&&!t.return)switch(t.type){case Ge:t.return=bn(t.value,t.length,r);return;case mn:return de([ct(t,{value:w(t.value,"@","@"+k)})],n);case oe:if(t.length)return mi(r=t.props,function(o){switch(nt(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":It(ct(t,{props:[w(o,/:(read-\w+)/,":"+Bt+"$1")]})),It(ct(t,{props:[o]})),Ye(t,{props:vn(r,n)});break;case"::placeholder":It(ct(t,{props:[w(o,/:(plac\w+)/,":"+k+"input-$1")]})),It(ct(t,{props:[w(o,/:(plac\w+)/,":"+Bt+"$1")]})),It(ct(t,{props:[w(o,/:(plac\w+)/,I+"input-$1")]})),It(ct(t,{props:[o]})),Ye(t,{props:vn(r,n)});break}return""})}}var Ni={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b={},gt=typeof process<"u"&&b!==void 0&&(b.REACT_APP_SC_ATTR||b.SC_ATTR)||"data-styled",En="active",Vn="data-styled-version",fe="6.1.11",Je=`/*!sc*/ `,Qe=typeof window<"u"&&"HTMLElement"in window,$i=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==""?b.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&b.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.SC_DISABLE_SPEEDY!==void 0&&b.SC_DISABLE_SPEEDY!==""?b.SC_DISABLE_SPEEDY!=="false"&&b.SC_DISABLE_SPEEDY:b.NODE_ENV!=="production"),kn=/invalid hook call/i,he=new Set,Mi=function(t,e){if(b.NODE_ENV!=="production"){var r=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(t).concat(r,` 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 c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];kn.test(s)?(i=!1,he.delete(n)):o.apply(void 0,_t([s],c,!1))},Pt(),i&&!he.has(n)&&(console.warn(n),he.add(n))}catch(s){kn.test(s.message)&&he.delete(n)}finally{console.error=o}}},pe=Object.freeze([]),Nt=Object.freeze({});function Di(t,e,r){return r===void 0&&(r=Nt),t.theme!==r.theme&&t.theme||e||r.theme}var tr=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"]),Ti=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ri=/(^-|-$)/g;function On(t){return t.replace(Ti,"-").replace(Ri,"")}var Ai=/(a)(d)/gi,_e=52,xn=function(t){return String.fromCharCode(t+(t>25?39:97))};function er(t){var e,r="";for(e=Math.abs(t);e>_e;e=e/_e|0)r=xn(e%_e)+r;return(xn(e%_e)+r).replace(Ai,"$1-$2")}var rr,In=5381,Lt=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},Nn=function(t){return Lt(In,t)};function $n(t){return er(Nn(t)>>>0)}function Mn(t){return b.NODE_ENV!=="production"&&typeof t=="string"&&t||t.displayName||t.name||"Component"}function nr(t){return typeof t=="string"&&(b.NODE_ENV==="production"||t.charAt(0)===t.charAt(0).toLowerCase())}var Dn=typeof Symbol=="function"&&Symbol.for,Tn=Dn?Symbol.for("react.memo"):60115,Pi=Dn?Symbol.for("react.forward_ref"):60112,Hi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Rn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bi=((rr={})[Pi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rr[Tn]=Rn,rr);function An(t){return("type"in(e=t)&&e.type.$$typeof)===Tn?Rn:"$$typeof"in t?Bi[t.$$typeof]:Hi;var e}var Ui=Object.defineProperty,Wi=Object.getOwnPropertyNames,Pn=Object.getOwnPropertySymbols,Fi=Object.getOwnPropertyDescriptor,zi=Object.getPrototypeOf,Hn=Object.prototype;function Zn(t,e,r){if(typeof e!="string"){if(Hn){var n=zi(e);n&&n!==Hn&&Zn(t,n,r)}var o=Wi(e);Pn&&(o=o.concat(Pn(e)));for(var i=An(t),s=An(e),c=0;c<o.length;++c){var u=o[c];if(!(u in Zi||r&&r[u]||s&&u in s||i&&u in i)){var d=Fi(e,u);try{Ui(t,u,d)}catch{}}}}return t}function yt(t){return typeof t=="function"}function or(t){return typeof t=="object"&&"styledComponentId"in t}function vt(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function ir(t,e){if(t.length===0)return"";for(var r=t[0],n=1;n<t.length;n++)r+=t[n];return r}function $t(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function ar(t,e,r){if(r===void 0&&(r=!1),!r&&!$t(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=ar(t[n],e[n]);else if($t(e))for(var n in e)t[n]=ar(t[n],e[n]);return t}function sr(t,e){Object.defineProperty(t,"toString",{value:e})}var Gi=b.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