UNPKG

phemail

Version:

third party authentication.

80 lines (60 loc) 64.2 kB
(function(R,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe(require("react")):typeof define=="function"&&define.amd?define(["react"],fe):(R=typeof globalThis<"u"?globalThis:R||self,R["third-party-login"]=fe(R.React))})(this,function(R){"use strict";var fe={exports:{}},Ie={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Dt;function Wr(){if(Dt)return Ie;Dt=1;var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(f,u,h){var p,g={},w=null,S=null;h!==void 0&&(w=""+h),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(S=u.ref);for(p in u)o.call(u,p)&&!a.hasOwnProperty(p)&&(g[p]=u[p]);if(f&&f.defaultProps)for(p in u=f.defaultProps,u)g[p]===void 0&&(g[p]=u[p]);return{$$typeof:t,type:f,key:w,ref:S,props:g,_owner:i.current}}return Ie.Fragment=r,Ie.jsx=c,Ie.jsxs=c,Ie}var Ne={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $t;function Br(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),O=Symbol.iterator,L="@@iterator";function B(n){if(n===null||typeof n!="object")return null;var s=O&&n[O]||n[L];return typeof s=="function"?s:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(n){{for(var s=arguments.length,l=new Array(s>1?s-1:0),d=1;d<s;d++)l[d-1]=arguments[d];T("error",n,l)}}function T(n,s,l){{var d=j.ReactDebugCurrentFrame,k=d.getStackAddendum();k!==""&&(s+="%s",l=l.concat([k]));var P=l.map(function(E){return String(E)});P.unshift("Warning: "+s),Function.prototype.apply.call(console[n],console,P)}}var A=!1,N=!1,x=!1,y=!1,te=!1,re;re=Symbol.for("react.module.reference");function Tt(n){return!!(typeof n=="string"||typeof n=="function"||n===o||n===a||te||n===i||n===h||n===p||y||n===S||A||N||x||typeof n=="object"&&n!==null&&(n.$$typeof===w||n.$$typeof===g||n.$$typeof===c||n.$$typeof===f||n.$$typeof===u||n.$$typeof===re||n.getModuleId!==void 0))}function Pt(n,s,l){var d=n.displayName;if(d)return d;var k=s.displayName||s.name||"";return k!==""?l+"("+k+")":l}function ot(n){return n.displayName||"Context"}function H(n){if(n==null)return null;if(typeof n.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var s=n;return ot(s)+".Consumer";case c:var l=n;return ot(l._context)+".Provider";case u:return Pt(n,n.render,"ForwardRef");case g:var d=n.displayName||null;return d!==null?d:H(n.type)||"Memo";case w:{var k=n,P=k._payload,E=k._init;try{return H(E(P))}catch{return null}}}return null}var ne=Object.assign,ve=0,it,Re,$e,G,se,ce,V;function je(){}je.__reactDisabledLog=!0;function Fe(){{if(ve===0){it=console.log,Re=console.info,$e=console.warn,G=console.error,se=console.group,ce=console.groupCollapsed,V=console.groupEnd;var n={configurable:!0,enumerable:!0,value:je,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}ve++}}function Te(){{if(ve--,ve===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},n,{value:it}),info:ne({},n,{value:Re}),warn:ne({},n,{value:$e}),error:ne({},n,{value:G}),group:ne({},n,{value:se}),groupCollapsed:ne({},n,{value:ce}),groupEnd:ne({},n,{value:V})})}ve<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=j.ReactCurrentDispatcher,le;function X(n,s,l){{if(le===void 0)try{throw Error()}catch(k){var d=k.stack.trim().match(/\n( *(at )?)/);le=d&&d[1]||""}return` `+le+n}}var K=!1,ue;{var Pe=typeof WeakMap=="function"?WeakMap:Map;ue=new Pe}function J(n,s){if(!n||K)return"";{var l=ue.get(n);if(l!==void 0)return l}var d;K=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=oe.current,oe.current=null,Fe();try{if(s){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(ie){d=ie}Reflect.construct(n,[],E)}else{try{E.call()}catch(ie){d=ie}n.call(E.prototype)}}else{try{throw Error()}catch(ie){d=ie}n()}}catch(ie){if(ie&&d&&typeof ie.stack=="string"){for(var C=ie.stack.split(` `),U=d.stack.split(` `),D=C.length-1,F=U.length-1;D>=1&&F>=0&&C[D]!==U[F];)F--;for(;D>=1&&F>=0;D--,F--)if(C[D]!==U[F]){if(D!==1||F!==1)do if(D--,F--,F<0||C[D]!==U[F]){var q=` `+C[D].replace(" at new "," at ");return n.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",n.displayName)),typeof n=="function"&&ue.set(n,q),q}while(D>=1&&F>=0);break}}}finally{K=!1,oe.current=P,Te(),Error.prepareStackTrace=k}var Ae=n?n.displayName||n.name:"",Mr=Ae?X(Ae):"";return typeof n=="function"&&ue.set(n,Mr),Mr}function mo(n,s,l){return J(n,!1)}function go(n){var s=n.prototype;return!!(s&&s.isReactComponent)}function at(n,s,l){if(n==null)return"";if(typeof n=="function")return J(n,go(n));if(typeof n=="string")return X(n);switch(n){case h:return X("Suspense");case p:return X("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case u:return mo(n.render);case g:return at(n.type,s,l);case w:{var d=n,k=d._payload,P=d._init;try{return at(P(k),s,l)}catch{}}}return""}var st=Object.prototype.hasOwnProperty,Rr={},jr=j.ReactDebugCurrentFrame;function ct(n){if(n){var s=n._owner,l=at(n.type,n._source,s?s.type:null);jr.setExtraStackFrame(l)}else jr.setExtraStackFrame(null)}function yo(n,s,l,d,k){{var P=Function.call.bind(st);for(var E in n)if(P(n,E)){var C=void 0;try{if(typeof n[E]!="function"){var U=Error((d||"React class")+": "+l+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}C=n[E](s,E,d,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){C=D}C&&!(C instanceof Error)&&(ct(k),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",l,E,typeof C),ct(null)),C instanceof Error&&!(C.message in Rr)&&(Rr[C.message]=!0,ct(k),b("Failed %s type: %s",l,C.message),ct(null))}}}var vo=Array.isArray;function Ot(n){return vo(n)}function bo(n){{var s=typeof Symbol=="function"&&Symbol.toStringTag,l=s&&n[Symbol.toStringTag]||n.constructor.name||"Object";return l}}function wo(n){try{return Tr(n),!1}catch{return!0}}function Tr(n){return""+n}function Pr(n){if(wo(n))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bo(n)),Tr(n)}var Me=j.ReactCurrentOwner,Co={key:!0,ref:!0,__self:!0,__source:!0},Or,Ar,At;At={};function xo(n){if(st.call(n,"ref")){var s=Object.getOwnPropertyDescriptor(n,"ref").get;if(s&&s.isReactWarning)return!1}return n.ref!==void 0}function So(n){if(st.call(n,"key")){var s=Object.getOwnPropertyDescriptor(n,"key").get;if(s&&s.isReactWarning)return!1}return n.key!==void 0}function Eo(n,s){if(typeof n.ref=="string"&&Me.current&&s&&Me.current.stateNode!==s){var l=H(Me.current.type);At[l]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(Me.current.type),n.ref),At[l]=!0)}}function ko(n,s){{var l=function(){Or||(Or=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};l.isReactWarning=!0,Object.defineProperty(n,"key",{get:l,configurable:!0})}}function _o(n,s){{var l=function(){Ar||(Ar=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};l.isReactWarning=!0,Object.defineProperty(n,"ref",{get:l,configurable:!0})}}var Ro=function(n,s,l,d,k,P,E){var C={$$typeof:t,type:n,key:s,ref:l,props:E,_owner:P};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function jo(n,s,l,d,k){{var P,E={},C=null,U=null;l!==void 0&&(Pr(l),C=""+l),So(s)&&(Pr(s.key),C=""+s.key),xo(s)&&(U=s.ref,Eo(s,k));for(P in s)st.call(s,P)&&!Co.hasOwnProperty(P)&&(E[P]=s[P]);if(n&&n.defaultProps){var D=n.defaultProps;for(P in D)E[P]===void 0&&(E[P]=D[P])}if(C||U){var F=typeof n=="function"?n.displayName||n.name||"Unknown":n;C&&ko(E,F),U&&_o(E,F)}return Ro(n,C,U,k,d,Me.current,E)}}var It=j.ReactCurrentOwner,Ir=j.ReactDebugCurrentFrame;function Oe(n){if(n){var s=n._owner,l=at(n.type,n._source,s?s.type:null);Ir.setExtraStackFrame(l)}else Ir.setExtraStackFrame(null)}var Nt;Nt=!1;function Lt(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function Nr(){{if(It.current){var n=H(It.current.type);if(n)return` Check the render method of \``+n+"`."}return""}}function To(n){{if(n!==void 0){var s=n.fileName.replace(/^.*[\\\/]/,""),l=n.lineNumber;return` Check your code at `+s+":"+l+"."}return""}}var Lr={};function Po(n){{var s=Nr();if(!s){var l=typeof n=="string"?n:n.displayName||n.name;l&&(s=` Check the top-level render call using <`+l+">.")}return s}}function Dr(n,s){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var l=Po(s);if(Lr[l])return;Lr[l]=!0;var d="";n&&n._owner&&n._owner!==It.current&&(d=" It was passed a child from "+H(n._owner.type)+"."),Oe(n),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,d),Oe(null)}}function $r(n,s){{if(typeof n!="object")return;if(Ot(n))for(var l=0;l<n.length;l++){var d=n[l];Lt(d)&&Dr(d,s)}else if(Lt(n))n._store&&(n._store.validated=!0);else if(n){var k=B(n);if(typeof k=="function"&&k!==n.entries)for(var P=k.call(n),E;!(E=P.next()).done;)Lt(E.value)&&Dr(E.value,s)}}}function Oo(n){{var s=n.type;if(s==null||typeof s=="string")return;var l;if(typeof s=="function")l=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===u||s.$$typeof===g))l=s.propTypes;else return;if(l){var d=H(s);yo(l,n.props,"prop",d,n)}else if(s.PropTypes!==void 0&&!Nt){Nt=!0;var k=H(s);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ao(n){{for(var s=Object.keys(n.props),l=0;l<s.length;l++){var d=s[l];if(d!=="children"&&d!=="key"){Oe(n),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),Oe(null);break}}n.ref!==null&&(Oe(n),b("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}}function Fr(n,s,l,d,k,P){{var E=Tt(n);if(!E){var C="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var U=To(k);U?C+=U:C+=Nr();var D;n===null?D="null":Ot(n)?D="array":n!==void 0&&n.$$typeof===t?(D="<"+(H(n.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):D=typeof n,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D,C)}var F=jo(n,s,l,k,P);if(F==null)return F;if(E){var q=s.children;if(q!==void 0)if(d)if(Ot(q)){for(var Ae=0;Ae<q.length;Ae++)$r(q[Ae],n);Object.freeze&&Object.freeze(q)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $r(q,n)}return n===o?Ao(F):Oo(F),F}}function Io(n,s,l){return Fr(n,s,l,!0)}function No(n,s,l){return Fr(n,s,l,!1)}var Lo=No,Do=Io;Ne.Fragment=o,Ne.jsx=Lo,Ne.jsxs=Do}()),Ne}process.env.NODE_ENV==="production"?fe.exports=Wr():fe.exports=Br();var m=fe.exports;const Vr=({condition:e,children:t})=>e?m.jsx(m.Fragment,{children:t}):null,We=R.memo(Vr);function Ur(e){const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const i=t[r].split("="),a=i[0].trim(),c=i.slice(1).join("=").trim();if(a.toLowerCase()===e.toLowerCase())return decodeURIComponent(c)}return null}function Ft(e,t){const r=new Date;r.setDate(r.getDate()+1),document.cookie=`${e}=${t}; expires=${r.toUTCString()}; path=/`}var z=function(){return z=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},z.apply(this,arguments)};function pe(e,t,r){if(r||arguments.length===2)for(var o=0,i=t.length,a;o<i;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}function zr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yr=/^((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|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)-.*))$/,Hr=zr(function(e){return Yr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),I="-ms-",Le="-moz-",_="-webkit-",Mt="comm",Be="rule",lt="decl",Gr="@import",Wt="@keyframes",qr="@layer",Bt=Math.abs,ut=String.fromCharCode,ft=Object.assign;function Zr(e,t){return M(e,0)^45?(((t<<2^M(e,0))<<2^M(e,1))<<2^M(e,2))<<2^M(e,3):0}function Vt(e){return e.trim()}function ee(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,r){return e.replace(t,r)}function Ve(e,t,r){return e.indexOf(t,r)}function M(e,t){return e.charCodeAt(t)|0}function be(e,t,r){return e.slice(t,r)}function Q(e){return e.length}function Ut(e){return e.length}function De(e,t){return t.push(e),e}function Xr(e,t){return e.map(t).join("")}function zt(e,t){return e.filter(function(r){return!ee(r,t)})}var Ue=1,we=1,Yt=0,Y=0,$=0,Ce="";function ze(e,t,r,o,i,a,c,f){return{value:e,root:t,parent:r,type:o,props:i,children:a,line:Ue,column:we,length:c,return:"",siblings:f}}function ae(e,t){return ft(ze("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xe(e){for(;e.root;)e=ae(e.root,{children:[e]});De(e,e.siblings)}function Kr(){return $}function Jr(){return $=Y>0?M(Ce,--Y):0,we--,$===10&&(we=1,Ue--),$}function Z(){return $=Y<Yt?M(Ce,Y++):0,we++,$===10&&(we=1,Ue++),$}function de(){return M(Ce,Y)}function Ye(){return Y}function He(e,t){return be(Ce,e,t)}function pt(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 Qr(e){return Ue=we=1,Yt=Q(Ce=e),Y=0,[]}function en(e){return Ce="",e}function dt(e){return Vt(He(Y-1,ht(e===91?e+2:e===40?e+1:e)))}function tn(e){for(;($=de())&&$<33;)Z();return pt(e)>2||pt($)>3?"":" "}function rn(e,t){for(;--t&&Z()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return He(e,Ye()+(t<6&&de()==32&&Z()==32))}function ht(e){for(;Z();)switch($){case e:return Y;case 34:case 39:e!==34&&e!==39&&ht($);break;case 40:e===41&&ht(e);break;case 92:Z();break}return Y}function nn(e,t){for(;Z()&&e+$!==57;)if(e+$===84&&de()===47)break;return"/*"+He(t,Y-1)+"*"+ut(e===47?e:Z())}function on(e){for(;!pt(de());)Z();return He(e,Y)}function an(e){return en(Ge("",null,null,null,[""],e=Qr(e),0,[0],e))}function Ge(e,t,r,o,i,a,c,f,u){for(var h=0,p=0,g=c,w=0,S=0,O=0,L=1,B=1,j=1,b=0,T="",A=i,N=a,x=o,y=T;B;)switch(O=b,b=Z()){case 40:if(O!=108&&M(y,g-1)==58){Ve(y+=v(dt(b),"&","&\f"),"&\f",Bt(h?f[h-1]:0))!=-1&&(j=-1);break}case 34:case 39:case 91:y+=dt(b);break;case 9:case 10:case 13:case 32:y+=tn(O);break;case 92:y+=rn(Ye()-1,7);continue;case 47:switch(de()){case 42:case 47:De(sn(nn(Z(),Ye()),t,r,u),u);break;default:y+="/"}break;case 123*L:f[h++]=Q(y)*j;case 125*L:case 59:case 0:switch(b){case 0:case 125:B=0;case 59+p:j==-1&&(y=v(y,/\f/g,"")),S>0&&Q(y)-g&&De(S>32?Gt(y+";",o,r,g-1,u):Gt(v(y," ","")+";",o,r,g-2,u),u);break;case 59:y+=";";default:if(De(x=Ht(y,t,r,h,p,i,f,T,A=[],N=[],g,a),a),b===123)if(p===0)Ge(y,t,x,x,A,a,g,f,N);else switch(w===99&&M(y,3)===110?100:w){case 100:case 108:case 109:case 115:Ge(e,x,x,o&&De(Ht(e,x,x,0,0,i,f,T,i,A=[],g,N),N),i,N,g,f,o?A:N);break;default:Ge(y,x,x,x,[""],N,0,f,N)}}h=p=S=0,L=j=1,T=y="",g=c;break;case 58:g=1+Q(y),S=O;default:if(L<1){if(b==123)--L;else if(b==125&&L++==0&&Jr()==125)continue}switch(y+=ut(b),b*L){case 38:j=p>0?1:(y+="\f",-1);break;case 44:f[h++]=(Q(y)-1)*j,j=1;break;case 64:de()===45&&(y+=dt(Z())),w=de(),p=g=Q(T=y+=on(Ye())),b++;break;case 45:O===45&&Q(y)==2&&(L=0)}}return a}function Ht(e,t,r,o,i,a,c,f,u,h,p,g){for(var w=i-1,S=i===0?a:[""],O=Ut(S),L=0,B=0,j=0;L<o;++L)for(var b=0,T=be(e,w+1,w=Bt(B=c[L])),A=e;b<O;++b)(A=Vt(B>0?S[b]+" "+T:v(T,/&\f/g,S[b])))&&(u[j++]=A);return ze(e,t,r,i===0?Be:f,u,h,p,g)}function sn(e,t,r,o){return ze(e,t,r,Mt,ut(Kr()),be(e,2,-2),0,o)}function Gt(e,t,r,o,i){return ze(e,t,r,lt,be(e,0,o),be(e,o+1,-1),o,i)}function qt(e,t,r){switch(Zr(e,t)){case 5103:return _+"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 _+e+e;case 4789:return Le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _+e+Le+e+I+e+e;case 5936:switch(M(e,t+11)){case 114:return _+e+I+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _+e+I+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _+e+I+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _+e+I+e+e;case 6165:return _+e+I+"flex-"+e+e;case 5187:return _+e+v(e,/(\w+).+(:[^]+)/,_+"box-$1$2"+I+"flex-$1$2")+e;case 5443:return _+e+I+"flex-item-"+v(e,/flex-|-self/g,"")+(ee(e,/flex-|baseline/)?"":I+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return _+e+I+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return _+e+I+v(e,"shrink","negative")+e;case 5292:return _+e+I+v(e,"basis","preferred-size")+e;case 6060:return _+"box-"+v(e,"-grow","")+_+e+I+v(e,"grow","positive")+e;case 4554:return _+v(e,/([^-])(transform)/g,"$1"+_+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+I+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+e+e;case 4200:if(!ee(e,/flex-|baseline/))return I+"grid-column-align"+be(e,t)+e;break;case 2592:case 3360:return I+v(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,i){return t=i,ee(o.props,/grid-\w+-end/)})?~Ve(e+(r=r[t].value),"span",0)?e:I+v(e,"-start","")+e+I+"grid-row-span:"+(~Ve(r,"span",0)?ee(r,/\d+/):+ee(r,/\d+/)-+ee(e,/\d+/))+";":I+v(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return ee(o.props,/grid-\w+-start/)})?e:I+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,_+"$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(Q(e)-1-t>6)switch(M(e,t+1)){case 109:if(M(e,t+4)!==45)break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+Le+(M(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ve(e,"stretch",0)?qt(v(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,i,a,c,f,u,h){return I+i+":"+a+h+(c?I+i+"-span:"+(f?u:+u-+a)+h:"")+e});case 4949:if(M(e,t+6)===121)return v(e,":",":"+_)+e;break;case 6444:switch(M(e,M(e,14)===45?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_+(M(e,14)===45?"inline-":"")+"box$3$1"+_+"$2$3$1"+I+"$2box$3")+e;case 100:return v(e,":",":"+I)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}return e}function qe(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function cn(e,t,r,o){switch(e.type){case qr:if(e.children.length)break;case Gr:case lt:return e.return=e.return||e.value;case Mt:return"";case Wt:return e.return=e.value+"{"+qe(e.children,o)+"}";case Be:if(!Q(e.value=e.props.join(",")))return""}return Q(r=qe(e.children,o))?e.return=e.value+"{"+r+"}":""}function ln(e){var t=Ut(e);return function(r,o,i,a){for(var c="",f=0;f<t;f++)c+=e[f](r,o,i,a)||"";return c}}function un(e){return function(t){t.root||(t=t.return)&&e(t)}}function fn(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case lt:e.return=qt(e.value,e.length,r);return;case Wt:return qe([ae(e,{value:v(e.value,"@","@"+_)})],o);case Be:if(e.length)return Xr(r=e.props,function(i){switch(ee(i,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xe(ae(e,{props:[v(i,/:(read-\w+)/,":"+Le+"$1")]})),xe(ae(e,{props:[i]})),ft(e,{props:zt(r,o)});break;case"::placeholder":xe(ae(e,{props:[v(i,/:(plac\w+)/,":"+_+"input-$1")]})),xe(ae(e,{props:[v(i,/:(plac\w+)/,":"+Le+"$1")]})),xe(ae(e,{props:[v(i,/:(plac\w+)/,I+"input-$1")]})),xe(ae(e,{props:[i]})),ft(e,{props:zt(r,o)});break}return""})}}var pn={animationIterationCount: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},he=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Zt="active",Xt="data-styled-version",Ze="6.1.8",mt=`/*!sc*/ `,gt=typeof window<"u"&&"HTMLElement"in window,dn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Kt=/invalid hook call/i,Xe=new Set,hn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",o="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.`,i=console.error;try{var a=!0;console.error=function(c){for(var f=[],u=1;u<arguments.length;u++)f[u-1]=arguments[u];Kt.test(c)?(a=!1,Xe.delete(o)):i.apply(void 0,pe([c],f,!1))},R.useRef(),a&&!Xe.has(o)&&(console.warn(o),Xe.add(o))}catch(c){Kt.test(c.message)&&Xe.delete(o)}finally{console.error=i}}},Ke=Object.freeze([]),Se=Object.freeze({});function mn(e,t,r){return r===void 0&&(r=Se),e.theme!==r.theme&&e.theme||t||r.theme}var yt=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"]),gn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yn=/(^-|-$)/g;function Jt(e){return e.replace(gn,"-").replace(yn,"")}var vn=/(a)(d)/gi,Je=52,Qt=function(e){return String.fromCharCode(e+(e>25?39:97))};function vt(e){var t,r="";for(t=Math.abs(e);t>Je;t=t/Je|0)r=Qt(t%Je)+r;return(Qt(t%Je)+r).replace(vn,"$1-$2")}var bt,er=5381,me=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},tr=function(e){return me(er,e)};function rr(e){return vt(tr(e)>>>0)}function nr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function wt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var or=typeof Symbol=="function"&&Symbol.for,ir=or?Symbol.for("react.memo"):60115,bn=or?Symbol.for("react.forward_ref"):60112,wn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Cn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ar={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xn=((bt={})[bn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bt[ir]=ar,bt);function sr(e){return("type"in(t=e)&&t.type.$$typeof)===ir?ar:"$$typeof"in e?xn[e.$$typeof]:wn;var t}var Sn=Object.defineProperty,En=Object.getOwnPropertyNames,cr=Object.getOwnPropertySymbols,kn=Object.getOwnPropertyDescriptor,_n=Object.getPrototypeOf,lr=Object.prototype;function ur(e,t,r){if(typeof t!="string"){if(lr){var o=_n(t);o&&o!==lr&&ur(e,o,r)}var i=En(t);cr&&(i=i.concat(cr(t)));for(var a=sr(e),c=sr(t),f=0;f<i.length;++f){var u=i[f];if(!(u in Cn||r&&r[u]||c&&u in c||a&&u in a)){var h=kn(t,u);try{Sn(e,u,h)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function Ct(e){return typeof e=="object"&&"styledComponentId"in e}function ge(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xt(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=t?t+e[o]:e[o];return r}function ke(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function St(e,t,r){if(r===void 0&&(r=!1),!r&&!ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=St(e[o],t[o]);else if(ke(t))for(var o in t)e[o]=St(e[o],t[o]);return e}function Et(e,t){Object.defineProperty(e,"toString",{value:t})}var Rn=process.env.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 found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],i=1,a=e.length;i<a;i+=1)o.push(e[i]);return o.forEach(function(c){r=r.replace(/%[a-z]/,c)}),r}function _e(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(jn.apply(void 0,pe([Rn[e]],t,!1)).trim())}var Tn=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,i=o.length,a=i;t>=a;)if((a<<=1)<0)throw _e(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var c=i;c<a;c++)this.groupSizes[c]=0}for(var f=this.indexOfGroup(t+1),u=(c=0,r.length);c<u;c++)this.tag.insertRule(f,r[c])&&(this.groupSizes[t]++,f++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r;this.groupSizes[t]=0;for(var a=o;a<i;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],i=this.indexOfGroup(t),a=i+o,c=i;c<a;c++)r+="".concat(this.tag.getRule(c)).concat(mt);return r},e}(),Qe=new Map,et=new Map,tt=1,rt=function(e){if(Qe.has(e))return Qe.get(e);for(;et.has(tt);)tt++;var t=tt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw _e(16,"".concat(t));return Qe.set(e,t),et.set(t,e),t},Pn=function(e,t){tt=t+1,Qe.set(e,t),et.set(t,e)},On="style[".concat(he,"][").concat(Xt,'="').concat(Ze,'"]'),An=new RegExp("^".concat(he,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),In=function(e,t,r){for(var o,i=r.split(","),a=0,c=i.length;a<c;a++)(o=i[a])&&e.registerName(t,o)},Nn=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(mt),i=[],a=0,c=o.length;a<c;a++){var f=o[a].trim();if(f){var u=f.match(An);if(u){var h=0|parseInt(u[1],10),p=u[2];h!==0&&(Pn(p,h),In(e,p,u[3]),e.getTag().insertRules(h,i)),i.length=0}else i.push(f)}}};function Ln(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var fr=function(e){var t=document.head,r=e||t,o=document.createElement("style"),i=function(f){var u=Array.from(f.querySelectorAll("style[".concat(he,"]")));return u[u.length-1]}(r),a=i!==void 0?i.nextSibling:null;o.setAttribute(he,Zt),o.setAttribute(Xt,Ze);var c=Ln();return c&&o.setAttribute("nonce",c),r.insertBefore(o,a),o},Dn=function(){function e(t){this.element=fr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,i=0,a=o.length;i<a;i++){var c=o[i];if(c.ownerNode===r)return c}throw _e(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),$n=function(){function e(t){this.element=fr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Fn=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),pr=gt,Mn={isServer:!gt,useCSSOMInjection:!dn},dr=function(){function e(t,r,o){t===void 0&&(t=Se),r===void 0&&(r={});var i=this;this.options=z(z({},Mn),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&gt&&pr&&(pr=!1,function(a){for(var c=document.querySelectorAll(On),f=0,u=c.length;f<u;f++){var h=c[f];h&&h.getAttribute(he)!==Zt&&(Nn(a,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),Et(this,function(){return function(a){for(var c=a.getTag(),f=c.length,u="",h=function(g){var w=function(j){return et.get(j)}(g);if(w===void 0)return"continue";var S=a.names.get(w),O=c.getGroup(g);if(S===void 0||O.length===0)return"continue";var L="".concat(he,".g").concat(g,'[id="').concat(w,'"]'),B="";S!==void 0&&S.forEach(function(j){j.length>0&&(B+="".concat(j,","))}),u+="".concat(O).concat(L,'{content:"').concat(B,'"}').concat(mt)},p=0;p<f;p++)h(p);return u}(i)})}return e.registerId=function(t){return rt(t)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(z(z({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var o=r.useCSSOMInjection,i=r.target;return r.isServer?new Fn(i):o?new Dn(i):new $n(i)}(this.options),new Tn(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(rt(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(rt(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(rt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Wn=/&/g,Bn=/^\s*\/\/.*$/gm;function hr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=hr(r.children,t)),r})}function Vn(e){var t,r,o,i=e===void 0?Se:e,a=i.options,c=a===void 0?Se:a,f=i.plugins,u=f===void 0?Ke:f,h=function(w,S,O){return O.startsWith(r)&&O.endsWith(r)&&O.replaceAll(r,"").length>0?".".concat(t):w},p=u.slice();p.push(function(w){w.type===Be&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(Wn,r).replace(o,h))}),c.prefix&&p.push(fn),p.push(cn);var g=function(w,S,O,L){S===void 0&&(S=""),O===void 0&&(O=""),L===void 0&&(L="&"),t=L,r=S,o=new RegExp("\\".concat(r,"\\b"),"g");var B=w.replace(Bn,""),j=an(O||S?"".concat(O," ").concat(S," { ").concat(B," }"):B);c.namespace&&(j=hr(j,c.namespace));var b=[];return qe(j,ln(p.concat(un(function(T){return b.push(T)})))),b};return g.hash=u.length?u.reduce(function(w,S){return S.name||_e(15),me(w,S.name)},er).toString():"",g}var Un=new dr,kt=Vn(),mr=R.createContext({shouldForwardProp:void 0,styleSheet:Un,stylis:kt});mr.Consumer,R.createContext(void 0);function gr(){return R.useContext(mr)}var _t=function(){function e(t,r){var o=this;this.inject=function(i,a){a===void 0&&(a=kt);var c=o.name+a.hash;i.hasNameForId(o.id,c)||i.insertRules(o.id,c,a(o.rules,c,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Et(this,function(){throw _e(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=kt),this.name+t.hash},e}(),zn=function(e){return e>="A"&&e<="Z"};function yr(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;zn(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var vr=function(e){return e==null||e===!1||e===""},br=function(e){var t,r,o=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!vr(a)&&(Array.isArray(a)&&a.isCss||Ee(a)?o.push("".concat(yr(i),":"),a,";"):ke(a)?o.push.apply(o,pe(pe(["".concat(i," {")],br(a),!1),["}"],!1)):o.push("".concat(yr(i),": ").concat((t=i,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in pn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function ye(e,t,r,o){if(vr(e))return[];if(Ct(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof _t||ke(i)||i===null||console.error("".concat(nr(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ye(i,t,r,o)}var a;return e instanceof _t?r?(e.inject(r,o),[e.getName(o)]):[e]:ke(e)?br(e):Array.isArray(e)?Array.prototype.concat.apply(Ke,e.map(function(c){return ye(c,t,r,o)})):[e.toString()]}function Yn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ee(r)&&!Ct(r))return!1}return!0}var Hn=tr(Ze),Gn=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(o===void 0||o.isStatic)&&Yn(t),this.componentId=r,this.baseHash=me(Hn,r),this.baseStyle=o,dr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=ge(i,this.staticRulesId);else{var a=xt(ye(this.rules,t,r,o)),c=vt(me(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,c)){var f=o(a,".".concat(c),void 0,this.componentId);r.insertRules(this.componentId,c,f)}i=ge(i,c),this.staticRulesId=c}else{for(var u=me(this.baseHash,o.hash),h="",p=0;p<this.rules.length;p++){var g=this.rules[p];if(typeof g=="string")h+=g,process.env.NODE_ENV!=="production"&&(u=me(u,g));else if(g){var w=xt(ye(g,t,r,o));u=me(u,w+p),h+=w}}if(h){var S=vt(u>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,o(h,".".concat(S),void 0,this.componentId)),i=ge(i,S)}}return i},e}(),wr=R.createContext(void 0);wr.Consumer;var Rt={},Cr=new Set;function qn(e,t,r){var o=Ct(e),i=e,a=!wt(e),c=t.attrs,f=c===void 0?Ke:c,u=t.componentId,h=u===void 0?function(A,N){var x=typeof A!="string"?"sc":Jt(A);Rt[x]=(Rt[x]||0)+1;var y="".concat(x,"-").concat(rr(Ze+x+Rt[x]));return N?"".concat(N,"-").concat(y):y}(t.displayName,t.parentComponentId):u,p=t.displayName,g=p===void 0?function(A){return wt(A)?"styled.".concat(A):"Styled(".concat(nr(A),")")}(e):p,w=t.displayName&&t.componentId?"".concat(Jt(t.displayName),"-").concat(t.componentId):t.componentId||h,S=o&&i.attrs?i.attrs.concat(f).filter(Boolean):f,O=t.shouldForwardProp;if(o&&i.shouldForwardProp){var L=i.shouldForwardProp;if(t.shouldForwardProp){var B=t.shouldForwardProp;O=function(A,N){return L(A,N)&&B(A,N)}}else O=L}var j=new Gn(r,w,o?i.componentStyle:void 0);function b(A,N){return function(x,y,te){var re=x.attrs,Tt=x.componentStyle,Pt=x.defaultProps,ot=x.foldedComponentIds,H=x.styledComponentId,ne=x.target,ve=R.useContext(wr),it=gr(),Re=x.shouldForwardProp||it.shouldForwardProp;process.env.NODE_ENV!=="production"&&R.useDebugValue(H);var $e=mn(y,ve,Pt)||Se,G=function(Te,oe,le){for(var X,K=z(z({},oe),{className:void 0,theme:le}),ue=0;ue<Te.length;ue+=1){var Pe=Ee(X=Te[ue])?X(K):X;for(var J in Pe)K[J]=J==="className"?ge(K[J],Pe[J]):J==="style"?z(z({},K[J]),Pe[J]):Pe[J]}return oe.className&&(K.className=ge(K.className,oe.className)),K}(re,y,$e),se=G.as||ne,ce={};for(var V in G)G[V]===void 0||V[0]==="$"||V==="as"||V==="theme"&&G.theme===$e||(V==="forwardedAs"?ce.as=G.forwardedAs:Re&&!Re(V,se)||(ce[V]=G[V],Re||process.env.NODE_ENV!=="development"||Hr(V)||Cr.has(V)||!yt.has(se)||(Cr.add(V),console.warn('styled-components: it looks like an unknown prop "'.concat(V,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var je=function(Te,oe){var le=gr(),X=Te.generateAndInjectStyles(oe,le.styleSheet,le.stylis);return process.env.NODE_ENV!=="production"&&R.useDebugValue(X),X}(Tt,G);process.env.NODE_ENV!=="production"&&x.warnTooManyClasses&&x.warnTooManyClasses(je);var Fe=ge(ot,H);return je&&(Fe+=" "+je),G.className&&(Fe+=" "+G.className),ce[wt(se)&&!yt.has(se)?"class":"className"]=Fe,ce.ref=te,R.createElement(se,ce)}(T,A,N)}b.displayName=g;var T=R.forwardRef(b);return T.attrs=S,T.componentStyle=j,T.displayName=g,T.shouldForwardProp=O,T.foldedComponentIds=o?ge(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=w,T.target=o?i.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=o?function(N){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var te=0,re=x;te<re.length;te++)St(N,re[te],!0);return N}({},i.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(hn(g,w),T.warnTooManyClasses=function(A,N){var x={},y=!1;return function(te){if(!y&&(x[te]=!0,Object.keys(x).length>=200)){var re=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(re,`. `)+`Consider using the attrs method, together with a style object for frequently changed styles. Example: const Component = styled.div.attrs(props => ({ style: { background: props.background, }, }))\`width: 100%;\` <Component />`),y=!0,x={}}}}(g,w)),Et(T,function(){return".".concat(T.styledComponentId)}),a&&ur(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function xr(e,t){for(var r=[e[0]],o=0,i=t.length;o<i;o+=1)r.push(t