@julien-wiegandt/open-ui 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -4
- package/dist/open-ui.js +909 -583
- package/dist/open-ui.umd.cjs +131 -25
- package/dist/theme/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/open-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(D,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(D=typeof globalThis<"u"?globalThis:D||self,f(D["open-ui"]={},D.React))})(this,(function(D,f){"use strict";var Pe={exports:{}},xe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var wt;function vr(){if(wt)return xe;wt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var c in o)c!=="key"&&(a[c]=o[c])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return xe.Fragment=t,xe.jsx=r,xe.jsxs=r,xe}var we={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var St;function xr(){return St||(St=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===xt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case P:return"Profiler";case z:return"StrictMode";case A:return"Suspense";case m:return"SuspenseList";case Q:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case $:return"Portal";case S:return(i.displayName||"Context")+".Provider";case T:return(i._context.displayName||"Context")+".Consumer";case k:var u=i.render;return i=i.displayName,i||(i=u.displayName||u.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case p:return u=i.displayName||null,u!==null?u:e(i.type)||"Memo";case W:u=i._payload,i=i._init;try{return e(i(u))}catch{}}return null}function t(i){return""+i}function r(i){try{t(i);var u=!1}catch{u=!0}if(u){u=console;var h=u.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return h.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(i)}}function n(i){if(i===R)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===W)return"<...>";try{var u=e(i);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function o(){var i=Te.A;return i===null?null:i.getOwner()}function a(){return Error("react-stack-top-frame")}function s(i){if(Xe.call(i,"key")){var u=Object.getOwnPropertyDescriptor(i,"key").get;if(u&&u.isReactWarning)return!1}return i.key!==void 0}function c(i,u){function h(){Ze||(Ze=!0,console.error("%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://react.dev/link/special-props)",u))}h.isReactWarning=!0,Object.defineProperty(i,"key",{get:h,configurable:!0})}function l(){var i=e(this.type);return Ke[i]||(Ke[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function w(i,u,h,O,B,M,X,ee){return h=M.ref,i={$$typeof:b,type:i,key:u,props:M,_owner:B},(h!==void 0?h:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:l}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function v(i,u,h,O,B,M,X,ee){var C=u.children;if(C!==void 0)if(O)if(Je(C)){for(O=0;O<C.length;O++)g(C[O]);Object.freeze&&Object.freeze(C)}else console.error("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 g(C);if(Xe.call(u,"key")){C=e(i);var L=Object.keys(u).filter(function(ve){return ve!=="key"});O=0<L.length?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}",V[C+O]||(L=0<L.length?"{"+L.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,N,P,z,P),L[P+N]=!0)}if(P=null,f!==void 0&&(r(f),P=""+f),a(l)&&(r(l.key),P=""+l.key),"key"in l){f={};for(var oe in l)oe!=="key"&&(f[oe]=l[oe])}else f=l;return P&&c(f,typeof i=="function"?i.displayName||i.name||"Unknown":i),w(i,P,D,Y,o(),f,H,J)}function m(i){typeof i=="object"&&i!==null&&i.$$typeof===y&&i._store&&(i._store.validated=1)}var g=_,y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),ft=Symbol.for("react.client.reference"),Se=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ve=Object.prototype.hasOwnProperty,We=Array.isArray,Ee=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(i){return i()}};var Ge,He={},fe=g.react_stack_bottom_frame.bind(g,s)(),ke=Ee(n(s)),L={};ge.Fragment=R,ge.jsx=function(i,l,f,N,Y){var D=1e4>Se.recentlyCreatedOwnerStacks++;return v(i,l,f,!1,N,Y,D?Error("react-stack-top-frame"):fe,D?Ee(n(i)):ke)},ge.jsxs=function(i,l,f,N,Y){var D=1e4>Se.recentlyCreatedOwnerStacks++;return v(i,l,f,!0,N,Y,D?Error("react-stack-top-frame"):fe,D?Ee(n(i)):ke)}})()),ge}var gt;function pr(){return gt||(gt=1,process.env.NODE_ENV==="production"?xe.exports=ur():xe.exports=lr()),xe.exports}var ye=pr();const Ue={sm:480,lg:1024,xl:1280},dr=()=>{const[e,t]=_.useState(void 0),[r,n]=_.useState("sm");_.useEffect(()=>{const u=()=>{t(window.innerWidth)};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),_.useEffect(()=>{typeof e=="number"&&(e>=Ue.xl?n("xl"):e>=Ue.lg?n("lg"):e>=Ue.sm?n("md"):n("sm"))},[e]);const{isMobile:o,isTablet:s,isLaptop:a,isDesktop:c}=_.useMemo(()=>({isMobile:r==="sm",isTablet:r==="md",isLaptop:r==="lg",isDesktop:r==="xl"}),[r]);return{width:e,breakpoint:r,isMobile:o,isTablet:s,isLaptop:a,isDesktop:c}};var F=function(){return F=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},F.apply(this,arguments)};function se(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function fr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var hr=/^((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)-.*))$/,mr=fr(function(e){return hr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),k="-ms-",ve="-moz-",b="-webkit-",yt="comm",Re="rule",qe="decl",gr="@import",vt="@keyframes",yr="@layer",bt=Math.abs,Xe=String.fromCharCode,Je=Object.assign;function vr(e,t){return I(e,0)^45?(((t<<2^I(e,0))<<2^I(e,1))<<2^I(e,2))<<2^I(e,3):0}function wt(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function d(e,t,r){return e.replace(t,r)}function _e(e,t,r){return e.indexOf(t,r)}function I(e,t){return e.charCodeAt(t)|0}function ae(e,t,r){return e.slice(t,r)}function W(e){return e.length}function St(e){return e.length}function be(e,t){return t.push(e),e}function br(e,t){return e.map(t).join("")}function Et(e,t){return e.filter(function(r){return!G(r,t)})}var Ae=1,ie=1,kt=0,M=0,O=0,ce="";function Te(e,t,r,n,o,s,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:Ae,column:ie,length:a,return:"",siblings:c}}function q(e,t){return Je(Te("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=q(e.root,{children:[e]});be(e,e.siblings)}function wr(){return O}function Sr(){return O=M>0?I(ce,--M):0,ie--,O===10&&(ie=1,Ae--),O}function B(){return O=M<kt?I(ce,M++):0,ie++,O===10&&(ie=1,Ae++),O}function K(){return I(ce,M)}function Pe(){return M}function Ce(e,t){return ae(ce,e,t)}function Ze(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 Er(e){return Ae=ie=1,kt=W(ce=e),M=0,[]}function kr(e){return ce="",e}function Ke(e){return wt(Ce(M-1,Qe(e===91?e+2:e===40?e+1:e)))}function xr(e){for(;(O=K())&&O<33;)B();return Ze(e)>2||Ze(O)>3?"":" "}function Rr(e,t){for(;--t&&B()&&!(O<48||O>102||O>57&&O<65||O>70&&O<97););return Ce(e,Pe()+(t<6&&K()==32&&B()==32))}function Qe(e){for(;B();)switch(O){case e:return M;case 34:case 39:e!==34&&e!==39&&Qe(O);break;case 40:e===41&&Qe(e);break;case 92:B();break}return M}function _r(e,t){for(;B()&&e+O!==57;)if(e+O===84&&K()===47)break;return"/*"+Ce(t,M-1)+"*"+Xe(e===47?e:B())}function Ar(e){for(;!Ze(K());)B();return Ce(e,M)}function Tr(e){return kr(Oe("",null,null,null,[""],e=Er(e),0,[0],e))}function Oe(e,t,r,n,o,s,a,c,u){for(var w=0,v=0,m=a,g=0,y=0,x=0,R=1,j=1,C=1,A=0,S="",E=o,T=s,h=n,p=S;j;)switch(x=A,A=B()){case 40:if(x!=108&&I(p,m-1)==58){_e(p+=d(Ke(A),"&","&\f"),"&\f",bt(w?c[w-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:p+=Ke(A);break;case 9:case 10:case 13:case 32:p+=xr(x);break;case 92:p+=Rr(Pe()-1,7);continue;case 47:switch(K()){case 42:case 47:be(Pr(_r(B(),Pe()),t,r,u),u);break;default:p+="/"}break;case 123*R:c[w++]=W(p)*C;case 125*R:case 59:case 0:switch(A){case 0:case 125:j=0;case 59+v:C==-1&&(p=d(p,/\f/g,"")),y>0&&W(p)-m&&be(y>32?Rt(p+";",n,r,m-1,u):Rt(d(p," ","")+";",n,r,m-2,u),u);break;case 59:p+=";";default:if(be(h=xt(p,t,r,w,v,o,c,S,E=[],T=[],m,s),s),A===123)if(v===0)Oe(p,t,h,h,E,s,m,c,T);else switch(g===99&&I(p,3)===110?100:g){case 100:case 108:case 109:case 115:Oe(e,h,h,n&&be(xt(e,h,h,0,0,o,c,S,o,E=[],m,T),T),o,T,m,c,n?E:T);break;default:Oe(p,h,h,h,[""],T,0,c,T)}}w=v=y=0,R=C=1,S=p="",m=a;break;case 58:m=1+W(p),y=x;default:if(R<1){if(A==123)--R;else if(A==125&&R++==0&&Sr()==125)continue}switch(p+=Xe(A),A*R){case 38:C=v>0?1:(p+="\f",-1);break;case 44:c[w++]=(W(p)-1)*C,C=1;break;case 64:K()===45&&(p+=Ke(B())),g=K(),v=m=W(S=p+=Ar(Pe())),A++;break;case 45:x===45&&W(p)==2&&(R=0)}}return s}function xt(e,t,r,n,o,s,a,c,u,w,v,m){for(var g=o-1,y=o===0?s:[""],x=St(y),R=0,j=0,C=0;R<n;++R)for(var A=0,S=ae(e,g+1,g=bt(j=a[R])),E=e;A<x;++A)(E=wt(j>0?y[A]+" "+S:d(S,/&\f/g,y[A])))&&(u[C++]=E);return Te(e,t,r,o===0?Re:c,u,w,v,m)}function Pr(e,t,r,n){return Te(e,t,r,yt,Xe(wr()),ae(e,2,-2),0,n)}function Rt(e,t,r,n,o){return Te(e,t,r,qe,ae(e,0,n),ae(e,n+1,-1),n,o)}function _t(e,t,r){switch(vr(e,t)){case 5103:return b+"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 b+e+e;case 4789:return ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+ve+e+k+e+e;case 5936:switch(I(e,t+11)){case 114:return b+e+k+d(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+k+d(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+k+d(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return b+e+k+e+e;case 6165:return b+e+k+"flex-"+e+e;case 5187:return b+e+d(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return b+e+k+"flex-item-"+d(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":k+"grid-row-"+d(e,/flex-|-self/g,""))+e;case 4675:return b+e+k+"flex-line-pack"+d(e,/align-content|flex-|-self/g,"")+e;case 5548:return b+e+k+d(e,"shrink","negative")+e;case 5292:return b+e+k+d(e,"basis","preferred-size")+e;case 6060:return b+"box-"+d(e,"-grow","")+b+e+k+d(e,"grow","positive")+e;case 4554:return b+d(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return d(d(d(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return d(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return d(d(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+b+e+e;case 4200:if(!G(e,/flex-|baseline/))return k+"grid-column-align"+ae(e,t)+e;break;case 2592:case 3360:return k+d(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,G(n.props,/grid-\w+-end/)})?~_e(e+(r=r[t].value),"span",0)?e:k+d(e,"-start","")+e+k+"grid-row-span:"+(~_e(r,"span",0)?G(r,/\d+/):+G(r,/\d+/)-+G(e,/\d+/))+";":k+d(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return G(n.props,/grid-\w+-start/)})?e:k+d(d(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return d(e,/(.+)-inline(.+)/,b+"$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(W(e)-1-t>6)switch(I(e,t+1)){case 109:if(I(e,t+4)!==45)break;case 102:return d(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+ve+(I(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_e(e,"stretch",0)?_t(d(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return d(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,s,a,c,u,w){return k+o+":"+s+w+(a?k+o+"-span:"+(c?u:+u-+s)+w:"")+e});case 4949:if(I(e,t+6)===121)return d(e,":",":"+b)+e;break;case 6444:switch(I(e,I(e,14)===45?18:11)){case 120:return d(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+b+(I(e,14)===45?"inline-":"")+"box$3$1"+b+"$2$3$1"+k+"$2box$3")+e;case 100:return d(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return d(e,"scroll-","scroll-snap-")+e}return e}function Ne(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Cr(e,t,r,n){switch(e.type){case yr:if(e.children.length)break;case gr:case qe:return e.return=e.return||e.value;case yt:return"";case vt:return e.return=e.value+"{"+Ne(e.children,n)+"}";case Re:if(!W(e.value=e.props.join(",")))return""}return W(r=Ne(e.children,n))?e.return=e.value+"{"+r+"}":""}function Or(e){var t=St(e);return function(r,n,o,s){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,s)||"";return a}}function Nr(e){return function(t){t.root||(t=t.return)&&e(t)}}function $r(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case qe:e.return=_t(e.value,e.length,r);return;case vt:return Ne([q(e,{value:d(e.value,"@","@"+b)})],n);case Re:if(e.length)return br(r=e.props,function(o){switch(G(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(q(e,{props:[d(o,/:(read-\w+)/,":"+ve+"$1")]})),ue(q(e,{props:[o]})),Je(e,{props:Et(r,n)});break;case"::placeholder":ue(q(e,{props:[d(o,/:(plac\w+)/,":"+b+"input-$1")]})),ue(q(e,{props:[d(o,/:(plac\w+)/,":"+ve+"$1")]})),ue(q(e,{props:[d(o,/:(plac\w+)/,k+"input-$1")]})),ue(q(e,{props:[o]})),Je(e,{props:Et(r,n)});break}return""})}}var Ir={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},Q=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",At="active",Tt="data-styled-version",$e="6.1.19",et=`/*!sc*/
|
|
23
|
-
`,
|
|
22
|
+
<%s key={someKey} {...props} />`,O,C,L,C),V[C+O]=!0)}if(C=null,h!==void 0&&(r(h),C=""+h),s(u)&&(r(u.key),C=""+u.key),"key"in u){h={};for(var ue in u)ue!=="key"&&(h[ue]=u[ue])}else h=u;return C&&c(h,typeof i=="function"?i.displayName||i.name||"Unknown":i),w(i,C,M,B,o(),h,X,ee)}function g(i){typeof i=="object"&&i!==null&&i.$$typeof===b&&i._store&&(i._store.validated=1)}var y=f,b=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),xt=Symbol.for("react.client.reference"),Te=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xe=Object.prototype.hasOwnProperty,Je=Array.isArray,Ae=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(i){return i()}};var Ze,Ke={},be=y.react_stack_bottom_frame.bind(y,a)(),Ce=Ae(n(a)),V={};we.Fragment=R,we.jsx=function(i,u,h,O,B){var M=1e4>Te.recentlyCreatedOwnerStacks++;return v(i,u,h,!1,O,B,M?Error("react-stack-top-frame"):be,M?Ae(n(i)):Ce)},we.jsxs=function(i,u,h,O,B){var M=1e4>Te.recentlyCreatedOwnerStacks++;return v(i,u,h,!0,O,B,M?Error("react-stack-top-frame"):be,M?Ae(n(i)):Ce)}})()),we}var kt;function wr(){return kt||(kt=1,process.env.NODE_ENV==="production"?Pe.exports=vr():Pe.exports=xr()),Pe.exports}var j=wr();const Qe={sm:480,lg:1024,xl:1280},Et=()=>{const[e,t]=f.useState(void 0),[r,n]=f.useState("sm");f.useEffect(()=>{const l=()=>{t(window.innerWidth)};return l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]),f.useEffect(()=>{typeof e=="number"&&(e>=Qe.xl?n("xl"):e>=Qe.lg?n("lg"):e>=Qe.sm?n("md"):n("sm"))},[e]);const{isMobile:o,isTablet:a,isLaptop:s,isDesktop:c}=f.useMemo(()=>({isMobile:r==="sm",isTablet:r==="md",isLaptop:r==="lg",isDesktop:r==="xl"}),[r]);return{width:e,breakpoint:r,isMobile:o,isTablet:a,isLaptop:s,isDesktop:c}};var F=function(){return F=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},F.apply(this,arguments)};function pe(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Sr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var kr=/^((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)-.*))$/,Er=Sr(function(e){return kr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),E="-ms-",Se="-moz-",x="-webkit-",$t="comm",_e="rule",et="decl",$r="@import",Rt="@keyframes",Rr="@layer",Tt=Math.abs,tt=String.fromCharCode,rt=Object.assign;function Tr(e,t){return I(e,0)^45?(((t<<2^I(e,0))<<2^I(e,1))<<2^I(e,2))<<2^I(e,3):0}function At(e){return e.trim()}function q(e,t){return(e=t.exec(e))?e[0]:e}function d(e,t,r){return e.replace(t,r)}function Ne(e,t,r){return e.indexOf(t,r)}function I(e,t){return e.charCodeAt(t)|0}function de(e,t,r){return e.slice(t,r)}function G(e){return e.length}function Ct(e){return e.length}function ke(e,t){return t.push(e),e}function Ar(e,t){return e.map(t).join("")}function Pt(e,t){return e.filter(function(r){return!q(r,t)})}var Oe=1,fe=1,_t=0,Y=0,N=0,he="";function je(e,t,r,n,o,a,s,c){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Oe,column:fe,length:s,return:"",siblings:c}}function J(e,t){return rt(je("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function me(e){for(;e.root;)e=J(e.root,{children:[e]});ke(e,e.siblings)}function Cr(){return N}function Pr(){return N=Y>0?I(he,--Y):0,fe--,N===10&&(fe=1,Oe--),N}function H(){return N=Y<_t?I(he,Y++):0,fe++,N===10&&(fe=1,Oe++),N}function re(){return I(he,Y)}function Ie(){return Y}function Fe(e,t){return de(he,e,t)}function nt(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 _r(e){return Oe=fe=1,_t=G(he=e),Y=0,[]}function Nr(e){return he="",e}function ot(e){return At(Fe(Y-1,at(e===91?e+2:e===40?e+1:e)))}function Or(e){for(;(N=re())&&N<33;)H();return nt(e)>2||nt(N)>3?"":" "}function jr(e,t){for(;--t&&H()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Fe(e,Ie()+(t<6&&re()==32&&H()==32))}function at(e){for(;H();)switch(N){case e:return Y;case 34:case 39:e!==34&&e!==39&&at(N);break;case 40:e===41&&at(e);break;case 92:H();break}return Y}function Ir(e,t){for(;H()&&e+N!==57;)if(e+N===84&&re()===47)break;return"/*"+Fe(t,Y-1)+"*"+tt(e===47?e:H())}function Fr(e){for(;!nt(re());)H();return Fe(e,Y)}function Dr(e){return Nr(De("",null,null,null,[""],e=_r(e),0,[0],e))}function De(e,t,r,n,o,a,s,c,l){for(var w=0,v=0,g=s,y=0,b=0,$=0,R=1,z=1,P=1,T=0,S="",k=o,A=a,m=n,p=S;z;)switch($=T,T=H()){case 40:if($!=108&&I(p,g-1)==58){Ne(p+=d(ot(T),"&","&\f"),"&\f",Tt(w?c[w-1]:0))!=-1&&(P=-1);break}case 34:case 39:case 91:p+=ot(T);break;case 9:case 10:case 13:case 32:p+=Or($);break;case 92:p+=jr(Ie()-1,7);continue;case 47:switch(re()){case 42:case 47:ke(zr(Ir(H(),Ie()),t,r,l),l);break;default:p+="/"}break;case 123*R:c[w++]=G(p)*P;case 125*R:case 59:case 0:switch(T){case 0:case 125:z=0;case 59+v:P==-1&&(p=d(p,/\f/g,"")),b>0&&G(p)-g&&ke(b>32?Ot(p+";",n,r,g-1,l):Ot(d(p," ","")+";",n,r,g-2,l),l);break;case 59:p+=";";default:if(ke(m=Nt(p,t,r,w,v,o,c,S,k=[],A=[],g,a),a),T===123)if(v===0)De(p,t,m,m,k,a,g,c,A);else switch(y===99&&I(p,3)===110?100:y){case 100:case 108:case 109:case 115:De(e,m,m,n&&ke(Nt(e,m,m,0,0,o,c,S,o,k=[],g,A),A),o,A,g,c,n?k:A);break;default:De(p,m,m,m,[""],A,0,c,A)}}w=v=b=0,R=P=1,S=p="",g=s;break;case 58:g=1+G(p),b=$;default:if(R<1){if(T==123)--R;else if(T==125&&R++==0&&Pr()==125)continue}switch(p+=tt(T),T*R){case 38:P=v>0?1:(p+="\f",-1);break;case 44:c[w++]=(G(p)-1)*P,P=1;break;case 64:re()===45&&(p+=ot(H())),y=re(),v=g=G(S=p+=Fr(Ie())),T++;break;case 45:$===45&&G(p)==2&&(R=0)}}return a}function Nt(e,t,r,n,o,a,s,c,l,w,v,g){for(var y=o-1,b=o===0?a:[""],$=Ct(b),R=0,z=0,P=0;R<n;++R)for(var T=0,S=de(e,y+1,y=Tt(z=s[R])),k=e;T<$;++T)(k=At(z>0?b[T]+" "+S:d(S,/&\f/g,b[T])))&&(l[P++]=k);return je(e,t,r,o===0?_e:c,l,w,v,g)}function zr(e,t,r,n){return je(e,t,r,$t,tt(Cr()),de(e,2,-2),0,n)}function Ot(e,t,r,n,o){return je(e,t,r,et,de(e,0,n),de(e,n+1,-1),n,o)}function jt(e,t,r){switch(Tr(e,t)){case 5103:return x+"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 x+e+e;case 4789:return Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+Se+e+E+e+e;case 5936:switch(I(e,t+11)){case 114:return x+e+E+d(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+E+d(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+E+d(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+E+e+e;case 6165:return x+e+E+"flex-"+e+e;case 5187:return x+e+d(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+E+"flex-$1$2")+e;case 5443:return x+e+E+"flex-item-"+d(e,/flex-|-self/g,"")+(q(e,/flex-|baseline/)?"":E+"grid-row-"+d(e,/flex-|-self/g,""))+e;case 4675:return x+e+E+"flex-line-pack"+d(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+E+d(e,"shrink","negative")+e;case 5292:return x+e+E+d(e,"basis","preferred-size")+e;case 6060:return x+"box-"+d(e,"-grow","")+x+e+E+d(e,"grow","positive")+e;case 4554:return x+d(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return d(d(d(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return d(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return d(d(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4200:if(!q(e,/flex-|baseline/))return E+"grid-column-align"+de(e,t)+e;break;case 2592:case 3360:return E+d(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,q(n.props,/grid-\w+-end/)})?~Ne(e+(r=r[t].value),"span",0)?e:E+d(e,"-start","")+e+E+"grid-row-span:"+(~Ne(r,"span",0)?q(r,/\d+/):+q(r,/\d+/)-+q(e,/\d+/))+";":E+d(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return q(n.props,/grid-\w+-start/)})?e:E+d(d(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return d(e,/(.+)-inline(.+)/,x+"$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(G(e)-1-t>6)switch(I(e,t+1)){case 109:if(I(e,t+4)!==45)break;case 102:return d(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+Se+(I(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ne(e,"stretch",0)?jt(d(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return d(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,s,c,l,w){return E+o+":"+a+w+(s?E+o+"-span:"+(c?l:+l-+a)+w:"")+e});case 4949:if(I(e,t+6)===121)return d(e,":",":"+x)+e;break;case 6444:switch(I(e,I(e,14)===45?18:11)){case 120:return d(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(I(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+E+"$2box$3")+e;case 100:return d(e,":",":"+E)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return d(e,"scroll-","scroll-snap-")+e}return e}function ze(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Mr(e,t,r,n){switch(e.type){case Rr:if(e.children.length)break;case $r:case et:return e.return=e.return||e.value;case $t:return"";case Rt:return e.return=e.value+"{"+ze(e.children,n)+"}";case _e:if(!G(e.value=e.props.join(",")))return""}return G(r=ze(e.children,n))?e.return=e.value+"{"+r+"}":""}function Lr(e){var t=Ct(e);return function(r,n,o,a){for(var s="",c=0;c<t;c++)s+=e[c](r,n,o,a)||"";return s}}function Yr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vr(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case et:e.return=jt(e.value,e.length,r);return;case Rt:return ze([J(e,{value:d(e.value,"@","@"+x)})],n);case _e:if(e.length)return Ar(r=e.props,function(o){switch(q(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":me(J(e,{props:[d(o,/:(read-\w+)/,":"+Se+"$1")]})),me(J(e,{props:[o]})),rt(e,{props:Pt(r,n)});break;case"::placeholder":me(J(e,{props:[d(o,/:(plac\w+)/,":"+x+"input-$1")]})),me(J(e,{props:[d(o,/:(plac\w+)/,":"+Se+"$1")]})),me(J(e,{props:[d(o,/:(plac\w+)/,E+"input-$1")]})),me(J(e,{props:[o]})),rt(e,{props:Pt(r,n)});break}return""})}}var Br={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},ne=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",It="active",Ft="data-styled-version",Me="6.1.19",st=`/*!sc*/
|
|
23
|
+
`,Le=typeof window<"u"&&typeof document<"u",Hr=!!(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"),Dt=/invalid hook call/i,Ye=new Set,Wr=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
24
24
|
`)+`You may see this warning because you've called styled inside another component.
|
|
25
25
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
26
26
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
27
|
-
`,o=console.error;try{var
|
|
27
|
+
`,o=console.error;try{var a=!0;console.error=function(s){for(var c=[],l=1;l<arguments.length;l++)c[l-1]=arguments[l];Dt.test(s)?(a=!1,Ye.delete(n)):o.apply(void 0,pe([s],c,!1))},f.useRef(),a&&!Ye.has(n)&&(console.warn(n),Ye.add(n))}catch(s){Dt.test(s.message)&&Ye.delete(n)}finally{console.error=o}}},Ve=Object.freeze([]),ge=Object.freeze({});function Gr(e,t,r){return r===void 0&&(r=ge),e.theme!==r.theme&&e.theme||t||r.theme}var it=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"]),Ur=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qr=/(^-|-$)/g;function zt(e){return e.replace(Ur,"-").replace(qr,"")}var Xr=/(a)(d)/gi,Be=52,Mt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ct(e){var t,r="";for(t=Math.abs(e);t>Be;t=t/Be|0)r=Mt(t%Be)+r;return(Mt(t%Be)+r).replace(Xr,"$1-$2")}var lt,Lt=5381,oe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Yt=function(e){return oe(Lt,e)};function Jr(e){return ct(Yt(e)>>>0)}function Vt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ut(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Bt=typeof Symbol=="function"&&Symbol.for,Ht=Bt?Symbol.for("react.memo"):60115,Zr=Bt?Symbol.for("react.forward_ref"):60112,Kr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},en=((lt={})[Zr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lt[Ht]=Wt,lt);function Gt(e){return("type"in(t=e)&&t.type.$$typeof)===Ht?Wt:"$$typeof"in e?en[e.$$typeof]:Kr;var t}var tn=Object.defineProperty,rn=Object.getOwnPropertyNames,Ut=Object.getOwnPropertySymbols,nn=Object.getOwnPropertyDescriptor,on=Object.getPrototypeOf,qt=Object.prototype;function Xt(e,t,r){if(typeof t!="string"){if(qt){var n=on(t);n&&n!==qt&&Xt(e,n,r)}var o=rn(t);Ut&&(o=o.concat(Ut(t)));for(var a=Gt(e),s=Gt(t),c=0;c<o.length;++c){var l=o[c];if(!(l in Qr||r&&r[l]||s&&l in s||a&&l in a)){var w=nn(t,l);try{tn(e,l,w)}catch{}}}}return e}function ae(e){return typeof e=="function"}function pt(e){return typeof e=="object"&&"styledComponentId"in e}function se(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Jt(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function ye(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function dt(e,t,r){if(r===void 0&&(r=!1),!r&&!ye(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=dt(e[n],t[n]);else if(ye(t))for(var n in t)e[n]=dt(e[n],t[n]);return e}function ft(e,t){Object.defineProperty(e,"toString",{value:t})}var an=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
28
28
|
|
|
29
29
|
`,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.
|
|
30
30
|
|
|
@@ -65,7 +65,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
65
65
|
|
|
66
66
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
67
67
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
68
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Zr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,s=e.length;o<s;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function re(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(Zr.apply(void 0,se([Jr[e]],t,!1)).trim())}var Kr=(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,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,s=o;t>=s;)if((s<<=1)<0)throw re(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),u=(a=0,r.length);a<u;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var s=n;s<o;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),s=o+n,a=o;a<s;a++)r+="".concat(this.tag.getRule(a)).concat(et);return r},e})(),Qr=1<<30,ze=new Map,Me=new Map,Le=1,Ye=function(e){if(ze.has(e))return ze.get(e);for(;Me.has(Le);)Le++;var t=Le++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Qr))throw re(16,"".concat(t));return ze.set(e,t),Me.set(t,e),t},en=function(e,t){Le=t+1,ze.set(e,t),Me.set(t,e)},tn="style[".concat(Q,"][").concat(Tt,'="').concat($e,'"]'),rn=new RegExp("^".concat(Q,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),nn=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},on=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(et),o=[],s=0,a=n.length;s<a;s++){var c=n[s].trim();if(c){var u=c.match(rn);if(u){var w=0|parseInt(u[1],10),v=u[2];w!==0&&(en(v,w),nn(e,v,u[3]),e.getTag().insertRules(w,o)),o.length=0}else o.push(c)}}},Vt=function(e){for(var t=document.querySelectorAll(tn),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Q)!==At&&(on(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function sn(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Wt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(c){var u=Array.from(c.querySelectorAll("style[".concat(Q,"]")));return u[u.length-1]})(r),s=o!==void 0?o.nextSibling:null;n.setAttribute(Q,At),n.setAttribute(Tt,$e);var a=sn();return a&&n.setAttribute("nonce",a),r.insertBefore(n,s),n},an=(function(){function e(t){this.element=Wt(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,s=n.length;o<s;o++){var a=n[o];if(a.ownerNode===r)return a}throw re(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})(),cn=(function(){function e(t){this.element=Wt(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,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})(),un=(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})(),Gt=Ie,ln={isServer:!Ie,useCSSOMInjection:!jr},Ht=(function(){function e(t,r,n){t===void 0&&(t=le),r===void 0&&(r={});var o=this;this.options=F(F({},ln),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Ie&&Gt&&(Gt=!1,Vt(this)),it(this,function(){return(function(s){for(var a=s.getTag(),c=a.length,u="",w=function(m){var g=(function(C){return Me.get(C)})(m);if(g===void 0)return"continue";var y=s.names.get(g),x=a.getGroup(m);if(y===void 0||!y.size||x.length===0)return"continue";var R="".concat(Q,".g").concat(m,'[id="').concat(g,'"]'),j="";y!==void 0&&y.forEach(function(C){C.length>0&&(j+="".concat(C,","))}),u+="".concat(x).concat(R,'{content:"').concat(j,'"}').concat(et)},v=0;v<c;v++)w(v);return u})(o)})}return e.registerId=function(t){return Ye(t)},e.prototype.rehydrate=function(){!this.server&&Ie&&Vt(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(F(F({},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 n=r.useCSSOMInjection,o=r.target;return r.isServer?new un(o):n?new an(o):new cn(o)})(this.options),new Kr(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(Ye(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ye(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ye(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),pn=/&/g,dn=/^\s*\/\/.*$/gm;function Ut(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(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Ut(r.children,t)),r})}function fn(e){var t,r,n,o=le,s=o.options,a=s===void 0?le:s,c=o.plugins,u=c===void 0?De:c,w=function(g,y,x){return x.startsWith(r)&&x.endsWith(r)&&x.replaceAll(r,"").length>0?".".concat(t):g},v=u.slice();v.push(function(g){g.type===Re&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(pn,r).replace(n,w))}),a.prefix&&v.push($r),v.push(Cr);var m=function(g,y,x,R){y===void 0&&(y=""),x===void 0&&(x=""),R===void 0&&(R="&"),t=R,r=y,n=new RegExp("\\".concat(r,"\\b"),"g");var j=g.replace(dn,""),C=Tr(x||y?"".concat(x," ").concat(y," { ").concat(j," }"):j);a.namespace&&(C=Ut(C,a.namespace));var A=[];return Ne(C,Or(v.concat(Nr(function(S){return A.push(S)})))),A};return m.hash=u.length?u.reduce(function(g,y){return y.name||re(15),ee(g,y.name)},Nt).toString():"",m}var hn=new Ht,ct=fn(),qt=_.createContext({shouldForwardProp:void 0,styleSheet:hn,stylis:ct});qt.Consumer,_.createContext(void 0);function Xt(){return _.useContext(qt)}var Jt=(function(){function e(t,r){var n=this;this.inject=function(o,s){s===void 0&&(s=ct);var a=n.name+s.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,s(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,it(this,function(){throw re(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ct),this.name+t.hash},e})(),mn=function(e){return e>="A"&&e<="Z"};function Zt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;mn(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Kt=function(e){return e==null||e===!1||e===""},Qt=function(e){var t,r,n=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Kt(s)&&(Array.isArray(s)&&s.isCss||pe(s)?n.push("".concat(Zt(o),":"),s,";"):de(s)?n.push.apply(n,se(se(["".concat(o," {")],Qt(s),!1),["}"],!1)):n.push("".concat(Zt(o),": ").concat((t=o,(r=s)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Ir||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ne(e,t,r,n){if(Kt(e))return[];if(st(e))return[".".concat(e.styledComponentId)];if(pe(e)){if(!pe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Jt||de(o)||o===null||console.error("".concat(It(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.")),ne(o,t,r,n)}var s;return e instanceof Jt?r?(e.inject(r,n),[e.getName(n)]):[e]:de(e)?Qt(e):Array.isArray(e)?Array.prototype.concat.apply(De,e.map(function(a){return ne(a,t,r,n)})):[e.toString()]}function gn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(pe(r)&&!st(r))return!1}return!0}var yn=$t($e),vn=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&gn(t),this.componentId=r,this.baseHash=ee(yn,r),this.baseStyle=n,Ht.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=te(o,this.staticRulesId);else{var s=Bt(ne(this.rules,t,r,n)),a=rt(ee(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(s,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=te(o,a),this.staticRulesId=a}else{for(var u=ee(this.baseHash,n.hash),w="",v=0;v<this.rules.length;v++){var m=this.rules[v];if(typeof m=="string")w+=m,process.env.NODE_ENV!=="production"&&(u=ee(u,m));else if(m){var g=Bt(ne(m,t,r,n));u=ee(u,g+v),w+=g}}if(w){var y=rt(u>>>0);r.hasNameForId(this.componentId,y)||r.insertRules(this.componentId,y,n(w,".".concat(y),void 0,this.componentId)),o=te(o,y)}}return o},e})(),ut=_.createContext(void 0);ut.Consumer;function bn(){var e=_.useContext(ut);if(!e)throw re(18);return e}var lt={},er=new Set;function wn(e,t,r){var n=st(e),o=e,s=!ot(e),a=t.attrs,c=a===void 0?De:a,u=t.componentId,w=u===void 0?(function(E,T){var h=typeof E!="string"?"sc":Ct(E);lt[h]=(lt[h]||0)+1;var p="".concat(h,"-").concat(Yr($e+h+lt[h]));return T?"".concat(T,"-").concat(p):p})(t.displayName,t.parentComponentId):u,v=t.displayName,m=v===void 0?(function(E){return ot(E)?"styled.".concat(E):"Styled(".concat(It(E),")")})(e):v,g=t.displayName&&t.componentId?"".concat(Ct(t.displayName),"-").concat(t.componentId):t.componentId||w,y=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,x=t.shouldForwardProp;if(n&&o.shouldForwardProp){var R=o.shouldForwardProp;if(t.shouldForwardProp){var j=t.shouldForwardProp;x=function(E,T){return R(E,T)&&j(E,T)}}else x=R}var C=new vn(r,g,n?o.componentStyle:void 0);function A(E,T){return(function(h,p,V){var X=h.attrs,ft=h.componentStyle,Se=h.defaultProps,Ve=h.foldedComponentIds,We=h.styledComponentId,Ee=h.target,Ge=_.useContext(ut),He=Xt(),fe=h.shouldForwardProp||He.shouldForwardProp;process.env.NODE_ENV!=="production"&&_.useDebugValue(We);var ke=Fr(p,Ge,Se)||le,L=(function(D,H,J){for(var P,z=F(F({},H),{className:void 0,theme:J}),oe=0;oe<D.length;oe+=1){var he=pe(P=D[oe])?P(z):P;for(var Z in he)z[Z]=Z==="className"?te(z[Z],he[Z]):Z==="style"?F(F({},z[Z]),he[Z]):he[Z]}return H.className&&(z.className=te(z.className,H.className)),z})(X,p,ke),i=L.as||Ee,l={};for(var f in L)L[f]===void 0||f[0]==="$"||f==="as"||f==="theme"&&L.theme===ke||(f==="forwardedAs"?l.as=L.forwardedAs:fe&&!fe(f,i)||(l[f]=L[f],fe||process.env.NODE_ENV!=="development"||mr(f)||er.has(f)||!tt.has(i)||(er.add(f),console.warn('styled-components: it looks like an unknown prop "'.concat(f,'" 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 N=(function(D,H){var J=Xt(),P=D.generateAndInjectStyles(H,J.styleSheet,J.stylis);return process.env.NODE_ENV!=="production"&&_.useDebugValue(P),P})(ft,L);process.env.NODE_ENV!=="production"&&h.warnTooManyClasses&&h.warnTooManyClasses(N);var Y=te(Ve,We);return N&&(Y+=" "+N),L.className&&(Y+=" "+L.className),l[ot(i)&&!tt.has(i)?"class":"className"]=Y,V&&(l.ref=V),_.createElement(i,l)})(S,E,T)}A.displayName=m;var S=_.forwardRef(A);return S.attrs=y,S.componentStyle=C,S.displayName=m,S.shouldForwardProp=x,S.foldedComponentIds=n?te(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=g,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=n?(function(T){for(var h=[],p=1;p<arguments.length;p++)h[p-1]=arguments[p];for(var V=0,X=h;V<X.length;V++)at(T,X[V],!0);return T})({},o.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(Dr(m,g),S.warnTooManyClasses=(function(E,T){var h={},p=!1;return function(V){if(!p&&(h[V]=!0,Object.keys(h).length>=200)){var X=T?' with the id of "'.concat(T,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(X,`.
|
|
68
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,a=e.length;o<a;o+=1)n.push(e[o]);return n.forEach(function(s){r=r.replace(/%[a-z]/,s)}),r}function U(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(sn.apply(void 0,pe([an[e]],t,!1)).trim())}var cn=(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,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw U(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(t+1),l=(s=0,r.length);s<l;s++)this.tag.insertRule(c,r[s])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,s=o;s<a;s++)r+="".concat(this.tag.getRule(s)).concat(st);return r},e})(),ln=1<<30,He=new Map,We=new Map,Ge=1,Ue=function(e){if(He.has(e))return He.get(e);for(;We.has(Ge);)Ge++;var t=Ge++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ln))throw U(16,"".concat(t));return He.set(e,t),We.set(t,e),t},un=function(e,t){Ge=t+1,He.set(e,t),We.set(t,e)},pn="style[".concat(ne,"][").concat(Ft,'="').concat(Me,'"]'),dn=new RegExp("^".concat(ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fn=function(e,t,r){for(var n,o=r.split(","),a=0,s=o.length;a<s;a++)(n=o[a])&&e.registerName(t,n)},hn=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(st),o=[],a=0,s=n.length;a<s;a++){var c=n[a].trim();if(c){var l=c.match(dn);if(l){var w=0|parseInt(l[1],10),v=l[2];w!==0&&(un(v,w),fn(e,v,l[3]),e.getTag().insertRules(w,o)),o.length=0}else o.push(c)}}},Zt=function(e){for(var t=document.querySelectorAll(pn),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ne)!==It&&(hn(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function mn(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Kt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(c){var l=Array.from(c.querySelectorAll("style[".concat(ne,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(ne,It),n.setAttribute(Ft,Me);var s=mn();return s&&n.setAttribute("nonce",s),r.insertBefore(n,a),n},gn=(function(){function e(t){this.element=Kt(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var s=n[o];if(s.ownerNode===r)return s}throw U(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})(),yn=(function(){function e(t){this.element=Kt(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,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})(),bn=(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})(),Qt=Le,vn={isServer:!Le,useCSSOMInjection:!Hr},er=(function(){function e(t,r,n){t===void 0&&(t=ge),r===void 0&&(r={});var o=this;this.options=F(F({},vn),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Le&&Qt&&(Qt=!1,Zt(this)),ft(this,function(){return(function(a){for(var s=a.getTag(),c=s.length,l="",w=function(g){var y=(function(P){return We.get(P)})(g);if(y===void 0)return"continue";var b=a.names.get(y),$=s.getGroup(g);if(b===void 0||!b.size||$.length===0)return"continue";var R="".concat(ne,".g").concat(g,'[id="').concat(y,'"]'),z="";b!==void 0&&b.forEach(function(P){P.length>0&&(z+="".concat(P,","))}),l+="".concat($).concat(R,'{content:"').concat(z,'"}').concat(st)},v=0;v<c;v++)w(v);return l})(o)})}return e.registerId=function(t){return Ue(t)},e.prototype.rehydrate=function(){!this.server&&Le&&Zt(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(F(F({},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 n=r.useCSSOMInjection,o=r.target;return r.isServer?new bn(o):n?new gn(o):new yn(o)})(this.options),new cn(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(Ue(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ue(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ue(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),xn=/&/g,wn=/^\s*\/\/.*$/gm;function tr(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(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=tr(r.children,t)),r})}function Sn(e){var t,r,n,o=ge,a=o.options,s=a===void 0?ge:a,c=o.plugins,l=c===void 0?Ve:c,w=function(y,b,$){return $.startsWith(r)&&$.endsWith(r)&&$.replaceAll(r,"").length>0?".".concat(t):y},v=l.slice();v.push(function(y){y.type===_e&&y.value.includes("&")&&(y.props[0]=y.props[0].replace(xn,r).replace(n,w))}),s.prefix&&v.push(Vr),v.push(Mr);var g=function(y,b,$,R){b===void 0&&(b=""),$===void 0&&($=""),R===void 0&&(R="&"),t=R,r=b,n=new RegExp("\\".concat(r,"\\b"),"g");var z=y.replace(wn,""),P=Dr($||b?"".concat($," ").concat(b," { ").concat(z," }"):z);s.namespace&&(P=tr(P,s.namespace));var T=[];return ze(P,Lr(v.concat(Yr(function(S){return T.push(S)})))),T};return g.hash=l.length?l.reduce(function(y,b){return b.name||U(15),oe(y,b.name)},Lt).toString():"",g}var kn=new er,ht=Sn(),rr=f.createContext({shouldForwardProp:void 0,styleSheet:kn,stylis:ht});rr.Consumer,f.createContext(void 0);function nr(){return f.useContext(rr)}var or=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=ht);var s=n.name+a.hash;o.hasNameForId(n.id,s)||o.insertRules(n.id,s,a(n.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,ft(this,function(){throw U(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ht),this.name+t.hash},e})(),En=function(e){return e>="A"&&e<="Z"};function ar(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;En(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var sr=function(e){return e==null||e===!1||e===""},ir=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!sr(a)&&(Array.isArray(a)&&a.isCss||ae(a)?n.push("".concat(ar(o),":"),a,";"):ye(a)?n.push.apply(n,pe(pe(["".concat(o," {")],ir(a),!1),["}"],!1)):n.push("".concat(ar(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Br||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ie(e,t,r,n){if(sr(e))return[];if(pt(e))return[".".concat(e.styledComponentId)];if(ae(e)){if(!ae(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof or||ye(o)||o===null||console.error("".concat(Vt(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.")),ie(o,t,r,n)}var a;return e instanceof or?r?(e.inject(r,n),[e.getName(n)]):[e]:ye(e)?ir(e):Array.isArray(e)?Array.prototype.concat.apply(Ve,e.map(function(s){return ie(s,t,r,n)})):[e.toString()]}function $n(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ae(r)&&!pt(r))return!1}return!0}var Rn=Yt(Me),Tn=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&$n(t),this.componentId=r,this.baseHash=oe(Rn,r),this.baseStyle=n,er.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=se(o,this.staticRulesId);else{var a=Jt(ie(this.rules,t,r,n)),s=ct(oe(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,s)){var c=n(a,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,c)}o=se(o,s),this.staticRulesId=s}else{for(var l=oe(this.baseHash,n.hash),w="",v=0;v<this.rules.length;v++){var g=this.rules[v];if(typeof g=="string")w+=g,process.env.NODE_ENV!=="production"&&(l=oe(l,g));else if(g){var y=Jt(ie(g,t,r,n));l=oe(l,y+v),w+=y}}if(w){var b=ct(l>>>0);r.hasNameForId(this.componentId,b)||r.insertRules(this.componentId,b,n(w,".".concat(b),void 0,this.componentId)),o=se(o,b)}}return o},e})(),Ee=f.createContext(void 0);Ee.Consumer;function mt(){var e=f.useContext(Ee);if(!e)throw U(18);return e}function An(e){var t=f.useContext(Ee),r=f.useMemo(function(){return(function(n,o){if(!n)throw U(14);if(ae(n)){var a=n(o);if(process.env.NODE_ENV!=="production"&&(a===null||Array.isArray(a)||typeof a!="object"))throw U(7);return a}if(Array.isArray(n)||typeof n!="object")throw U(8);return o?F(F({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?f.createElement(Ee.Provider,{value:r},e.children):null}var gt={},cr=new Set;function Cn(e,t,r){var n=pt(e),o=e,a=!ut(e),s=t.attrs,c=s===void 0?Ve:s,l=t.componentId,w=l===void 0?(function(k,A){var m=typeof k!="string"?"sc":zt(k);gt[m]=(gt[m]||0)+1;var p="".concat(m,"-").concat(Jr(Me+m+gt[m]));return A?"".concat(A,"-").concat(p):p})(t.displayName,t.parentComponentId):l,v=t.displayName,g=v===void 0?(function(k){return ut(k)?"styled.".concat(k):"Styled(".concat(Vt(k),")")})(e):v,y=t.displayName&&t.componentId?"".concat(zt(t.displayName),"-").concat(t.componentId):t.componentId||w,b=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,$=t.shouldForwardProp;if(n&&o.shouldForwardProp){var R=o.shouldForwardProp;if(t.shouldForwardProp){var z=t.shouldForwardProp;$=function(k,A){return R(k,A)&&z(k,A)}}else $=R}var P=new Tn(r,y,n?o.componentStyle:void 0);function T(k,A){return(function(m,p,W){var Q=m.attrs,xt=m.componentStyle,Te=m.defaultProps,Xe=m.foldedComponentIds,Je=m.styledComponentId,Ae=m.target,Ze=f.useContext(Ee),Ke=nr(),be=m.shouldForwardProp||Ke.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(Je);var Ce=Gr(p,Ze,Te)||ge,V=(function(M,X,ee){for(var C,L=F(F({},X),{className:void 0,theme:ee}),ue=0;ue<M.length;ue+=1){var ve=ae(C=M[ue])?C(L):C;for(var te in ve)L[te]=te==="className"?se(L[te],ve[te]):te==="style"?F(F({},L[te]),ve[te]):ve[te]}return X.className&&(L.className=se(L.className,X.className)),L})(Q,p,Ce),i=V.as||Ae,u={};for(var h in V)V[h]===void 0||h[0]==="$"||h==="as"||h==="theme"&&V.theme===Ce||(h==="forwardedAs"?u.as=V.forwardedAs:be&&!be(h,i)||(u[h]=V[h],be||process.env.NODE_ENV!=="development"||Er(h)||cr.has(h)||!it.has(i)||(cr.add(h),console.warn('styled-components: it looks like an unknown prop "'.concat(h,'" 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 O=(function(M,X){var ee=nr(),C=M.generateAndInjectStyles(X,ee.styleSheet,ee.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(C),C})(xt,V);process.env.NODE_ENV!=="production"&&m.warnTooManyClasses&&m.warnTooManyClasses(O);var B=se(Xe,Je);return O&&(B+=" "+O),V.className&&(B+=" "+V.className),u[ut(i)&&!it.has(i)?"class":"className"]=B,W&&(u.ref=W),f.createElement(i,u)})(S,k,A)}T.displayName=g;var S=f.forwardRef(T);return S.attrs=b,S.componentStyle=P,S.displayName=g,S.shouldForwardProp=$,S.foldedComponentIds=n?se(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=y,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?(function(A){for(var m=[],p=1;p<arguments.length;p++)m[p-1]=arguments[p];for(var W=0,Q=m;W<Q.length;W++)dt(A,Q[W],!0);return A})({},o.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Wr(g,y),S.warnTooManyClasses=(function(k,A){var m={},p=!1;return function(W){if(!p&&(m[W]=!0,Object.keys(m).length>=200)){var Q=A?' with the id of "'.concat(A,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(Q,`.
|
|
69
69
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
70
70
|
Example:
|
|
71
71
|
const Component = styled.div.attrs(props => ({
|
|
@@ -74,38 +74,56 @@ Example:
|
|
|
74
74
|
},
|
|
75
75
|
}))\`width: 100%;\`
|
|
76
76
|
|
|
77
|
-
<Component />`),p=!0,
|
|
77
|
+
<Component />`),p=!0,m={}}}})(g,y)),ft(S,function(){return".".concat(S.styledComponentId)}),a&&Xt(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function lr(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var ur=function(e){return Object.assign(e,{isCss:!0})};function pr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ae(e)||ye(e))return ur(ie(lr(Ve,pe([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?ie(n):ur(ie(lr(n,t)))}function yt(e,t,r){if(r===void 0&&(r=ge),!t)throw U(1,t);var n=function(o){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(t,r,pr.apply(void 0,pe([o],a,!1)))};return n.attrs=function(o){return yt(e,t,F(F({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return yt(e,t,F(F({},r),o))},n}var dr=function(e){return yt(Cn,e)},Z=dr;it.forEach(function(e){Z[e]=dr(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
78
78
|
Perhaps you're looking to import 'styled-components/native'?
|
|
79
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
79
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var qe="__sc-".concat(ne,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[qe]||(window[qe]=0),window[qe]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
80
80
|
|
|
81
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
81
|
+
See https://s-c.sh/2BAXzed for more info.`),window[qe]+=1);const _=e=>typeof e=="number"?`${e/2}rem`:e,ce=e=>{const{m:t,mt:r,mr:n,mb:o,ml:a,mx:s,my:c}=e;return[t&&`margin: ${_(t)};`,r&&`margin-top: ${_(r)};`,n&&`margin-right: ${_(n)};`,o&&`margin-bottom: ${_(o)};`,a&&`margin-left: ${_(a)};`,s&&`margin-left: ${_(s)};`,s&&`margin-right: ${_(s)};`,c&&`margin-top: ${_(c)};`,c&&`margin-bottom: ${_(c)};`].filter(Boolean).join(" ")},le=e=>{const{p:t,pt:r,pr:n,pb:o,pl:a,px:s,py:c}=e;return[t&&`padding: ${_(t)};`,r&&`padding-top: ${_(r)};`,n&&`padding-right: ${_(n)};`,o&&`padding-bottom: ${_(o)};`,a&&`padding-left: ${_(a)};`,s&&`padding-left: ${_(s)};`,s&&`padding-right: ${_(s)};`,c&&`padding-top: ${_(c)};`,c&&`padding-bottom: ${_(c)};`].filter(Boolean).join(" ")},fr=()=>`
|
|
82
|
+
&::-webkit-scrollbar {
|
|
83
|
+
width: 4px;
|
|
84
|
+
height: 4px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&::-webkit-scrollbar-track {
|
|
88
|
+
background: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&::-webkit-scrollbar-thumb {
|
|
92
|
+
background: #888;
|
|
93
|
+
border-radius: 5px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
97
|
+
background: #555;
|
|
98
|
+
}
|
|
99
|
+
`,Pn=(e,t)=>t==="sm"?`${Number(e)/(8/7)}px`:`${e}px`,hr=e=>{switch(e){case"regular":return"400";case"medium":return"500";case"semibold":return"600";case"bold":return"700";default:return"400"}},_n=Z.p`
|
|
82
100
|
font-family: ${({theme:e})=>e.text.fontFamily};
|
|
83
101
|
margin: 0;
|
|
84
102
|
color: ${({color:e})=>e};
|
|
85
|
-
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:
|
|
86
|
-
${({p:e,pb:t,pl:r,pr:n,pt:o,px:
|
|
87
|
-
font-weight: ${({weight:e})=>
|
|
88
|
-
font-size: ${({size:e,breakpoint:t})=>e&&
|
|
103
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
104
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
105
|
+
font-weight: ${({weight:e})=>hr(e)};
|
|
106
|
+
font-size: ${({size:e,breakpoint:t})=>e&&Pn(e,t)};
|
|
89
107
|
width: ${({width:e})=>e};
|
|
90
108
|
height: ${({height:e})=>e};
|
|
91
109
|
text-align: ${({align:e})=>e};
|
|
92
|
-
`,
|
|
110
|
+
`,K=f.forwardRef(({children:e,...t},r)=>{const{breakpoint:n}=Et();return j.jsx(_n,{ref:r,...t,breakpoint:n,children:e})});K.displayName="Text";const $e=({color:e,theme:t})=>({contained:{bgColor:t.palette[e].main,border:"2px solid transparent",color:"#FFFFFF",onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},outlined:{bgColor:"#FFFFFF",border:`2px solid ${t.palette[e].main}`,color:t.palette[e].main,onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},text:{bgColor:"transparent",border:"2px solid transparent",color:t.palette[e].main,onActive:{transform:"scale(0.95)"},onHover:{backgroundColor:`${t.palette[e].main}22`}}}),bt={sm:{padding:"4px 0.75rem",fontSize:"12"},md:{padding:"6px 1rem",fontSize:"14"},lg:{padding:"8px 1.5rem",fontSize:"16"}},Nn=Z.button`
|
|
93
111
|
all: unset;
|
|
94
112
|
cursor: ${({disabled:e})=>e?"default":"pointer"};
|
|
95
|
-
padding: ${({size:e})=>
|
|
113
|
+
padding: ${({size:e})=>bt[e??"md"].padding};
|
|
96
114
|
display: flex;
|
|
97
115
|
align-items: center;
|
|
98
116
|
height: fit-content;
|
|
99
|
-
gap: ${({gap:e})=>e
|
|
117
|
+
gap: ${({gap:e})=>e?_(e):"8px"};
|
|
100
118
|
transition: all 0.25s ease;
|
|
101
|
-
background-color: ${({bgcolor:e,variant:t,color:r,theme:n})=>e
|
|
102
|
-
border: ${({variant:e,color:t,theme:r})
|
|
119
|
+
background-color: ${({bgcolor:e,variant:t,color:r,theme:n})=>e??$e({color:r,theme:n})[t].bgColor};
|
|
120
|
+
border: ${({variant:e,color:t,theme:r})=>$e({color:t,theme:r})[e].border};
|
|
103
121
|
border-radius: ${({theme:e})=>e.radius};
|
|
104
|
-
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:
|
|
105
|
-
${({p:e,pb:t,pl:r,pr:n,pt:o,px:
|
|
122
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
123
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
106
124
|
opacity: ${({disabled:e})=>e?.6:1};
|
|
107
125
|
position: relative;
|
|
108
|
-
color: ${({txtColor:e,color:t,variant:r,theme:n})=>e
|
|
126
|
+
color: ${({txtColor:e,color:t,variant:r,theme:n})=>e??$e({color:t,theme:n})[r].color};
|
|
109
127
|
|
|
110
128
|
p,
|
|
111
129
|
h1,
|
|
@@ -118,11 +136,99 @@ See https://s-c.sh/2BAXzed for more info.`),window[Be]+=1);const $=e=>typeof e==
|
|
|
118
136
|
}
|
|
119
137
|
|
|
120
138
|
&:hover {
|
|
121
|
-
${({variant:e,color:t,theme:r})
|
|
139
|
+
${({variant:e,color:t,theme:r})=>$e({color:t,theme:r})[e].onHover}
|
|
122
140
|
opacity: ${({disabled:e})=>e&&.6};
|
|
123
141
|
}
|
|
124
142
|
|
|
125
143
|
&:active {
|
|
126
|
-
${({variant:e,color:t,theme:r})
|
|
144
|
+
${({variant:e,color:t,theme:r})=>$e({color:t,theme:r})[e].onActive}
|
|
127
145
|
}
|
|
128
|
-
`,
|
|
146
|
+
`,mr=f.forwardRef(({label:e,startIcon:t,endIcon:r,...n},o)=>{const a=f.useMemo(()=>({...{size:"sm"},...n}),[n]);return j.jsxs(Nn,{ref:o,...a,disabled:n.loading||n.disabled,children:[t,j.jsx(K,{size:bt[a.size??"sm"].fontSize,children:e}),r]})});mr.displayName="Button";const vt=({color:e,theme:t})=>({contained:{bgColor:t.palette[e].main,color:"#FFFFFF",onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},outlined:{bgColor:"#FFFFFF",border:`2px solid ${t.palette[e].main}`,color:t.palette[e].main,onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},text:{bgColor:"transparent",color:t.palette[e].main,onActive:{transform:"scale(0.95)"},onHover:{backgroundColor:`${t.palette[e].main}22`}}}),On={sm:{padding:"4px 0.25rem"},md:{padding:"6px 0.5rem"},lg:{padding:"8px 1rem"}},jn=Z.div`
|
|
147
|
+
all: unset;
|
|
148
|
+
padding: ${({size:e})=>On[e??"md"].padding};
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
gap: ${({gap:e})=>e?_(e):"0px"};
|
|
152
|
+
transition: all 0.25s ease;
|
|
153
|
+
width: fit-content;
|
|
154
|
+
height: fit-content;
|
|
155
|
+
background-color: ${({bgcolor:e,variant:t,color:r,theme:n})=>e??vt({color:r,theme:n})[t].bgColor};
|
|
156
|
+
border: ${({variant:e,color:t,theme:r})=>vt({color:t,theme:r})[e].border};
|
|
157
|
+
border-radius: ${({bRadius:e,theme:t})=>e??t.radius};
|
|
158
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
159
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
160
|
+
opacity: ${({disabled:e})=>e?.6:1};
|
|
161
|
+
position: relative;
|
|
162
|
+
color: ${({fontColor:e,color:t,variant:r,theme:n})=>e??vt({color:t,theme:n})[r].color};
|
|
163
|
+
`,gr=f.forwardRef(({label:e,startIcon:t,endIcon:r,...n},o)=>{const a=f.useMemo(()=>({...{size:"sm"},...n}),[n]);return j.jsxs(jn,{ref:o,...a,children:[t,j.jsx(K,{size:bt[a.size].fontSize,mx:.75,children:e}),r]})});gr.displayName="Chip";const In={normal:"normal",center:"center",start:"flex-start",end:"flex-end",stretch:"stretch"},Fn={center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},Dn={0:"none",1:"0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)",2:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",3:"0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12)",4:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)",6:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",8:"0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)"},zn=Z.div`
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: ${({direction:e})=>e};
|
|
166
|
+
gap: ${({gap:e})=>e&&_(e)};
|
|
167
|
+
align-items: ${({align:e})=>e&&In[e]};
|
|
168
|
+
justify-content: ${({justify:e})=>e&&Fn[e]};
|
|
169
|
+
flex-wrap: ${({wrap:e})=>e};
|
|
170
|
+
width: ${({width:e})=>e};
|
|
171
|
+
height: ${({height:e})=>e};
|
|
172
|
+
min-width: ${({minWidth:e})=>e};
|
|
173
|
+
min-height: ${({minheight:e})=>e};
|
|
174
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
175
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
176
|
+
box-shadow: ${({elevation:e})=>Dn[e??0]};
|
|
177
|
+
&:hover {
|
|
178
|
+
${e=>e.hoverstyle&&pr(e.hoverstyle)}
|
|
179
|
+
}
|
|
180
|
+
`,Re=f.forwardRef(({children:e,...t},r)=>{const n=f.useMemo(()=>({...{display:"flex",direction:"column"},...t}),[t]);return j.jsx(zn,{ref:r,...n,children:e})});Re.displayName="Flex";const Mn=({color:e,value:t,height:r})=>{const n=mt();return j.jsx("div",{style:{width:"100%",position:"relative",backgroundColor:n.palette[e].light,borderRadius:"8px",height:r??"8px",border:`2px solid ${n.palette[e].light}`},children:j.jsx("div",{style:{position:"absolute",top:"0",left:"0",height:"100%",width:`${t>100?100:t}%`,backgroundColor:n.palette[e].main,borderRadius:"8px"}})})},Ln=Z.textarea`
|
|
181
|
+
all: unset;
|
|
182
|
+
box-sizing: border-box;
|
|
183
|
+
font-family: ${({theme:e})=>e.text.fontFamily};
|
|
184
|
+
font-size: 13px;
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
text-align: left;
|
|
188
|
+
|
|
189
|
+
color: ${({theme:e})=>e.palette.primary.dark};
|
|
190
|
+
background-color: white;
|
|
191
|
+
border-radius: min(16px, ${({theme:e})=>e.radius});
|
|
192
|
+
padding: 8px 12px;
|
|
193
|
+
width: 100%;
|
|
194
|
+
${fr()};
|
|
195
|
+
|
|
196
|
+
border: 1px solid
|
|
197
|
+
${({error:e,theme:t})=>e?t.palette.error.main:t.palette.primary.dark};
|
|
198
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
199
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
200
|
+
|
|
201
|
+
width: ${({w:e})=>e};
|
|
202
|
+
height: ${({h:e})=>e};
|
|
203
|
+
`,yr=f.forwardRef((e,t)=>{const r=mt();return j.jsxs(Re,{direction:"column",children:[j.jsx(Ln,{ref:t,...e}),e.error&&j.jsx(K,{color:r.palette.error.main,size:"10",mt:"4px",style:{minHeight:"1.2em"},children:e.error})]})});yr.displayName="TextArea";const Yn=Z.input`
|
|
204
|
+
all: unset;
|
|
205
|
+
box-sizing: border-box;
|
|
206
|
+
font-family: ${({theme:e})=>e.text.fontFamily};
|
|
207
|
+
font-size: 13px;
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
text-align: left;
|
|
211
|
+
|
|
212
|
+
color: ${({theme:e})=>e.palette.primary.dark};
|
|
213
|
+
background-color: white;
|
|
214
|
+
border-radius: ${({theme:e})=>e.radius};
|
|
215
|
+
padding: 8px 12px;
|
|
216
|
+
width: 100%;
|
|
217
|
+
${fr()};
|
|
218
|
+
|
|
219
|
+
border: 1px solid
|
|
220
|
+
${({error:e})=>e?({theme:t})=>t.palette.error.main:({theme:t})=>t.palette.primary.dark};
|
|
221
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
222
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
223
|
+
|
|
224
|
+
width: ${({w:e})=>e};
|
|
225
|
+
height: ${({h:e})=>e};
|
|
226
|
+
`,br=f.forwardRef((e,t)=>{const r=mt();return j.jsxs(Re,{direction:"column",children:[(e.label||e.required)&&j.jsxs(Re,{direction:"row",gap:.5,align:"center",mb:"4px",style:{minHeight:"1.2em"},children:[e.label&&j.jsx(K,{...e.error&&{color:r.palette.error.main},size:"12",children:e.label}),e.required&&j.jsx(K,{color:r.palette.error.main,size:"12",children:"*"})]}),j.jsx(Yn,{ref:t,...e}),e.error&&j.jsx(K,{color:r.palette.error.main,size:"10",mt:"4px",style:{minHeight:"1.2em"},children:e.error})]})});br.displayName="TextField";const Vn=(e,t)=>{switch(e){case 1:return t==="sm"?"28px":"32px";case 2:return t==="sm"?"22px":"24px";case 3:return"20px";case 4:return"18px";case 5:return"16px";case 6:return"14px";default:return"1rem"}},Bn=Z.h1`
|
|
227
|
+
font-family: ${({theme:e})=>e.title.fontFamily};
|
|
228
|
+
margin: 0;
|
|
229
|
+
color: ${({color:e})=>e};
|
|
230
|
+
font-size: ${({level:e,breakpoint:t})=>Vn(e,t)};
|
|
231
|
+
font-weight: ${({weight:e})=>hr(e)};
|
|
232
|
+
${({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})=>ce({m:e,mb:t,ml:r,mr:n,mt:o,mx:a,my:s})};
|
|
233
|
+
${({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})=>le({p:e,pb:t,pl:r,pr:n,pt:o,px:a,py:s})};
|
|
234
|
+
`,Hn=({children:e,...t})=>{const{breakpoint:r}=Et(),n=f.useMemo(()=>({...{level:1},...t}),[t]);return j.jsx(Bn,{...n,breakpoint:r,children:e})},Wn={none:"0px",sm:"8px",md:"12px",lg:"14px",full:"42px"},Gn=f.createContext({radius:"none",setRadius:()=>{},palette:{},setPalette:()=>{},title:{},setTitle:()=>{},text:{},setText:()=>{}}),Un=({children:e})=>{const{radius:t,palette:r,text:n,title:o}=f.useContext(Gn),a=f.useMemo(()=>({palette:r,radius:Wn[t],title:o,text:n}),[t,r,o,n]);return j.jsx(An,{theme:a,children:e})};D.Button=mr,D.Chip=gr,D.Flex=Re,D.OpenUITheme=Un,D.ProgressBar=Mn,D.Text=K,D.TextArea=yr,D.TextField=br,D.Title=Hn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|