monoscribe 0.1.0-beta.4 → 0.1.0-beta.5

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.
@@ -0,0 +1,101 @@
1
+ (function(oe,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(oe=typeof globalThis<"u"?globalThis:oe||self,j(oe.Monoscribe={},oe.React))})(this,function(oe,j){"use strict";var ze={exports:{}},_e={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var _t;function Cr(){if(_t)return _e;_t=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var f in a)f!=="key"&&(s[f]=a[f])}else s=a;return a=s.ref,{$$typeof:e,type:o,key:i,ref:a!==void 0?a:null,props:s}}return _e.Fragment=t,_e.jsx=r,_e.jsxs=r,_e}var Re={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Rt;function Ar(){return Rt||(Rt=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ot?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case m:return"Fragment";case R:return"Portal";case G:return"Profiler";case p:return"StrictMode";case $e:return"Suspense";case ke:return"SuspenseList"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case nt:return(n.displayName||"Context")+".Provider";case X:return(n._context.displayName||"Context")+".Consumer";case je:var c=n.render;return n=n.displayName,n||(n=c.displayName||c.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Ie:return c=n.displayName||null,c!==null?c:e(n.type)||"Memo";case Me:c=n._payload,n=n._init;try{return e(n(c))}catch{}}return null}function t(n){return""+n}function r(n){try{t(n);var c=!1}catch{c=!0}if(c){c=console;var u=c.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),t(n)}}function o(){}function a(){if(J===0){fe=console.log,re=console.info,pe=console.warn,K=console.error,U=console.group,Ae=console.groupCollapsed,de=console.groupEnd;var n={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}J++}function s(){if(J--,J===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},n,{value:fe}),info:L({},n,{value:re}),warn:L({},n,{value:pe}),error:L({},n,{value:K}),group:L({},n,{value:U}),groupCollapsed:L({},n,{value:Ae}),groupEnd:L({},n,{value:de})})}0>J&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i(n){if(F===void 0)try{throw Error()}catch(u){var c=u.stack.trim().match(/\n( *(at )?)/);F=c&&c[1]||"",wr=-1<u.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+F+n+wr}function f(n,c){if(!n||At)return"";var u=Tt.get(n);if(u!==void 0)return u;At=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var E=null;E=M.H,M.H=null,a();try{var D={DetermineComponentFrameRoot:function(){try{if(c){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Q){var at=Q}Reflect.construct(n,[],ne)}else{try{ne.call()}catch(Q){at=Q}n.call(ne.prototype)}}else{try{throw Error()}catch(Q){at=Q}(ne=n())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(Q){if(Q&&at&&typeof Q.stack=="string")return[Q.stack,at.stack]}return[null,null]}};D.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(D.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(D.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=D.DetermineComponentFrameRoot(),Z=h[0],Te=h[1];if(Z&&Te){var z=Z.split(`
20
+ `),he=Te.split(`
21
+ `);for(h=O=0;O<z.length&&!z[O].includes("DetermineComponentFrameRoot");)O++;for(;h<he.length&&!he[h].includes("DetermineComponentFrameRoot");)h++;if(O===z.length||h===he.length)for(O=z.length-1,h=he.length-1;1<=O&&0<=h&&z[O]!==he[h];)h--;for(;1<=O&&0<=h;O--,h--)if(z[O]!==he[h]){if(O!==1||h!==1)do if(O--,h--,0>h||z[O]!==he[h]){var De=`
22
+ `+z[O].replace(" at new "," at ");return n.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",n.displayName)),typeof n=="function"&&Tt.set(n,De),De}while(1<=O&&0<=h);break}}}finally{At=!1,M.H=E,s(),Error.prepareStackTrace=u}return z=(z=n?n.displayName||n.name:"")?i(z):"",typeof n=="function"&&Tt.set(n,z),z}function l(n){if(n==null)return"";if(typeof n=="function"){var c=n.prototype;return f(n,!(!c||!c.isReactComponent))}if(typeof n=="string")return i(n);switch(n){case $e:return i("Suspense");case ke:return i("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case je:return n=f(n.render,!1),n;case Ie:return l(n.type);case Me:c=n._payload,n=n._init;try{return l(n(c))}catch{}}return""}function y(){var n=M.A;return n===null?null:n.getOwner()}function b(n){if(te.call(n,"key")){var c=Object.getOwnPropertyDescriptor(n,"key").get;if(c&&c.isReactWarning)return!1}return n.key!==void 0}function g(n,c){function u(){Er||(Er=!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)",c))}u.isReactWarning=!0,Object.defineProperty(n,"key",{get:u,configurable:!0})}function w(){var n=e(this.type);return Sr[n]||(Sr[n]=!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.")),n=this.props.ref,n!==void 0?n:null}function v(n,c,u,E,D,O){return u=O.ref,n={$$typeof:x,type:n,key:c,props:O,_owner:D},(u!==void 0?u:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:w}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function C(n,c,u,E,D,O){if(typeof n=="string"||typeof n=="function"||n===m||n===G||n===p||n===$e||n===ke||n===Ct||typeof n=="object"&&n!==null&&(n.$$typeof===Me||n.$$typeof===Ie||n.$$typeof===nt||n.$$typeof===X||n.$$typeof===je||n.$$typeof===V||n.getModuleId!==void 0)){var h=c.children;if(h!==void 0)if(E)if(le(h)){for(E=0;E<h.length;E++)T(h[E],n);Object.freeze&&Object.freeze(h)}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 T(h,n)}else h="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n===null?E="null":le(n)?E="array":n!==void 0&&n.$$typeof===x?(E="<"+(e(n.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):E=typeof n,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,h);if(te.call(c,"key")){h=e(n);var Z=Object.keys(c).filter(function(z){return z!=="key"});E=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",xr[h+E]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
+ let props = %s;
24
+ <%s {...props} />
25
+ React keys must be passed directly to JSX without using spread:
26
+ let props = %s;
27
+ <%s key={someKey} {...props} />`,E,h,Z,h),xr[h+E]=!0)}if(h=null,u!==void 0&&(r(u),h=""+u),b(c)&&(r(c.key),h=""+c.key),"key"in c){u={};for(var Te in c)Te!=="key"&&(u[Te]=c[Te])}else u=c;return h&&g(u,typeof n=="function"?n.displayName||n.name||"Unknown":n),v(n,h,O,D,y(),u)}function T(n,c){if(typeof n=="object"&&n&&n.$$typeof!==Ln){if(le(n))for(var u=0;u<n.length;u++){var E=n[u];I(E)&&N(E,c)}else if(I(n))n._store&&(n._store.validated=1);else if(n===null||typeof n!="object"?u=null:(u=Ce&&n[Ce]||n["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function"&&u!==n.entries&&(u=u.call(n),u!==n))for(;!(n=u.next()).done;)I(n.value)&&N(n.value,c)}}function I(n){return typeof n=="object"&&n!==null&&n.$$typeof===x}function N(n,c){if(n._store&&!n._store.validated&&n.key==null&&(n._store.validated=1,c=_(c),!kr[c])){kr[c]=!0;var u="";n&&n._owner!=null&&n._owner!==y()&&(u=null,typeof n._owner.tag=="number"?u=e(n._owner.type):typeof n._owner.name=="string"&&(u=n._owner.name),u=" It was passed a child from "+u+".");var E=M.getCurrentStack;M.getCurrentStack=function(){var D=l(n.type);return E&&(D+=E()||""),D},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,u),M.getCurrentStack=E}}function _(n){var c="",u=y();return u&&(u=e(u.type))&&(c=`
28
+
29
+ Check the render method of \``+u+"`."),c||(n=e(n))&&(c=`
30
+
31
+ Check the top-level render call using <`+n+">."),c}var k=j,x=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),nt=Symbol.for("react.context"),je=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),ke=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),Ct=Symbol.for("react.offscreen"),Ce=Symbol.iterator,ot=Symbol.for("react.client.reference"),M=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,L=Object.assign,V=Symbol.for("react.client.reference"),le=Array.isArray,J=0,fe,re,pe,K,U,Ae,de;o.__reactDisabledLog=!0;var F,wr,At=!1,Tt=new(typeof WeakMap=="function"?WeakMap:Map),Ln=Symbol.for("react.client.reference"),Er,Sr={},xr={},kr={};Re.Fragment=m,Re.jsx=function(n,c,u,E,D){return C(n,c,u,!1,E,D)},Re.jsxs=function(n,c,u,E,D){return C(n,c,u,!0,E,D)}}()),Re}var Nt;function Tr(){return Nt||(Nt=1,process.env.NODE_ENV==="production"?ze.exports=Cr():ze.exports=Ar()),ze.exports}var Ne=Tr();const st=j.createContext(void 0),_r=()=>j.useContext(st)||{},Rr=({children:e,...t})=>{const r=j.useContext(st)||{};return Ne.jsx(st.Provider,{value:{...r,...t},children:e})};var Y=function(){return Y=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Y.apply(this,arguments)};function me(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,s;o<a;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Nr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Or=/^((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)-.*))$/,Pr=Nr(function(e){return Or.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),A="-ms-",Oe="-moz-",S="-webkit-",Ot="comm",Ye="rule",it="decl",jr="@import",Pt="@keyframes",$r="@layer",jt=Math.abs,ct=String.fromCharCode,ut=Object.assign;function Ir(e,t){return $(e,0)^45?(((t<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function $t(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 Ve(e,t,r){return e.indexOf(t,r)}function $(e,t){return e.charCodeAt(t)|0}function ge(e,t,r){return e.slice(t,r)}function H(e){return e.length}function It(e){return e.length}function Pe(e,t){return t.push(e),e}function Mr(e,t){return e.map(t).join("")}function Mt(e,t){return e.filter(function(r){return!q(r,t)})}var Le=1,ye=1,Dt=0,W=0,P=0,ve="";function We(e,t,r,o,a,s,i,f){return{value:e,root:t,parent:r,type:o,props:a,children:s,line:Le,column:ye,length:i,return:"",siblings:f}}function ee(e,t){return ut(We("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function be(e){for(;e.root;)e=ee(e.root,{children:[e]});Pe(e,e.siblings)}function Dr(){return P}function zr(){return P=W>0?$(ve,--W):0,ye--,P===10&&(ye=1,Le--),P}function B(){return P=W<Dt?$(ve,W++):0,ye++,P===10&&(ye=1,Le++),P}function ae(){return $(ve,W)}function Fe(){return W}function Be(e,t){return ge(ve,e,t)}function lt(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 Yr(e){return Le=ye=1,Dt=H(ve=e),W=0,[]}function Vr(e){return ve="",e}function ft(e){return $t(Be(W-1,pt(e===91?e+2:e===40?e+1:e)))}function Lr(e){for(;(P=ae())&&P<33;)B();return lt(e)>2||lt(P)>3?"":" "}function Wr(e,t){for(;--t&&B()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return Be(e,Fe()+(t<6&&ae()==32&&B()==32))}function pt(e){for(;B();)switch(P){case e:return W;case 34:case 39:e!==34&&e!==39&&pt(P);break;case 40:e===41&&pt(e);break;case 92:B();break}return W}function Fr(e,t){for(;B()&&e+P!==57;)if(e+P===84&&ae()===47)break;return"/*"+Be(t,W-1)+"*"+ct(e===47?e:B())}function Br(e){for(;!lt(ae());)B();return Be(e,W)}function Gr(e){return Vr(Ge("",null,null,null,[""],e=Yr(e),0,[0],e))}function Ge(e,t,r,o,a,s,i,f,l){for(var y=0,b=0,g=i,w=0,v=0,C=0,T=1,I=1,N=1,_=0,k="",x=a,R=s,m=o,p=k;I;)switch(C=_,_=B()){case 40:if(C!=108&&$(p,g-1)==58){Ve(p+=d(ft(_),"&","&\f"),"&\f",jt(y?f[y-1]:0))!=-1&&(N=-1);break}case 34:case 39:case 91:p+=ft(_);break;case 9:case 10:case 13:case 32:p+=Lr(C);break;case 92:p+=Wr(Fe()-1,7);continue;case 47:switch(ae()){case 42:case 47:Pe(Hr(Fr(B(),Fe()),t,r,l),l);break;default:p+="/"}break;case 123*T:f[y++]=H(p)*N;case 125*T:case 59:case 0:switch(_){case 0:case 125:I=0;case 59+b:N==-1&&(p=d(p,/\f/g,"")),v>0&&H(p)-g&&Pe(v>32?Yt(p+";",o,r,g-1,l):Yt(d(p," ","")+";",o,r,g-2,l),l);break;case 59:p+=";";default:if(Pe(m=zt(p,t,r,y,b,a,f,k,x=[],R=[],g,s),s),_===123)if(b===0)Ge(p,t,m,m,x,s,g,f,R);else switch(w===99&&$(p,3)===110?100:w){case 100:case 108:case 109:case 115:Ge(e,m,m,o&&Pe(zt(e,m,m,0,0,a,f,k,a,x=[],g,R),R),a,R,g,f,o?x:R);break;default:Ge(p,m,m,m,[""],R,0,f,R)}}y=b=v=0,T=N=1,k=p="",g=i;break;case 58:g=1+H(p),v=C;default:if(T<1){if(_==123)--T;else if(_==125&&T++==0&&zr()==125)continue}switch(p+=ct(_),_*T){case 38:N=b>0?1:(p+="\f",-1);break;case 44:f[y++]=(H(p)-1)*N,N=1;break;case 64:ae()===45&&(p+=ft(B())),w=ae(),b=g=H(k=p+=Br(Fe())),_++;break;case 45:C===45&&H(p)==2&&(T=0)}}return s}function zt(e,t,r,o,a,s,i,f,l,y,b,g){for(var w=a-1,v=a===0?s:[""],C=It(v),T=0,I=0,N=0;T<o;++T)for(var _=0,k=ge(e,w+1,w=jt(I=i[T])),x=e;_<C;++_)(x=$t(I>0?v[_]+" "+k:d(k,/&\f/g,v[_])))&&(l[N++]=x);return We(e,t,r,a===0?Ye:f,l,y,b,g)}function Hr(e,t,r,o){return We(e,t,r,Ot,ct(Dr()),ge(e,2,-2),0,o)}function Yt(e,t,r,o,a){return We(e,t,r,it,ge(e,0,o),ge(e,o+1,-1),o,a)}function Vt(e,t,r){switch(Ir(e,t)){case 5103:return S+"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 S+e+e;case 4789:return Oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+Oe+e+A+e+e;case 5936:switch($(e,t+11)){case 114:return S+e+A+d(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+A+d(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+A+d(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S+e+A+e+e;case 6165:return S+e+A+"flex-"+e+e;case 5187:return S+e+d(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+A+"flex-$1$2")+e;case 5443:return S+e+A+"flex-item-"+d(e,/flex-|-self/g,"")+(q(e,/flex-|baseline/)?"":A+"grid-row-"+d(e,/flex-|-self/g,""))+e;case 4675:return S+e+A+"flex-line-pack"+d(e,/align-content|flex-|-self/g,"")+e;case 5548:return S+e+A+d(e,"shrink","negative")+e;case 5292:return S+e+A+d(e,"basis","preferred-size")+e;case 6060:return S+"box-"+d(e,"-grow","")+S+e+A+d(e,"grow","positive")+e;case 4554:return S+d(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return d(d(d(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return d(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return d(d(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4200:if(!q(e,/flex-|baseline/))return A+"grid-column-align"+ge(e,t)+e;break;case 2592:case 3360:return A+d(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,a){return t=a,q(o.props,/grid-\w+-end/)})?~Ve(e+(r=r[t].value),"span",0)?e:A+d(e,"-start","")+e+A+"grid-row-span:"+(~Ve(r,"span",0)?q(r,/\d+/):+q(r,/\d+/)-+q(e,/\d+/))+";":A+d(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return q(o.props,/grid-\w+-start/)})?e:A+d(d(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return d(e,/(.+)-inline(.+)/,S+"$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(H(e)-1-t>6)switch($(e,t+1)){case 109:if($(e,t+4)!==45)break;case 102:return d(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+Oe+($(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ve(e,"stretch",0)?Vt(d(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return d(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,a,s,i,f,l,y){return A+a+":"+s+y+(i?A+a+"-span:"+(f?l:+l-+s)+y:"")+e});case 4949:if($(e,t+6)===121)return d(e,":",":"+S)+e;break;case 6444:switch($(e,$(e,14)===45?18:11)){case 120:return d(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S+($(e,14)===45?"inline-":"")+"box$3$1"+S+"$2$3$1"+A+"$2box$3")+e;case 100:return d(e,":",":"+A)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return d(e,"scroll-","scroll-snap-")+e}return e}function He(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function Ur(e,t,r,o){switch(e.type){case $r:if(e.children.length)break;case jr:case it:return e.return=e.return||e.value;case Ot:return"";case Pt:return e.return=e.value+"{"+He(e.children,o)+"}";case Ye:if(!H(e.value=e.props.join(",")))return""}return H(r=He(e.children,o))?e.return=e.value+"{"+r+"}":""}function qr(e){var t=It(e);return function(r,o,a,s){for(var i="",f=0;f<t;f++)i+=e[f](r,o,a,s)||"";return i}}function Xr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jr(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case it:e.return=Vt(e.value,e.length,r);return;case Pt:return He([ee(e,{value:d(e.value,"@","@"+S)})],o);case Ye:if(e.length)return Mr(r=e.props,function(a){switch(q(a,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":be(ee(e,{props:[d(a,/:(read-\w+)/,":"+Oe+"$1")]})),be(ee(e,{props:[a]})),ut(e,{props:Mt(r,o)});break;case"::placeholder":be(ee(e,{props:[d(a,/:(plac\w+)/,":"+S+"input-$1")]})),be(ee(e,{props:[d(a,/:(plac\w+)/,":"+Oe+"$1")]})),be(ee(e,{props:[d(a,/:(plac\w+)/,A+"input-$1")]})),be(ee(e,{props:[a]})),ut(e,{props:Mt(r,o)});break}return""})}}var Kr={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},se=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Lt="active",Wt="data-styled-version",Ue="6.1.15",dt=`/*!sc*/
32
+ `,qe=typeof window<"u"&&"HTMLElement"in window,Zr=!!(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"),Ft=/invalid hook call/i,Xe=new Set,Qr=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.
33
+ `)+`You may see this warning because you've called styled inside another component.
34
+ To resolve this only create new StyledComponents outside of any render method and function component.`,a=console.error;try{var s=!0;console.error=function(i){for(var f=[],l=1;l<arguments.length;l++)f[l-1]=arguments[l];Ft.test(i)?(s=!1,Xe.delete(o)):a.apply(void 0,me([i],f,!1))},j.useRef(),s&&!Xe.has(o)&&(console.warn(o),Xe.add(o))}catch(i){Ft.test(i.message)&&Xe.delete(o)}finally{console.error=a}}},Je=Object.freeze([]),we=Object.freeze({});function en(e,t,r){return r===void 0&&(r=we),e.theme!==r.theme&&e.theme||t||r.theme}var ht=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"]),tn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rn=/(^-|-$)/g;function Bt(e){return e.replace(tn,"-").replace(rn,"")}var nn=/(a)(d)/gi,Ke=52,Gt=function(e){return String.fromCharCode(e+(e>25?39:97))};function mt(e){var t,r="";for(t=Math.abs(e);t>Ke;t=t/Ke|0)r=Gt(t%Ke)+r;return(Gt(t%Ke)+r).replace(nn,"$1-$2")}var gt,Ht=5381,ie=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ut=function(e){return ie(Ht,e)};function on(e){return mt(Ut(e)>>>0)}function qt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function yt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Xt=typeof Symbol=="function"&&Symbol.for,Jt=Xt?Symbol.for("react.memo"):60115,an=Xt?Symbol.for("react.forward_ref"):60112,sn={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},Kt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},un=((gt={})[an]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt[Jt]=Kt,gt);function Zt(e){return("type"in(t=e)&&t.type.$$typeof)===Jt?Kt:"$$typeof"in e?un[e.$$typeof]:sn;var t}var ln=Object.defineProperty,fn=Object.getOwnPropertyNames,Qt=Object.getOwnPropertySymbols,pn=Object.getOwnPropertyDescriptor,dn=Object.getPrototypeOf,er=Object.prototype;function tr(e,t,r){if(typeof t!="string"){if(er){var o=dn(t);o&&o!==er&&tr(e,o,r)}var a=fn(t);Qt&&(a=a.concat(Qt(t)));for(var s=Zt(e),i=Zt(t),f=0;f<a.length;++f){var l=a[f];if(!(l in cn||r&&r[l]||i&&l in i||s&&l in s)){var y=pn(t,l);try{ln(e,l,y)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function vt(e){return typeof e=="object"&&"styledComponentId"in e}function ce(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function rr(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function Se(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bt(e,t,r){if(r===void 0&&(r=!1),!r&&!Se(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=bt(e[o],t[o]);else if(Se(t))for(var o in t)e[o]=bt(e[o],t[o]);return e}function wt(e,t){Object.defineProperty(e,"toString",{value:t})}var hn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
35
+
36
+ `,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.
37
+
38
+ - Are you trying to reuse it across renders?
39
+ - Are you accidentally calling collectStyles twice?
40
+
41
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
42
+
43
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
44
+
45
+ - Does this error occur on the client and is your target falsy?
46
+ - Does this error occur on the server and is the sheet falsy?
47
+
48
+ `,5:`The clone method cannot be used on the client!
49
+
50
+ - Are you running in a client-like environment on the server?
51
+ - Are you trying to run SSR on the client?
52
+
53
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
54
+
55
+ - Are you using a custom target that isn't mounted?
56
+ - Does your document not have a valid head element?
57
+ - Have you accidentally removed a style tag manually?
58
+
59
+ `,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.
60
+
61
+ `,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
62
+
63
+ `,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.
64
+
65
+ `,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.
66
+
67
+ `,14:`ThemeProvider: "theme" prop is required.
68
+
69
+ `,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.
70
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
71
+ as for instance in your render method then you may be running into this limitation.
72
+
73
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
74
+ Has styled-components' style tag been unmounted or altered by another script?
75
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],a=1,s=e.length;a<s;a+=1)o.push(e[a]);return o.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function xe(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(mn.apply(void 0,me([hn[e]],t,!1)).trim())}var gn=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,a=o.length,s=a;t>=s;)if((s<<=1)<0)throw xe(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(o),this.length=s;for(var i=a;i<s;i++)this.groupSizes[i]=0}for(var f=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(f,r[i])&&(this.groupSizes[t]++,f++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r;this.groupSizes[t]=0;for(var s=o;s<a;s++)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],a=this.indexOfGroup(t),s=a+o,i=a;i<s;i++)r+="".concat(this.tag.getRule(i)).concat(dt);return r},e}(),yn=1<<30,Ze=new Map,Qe=new Map,et=1,tt=function(e){if(Ze.has(e))return Ze.get(e);for(;Qe.has(et);)et++;var t=et++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>yn))throw xe(16,"".concat(t));return Ze.set(e,t),Qe.set(t,e),t},vn=function(e,t){et=t+1,Ze.set(e,t),Qe.set(t,e)},bn="style[".concat(se,"][").concat(Wt,'="').concat(Ue,'"]'),wn=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),En=function(e,t,r){for(var o,a=r.split(","),s=0,i=a.length;s<i;s++)(o=a[s])&&e.registerName(t,o)},Sn=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(dt),a=[],s=0,i=o.length;s<i;s++){var f=o[s].trim();if(f){var l=f.match(wn);if(l){var y=0|parseInt(l[1],10),b=l[2];y!==0&&(vn(b,y),En(e,b,l[3]),e.getTag().insertRules(y,a)),a.length=0}else a.push(f)}}},nr=function(e){for(var t=document.querySelectorAll(bn),r=0,o=t.length;r<o;r++){var a=t[r];a&&a.getAttribute(se)!==Lt&&(Sn(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function xn(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var or=function(e){var t=document.head,r=e||t,o=document.createElement("style"),a=function(f){var l=Array.from(f.querySelectorAll("style[".concat(se,"]")));return l[l.length-1]}(r),s=a!==void 0?a.nextSibling:null;o.setAttribute(se,Lt),o.setAttribute(Wt,Ue);var i=xn();return i&&o.setAttribute("nonce",i),r.insertBefore(o,s),o},kn=function(){function e(t){this.element=or(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var i=o[a];if(i.ownerNode===r)return i}throw xe(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=or(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}(),An=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}(),ar=qe,Tn={isServer:!qe,useCSSOMInjection:!Zr},sr=function(){function e(t,r,o){t===void 0&&(t=we),r===void 0&&(r={});var a=this;this.options=Y(Y({},Tn),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&qe&&ar&&(ar=!1,nr(this)),wt(this,function(){return function(s){for(var i=s.getTag(),f=i.length,l="",y=function(g){var w=function(N){return Qe.get(N)}(g);if(w===void 0)return"continue";var v=s.names.get(w),C=i.getGroup(g);if(v===void 0||!v.size||C.length===0)return"continue";var T="".concat(se,".g").concat(g,'[id="').concat(w,'"]'),I="";v!==void 0&&v.forEach(function(N){N.length>0&&(I+="".concat(N,","))}),l+="".concat(C).concat(T,'{content:"').concat(I,'"}').concat(dt)},b=0;b<f;b++)y(b);return l}(a)})}return e.registerId=function(t){return tt(t)},e.prototype.rehydrate=function(){!this.server&&qe&&nr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(Y(Y({},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,a=r.target;return r.isServer?new An(a):o?new kn(a):new Cn(a)}(this.options),new gn(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(tt(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(tt(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(tt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_n=/&/g,Rn=/^\s*\/\/.*$/gm;function ir(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=ir(r.children,t)),r})}function Nn(e){var t,r,o,a=we,s=a.options,i=s===void 0?we:s,f=a.plugins,l=f===void 0?Je:f,y=function(w,v,C){return C.startsWith(r)&&C.endsWith(r)&&C.replaceAll(r,"").length>0?".".concat(t):w},b=l.slice();b.push(function(w){w.type===Ye&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(_n,r).replace(o,y))}),i.prefix&&b.push(Jr),b.push(Ur);var g=function(w,v,C,T){v===void 0&&(v=""),C===void 0&&(C=""),T===void 0&&(T="&"),t=T,r=v,o=new RegExp("\\".concat(r,"\\b"),"g");var I=w.replace(Rn,""),N=Gr(C||v?"".concat(C," ").concat(v," { ").concat(I," }"):I);i.namespace&&(N=ir(N,i.namespace));var _=[];return He(N,qr(b.concat(Xr(function(k){return _.push(k)})))),_};return g.hash=l.length?l.reduce(function(w,v){return v.name||xe(15),ie(w,v.name)},Ht).toString():"",g}var On=new sr,Et=Nn(),cr=j.createContext({shouldForwardProp:void 0,styleSheet:On,stylis:Et});cr.Consumer,j.createContext(void 0);function ur(){return j.useContext(cr)}var lr=function(){function e(t,r){var o=this;this.inject=function(a,s){s===void 0&&(s=Et);var i=o.name+s.hash;a.hasNameForId(o.id,i)||a.insertRules(o.id,i,s(o.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,wt(this,function(){throw xe(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Et),this.name+t.hash},e}(),Pn=function(e){return e>="A"&&e<="Z"};function fr(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;Pn(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var pr=function(e){return e==null||e===!1||e===""},dr=function(e){var t,r,o=[];for(var a in e){var s=e[a];e.hasOwnProperty(a)&&!pr(s)&&(Array.isArray(s)&&s.isCss||Ee(s)?o.push("".concat(fr(a),":"),s,";"):Se(s)?o.push.apply(o,me(me(["".concat(a," {")],dr(s),!1),["}"],!1)):o.push("".concat(fr(a),": ").concat((t=a,(r=s)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Kr||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function ue(e,t,r,o){if(pr(e))return[];if(vt(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof lr||Se(a)||a===null||console.error("".concat(qt(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.")),ue(a,t,r,o)}var s;return e instanceof lr?r?(e.inject(r,o),[e.getName(o)]):[e]:Se(e)?dr(e):Array.isArray(e)?Array.prototype.concat.apply(Je,e.map(function(i){return ue(i,t,r,o)})):[e.toString()]}function jn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ee(r)&&!vt(r))return!1}return!0}var $n=Ut(Ue),In=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(o===void 0||o.isStatic)&&jn(t),this.componentId=r,this.baseHash=ie($n,r),this.baseStyle=o,sr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))a=ce(a,this.staticRulesId);else{var s=rr(ue(this.rules,t,r,o)),i=mt(ie(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,i)){var f=o(s,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,f)}a=ce(a,i),this.staticRulesId=i}else{for(var l=ie(this.baseHash,o.hash),y="",b=0;b<this.rules.length;b++){var g=this.rules[b];if(typeof g=="string")y+=g,process.env.NODE_ENV!=="production"&&(l=ie(l,g));else if(g){var w=rr(ue(g,t,r,o));l=ie(l,w+b),y+=w}}if(y){var v=mt(l>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,o(y,".".concat(v),void 0,this.componentId)),a=ce(a,v)}}return a},e}(),hr=j.createContext(void 0);hr.Consumer;var St={},mr=new Set;function Mn(e,t,r){var o=vt(e),a=e,s=!yt(e),i=t.attrs,f=i===void 0?Je:i,l=t.componentId,y=l===void 0?function(x,R){var m=typeof x!="string"?"sc":Bt(x);St[m]=(St[m]||0)+1;var p="".concat(m,"-").concat(on(Ue+m+St[m]));return R?"".concat(R,"-").concat(p):p}(t.displayName,t.parentComponentId):l,b=t.displayName,g=b===void 0?function(x){return yt(x)?"styled.".concat(x):"Styled(".concat(qt(x),")")}(e):b,w=t.displayName&&t.componentId?"".concat(Bt(t.displayName),"-").concat(t.componentId):t.componentId||y,v=o&&a.attrs?a.attrs.concat(f).filter(Boolean):f,C=t.shouldForwardProp;if(o&&a.shouldForwardProp){var T=a.shouldForwardProp;if(t.shouldForwardProp){var I=t.shouldForwardProp;C=function(x,R){return T(x,R)&&I(x,R)}}else C=T}var N=new In(r,w,o?a.componentStyle:void 0);function _(x,R){return function(m,p,G){var X=m.attrs,nt=m.componentStyle,je=m.defaultProps,$e=m.foldedComponentIds,ke=m.styledComponentId,Ie=m.target,Me=j.useContext(hr),Ct=ur(),Ce=m.shouldForwardProp||Ct.shouldForwardProp;process.env.NODE_ENV!=="production"&&j.useDebugValue(ke);var ot=en(p,Me,je)||we,M=function(fe,re,pe){for(var K,U=Y(Y({},re),{className:void 0,theme:pe}),Ae=0;Ae<fe.length;Ae+=1){var de=Ee(K=fe[Ae])?K(U):K;for(var F in de)U[F]=F==="className"?ce(U[F],de[F]):F==="style"?Y(Y({},U[F]),de[F]):de[F]}return re.className&&(U.className=ce(U.className,re.className)),U}(X,p,ot),te=M.as||Ie,L={};for(var V in M)M[V]===void 0||V[0]==="$"||V==="as"||V==="theme"&&M.theme===ot||(V==="forwardedAs"?L.as=M.forwardedAs:Ce&&!Ce(V,te)||(L[V]=M[V],Ce||process.env.NODE_ENV!=="development"||Pr(V)||mr.has(V)||!ht.has(te)||(mr.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 le=function(fe,re){var pe=ur(),K=fe.generateAndInjectStyles(re,pe.styleSheet,pe.stylis);return process.env.NODE_ENV!=="production"&&j.useDebugValue(K),K}(nt,M);process.env.NODE_ENV!=="production"&&m.warnTooManyClasses&&m.warnTooManyClasses(le);var J=ce($e,ke);return le&&(J+=" "+le),M.className&&(J+=" "+M.className),L[yt(te)&&!ht.has(te)?"class":"className"]=J,G&&(L.ref=G),j.createElement(te,L)}(k,x,R)}_.displayName=g;var k=j.forwardRef(_);return k.attrs=v,k.componentStyle=N,k.displayName=g,k.shouldForwardProp=C,k.foldedComponentIds=o?ce(a.foldedComponentIds,a.styledComponentId):"",k.styledComponentId=w,k.target=o?a.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=o?function(R){for(var m=[],p=1;p<arguments.length;p++)m[p-1]=arguments[p];for(var G=0,X=m;G<X.length;G++)bt(R,X[G],!0);return R}({},a.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(Qr(g,w),k.warnTooManyClasses=function(x,R){var m={},p=!1;return function(G){if(!p&&(m[G]=!0,Object.keys(m).length>=200)){var X=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(X,`.
76
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
77
+ Example:
78
+ const Component = styled.div.attrs(props => ({
79
+ style: {
80
+ background: props.background,
81
+ },
82
+ }))\`width: 100%;\`
83
+
84
+ <Component />`),p=!0,m={}}}}(g,w)),wt(k,function(){return".".concat(k.styledComponentId)}),s&&tr(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function gr(e,t){for(var r=[e[0]],o=0,a=t.length;o<a;o+=1)r.push(t[o],e[o+1]);return r}var yr=function(e){return Object.assign(e,{isCss:!0})};function Dn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ee(e)||Se(e))return yr(ue(gr(Je,me([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?ue(o):yr(ue(gr(o,t)))}function xt(e,t,r){if(r===void 0&&(r=we),!t)throw xe(1,t);var o=function(a){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,r,Dn.apply(void 0,me([a],s,!1)))};return o.attrs=function(a){return xt(e,t,Y(Y({},r),{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},o.withConfig=function(a){return xt(e,t,Y(Y({},r),a))},o}var vr=function(e){return xt(Mn,e)},kt=vr;ht.forEach(function(e){kt[e]=vr(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.
85
+ Perhaps you're looking to import 'styled-components/native'?
86
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var rt="__sc-".concat(se,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[rt]||(window[rt]=0),window[rt]===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.
87
+
88
+ See https://s-c.sh/2BAXzed for more info.`),window[rt]+=1);const zn=kt.span`
89
+ color: ${({color:e})=>e||"inherit"};
90
+ font-family: ${({font:e})=>e||'"Source Code Pro", monospace'};
91
+ font-size: ${({size:e})=>e||"inherit"};
92
+ font-weight: ${({weight:e})=>{switch(e){case"light":return 300;case"normal":return 400;case"medium":return 500;case"semibold":return 600;case"bold":return 700;case"extrabold":return 800;default:return"inherit"}}};
93
+ text-transform: ${({uppercase:e})=>e?"uppercase":"none"};
94
+ font-style: ${({italic:e})=>e?"italic":"normal"};
95
+ text-decoration: ${({underline:e,strikethrough:t})=>e&&t?"underline line-through":e?"underline":t?"line-through":"none"};
96
+ text-align: ${({align:e})=>e||"inherit"};
97
+ line-height: ${({lineHeight:e})=>e||"inherit"};
98
+ letter-spacing: ${({letterSpacing:e})=>e||"inherit"};
99
+ `,br=({as:e="span",children:t,uppercase:r,italic:o,underline:a,strikethrough:s,...i})=>{const l={..._r(),...i,...r&&{uppercase:"true"},...o&&{italic:"true"},...a&&{underline:"true"},...s&&{strikethrough:"true"}};return Ne.jsx(zn,{as:e,...l,children:t})},Yn=kt.span`
100
+ font-size: ${({level:e})=>{switch(e){case 1:return"32px";case 2:return"28px";case 3:return"24px";case 4:return"20px";case 5:return"18px";case 6:return"16px";default:return"16px"}}};
101
+ `,Vn={Group:Rr,Heading:({level:e,size:t,...r})=>{const o=`h${e}`;return Ne.jsx(Yn,{level:e,children:Ne.jsx(br,{as:o,size:t||"inherit",...r})})},Paragraph:e=>Ne.jsx(br,{as:"p",...e})};oe.Mono=Vn,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "monoscribe",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.5",
4
4
  "type": "module",
5
5
  "main": "dist/monoscribe.cjs.js",
6
6
  "module": "dist/monoscribe.es.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "peerDependencies": {
9
- "react": "^19.0.0",
10
- "react-dom": "^19.0.0"
9
+ "react": ">=16.8.0 <20.0.0",
10
+ "react-dom": ">=16.8.0 <20.0.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "styled-components": "^6.1.15"
@@ -0,0 +1 @@
1
+ declare module "@rollup/plugin-commonjs";
package/vite.config.ts CHANGED
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
2
2
  import react from "@vitejs/plugin-react";
3
3
  import dts from "vite-plugin-dts";
4
4
 
5
- export default defineConfig({
5
+ export default defineConfig(() => ({
6
6
  plugins: [
7
7
  react(),
8
8
  dts({
@@ -15,7 +15,7 @@ export default defineConfig({
15
15
  entry: "./src/index.ts",
16
16
  name: "Monoscribe",
17
17
  fileName: (format) => `monoscribe.${format}.js`,
18
- formats: ["es", "cjs"],
18
+ formats: ["es", "cjs", "umd"],
19
19
  },
20
20
  rollupOptions: {
21
21
  external: ["react", "react-dom"],
@@ -30,4 +30,4 @@ export default defineConfig({
30
30
  },
31
31
  },
32
32
  },
33
- });
33
+ }));