UNPKG

@innovatrics/dot-auto-capture-ui

Version:
41 lines (26 loc) 108 kB
(function(ie){typeof define=="function"&&define.amd?define(ie):ie()})((function(){"use strict";var ie,y,Cr,de,wr,Sr,br,Vr,$t,xt,Ot,Er,De={},kr=[],Co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Te=Array.isArray;function Y(e,t){for(var r in t)e[r]=t[r];return e}function It(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?ie.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Ae(e,a,n,o,null)}function Ae(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Cr,__i:-1,__u:0};return o==null&&y.vnode!=null&&y.vnode(i),i}function wo(){return{current:null}}function T(e){return e.children}function j(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Se(e):null}function $r(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return $r(e)}}function Mt(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Je.__r++||wr!=y.debounceRendering)&&((wr=y.debounceRendering)||Sr)(Je)}function Je(){for(var e,t,r,n,o,i,a,c=1;de.length;)de.length>c&&de.sort(br),e=de.shift(),c=de.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=Y({},n)).__v=n.__v+1,y.vnode&&y.vnode(r),Rt(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o??Se(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Rr(i,r,a),n.__e=n.__=null,r.__e!=o&&$r(r)));Je.__r=0}function xr(e,t,r,n,o,i,a,c,d,u,h){var l,p,f,_,w,S,m,g=n&&n.__k||kr,b=t.length;for(d=So(r,t,g,d,b),l=0;l<b;l++)(f=r.__k[l])!=null&&(p=f.__i==-1?De:g[f.__i]||De,f.__i=l,S=Rt(e,f,p,o,i,a,c,d,u,h),_=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Dt(p.ref,null,f),h.push(f.ref,f.__c||_,f)),w==null&&_!=null&&(w=_),(m=!!(4&f.__u))||p.__k===f.__k?d=Or(f,d,e,m):typeof f.type=="function"&&S!==void 0?d=S:_&&(d=_.nextSibling),f.__u&=-7);return r.__e=w,d}function So(e,t,r,n,o){var i,a,c,d,u,h=r.length,l=h,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[i]=Ae(null,a,null,null,null):Te(a)?a=e.__k[i]=Ae(T,{children:a},null,null,null):a.constructor==null&&a.__b>0?a=e.__k[i]=Ae(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,d=i+p,a.__=e,a.__b=e.__b+1,c=null,(u=a.__i=bo(a,r,d,l))!=-1&&(l--,(c=r[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(o>h?p--:o<h&&p++),typeof a.type!="function"&&(a.__u|=4)):u!=d&&(u==d-1?p--:u==d+1?p++:(u>d?p--:p++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<h;i++)(c=r[i])!=null&&(2&c.__u)==0&&(c.__e==n&&(n=Se(c)),Dr(c,c));return n}function Or(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Or(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Se(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function J(e,t){return t=t||[],e==null||typeof e=="boolean"||(Te(e)?e.some(function(r){J(r,t)}):t.push(e)),t}function bo(e,t,r,n){var o,i,a,c=e.key,d=e.type,u=t[r],h=u!=null&&(2&u.__u)==0;if(u===null&&c==null||h&&c==u.key&&d==u.type)return r;if(n>(h?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((u=t[a=o>=0?o--:i++])!=null&&(2&u.__u)==0&&c==u.key&&d==u.type)return a}return-1}function Ir(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Co.test(t)?r:r+"px"}function Qe(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ir(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Ir(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Vr,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=$t,e.addEventListener(t,i?Ot:xt,i)):e.removeEventListener(t,i?Ot: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]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Mr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=$t++;else if(t.t<r.u)return;return r(y.event?y.event(t):t)}}}function Rt(e,t,r,n,o,i,a,c,d,u){var h,l,p,f,_,w,S,m,g,b,E,$,C,L,B,F,qe,z=t.type;if(t.constructor!=null)return null;128&r.__u&&(d=!!(32&r.__u),i=[c=t.__e=r.__e]),(h=y.__b)&&h(t);e:if(typeof z=="function")try{if(m=t.props,g="prototype"in z&&z.prototype.render,b=(h=z.contextType)&&n[h.__c],E=h?b?b.props.value:h.__:n,r.__c?S=(l=t.__c=r.__c).__=l.__E:(g?t.__c=l=new z(m,E):(t.__c=l=new j(m,E),l.constructor=z,l.render=Eo),b&&b.sub(l),l.state||(l.state={}),l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),g&&l.__s==null&&(l.__s=l.state),g&&z.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Y({},l.__s)),Y(l.__s,z.getDerivedStateFromProps(m,l.__s))),f=l.props,_=l.state,l.__v=t,p)g&&z.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),g&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g&&z.getDerivedStateFromProps==null&&m!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,E),t.__v==r.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,E)===!1){for(t.__v!=r.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(le){le&&(le.__=t)}),$=0;$<l._sb.length;$++)l.__h.push(l._sb[$]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,E),g&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,_,w)})}if(l.context=E,l.props=m,l.__P=e,l.__e=!1,C=y.__r,L=0,g){for(l.state=l.__s,l.__d=!1,C&&C(t),h=l.render(l.props,l.state,l.context),B=0;B<l._sb.length;B++)l.__h.push(l._sb[B]);l._sb=[]}else do l.__d=!1,C&&C(t),h=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++L<25);l.state=l.__s,l.getChildContext!=null&&(n=Y(Y({},n),l.getChildContext())),g&&!p&&l.getSnapshotBeforeUpdate!=null&&(w=l.getSnapshotBeforeUpdate(f,_)),F=h,h!=null&&h.type===T&&h.key==null&&(F=Nr(h.props.children)),c=xr(e,Te(F)?F:[F],t,r,n,o,i,a,c,d,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),S&&(l.__E=l.__=null)}catch(le){if(t.__v=null,d||i!=null)if(le.then){for(t.__u|=d?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else{for(qe=i.length;qe--;)It(i[qe]);Nt(t)}else t.__e=r.__e,t.__k=r.__k,le.then||Nt(t);y.__e(le,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=Vo(r.__e,t,r,n,o,i,a,d,u);return(h=y.diffed)&&h(t),128&t.__u?void 0:c}function Nt(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Nt)}function Rr(e,t,r){for(var n=0;n<r.length;n++)Dt(r[n],r[++n],r[++n]);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 Nr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Te(e)?e.map(Nr):Y({},e)}function Vo(e,t,r,n,o,i,a,c,d){var u,h,l,p,f,_,w,S=r.props||De,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),c&&(y.__m&&y.__m(t,i),c=!1),i=null}if(g==null)S===m||c&&e.data==m||(e.data=m);else{if(i=i&&ie.call(e.childNodes),!c&&i!=null)for(S={},u=0;u<e.attributes.length;u++)S[(f=e.attributes[u]).name]=f.value;for(u in S)if(f=S[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=f;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Qe(e,u,null,f,o)}}for(u in m)f=m[u],u=="children"?p=f:u=="dangerouslySetInnerHTML"?h=f:u=="value"?_=f:u=="checked"?w=f:c&&typeof f!="function"||S[u]===f||Qe(e,u,f,S[u],o);if(h)c||l&&(h.__html==l.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(l&&(e.innerHTML=""),xr(t.type=="template"?e.content:e,Te(p)?p:[p],t,r,n,g=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&Se(r,0),c,d),i!=null)for(u=i.length;u--;)It(i[u]);c||(u="value",g=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[u]||g=="progress"&&!_||g=="option"&&_!=S[u])&&Qe(e,u,_,S[u],o),u="checked",w!=null&&w!=e[u]&&Qe(e,u,w,S[u],o))}return e}function Dt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){y.__e(o,r)}}function Dr(e,t,r){var n,o;if(y.unmount&&y.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Dt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){y.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Dr(n[o],t,r||typeof e.type!="function");r||It(e.__e),e.__c=e.__=e.__e=void 0}function Eo(e,t,r){return this.constructor(e,r)}function ae(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),y.__&&y.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],Rt(t,e=(!n&&r||t).__k=D(T,null,[e]),o||De,De,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?ie.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),Rr(i,e,a)}function Tt(e,t){ae(e,t,Tt)}function At(e,t,r){var n,o,i,a,c=Y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:c[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?ie.call(arguments,2):r),Ae(e.type,c,n||e.key,o||e.ref,null)}function Tr(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(a){a.__e=!0,Mt(a)})},this.sub=function(i){n.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),a&&a.call(i)}}),r.children}return t.__c="__cC"+Er++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}ie=kr.slice,y={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},Cr=0,j.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Y({},this.state),typeof e=="function"&&(e=e(Y({},r),this.props)),e&&Y(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mt(this))},j.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mt(this))},j.prototype.render=T,de=[],Sr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,br=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,Vr=/(PointerCapture)$|Capture$/i,$t=0,xt=Mr(!1),Ot=Mr(!0),Er=0;function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(this,arguments)}function Ar(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var ko=["context","children"],$o=["useFragment"];function xo(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=function(){Io.call(this,n)},o.prototype.attributeChangedCallback=Mo,o.prototype.disconnectedCallback=Ro,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,e.formAssociated&&(o.formAssociated=!0),r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom?this._vdom.props[i]:this._props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a);var c=typeof a;a!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o),o}function Oo(e){this.getChildContext=function(){return e.context};var t=e.children,r=Ar(e,ko);return At(t,r)}function Io(e){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=D(Oo,et({},this._props,{context:t.detail.context}),Zr(this,this._vdomComponent,e)),(this.hasAttribute("hydrate")?Tt:ae)(this._vdom,this._root)}function Pr(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function Mo(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[Pr(e)]=r,this._vdom=At(this._vdom,n),ae(this._vdom,this._root)}}function Ro(){ae(this._vdom=null,this._root)}function Hr(e,t){var r=this,n=e.useFragment,o=Ar(e,$o);return D(n?T:"slot",et({},o,{ref:function(i){i?(r.ref=i,r._listener||(r._listener=function(a){a.stopPropagation(),a.detail.context=t},i.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Zr(e,t,r){if(e.nodeType===3)return e.data;if(e.nodeType!==1)return null;var n=[],o={},i=0,a=e.attributes,c=e.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[Pr(a[i].name)]=a[i].value);for(i=c.length;i--;){var d=Zr(c[i],null,r),u=c[i].slot;u?o[u]=D(Hr,{name:u},d):n[i]=d}var h=!(!r||!r.shadow),l=t?D(Hr,{useFragment:!h},n):n;return!h&&t&&(e.innerHTML=""),D(t||e.nodeName.toLowerCase(),o,l)}var No=0;function s(e,t,r,n,o,i){t||(t={});var a,c,d=t;if("ref"in d)for(c in d={},t)c=="ref"?a=t[c]:d[c]=t[c];var u={type:e,props:d,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--No,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)d[c]===void 0&&(d[c]=a[c]);return y.vnode&&y.vnode(u),u}const Br={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var fe=(e=>(e.CAMERA_PROPS_CHANGED="document-auto-capture:camera-props-changed",e.CONTROL="document-auto-capture:control",e.DETECTION_CHANGED="document-auto-capture:detection-changed",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))(fe||{}),Ur=(e=>(e.CAMERA_PROPS_CHANGED="palm-capture:camera-props-changed",e.CONTROL="palm-capture:control",e.DETECTION_CHANGED="palm-capture:detection-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))(Ur||{});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"},P={LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete",BLURRED:"blurred"};var se,x,Pt,Wr,be=0,Fr=[],I=y,zr=I.__b,Gr=I.__r,jr=I.diffed,qr=I.__c,Yr=I.unmount,Xr=I.__;function Ve(e,t){I.__h&&I.__h(x,e,be||t),be=0;var r=x.__H||(x.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function U(e){return be=1,Ht(en,e)}function Ht(e,t,r){var n=Ve(se++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):en(void 0,t),function(c){var d=n.__N?n.__N[0]:n.__[0],u=n.t(d,c);d!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=x,!x.__f)){var o=function(c,d,u){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,d,u);var l=n.__c.props!==c;return h.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(l=!0)}}),i&&i.call(this,c,d,u)||l};x.__f=!0;var i=x.shouldComponentUpdate,a=x.componentWillUpdate;x.componentWillUpdate=function(c,d,u){if(this.__e){var h=i;i=void 0,o(c,d,u),i=h}a&&a.call(this,c,d,u)},x.shouldComponentUpdate=o}return n.__N||n.__}function Q(e,t){var r=Ve(se++,3);!I.__s&&Bt(r.__H,t)&&(r.__=e,r.u=t,x.__H.__h.push(r))}function Ee(e,t){var r=Ve(se++,4);!I.__s&&Bt(r.__H,t)&&(r.__=e,r.u=t,x.__h.push(r))}function Pe(e){return be=5,ee(function(){return{current:e}},[])}function Kr(e,t,r){be=6,Ee(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function ee(e,t){var r=Ve(se++,7);return Bt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function he(e,t){return be=8,ee(function(){return e},t)}function He(e){var t=x.context[e.__c],r=Ve(se++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(x)),t.props.value):e.__}function tt(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function Jr(){var e=Ve(se++,11);if(!e.__){for(var t=x.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Do(){for(var e;e=Fr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rt),e.__H.__h.forEach(Zt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){x=null,zr&&zr(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Xr&&Xr(e,t)},I.__r=function(e){Gr&&Gr(e),se=0;var t=(x=e.__c).__H;t&&(Pt===x?(t.__h=[],x.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(rt),t.__h.forEach(Zt),t.__h=[],se=0)),Pt=x},I.diffed=function(e){jr&&jr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fr.push(t)!==1&&Wr===I.requestAnimationFrame||((Wr=I.requestAnimationFrame)||To)(Do)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Pt=x=null},I.__c=function(e,t){t.some(function(r){try{r.__h.forEach(rt),r.__h=r.__h.filter(function(n){return!n.__||Zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(n,r.__v)}}),qr&&qr(e,t)},I.unmount=function(e){Yr&&Yr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{rt(n)}catch(o){t=o}}),r.__H=void 0,t&&I.__e(t,r.__v))};var Qr=typeof requestAnimationFrame=="function";function To(e){var t,r=function(){clearTimeout(n),Qr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Qr&&(t=requestAnimationFrame(r))}function rt(e){var t=x,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),x=t}function Zt(e){var t=x;e.__c=e.__(),x=t}function Bt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function en(e,t){return typeof t=="function"?t(e):t}var N=function(){return N=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},N.apply(this,arguments)};function pe(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ao(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Po=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ho=Ao(function(e){return Po.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function tn(e,t){for(var r in t)e[r]=t[r];return e}function Ut(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function rn(e,t){var r=t(),n=U({t:{__:r,u:t}}),o=n[0].t,i=n[1];return Ee(function(){o.__=r,o.u=t,Wt(o)&&i({t:o})},[e,r,t]),Q(function(){return Wt(o)&&i({t:o}),e(function(){Wt(o)&&i({t:o})})},[e]),r}function Wt(e){var t,r,n=e.u,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function nn(e){e()}function on(e){return e}function an(){return[!1,nn]}var sn=Ee;function Ft(e,t){this.props=e,this.context=t}function Zo(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ut(this.props,o)}function n(o){return this.shouldComponentUpdate=r,D(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=e,n}(Ft.prototype=new j).isPureReactComponent=!0,Ft.prototype.shouldComponentUpdate=function(e,t){return Ut(this.props,e)||Ut(this.state,t)};var cn=y.__b;y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cn&&cn(e)};var Bo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Uo(e){function t(r){var n=tn({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Bo,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ln=function(e,t){return e==null?null:J(J(e).map(t))},Wo={map:ln,forEach:ln,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:J},Fo=y.__e;y.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Fo(e,t,r,n)};var un=y.unmount;function dn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=tn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return dn(n,t,r)})),e}function fn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return fn(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function nt(){this.__u=0,this.o=null,this.__b=null}function hn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function zo(e){var t,r,n,o=null;function i(a){if(t||(t=e()).then(function(c){c&&(o=c.default||c),n=!0},function(c){r=c,n=!0}),r)throw r;if(!n)throw t;return o?D(o,a):null}return i.displayName="Lazy",i.__f=!0,i}function Ze(){this.i=null,this.l=null}y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),un&&un(e)},(nt.prototype=new j).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=hn(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var c=function(){if(!--n.__u){if(n.state.__a){var d=n.state.__a;n.__v.__k[0]=fn(d,d.__c.__P,d.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},nt.prototype.componentWillUnmount=function(){this.o=[]},nt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=dn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&D(T,null,e.fallback);return o&&(o.__u&=-33),[D(T,null,t.__a?null:e.children),o]};var pn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Go(e){return this.getChildContext=function(){return e.context},e.children}function jo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){ae(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}ae(D(Go,{context:t.context},e.__v),t.v)}function qo(e,t){var r=D(jo,{__v:e,h:t});return r.containerInfo=t,r}(Ze.prototype=new j).__a=function(e){var t=this,r=hn(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),pn(t,e,n)):o()};r?r(i):i()}},Ze.prototype.render=function(e){this.i=null,this.l=new Map;var t=J(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){pn(e,r,t)})};var _n=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ko=/[A-Z0-9]/g,Jo=typeof document<"u",Qo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ei(e,t,r){return t.__k==null&&(t.textContent=""),ae(e,t),typeof r=="function"&&r(),e?e.__c:null}function ti(e,t,r){return Tt(e,t),typeof r=="function"&&r(),e?e.__c:null}j.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(j.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var mn=y.event;function ri(){}function ni(){return this.cancelBubble}function oi(){return this.defaultPrevented}y.event=function(e){return mn&&(e=mn(e)),e.persist=ri,e.isPropagationStopped=ni,e.isDefaultPrevented=oi,e.nativeEvent=e};var zt,ii={enumerable:!1,configurable:!0,get:function(){return this.class}},gn=y.vnode;y.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var c=r[a];if(!(a==="value"&&"defaultValue"in r&&c==null||Jo&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var d=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&c===!0?c="":d==="translate"&&c==="no"?c=!1:d[0]==="o"&&d[1]==="n"?d==="ondoubleclick"?a="ondblclick":d!=="onchange"||n!=="input"&&n!=="textarea"||Qo(r.type)?d==="onfocus"?a="onfocusin":d==="onblur"?a="onfocusout":Xo.test(a)&&(a=d):d=a="oninput":i&&Yo.test(a)?a=a.replace(Ko,"-$&").toLowerCase():c===null&&(c=void 0),d==="oninput"&&o[a=d]&&(a="oninputCapture"),o[a]=c}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=J(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=J(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",ii)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o})(e),e.$$typeof=_n,gn&&gn(e)};var Ln=y.__r;y.__r=function(e){Ln&&Ln(e),zt=e.__c};var yn=y.diffed;y.diffed=function(e){yn&&yn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),zt=null};var ai={ReactCurrentDispatcher:{current:{readContext:function(e){return zt.__n[e.__c].props.value},useCallback:he,useContext:He,useDebugValue:tt,useDeferredValue:on,useEffect:Q,useId:Jr,useImperativeHandle:Kr,useInsertionEffect:sn,useLayoutEffect:Ee,useMemo:ee,useReducer:Ht,useRef:Pe,useState:U,useSyncExternalStore:rn,useTransition:an}}};function si(e){return D.bind(null,e)}function ot(e){return!!e&&e.$$typeof===_n}function ci(e){return ot(e)&&e.type===T}function li(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ui(e){return ot(e)?At.apply(null,arguments):e}function di(e){return!!e.__k&&(ae(null,e),!0)}function fi(e){return e&&(e.base||e.nodeType===1&&e)||null}var hi=function(e,t){return e(t)},pi=function(e,t){return e(t)},_i=T,mi=ot,te={useState:U,useId:Jr,useReducer:Ht,useEffect:Q,useLayoutEffect:Ee,useInsertionEffect:sn,useTransition:an,useDeferredValue:on,useSyncExternalStore:rn,startTransition:nn,useRef:Pe,useImperativeHandle:Kr,useMemo:ee,useCallback:he,useContext:He,useDebugValue:tt,version:"18.3.1",Children:Wo,render:ei,hydrate:ti,unmountComponentAtNode:di,createPortal:qo,createElement:D,createContext:Tr,createFactory:si,cloneElement:ui,createRef:wo,Fragment:T,isValidElement:ot,isElement:mi,isFragment:ci,isMemo:li,findDOMNode:fi,Component:j,PureComponent:Ft,memo:Zo,forwardRef:Uo,flushSync:pi,unstable_batchedUpdates:hi,StrictMode:_i,Suspense:nt,SuspenseList:Ze,lazy:zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ai};function gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt,vn;function Li(){return vn||(vn=1,Gt=function(t,r,n,o){var i=n?n.call(o,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),c=Object.keys(r);if(a.length!==c.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(r),u=0;u<a.length;u++){var h=a[u];if(!d(h))return!1;var l=t[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}),Gt}var yi=Li();const vi=gi(yi);var O="-ms-",Be="-moz-",k="-webkit-",Cn="comm",it="rule",jt="decl",Ci="@import",wn="@keyframes",wi="@layer",Sn=Math.abs,qt=String.fromCharCode,Yt=Object.assign;function Si(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function bn(e){return e.trim()}function re(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,r){return e.replace(t,r)}function at(e,t,r){return e.indexOf(t,r)}function R(e,t){return e.charCodeAt(t)|0}function ke(e,t,r){return e.slice(t,r)}function X(e){return e.length}function Vn(e){return e.length}function Ue(e,t){return t.push(e),e}function bi(e,t){return e.map(t).join("")}function En(e,t){return e.filter(function(r){return!re(r,t)})}var st=1,$e=1,kn=0,W=0,M=0,xe="";function ct(e,t,r,n,o,i,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:st,column:$e,length:a,return:"",siblings:c}}function ce(e,t){return Yt(ct("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Oe(e){for(;e.root;)e=ce(e.root,{children:[e]});Ue(e,e.siblings)}function Vi(){return M}function Ei(){return M=W>0?R(xe,--W):0,$e--,M===10&&($e=1,st--),M}function q(){return M=W<kn?R(xe,W++):0,$e++,M===10&&($e=1,st++),M}function _e(){return R(xe,W)}function lt(){return W}function ut(e,t){return ke(xe,e,t)}function Xt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ki(e){return st=$e=1,kn=X(xe=e),W=0,[]}function $i(e){return xe="",e}function Kt(e){return bn(ut(W-1,Jt(e===91?e+2:e===40?e+1:e)))}function xi(e){for(;(M=_e())&&M<33;)q();return Xt(e)>2||Xt(M)>3?"":" "}function Oi(e,t){for(;--t&&q()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return ut(e,lt()+(t<6&&_e()==32&&q()==32))}function Jt(e){for(;q();)switch(M){case e:return W;case 34:case 39:e!==34&&e!==39&&Jt(M);break;case 40:e===41&&Jt(e);break;case 92:q();break}return W}function Ii(e,t){for(;q()&&e+M!==57;)if(e+M===84&&_e()===47)break;return"/*"+ut(t,W-1)+"*"+qt(e===47?e:q())}function Mi(e){for(;!Xt(_e());)q();return ut(e,W)}function Ri(e){return $i(dt("",null,null,null,[""],e=ki(e),0,[0],e))}function dt(e,t,r,n,o,i,a,c,d){for(var u=0,h=0,l=a,p=0,f=0,_=0,w=1,S=1,m=1,g=0,b="",E=o,$=i,C=n,L=b;S;)switch(_=g,g=q()){case 40:if(_!=108&&R(L,l-1)==58){at(L+=v(Kt(g),"&","&\f"),"&\f",Sn(u?c[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:L+=Kt(g);break;case 9:case 10:case 13:case 32:L+=xi(_);break;case 92:L+=Oi(lt()-1,7);continue;case 47:switch(_e()){case 42:case 47:Ue(Ni(Ii(q(),lt()),t,r,d),d);break;default:L+="/"}break;case 123*w:c[u++]=X(L)*m;case 125*w:case 59:case 0:switch(g){case 0:case 125:S=0;case 59+h:m==-1&&(L=v(L,/\f/g,"")),f>0&&X(L)-l&&Ue(f>32?xn(L+";",n,r,l-1,d):xn(v(L," ","")+";",n,r,l-2,d),d);break;case 59:L+=";";default:if(Ue(C=$n(L,t,r,u,h,o,c,b,E=[],$=[],l,i),i),g===123)if(h===0)dt(L,t,C,C,E,i,l,c,$);else switch(p===99&&R(L,3)===110?100:p){case 100:case 108:case 109:case 115:dt(e,C,C,n&&Ue($n(e,C,C,0,0,o,c,b,o,E=[],l,$),$),o,$,l,c,n?E:$);break;default:dt(L,C,C,C,[""],$,0,c,$)}}u=h=f=0,w=m=1,b=L="",l=a;break;case 58:l=1+X(L),f=_;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&Ei()==125)continue}switch(L+=qt(g),g*w){case 38:m=h>0?1:(L+="\f",-1);break;case 44:c[u++]=(X(L)-1)*m,m=1;break;case 64:_e()===45&&(L+=Kt(q())),p=_e(),h=l=X(b=L+=Mi(lt())),g++;break;case 45:_===45&&X(L)==2&&(w=0)}}return i}function $n(e,t,r,n,o,i,a,c,d,u,h,l){for(var p=o-1,f=o===0?i:[""],_=Vn(f),w=0,S=0,m=0;w<n;++w)for(var g=0,b=ke(e,p+1,p=Sn(S=a[w])),E=e;g<_;++g)(E=bn(S>0?f[g]+" "+b:v(b,/&\f/g,f[g])))&&(d[m++]=E);return ct(e,t,r,o===0?it:c,d,u,h,l)}function Ni(e,t,r,n){return ct(e,t,r,Cn,qt(Vi()),ke(e,2,-2),0,n)}function xn(e,t,r,n,o){return ct(e,t,r,jt,ke(e,0,n),ke(e,n+1,-1),n,o)}function On(e,t,r){switch(Si(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+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+O+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+O+v(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+v(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return k+e+O+"flex-item-"+v(e,/flex-|-self/g,"")+(re(e,/flex-|baseline/)?"":O+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return k+e+O+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+O+v(e,"shrink","negative")+e;case 5292:return k+e+O+v(e,"basis","preferred-size")+e;case 6060:return k+"box-"+v(e,"-grow","")+k+e+O+v(e,"grow","positive")+e;case 4554:return k+v(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!re(e,/flex-|baseline/))return O+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return O+v(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,re(n.props,/grid-\w+-end/)})?~at(e+(r=r[t].value),"span",0)?e:O+v(e,"-start","")+e+O+"grid-row-span:"+(~at(r,"span",0)?re(r,/\d+/):+re(r,/\d+/)-+re(e,/\d+/))+";":O+v(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return re(n.props,/grid-\w+-start/)})?e:O+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(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(X(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Be+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at(e,"stretch",0)?On(v(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,d,u){return O+o+":"+i+u+(a?O+o+"-span:"+(c?d:+d-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return v(e,":",":"+k)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(R(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+O+"$2box$3")+e;case 100:return v(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Di(e,t,r,n){switch(e.type){case wi:if(e.children.length)break;case Ci:case jt:return e.return=e.return||e.value;case Cn:return"";case wn:return e.return=e.value+"{"+ft(e.children,n)+"}";case it:if(!X(e.value=e.props.join(",")))return""}return X(r=ft(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ti(e){var t=Vn(e);return function(r,n,o,i){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,i)||"";return a}}function Ai(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pi(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case jt:e.return=On(e.value,e.length,r);return;case wn:return ft([ce(e,{value:v(e.value,"@","@"+k)})],n);case it:if(e.length)return bi(r=e.props,function(o){switch(re(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Oe(ce(e,{props:[v(o,/:(read-\w+)/,":"+Be+"$1")]})),Oe(ce(e,{props:[o]})),Yt(e,{props:En(r,n)});break;case"::placeholder":Oe(ce(e,{props:[v(o,/:(plac\w+)/,":"+k+"input-$1")]})),Oe(ce(e,{props:[v(o,/:(plac\w+)/,":"+Be+"$1")]})),Oe(ce(e,{props:[v(o,/:(plac\w+)/,O+"input-$1")]})),Oe(ce(e,{props:[o]})),Yt(e,{props:En(r,n)});break}return""})}}var Hi={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},V={},me=typeof process<"u"&&V!==void 0&&(V.REACT_APP_SC_ATTR||V.SC_ATTR)||"data-styled",In="active",Mn="data-styled-version",ht="6.1.19",Qt=`/*!sc*/ `,pt=typeof window<"u"&&typeof document<"u",Zi=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&V!==void 0&&V.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&V.REACT_APP_SC_DISABLE_SPEEDY!==""?V.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&V.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&V!==void 0&&V.SC_DISABLE_SPEEDY!==void 0&&V.SC_DISABLE_SPEEDY!==""?V.SC_DISABLE_SPEEDY!=="false"&&V.SC_DISABLE_SPEEDY:V.NODE_ENV!=="production"),Rn=/invalid hook call/i,_t=new Set,Bi=function(e,t){if(V.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).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. See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info. `,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];Rn.test(a)?(i=!1,_t.delete(n)):o.apply(void 0,pe([a],c,!1))},Pe(),i&&!_t.has(n)&&(console.warn(n),_t.add(n))}catch(a){Rn.test(a.message)&&_t.delete(n)}finally{console.error=o}}},mt=Object.freeze([]),Ie=Object.freeze({});function Ui(e,t,r){return r===void 0&&(r=Ie),e.theme!==r.theme&&e.theme||t||r.theme}var er=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"]),Wi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fi=/(^-|-$)/g;function Nn(e){return e.replace(Wi,"-").replace(Fi,"")}var zi=/(a)(d)/gi,gt=52,Dn=function(e){return String.fromCharCode(e+(e>25?39:97))};function tr(e){var t,r="";for(t=Math.abs(e);t>gt;t=t/gt|0)r=Dn(t%gt)+r;return(Dn(t%gt)+r).replace(zi,"$1-$2")}var rr,Tn=5381,ge=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},An=function(e){return ge(Tn,e)};function Pn(e){return tr(An(e)>>>0)}function Hn(e){return V.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function nr(e){return typeof e=="string"&&(V.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Zn=typeof Symbol=="function"&&Symbol.for,Bn=Zn?Symbol.for("react.memo"):60115,Gi=Zn?Symbol.for("react.forward_ref"):60112,ji={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Un={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yi=((rr={})[Gi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rr[Bn]=Un,rr);function Wn(e){return("type"in(t=e)&&t.type.$$typeof)===Bn?Un:"$$typeof"in e?Yi[e.$$typeof]:ji;var t}var Xi=Object.defineProperty,Ki=Object.getOwnPropertyNames,Fn=Object.getOwnPropertySymbols,Ji=Object.getOwnPropertyDescriptor,Qi=Object.getPrototypeOf,zn=Object.prototype;function Gn(e,t,r){if(typeof t!="string"){if(zn){var n=Qi(t);n&&n!==zn&&Gn(e,n,r)}var o=Ki(t);Fn&&(o=o.concat(Fn(t)));for(var i=Wn(e),a=Wn(t),c=0;c<o.length;++c){var d=o[c];if(!(d in qi||r&&r[d]||a&&d in a||i&&d in i)){var u=Ji(t,d);try{Xi(e,d,u)}catch{}}}}return e}function Le(e){return typeof e=="function"}function or(e){return typeof e=="object"&&"styledComponentId"in e}function ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ir(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Me(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ar(e,t,r){if(r===void 0&&(r=!1),!r&&!Me(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ar(e[n],t[n]);else if(Me(t))for(var n in t)e[n]=ar(e[n],t[n]);return e}function sr(e,t){Object.defineProperty(e,"toString",{value:t})}var ea=V.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', { v