kilya-ui 0.0.7 → 0.0.9

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.
@@ -1,6 +1,370 @@
1
- (function(p,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(p=typeof globalThis<"u"?globalThis:p||self,E(p["kilya-ui"]={},p.React))})(this,(function(p,E){"use strict";function z(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var R={exports:{}},_={};var C;function B(){if(C)return _;C=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(d,c,t){var s=null;if(t!==void 0&&(s=""+t),c.key!==void 0&&(s=""+c.key),"key"in c){t={};for(var f in c)f!=="key"&&(t[f]=c[f])}else t=c;return c=t.ref,{$$typeof:n,type:d,key:s,ref:c!==void 0?c:null,props:t}}return _.Fragment=i,_.jsx=o,_.jsxs=o,_}var v={};var Y;function G(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h:return"Fragment";case se:return"Profiler";case ae:return"StrictMode";case ce:return"Suspense";case fe:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case oe:return"Portal";case le:return e.displayName||"Context";case ue:return(e._context.displayName||"Context")+".Consumer";case ie:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case de:return r=e.displayName||null,r!==null?r:n(e.type)||"Memo";case A:r=e._payload,e=e._init;try{return n(e(r))}catch{}}return null}function i(e){return""+e}function o(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var a=r.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),i(e)}}function d(e){if(e===h)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===A)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function c(){var e=P.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function s(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function f(e,r){function a(){W||(W=!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)",r))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function x(){var e=n(this.type);return q[e]||(q[e]=!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.")),e=this.props.ref,e!==void 0?e:null}function S(e,r,a,u,O,g){var l=a.ref;return e={$$typeof:D,type:e,key:r,props:a,_owner:u},(l!==void 0?l:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:x}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:g}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function T(e,r,a,u,O,g){var l=r.children;if(l!==void 0)if(u)if(be(l)){for(u=0;u<l.length;u++)F(l[u]);Object.freeze&&Object.freeze(l)}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 F(l);if(L.call(r,"key")){l=n(e);var b=Object.keys(r).filter(function(Ee){return Ee!=="key"});u=0<b.length?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}",J[l+u]||(b=0<b.length?"{"+b.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(U,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(U=typeof globalThis<"u"?globalThis:U||self,D(U["kilya-ui"]={},U.React))})(this,(function(U,D){"use strict";var Pe={exports:{}},me={};var yr;function lt(){if(yr)return me;yr=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(o,n,a){var i=null;if(a!==void 0&&(i=""+a),n.key!==void 0&&(i=""+n.key),"key"in n){a={};for(var u in n)u!=="key"&&(a[u]=n[u])}else a=n;return n=a.ref,{$$typeof:e,type:o,key:i,ref:n!==void 0?n:null,props:a}}return me.Fragment=r,me.jsx=t,me.jsxs=t,me}var ge={};var br;function ut(){return br||(br=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===mr?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case j:return"Fragment";case _:return"Profiler";case O:return"StrictMode";case m:return"Suspense";case p:return"SuspenseList";case hr:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case T:return"Portal";case E:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case R:var d=s.render;return s=s.displayName,s||(s=d.displayName||d.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case V:return d=s.displayName||null,d!==null?d:e(s.type)||"Memo";case G:d=s._payload,s=s._init;try{return e(s(d))}catch{}}return null}function r(s){return""+s}function t(s){try{r(s);var d=!1}catch{d=!0}if(d){d=console;var $=d.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return $.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),r(s)}}function o(s){if(s===j)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===G)return"<...>";try{var d=e(s);return d?"<"+d+">":"<...>"}catch{return"<...>"}}function n(){var s=Se.A;return s===null?null:s.getOwner()}function a(){return Error("react-stack-top-frame")}function i(s){if(ke.call(s,"key")){var d=Object.getOwnPropertyDescriptor(s,"key").get;if(d&&d.isReactWarning)return!1}return s.key!==void 0}function u(s,d){function $(){Ge||(Ge=!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)",d))}$.isReactWarning=!0,Object.defineProperty(s,"key",{get:$,configurable:!0})}function l(){var s=e(this.type);return he[s]||(he[s]=!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.")),s=this.props.ref,s!==void 0?s:null}function v(s,d,$,A,H,X){var C=$.ref;return s={$$typeof:x,type:s,key:d,props:$,_owner:A},(C!==void 0?C:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:l}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function g(s,d,$,A,H,X){var C=d.children;if(C!==void 0)if(A)if(gr(C)){for(A=0;A<C.length;A++)y(C[A]);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 y(C);if(ke.call(d,"key")){C=e(s);var z=Object.keys(d).filter(function($e){return $e!=="key"});A=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",Z[C+A]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,u,l,b,l),J[l+u]=!0)}if(l=null,a!==void 0&&(o(a),l=""+a),s(r)&&(o(r.key),l=""+r.key),"key"in r){a={};for(var N in r)N!=="key"&&(a[N]=r[N])}else a=r;return l&&f(a,typeof e=="function"?e.displayName||e.name||"Unknown":e),S(e,l,a,c(),O,g)}function F(e){M(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===A&&(e._payload.status==="fulfilled"?M(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function M(e){return typeof e=="object"&&e!==null&&e.$$typeof===D}var y=E,D=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),le=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),P=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,be=Array.isArray,w=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(e){return e()}};var W,q={},U=y.react_stack_bottom_frame.bind(y,t)(),V=w(d(t)),J={};v.Fragment=h,v.jsx=function(e,r,a){var u=1e4>P.recentlyCreatedOwnerStacks++;return T(e,r,a,!1,u?Error("react-stack-top-frame"):U,u?w(d(e)):V)},v.jsxs=function(e,r,a){var u=1e4>P.recentlyCreatedOwnerStacks++;return T(e,r,a,!0,u?Error("react-stack-top-frame"):U,u?w(d(e)):V)}})()),v}var $;function X(){return $||($=1,process.env.NODE_ENV==="production"?R.exports=B():R.exports=G()),R.exports}var m=X(),j={exports:{}};var I;function H(){return I||(I=1,(function(n){(function(){var i={}.hasOwnProperty;function o(){for(var t="",s=0;s<arguments.length;s++){var f=arguments[s];f&&(t=c(t,d(f)))}return t}function d(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var s="";for(var f in t)i.call(t,f)&&t[f]&&(s=c(s,f));return s}function c(t,s){return s?t?t+" "+s:t+s:t}n.exports?(o.default=o,n.exports=o):window.classNames=o})()})(j)),j.exports}var Z=H();const Q=z(Z),k=(n,i)=>Q(K(n),i),K=n=>{if(typeof n=="string")return`kilya-${n}`;if(Array.isArray(n))return n.map(o=>`kilya-${o}`).join(" ");const i={};return Object.keys(n).forEach(o=>{i[`kilya-${o}`]=n[o]}),i},ee=({children:n,disabled:i=!1,type:o="button",button:d="default",className:c="",...t})=>m.jsx("button",{type:o,className:k(`button-${d}`,c),disabled:i,...t,children:n}),re={},te=({disabled:n=!1,className:i="",...o})=>m.jsxs("button",{type:"button",className:k(re["button-close"],i),disabled:n,...o,children:["Close",m.jsxs("svg",{viewBox:"0 0 24 25",children:[m.jsx("path",{d:"M6.34314 18.1567L17.6568 6.84303"}),m.jsx("path",{d:"M17.6569 18.1567L6.34315 6.84303"})]})]}),ne=({id:n,type:i,name:o,className:d,disabled:c,required:t,readOnly:s,onBlur:f,onFocus:x,onClick:S,...T})=>m.jsx("input",{type:i,className:k(`input-${i}`,d),name:o,id:n,disabled:c,required:t,readOnly:s,onBlur:f,onFocus:x,onClick:S,...T});p.Button=ee,p.ButtonClose=te,p.Input=ne,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
6
+ <%s key={someKey} {...props} />`,A,C,z,C),Z[C+A]=!0)}if(C=null,$!==void 0&&(t($),C=""+$),i(d)&&(t(d.key),C=""+d.key),"key"in d){$={};for(var Y in d)Y!=="key"&&($[Y]=d[Y])}else $=d;return C&&u($,typeof s=="function"?s.displayName||s.name||"Unknown":s),v(s,C,$,n(),H,X)}function y(s){w(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===G&&(s._payload.status==="fulfilled"?w(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function w(s){return typeof s=="object"&&s!==null&&s.$$typeof===x}var h=D,x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),hr=Symbol.for("react.activity"),mr=Symbol.for("react.client.reference"),Se=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ke=Object.prototype.hasOwnProperty,gr=Array.isArray,xe=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(s){return s()}};var Ge,he={},Ee=h.react_stack_bottom_frame.bind(h,a)(),W=xe(o(a)),Z={};ge.Fragment=j,ge.jsx=function(s,d,$){var A=1e4>Se.recentlyCreatedOwnerStacks++;return g(s,d,$,!1,A?Error("react-stack-top-frame"):Ee,A?xe(o(s)):W)},ge.jsxs=function(s,d,$){var A=1e4>Se.recentlyCreatedOwnerStacks++;return g(s,d,$,!0,A?Error("react-stack-top-frame"):Ee,A?xe(o(s)):W)}})()),ge}var vr;function dt(){return vr||(vr=1,process.env.NODE_ENV==="production"?Pe.exports=lt():Pe.exports=ut()),Pe.exports}var Q=dt(),M=function(){return M=Object.assign||function(r){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},M.apply(this,arguments)};function se(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,a;o<n;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return e.concat(a||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;function pt(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ft=/^((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)-.*))$/,ht=pt(function(e){return ft.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),P="-ms-",ye="-moz-",S="-webkit-",wr="comm",_e="rule",qe="decl",mt="@import",Sr="@keyframes",gt="@layer",kr=Math.abs,He=String.fromCharCode,Xe=Object.assign;function yt(e,r){return I(e,0)^45?(((r<<2^I(e,0))<<2^I(e,1))<<2^I(e,2))<<2^I(e,3):0}function xr(e){return e.trim()}function q(e,r){return(e=r.exec(e))?e[0]:e}function f(e,r,t){return e.replace(r,t)}function Re(e,r,t){return e.indexOf(r,t)}function I(e,r){return e.charCodeAt(r)|0}function ae(e,r,t){return e.slice(r,t)}function B(e){return e.length}function Er(e){return e.length}function be(e,r){return r.push(e),e}function bt(e,r){return e.map(r).join("")}function $r(e,r){return e.filter(function(t){return!q(t,r)})}var Ce=1,ie=1,Pr=0,L=0,N=0,ce="";function Te(e,r,t,o,n,a,i,u){return{value:e,root:r,parent:t,type:o,props:n,children:a,line:Ce,column:ie,length:i,return:"",siblings:u}}function J(e,r){return Xe(Te("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function le(e){for(;e.root;)e=J(e.root,{children:[e]});be(e,e.siblings)}function vt(){return N}function wt(){return N=L>0?I(ce,--L):0,ie--,N===10&&(ie=1,Ce--),N}function F(){return N=L<Pr?I(ce,L++):0,ie++,N===10&&(ie=1,Ce++),N}function ee(){return I(ce,L)}function Ae(){return L}function Oe(e,r){return ae(ce,e,r)}function Je(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 St(e){return Ce=ie=1,Pr=B(ce=e),L=0,[]}function kt(e){return ce="",e}function Ze(e){return xr(Oe(L-1,Ke(e===91?e+2:e===40?e+1:e)))}function xt(e){for(;(N=ee())&&N<33;)F();return Je(e)>2||Je(N)>3?"":" "}function Et(e,r){for(;--r&&F()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Oe(e,Ae()+(r<6&&ee()==32&&F()==32))}function Ke(e){for(;F();)switch(N){case e:return L;case 34:case 39:e!==34&&e!==39&&Ke(N);break;case 40:e===41&&Ke(e);break;case 92:F();break}return L}function $t(e,r){for(;F()&&e+N!==57;)if(e+N===84&&ee()===47)break;return"/*"+Oe(r,L-1)+"*"+He(e===47?e:F())}function Pt(e){for(;!Je(ee());)F();return Oe(e,L)}function _t(e){return kt(Ne("",null,null,null,[""],e=St(e),0,[0],e))}function Ne(e,r,t,o,n,a,i,u,l){for(var v=0,g=0,y=i,w=0,h=0,x=0,T=1,j=1,O=1,_=0,k="",E=n,R=a,m=o,p=k;j;)switch(x=_,_=F()){case 40:if(x!=108&&I(p,y-1)==58){Re(p+=f(Ze(_),"&","&\f"),"&\f",kr(v?u[v-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:p+=Ze(_);break;case 9:case 10:case 13:case 32:p+=xt(x);break;case 92:p+=Et(Ae()-1,7);continue;case 47:switch(ee()){case 42:case 47:be(Rt($t(F(),Ae()),r,t,l),l);break;default:p+="/"}break;case 123*T:u[v++]=B(p)*O;case 125*T:case 59:case 0:switch(_){case 0:case 125:j=0;case 59+g:O==-1&&(p=f(p,/\f/g,"")),h>0&&B(p)-y&&be(h>32?Rr(p+";",o,t,y-1,l):Rr(f(p," ","")+";",o,t,y-2,l),l);break;case 59:p+=";";default:if(be(m=_r(p,r,t,v,g,n,u,k,E=[],R=[],y,a),a),_===123)if(g===0)Ne(p,r,m,m,E,a,y,u,R);else switch(w===99&&I(p,3)===110?100:w){case 100:case 108:case 109:case 115:Ne(e,m,m,o&&be(_r(e,m,m,0,0,n,u,k,n,E=[],y,R),R),n,R,y,u,o?E:R);break;default:Ne(p,m,m,m,[""],R,0,u,R)}}v=g=h=0,T=O=1,k=p="",y=i;break;case 58:y=1+B(p),h=x;default:if(T<1){if(_==123)--T;else if(_==125&&T++==0&&wt()==125)continue}switch(p+=He(_),_*T){case 38:O=g>0?1:(p+="\f",-1);break;case 44:u[v++]=(B(p)-1)*O,O=1;break;case 64:ee()===45&&(p+=Ze(F())),w=ee(),g=y=B(k=p+=Pt(Ae())),_++;break;case 45:x===45&&B(p)==2&&(T=0)}}return a}function _r(e,r,t,o,n,a,i,u,l,v,g,y){for(var w=n-1,h=n===0?a:[""],x=Er(h),T=0,j=0,O=0;T<o;++T)for(var _=0,k=ae(e,w+1,w=kr(j=i[T])),E=e;_<x;++_)(E=xr(j>0?h[_]+" "+k:f(k,/&\f/g,h[_])))&&(l[O++]=E);return Te(e,r,t,n===0?_e:u,l,v,g,y)}function Rt(e,r,t,o){return Te(e,r,t,wr,He(vt()),ae(e,2,-2),0,o)}function Rr(e,r,t,o,n){return Te(e,r,t,qe,ae(e,0,o),ae(e,o+1,-1),o,n)}function Cr(e,r,t){switch(yt(e,r)){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 ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+ye+e+P+e+e;case 5936:switch(I(e,r+11)){case 114:return S+e+P+f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+P+f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+P+f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S+e+P+e+e;case 6165:return S+e+P+"flex-"+e+e;case 5187:return S+e+f(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return S+e+P+"flex-item-"+f(e,/flex-|-self/g,"")+(q(e,/flex-|baseline/)?"":P+"grid-row-"+f(e,/flex-|-self/g,""))+e;case 4675:return S+e+P+"flex-line-pack"+f(e,/align-content|flex-|-self/g,"")+e;case 5548:return S+e+P+f(e,"shrink","negative")+e;case 5292:return S+e+P+f(e,"basis","preferred-size")+e;case 6060:return S+"box-"+f(e,"-grow","")+S+e+P+f(e,"grow","positive")+e;case 4554:return S+f(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return f(f(f(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return f(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return f(f(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4200:if(!q(e,/flex-|baseline/))return P+"grid-column-align"+ae(e,r)+e;break;case 2592:case 3360:return P+f(e,"template-","")+e;case 4384:case 3616:return t&&t.some(function(o,n){return r=n,q(o.props,/grid-\w+-end/)})?~Re(e+(t=t[r].value),"span",0)?e:P+f(e,"-start","")+e+P+"grid-row-span:"+(~Re(t,"span",0)?q(t,/\d+/):+q(t,/\d+/)-+q(e,/\d+/))+";":P+f(e,"-start","")+e;case 4896:case 4128:return t&&t.some(function(o){return q(o.props,/grid-\w+-start/)})?e:P+f(f(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return f(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(B(e)-1-r>6)switch(I(e,r+1)){case 109:if(I(e,r+4)!==45)break;case 102:return f(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+ye+(I(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch",0)?Cr(f(e,"stretch","fill-available"),r,t)+e:e}break;case 5152:case 5920:return f(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,n,a,i,u,l,v){return P+n+":"+a+v+(i?P+n+"-span:"+(u?l:+l-+a)+v:"")+e});case 4949:if(I(e,r+6)===121)return f(e,":",":"+S)+e;break;case 6444:switch(I(e,I(e,14)===45?18:11)){case 120:return f(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S+(I(e,14)===45?"inline-":"")+"box$3$1"+S+"$2$3$1"+P+"$2box$3")+e;case 100:return f(e,":",":"+P)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return f(e,"scroll-","scroll-snap-")+e}return e}function Ie(e,r){for(var t="",o=0;o<e.length;o++)t+=r(e[o],o,e,r)||"";return t}function Ct(e,r,t,o){switch(e.type){case gt:if(e.children.length)break;case mt:case qe:return e.return=e.return||e.value;case wr:return"";case Sr:return e.return=e.value+"{"+Ie(e.children,o)+"}";case _e:if(!B(e.value=e.props.join(",")))return""}return B(t=Ie(e.children,o))?e.return=e.value+"{"+t+"}":""}function Tt(e){var r=Er(e);return function(t,o,n,a){for(var i="",u=0;u<r;u++)i+=e[u](t,o,n,a)||"";return i}}function At(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ot(e,r,t,o){if(e.length>-1&&!e.return)switch(e.type){case qe:e.return=Cr(e.value,e.length,t);return;case Sr:return Ie([J(e,{value:f(e.value,"@","@"+S)})],o);case _e:if(e.length)return bt(t=e.props,function(n){switch(q(n,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":le(J(e,{props:[f(n,/:(read-\w+)/,":"+ye+"$1")]})),le(J(e,{props:[n]})),Xe(e,{props:$r(t,o)});break;case"::placeholder":le(J(e,{props:[f(n,/:(plac\w+)/,":"+S+"input-$1")]})),le(J(e,{props:[f(n,/:(plac\w+)/,":"+ye+"$1")]})),le(J(e,{props:[f(n,/:(plac\w+)/,P+"input-$1")]})),le(J(e,{props:[n]})),Xe(e,{props:$r(t,o)});break}return""})}}var Nt={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},re=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tr="active",Ar="data-styled-version",je="6.1.19",Qe=`/*!sc*/
7
+ `,De=typeof window<"u"&&typeof document<"u",It=!!(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"),Or=/invalid hook call/i,Me=new Set,jt=function(e,r){if(process.env.NODE_ENV!=="production"){var t=r?' with the id of "'.concat(r,'"'):"",o="The component ".concat(e).concat(t,` has been created dynamically.
8
+ `)+`You may see this warning because you've called styled inside another component.
9
+ To resolve this only create new StyledComponents outside of any render method and function component.
10
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
11
+ `,n=console.error;try{var a=!0;console.error=function(i){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Or.test(i)?(a=!1,Me.delete(o)):n.apply(void 0,se([i],u,!1))},D.useRef(),a&&!Me.has(o)&&(console.warn(o),Me.add(o))}catch(i){Or.test(i.message)&&Me.delete(o)}finally{console.error=n}}},ze=Object.freeze([]),ue=Object.freeze({});function Dt(e,r,t){return t===void 0&&(t=ue),e.theme!==t.theme&&e.theme||r||t.theme}var er=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Mt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zt=/(^-|-$)/g;function Nr(e){return e.replace(Mt,"-").replace(zt,"")}var Lt=/(a)(d)/gi,Le=52,Ir=function(e){return String.fromCharCode(e+(e>25?39:97))};function rr(e){var r,t="";for(r=Math.abs(e);r>Le;r=r/Le|0)t=Ir(r%Le)+t;return(Ir(r%Le)+t).replace(Lt,"$1-$2")}var tr,jr=5381,te=function(e,r){for(var t=r.length;t;)e=33*e^r.charCodeAt(--t);return e},Dr=function(e){return te(jr,e)};function Wt(e){return rr(Dr(e)>>>0)}function Mr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function or(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var zr=typeof Symbol=="function"&&Symbol.for,Lr=zr?Symbol.for("react.memo"):60115,Ft=zr?Symbol.for("react.forward_ref"):60112,Yt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vt=((tr={})[Ft]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tr[Lr]=Wr,tr);function Fr(e){return("type"in(r=e)&&r.type.$$typeof)===Lr?Wr:"$$typeof"in e?Vt[e.$$typeof]:Yt;var r}var Gt=Object.defineProperty,Ut=Object.getOwnPropertyNames,Yr=Object.getOwnPropertySymbols,qt=Object.getOwnPropertyDescriptor,Ht=Object.getPrototypeOf,Br=Object.prototype;function Vr(e,r,t){if(typeof r!="string"){if(Br){var o=Ht(r);o&&o!==Br&&Vr(e,o,t)}var n=Ut(r);Yr&&(n=n.concat(Yr(r)));for(var a=Fr(e),i=Fr(r),u=0;u<n.length;++u){var l=n[u];if(!(l in Bt||t&&t[l]||i&&l in i||a&&l in a)){var v=qt(r,l);try{Gt(e,l,v)}catch{}}}}return e}function de(e){return typeof e=="function"}function nr(e){return typeof e=="object"&&"styledComponentId"in e}function oe(e,r){return e&&r?"".concat(e," ").concat(r):e||r||""}function Gr(e,r){if(e.length===0)return"";for(var t=e[0],o=1;o<e.length;o++)t+=e[o];return t}function pe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function sr(e,r,t){if(t===void 0&&(t=!1),!t&&!pe(e)&&!Array.isArray(e))return r;if(Array.isArray(r))for(var o=0;o<r.length;o++)e[o]=sr(e[o],r[o]);else if(pe(r))for(var o in r)e[o]=sr(e[o],r[o]);return e}function ar(e,r){Object.defineProperty(e,"toString",{value:r})}var Xt=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
12
+
13
+ `,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.
14
+
15
+ - Are you trying to reuse it across renders?
16
+ - Are you accidentally calling collectStyles twice?
17
+
18
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
19
+
20
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
21
+
22
+ - Does this error occur on the client and is your target falsy?
23
+ - Does this error occur on the server and is the sheet falsy?
24
+
25
+ `,5:`The clone method cannot be used on the client!
26
+
27
+ - Are you running in a client-like environment on the server?
28
+ - Are you trying to run SSR on the client?
29
+
30
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
31
+
32
+ - Are you using a custom target that isn't mounted?
33
+ - Does your document not have a valid head element?
34
+ - Have you accidentally removed a style tag manually?
35
+
36
+ `,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.
37
+
38
+ `,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
39
+
40
+ `,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.
41
+
42
+ `,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.
43
+
44
+ `,14:`ThemeProvider: "theme" prop is required.
45
+
46
+ `,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.
47
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
48
+ as for instance in your render method then you may be running into this limitation.
49
+
50
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
51
+ Has styled-components' style tag been unmounted or altered by another script?
52
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Jt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t=e[0],o=[],n=1,a=e.length;n<a;n+=1)o.push(e[n]);return o.forEach(function(i){t=t.replace(/%[a-z]/,i)}),t}function fe(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];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(r.length>0?" Args: ".concat(r.join(", ")):"")):new Error(Jt.apply(void 0,se([Xt[e]],r,!1)).trim())}var Zt=(function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}return e.prototype.indexOfGroup=function(r){for(var t=0,o=0;o<r;o++)t+=this.groupSizes[o];return t},e.prototype.insertRules=function(r,t){if(r>=this.groupSizes.length){for(var o=this.groupSizes,n=o.length,a=n;r>=a;)if((a<<=1)<0)throw fe(16,"".concat(r));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var i=n;i<a;i++)this.groupSizes[i]=0}for(var u=this.indexOfGroup(r+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(u,t[i])&&(this.groupSizes[r]++,u++)},e.prototype.clearGroup=function(r){if(r<this.length){var t=this.groupSizes[r],o=this.indexOfGroup(r),n=o+t;this.groupSizes[r]=0;for(var a=o;a<n;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(r){var t="";if(r>=this.length||this.groupSizes[r]===0)return t;for(var o=this.groupSizes[r],n=this.indexOfGroup(r),a=n+o,i=n;i<a;i++)t+="".concat(this.tag.getRule(i)).concat(Qe);return t},e})(),Kt=1<<30,We=new Map,Fe=new Map,Ye=1,Be=function(e){if(We.has(e))return We.get(e);for(;Fe.has(Ye);)Ye++;var r=Ye++;if(process.env.NODE_ENV!=="production"&&((0|r)<0||r>Kt))throw fe(16,"".concat(r));return We.set(e,r),Fe.set(r,e),r},Qt=function(e,r){Ye=r+1,We.set(e,r),Fe.set(r,e)},eo="style[".concat(re,"][").concat(Ar,'="').concat(je,'"]'),ro=new RegExp("^".concat(re,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),to=function(e,r,t){for(var o,n=t.split(","),a=0,i=n.length;a<i;a++)(o=n[a])&&e.registerName(r,o)},oo=function(e,r){for(var t,o=((t=r.textContent)!==null&&t!==void 0?t:"").split(Qe),n=[],a=0,i=o.length;a<i;a++){var u=o[a].trim();if(u){var l=u.match(ro);if(l){var v=0|parseInt(l[1],10),g=l[2];v!==0&&(Qt(g,v),to(e,g,l[3]),e.getTag().insertRules(v,n)),n.length=0}else n.push(u)}}},Ur=function(e){for(var r=document.querySelectorAll(eo),t=0,o=r.length;t<o;t++){var n=r[t];n&&n.getAttribute(re)!==Tr&&(oo(e,n),n.parentNode&&n.parentNode.removeChild(n))}};function no(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var qr=function(e){var r=document.head,t=e||r,o=document.createElement("style"),n=(function(u){var l=Array.from(u.querySelectorAll("style[".concat(re,"]")));return l[l.length-1]})(t),a=n!==void 0?n.nextSibling:null;o.setAttribute(re,Tr),o.setAttribute(Ar,je);var i=no();return i&&o.setAttribute("nonce",i),t.insertBefore(o,a),o},so=(function(){function e(r){this.element=qr(r),this.element.appendChild(document.createTextNode("")),this.sheet=(function(t){if(t.sheet)return t.sheet;for(var o=document.styleSheets,n=0,a=o.length;n<a;n++){var i=o[n];if(i.ownerNode===t)return i}throw fe(17)})(this.element),this.length=0}return e.prototype.insertRule=function(r,t){try{return this.sheet.insertRule(t,r),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.prototype.getRule=function(r){var t=this.sheet.cssRules[r];return t&&t.cssText?t.cssText:""},e})(),ao=(function(){function e(r){this.element=qr(r),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(r,t){if(r<=this.length&&r>=0){var o=document.createTextNode(t);return this.element.insertBefore(o,this.nodes[r]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.prototype.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e})(),io=(function(){function e(r){this.rules=[],this.length=0}return e.prototype.insertRule=function(r,t){return r<=this.length&&(this.rules.splice(r,0,t),this.length++,!0)},e.prototype.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.prototype.getRule=function(r){return r<this.length?this.rules[r]:""},e})(),Hr=De,co={isServer:!De,useCSSOMInjection:!It},Xr=(function(){function e(r,t,o){r===void 0&&(r=ue),t===void 0&&(t={});var n=this;this.options=M(M({},co),r),this.gs=t,this.names=new Map(o),this.server=!!r.isServer,!this.server&&De&&Hr&&(Hr=!1,Ur(this)),ar(this,function(){return(function(a){for(var i=a.getTag(),u=i.length,l="",v=function(y){var w=(function(O){return Fe.get(O)})(y);if(w===void 0)return"continue";var h=a.names.get(w),x=i.getGroup(y);if(h===void 0||!h.size||x.length===0)return"continue";var T="".concat(re,".g").concat(y,'[id="').concat(w,'"]'),j="";h!==void 0&&h.forEach(function(O){O.length>0&&(j+="".concat(O,","))}),l+="".concat(x).concat(T,'{content:"').concat(j,'"}').concat(Qe)},g=0;g<u;g++)v(g);return l})(n)})}return e.registerId=function(r){return Be(r)},e.prototype.rehydrate=function(){!this.server&&De&&Ur(this)},e.prototype.reconstructWithOptions=function(r,t){return t===void 0&&(t=!0),new e(M(M({},this.options),r),this.gs,t&&this.names||void 0)},e.prototype.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(r=(function(t){var o=t.useCSSOMInjection,n=t.target;return t.isServer?new io(n):o?new so(n):new ao(n)})(this.options),new Zt(r)));var r},e.prototype.hasNameForId=function(r,t){return this.names.has(r)&&this.names.get(r).has(t)},e.prototype.registerName=function(r,t){if(Be(r),this.names.has(r))this.names.get(r).add(t);else{var o=new Set;o.add(t),this.names.set(r,o)}},e.prototype.insertRules=function(r,t,o){this.registerName(r,t),this.getTag().insertRules(Be(r),o)},e.prototype.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.prototype.clearRules=function(r){this.getTag().clearGroup(Be(r)),this.clearNames(r)},e.prototype.clearTag=function(){this.tag=void 0},e})(),lo=/&/g,uo=/^\s*\/\/.*$/gm;function Jr(e,r){return e.map(function(t){return t.type==="rule"&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(o){return"".concat(r," ").concat(o)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=Jr(t.children,r)),t})}function po(e){var r,t,o,n=ue,a=n.options,i=a===void 0?ue:a,u=n.plugins,l=u===void 0?ze:u,v=function(w,h,x){return x.startsWith(t)&&x.endsWith(t)&&x.replaceAll(t,"").length>0?".".concat(r):w},g=l.slice();g.push(function(w){w.type===_e&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(lo,t).replace(o,v))}),i.prefix&&g.push(Ot),g.push(Ct);var y=function(w,h,x,T){h===void 0&&(h=""),x===void 0&&(x=""),T===void 0&&(T="&"),r=T,t=h,o=new RegExp("\\".concat(t,"\\b"),"g");var j=w.replace(uo,""),O=_t(x||h?"".concat(x," ").concat(h," { ").concat(j," }"):j);i.namespace&&(O=Jr(O,i.namespace));var _=[];return Ie(O,Tt(g.concat(At(function(k){return _.push(k)})))),_};return y.hash=l.length?l.reduce(function(w,h){return h.name||fe(15),te(w,h.name)},jr).toString():"",y}var fo=new Xr,ir=po(),Zr=D.createContext({shouldForwardProp:void 0,styleSheet:fo,stylis:ir});Zr.Consumer,D.createContext(void 0);function Kr(){return D.useContext(Zr)}var Qr=(function(){function e(r,t){var o=this;this.inject=function(n,a){a===void 0&&(a=ir);var i=o.name+a.hash;n.hasNameForId(o.id,i)||n.insertRules(o.id,i,a(o.rules,i,"@keyframes"))},this.name=r,this.id="sc-keyframes-".concat(r),this.rules=t,ar(this,function(){throw fe(12,String(o.name))})}return e.prototype.getName=function(r){return r===void 0&&(r=ir),this.name+r.hash},e})(),ho=function(e){return e>="A"&&e<="Z"};function et(e){for(var r="",t=0;t<e.length;t++){var o=e[t];if(t===1&&o==="-"&&e[0]==="-")return e;ho(o)?r+="-"+o.toLowerCase():r+=o}return r.startsWith("ms-")?"-"+r:r}var rt=function(e){return e==null||e===!1||e===""},tt=function(e){var r,t,o=[];for(var n in e){var a=e[n];e.hasOwnProperty(n)&&!rt(a)&&(Array.isArray(a)&&a.isCss||de(a)?o.push("".concat(et(n),":"),a,";"):pe(a)?o.push.apply(o,se(se(["".concat(n," {")],tt(a),!1),["}"],!1)):o.push("".concat(et(n),": ").concat((r=n,(t=a)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||r in Nt||r.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return o};function ne(e,r,t,o){if(rt(e))return[];if(nr(e))return[".".concat(e.styledComponentId)];if(de(e)){if(!de(a=e)||a.prototype&&a.prototype.isReactComponent||!r)return[e];var n=e(r);return process.env.NODE_ENV==="production"||typeof n!="object"||Array.isArray(n)||n instanceof Qr||pe(n)||n===null||console.error("".concat(Mr(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(n,r,t,o)}var a;return e instanceof Qr?t?(e.inject(t,o),[e.getName(o)]):[e]:pe(e)?tt(e):Array.isArray(e)?Array.prototype.concat.apply(ze,e.map(function(i){return ne(i,r,t,o)})):[e.toString()]}function mo(e){for(var r=0;r<e.length;r+=1){var t=e[r];if(de(t)&&!nr(t))return!1}return!0}var go=Dr(je),yo=(function(){function e(r,t,o){this.rules=r,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(o===void 0||o.isStatic)&&mo(r),this.componentId=t,this.baseHash=te(go,t),this.baseStyle=o,Xr.registerId(t)}return e.prototype.generateAndInjectStyles=function(r,t,o){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,t,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=oe(n,this.staticRulesId);else{var a=Gr(ne(this.rules,r,t,o)),i=rr(te(this.baseHash,a)>>>0);if(!t.hasNameForId(this.componentId,i)){var u=o(a,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,u)}n=oe(n,i),this.staticRulesId=i}else{for(var l=te(this.baseHash,o.hash),v="",g=0;g<this.rules.length;g++){var y=this.rules[g];if(typeof y=="string")v+=y,process.env.NODE_ENV!=="production"&&(l=te(l,y));else if(y){var w=Gr(ne(y,r,t,o));l=te(l,w+g),v+=w}}if(v){var h=rr(l>>>0);t.hasNameForId(this.componentId,h)||t.insertRules(this.componentId,h,o(v,".".concat(h),void 0,this.componentId)),n=oe(n,h)}}return n},e})(),ot=D.createContext(void 0);ot.Consumer;var cr={},nt=new Set;function bo(e,r,t){var o=nr(e),n=e,a=!or(e),i=r.attrs,u=i===void 0?ze:i,l=r.componentId,v=l===void 0?(function(E,R){var m=typeof E!="string"?"sc":Nr(E);cr[m]=(cr[m]||0)+1;var p="".concat(m,"-").concat(Wt(je+m+cr[m]));return R?"".concat(R,"-").concat(p):p})(r.displayName,r.parentComponentId):l,g=r.displayName,y=g===void 0?(function(E){return or(E)?"styled.".concat(E):"Styled(".concat(Mr(E),")")})(e):g,w=r.displayName&&r.componentId?"".concat(Nr(r.displayName),"-").concat(r.componentId):r.componentId||v,h=o&&n.attrs?n.attrs.concat(u).filter(Boolean):u,x=r.shouldForwardProp;if(o&&n.shouldForwardProp){var T=n.shouldForwardProp;if(r.shouldForwardProp){var j=r.shouldForwardProp;x=function(E,R){return T(E,R)&&j(E,R)}}else x=T}var O=new yo(t,w,o?n.componentStyle:void 0);function _(E,R){return(function(m,p,V){var G=m.attrs,hr=m.componentStyle,mr=m.defaultProps,Se=m.foldedComponentIds,ke=m.styledComponentId,gr=m.target,xe=D.useContext(ot),Ge=Kr(),he=m.shouldForwardProp||Ge.shouldForwardProp;process.env.NODE_ENV!=="production"&&D.useDebugValue(ke);var Ee=Dt(p,xe,mr)||ue,W=(function(H,X,C){for(var z,Y=M(M({},X),{className:void 0,theme:C}),$e=0;$e<H.length;$e+=1){var Ue=de(z=H[$e])?z(Y):z;for(var K in Ue)Y[K]=K==="className"?oe(Y[K],Ue[K]):K==="style"?M(M({},Y[K]),Ue[K]):Ue[K]}return X.className&&(Y.className=oe(Y.className,X.className)),Y})(G,p,Ee),Z=W.as||gr,s={};for(var d in W)W[d]===void 0||d[0]==="$"||d==="as"||d==="theme"&&W.theme===Ee||(d==="forwardedAs"?s.as=W.forwardedAs:he&&!he(d,Z)||(s[d]=W[d],he||process.env.NODE_ENV!=="development"||ht(d)||nt.has(d)||!er.has(Z)||(nt.add(d),console.warn('styled-components: it looks like an unknown prop "'.concat(d,'" 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 $=(function(H,X){var C=Kr(),z=H.generateAndInjectStyles(X,C.styleSheet,C.stylis);return process.env.NODE_ENV!=="production"&&D.useDebugValue(z),z})(hr,W);process.env.NODE_ENV!=="production"&&m.warnTooManyClasses&&m.warnTooManyClasses($);var A=oe(Se,ke);return $&&(A+=" "+$),W.className&&(A+=" "+W.className),s[or(Z)&&!er.has(Z)?"class":"className"]=A,V&&(s.ref=V),D.createElement(Z,s)})(k,E,R)}_.displayName=y;var k=D.forwardRef(_);return k.attrs=h,k.componentStyle=O,k.displayName=y,k.shouldForwardProp=x,k.foldedComponentIds=o?oe(n.foldedComponentIds,n.styledComponentId):"",k.styledComponentId=w,k.target=o?n.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=o?(function(R){for(var m=[],p=1;p<arguments.length;p++)m[p-1]=arguments[p];for(var V=0,G=m;V<G.length;V++)sr(R,G[V],!0);return R})({},n.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(jt(y,w),k.warnTooManyClasses=(function(E,R){var m={},p=!1;return function(V){if(!p&&(m[V]=!0,Object.keys(m).length>=200)){var G=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(G,`.
53
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
54
+ Example:
55
+ const Component = styled.div.attrs(props => ({
56
+ style: {
57
+ background: props.background,
58
+ },
59
+ }))\`width: 100%;\`
60
+
61
+ <Component />`),p=!0,m={}}}})(y,w)),ar(k,function(){return".".concat(k.styledComponentId)}),a&&Vr(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function st(e,r){for(var t=[e[0]],o=0,n=r.length;o<n;o+=1)t.push(r[o],e[o+1]);return t}var at=function(e){return Object.assign(e,{isCss:!0})};function b(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(de(e)||pe(e))return at(ne(st(ze,se([e],r,!0))));var o=e;return r.length===0&&o.length===1&&typeof o[0]=="string"?ne(o):at(ne(st(o,r)))}function lr(e,r,t){if(t===void 0&&(t=ue),!r)throw fe(1,r);var o=function(n){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(r,t,b.apply(void 0,se([n],a,!1)))};return o.attrs=function(n){return lr(e,r,M(M({},t),{attrs:Array.prototype.concat(t.attrs,n).filter(Boolean)}))},o.withConfig=function(n){return lr(e,r,M(M({},t),n))},o}var it=function(e){return lr(bo,e)},ve=it;er.forEach(function(e){ve[e]=it(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.
62
+ Perhaps you're looking to import 'styled-components/native'?
63
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ve="__sc-".concat(re,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ve]||(window[Ve]=0),window[Ve]===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.
64
+
65
+ See https://s-c.sh/2BAXzed for more info.`),window[Ve]+=1);const ur=e=>b`
66
+ @media (hover: hover) {
67
+ &:hover:not(:disabled) {
68
+ ${e}
69
+ }
70
+ }
71
+
72
+ @media (hover: none) {
73
+ &:active:not(:disabled) {
74
+ ${e}
75
+ }
76
+ }
77
+ `,vo=(e="1rem")=>b`
78
+ &:not(:last-child) {
79
+ margin-block-end: ${e};
80
+ }
81
+ `,wo=(e="1rem")=>b`
82
+ &:not(:first-child) {
83
+ margin-block-start: ${e};
84
+ }
85
+ `,So=(e="1rem",r)=>b`
86
+ ${wo(e)}
87
+ ${vo(e)}
88
+ `,ko=(e="1.5rem",r)=>b`
89
+ --ava: ${e};
90
+ max-width: var(--ava);
91
+ min-width: var(--ava);
92
+ width: var(--ava);
93
+ height: ${"var(--ava)"};
94
+ max-height: var(--ava);
95
+ `,xo=b`
96
+ path,
97
+ rect,
98
+ circle {
99
+ &[fill] {
100
+ fill: currentColor;
101
+ transition: 0.2s fill;
102
+ }
103
+
104
+ &[stroke] {
105
+ stroke: currentColor;
106
+ transition: 0.2s stroke;
107
+ }
108
+ }
109
+ `;b`
110
+ position: absolute;
111
+ top: 50%;
112
+ left: 50%;
113
+ transform: translate(-50%, -50%);
114
+ `,b`
115
+ list-style: none;
116
+ margin: 0;
117
+ padding-inline-start: 0;
118
+ ${So("0")}
119
+ `;const Eo=b`
120
+ max-width: 100%;
121
+ width: 100%;
122
+ height: 100%;
123
+ object-fit: contain;
124
+ `;b`
125
+ max-width: 100%;
126
+ width: 100%;
127
+ height: 100%;
128
+ object-fit: cover;
129
+ `;const c={colors:{bgPrimary:"var(--bg-primary, #1677ff)",bgDefault:"var(--bg-default, #d9d9d9)",bgWhite:"var(--bg-white, #fff)",colorText:"var(--color-text, #000)",colorWhite:"var(--color-white, #fff)",colorLink:"var(--color-link, #1677ff)",brDefault:"var(--br-default, #d9d9d9)",hover:{bgPrimary:"var(--hover-bg-primary, #4096ff)",colorLink:"var(--hover-color-link, #4096ff)"},pressed:{bgPrimary:"var(--pressed-bg-primary, #0958d9)",colorLink:"var(--pressed-color-link, #0958d9)"},disabled:{bgPrimary:"var(--disabled-bg-primary, #ddd)",colorText:"var(--disabled-color-text, #818181)",colorWhite:"var(--disabled-color-white, #818181)",brDefault:"var(--disabled-br-default, #ddd)"},button:{colorClose:"var(--button-color-close, #888888)",hoverColorClose:"var(--button-hover-color-close, #ff0000)"}},typography:{button:{fontFamily:"var(--button-font-family, system-ui)",fontSize:"var(--button-font-size, 0.875rem)",fontWeight:"var(--button-font-weight, 400)"}},radius:{button:{brSmall:"var(--button-br-small, 0.25rem)"}},padding:{button:"var(--button-padding, 0.5rem 1rem)"}},we=b`
130
+ font-style: normal;
131
+ line-height: 1.5;
132
+ width: fit-content;
133
+ background-color: transparent;
134
+ border: 0.0625rem solid transparent;
135
+ padding: 0;
136
+ cursor: pointer;
137
+ user-select: none;
138
+ transition: 0.2s color, 0.2s background-color, 0.2s border-color;
139
+
140
+ ${xo}
141
+
142
+ svg {
143
+ ${Eo}
144
+ }
145
+
146
+ &:focus-visible {
147
+ outline: none;
148
+ }
149
+
150
+ &:disabled {
151
+ background-color: ${c.colors.disabled.bgPrimary};
152
+ color: ${c.colors.disabled.colorWhite};
153
+ border-color: ${c.colors.disabled.brDefault};
154
+ pointer-events: none;
155
+ }
156
+ `,ct=b`
157
+ font-family: ${c.typography.button.fontFamily};
158
+ font-size: ${c.typography.button.fontSize};
159
+ font-weight: ${c.typography.button.fontWeight};
160
+ text-align: center;
161
+ display: flex;
162
+ align-items: center;
163
+ justify-content: center;
164
+ gap: 0.625rem;
165
+ `,dr=b`
166
+ ${ct}
167
+ ${we}
168
+ background-color: var(--background-color, ${c.colors.bgPrimary});
169
+ color: var(--color, ${c.colors.colorWhite});
170
+ border-color: var(--border-color, ${c.colors.bgPrimary});
171
+ border-radius: var(--border-radius, ${c.radius.button.brSmall});
172
+ padding: 0.5rem 1rem;
173
+
174
+ ${ur(b`
175
+ background-color: var(
176
+ --hover-background-color,
177
+ ${c.colors.hover.bgPrimary}
178
+ );
179
+ color: var(--hover-color, ${c.colors.colorWhite});
180
+ border-color: var(--hover-border-color, ${c.colors.hover.bgPrimary});
181
+ `)}
182
+
183
+ &:active:not(:disabled) {
184
+ background-color: var(
185
+ --pressed-background-color,
186
+ ${c.colors.pressed.bgPrimary}
187
+ );
188
+ color: var(--pressed-color, ${c.colors.colorWhite});
189
+ border-color: var(
190
+ --pressed-border-color,
191
+ ${c.colors.pressed.bgPrimary}
192
+ );
193
+ }
194
+ `,pr=b`
195
+ ${we}
196
+ ${dr}
197
+ --background-color: ${c.colors.bgPrimary};
198
+ --color: ${c.colors.colorWhite};
199
+ --border-color: ${c.colors.bgPrimary};
200
+ --border-radius: ${c.radius.button.brSmall};
201
+ --hover-background-color: ${c.colors.hover.bgPrimary};
202
+ --hover-color: ${c.colors.colorWhite};
203
+ --hover-border-color: ${c.colors.hover.bgPrimary};
204
+ --pressed-background-color: ${c.colors.pressed.bgPrimary};
205
+ --pressed-color: ${c.colors.colorWhite};
206
+ --pressed-border-color: ${c.colors.pressed.bgPrimary};
207
+ `,$o=ve.button`
208
+ ${we}
209
+ ${ct}
210
+
211
+ // Общие стили для всех кнопок
212
+ border-radius: ${c.radius.button.brSmall};
213
+ padding: ${c.padding.button};
214
+ `,Po=b`
215
+ ${dr}
216
+ --background-color: transparent;
217
+ --color: ${c.colors.colorText};
218
+ --border-color: ${c.colors.bgPrimary};
219
+ --border-radius: ${c.radius.button.brSmall};
220
+ --hover-background-color: ${c.colors.hover.bgPrimary};
221
+ --hover-color: ${c.colors.colorWhite};
222
+ --hover-border-color: ${c.colors.hover.bgPrimary};
223
+ --pressed-background-color: ${c.colors.pressed.bgPrimary};
224
+ --pressed-color: ${c.colors.colorWhite};
225
+ --pressed-border-color: ${c.colors.pressed.bgPrimary};
226
+ `,_o=b`
227
+ ${pr}
228
+ `,Ro=b`
229
+ color: var(--color, ${c.colors.colorLink});
230
+ border: none;
231
+ border-radius: 0;
232
+ padding: 0;
233
+
234
+ ${ur(b`
235
+ color: var(--hover-color, ${c.colors.hover.colorLink});
236
+ `)}
237
+
238
+ &:active:not(:disabled) {
239
+ color: var(--pressed-color, ${c.colors.pressed.colorLink});
240
+ }
241
+ `,Co=b`
242
+ ${we}
243
+ `,To=b`
244
+ ${dr}
245
+ --background-color: ${c.colors.bgWhite};
246
+ --color: ${c.colors.colorText};
247
+ --border-color: ${c.colors.bgWhite};
248
+ --border-radius: ${c.radius.button.brSmall};
249
+ --hover-background-color: ${c.colors.hover.bgPrimary};
250
+ --hover-color: ${c.colors.colorWhite};
251
+ --hover-border-color: ${c.colors.hover.bgPrimary};
252
+ --pressed-background-color: ${c.colors.pressed.bgPrimary};
253
+ --pressed-color: ${c.colors.colorWhite};
254
+ --pressed-border-color: ${c.colors.pressed.bgPrimary};
255
+ `,Ao=ve($o)`
256
+ ${({button:e})=>{switch(e){case"border":return Po;case"link":return Ro;case"white":return To;case"reset":return Co;default:return _o}}}
257
+ `,Oo=({children:e,disabled:r=!1,type:t="button",button:o="default",className:n="",...a})=>Q.jsx(Ao,{type:t,disabled:r,button:o,className:n,"aria-disabled":r,...a,children:e}),No=ve.button`
258
+ ${we}
259
+ ${ko("1.875rem")}
260
+
261
+ font-size: 0;
262
+ position: relative;
263
+ border-radius: 0.25rem;
264
+ color: ${e=>e.disabled?c.colors.disabled.colorText:e.color||c.colors.button.colorClose};
265
+
266
+ ${ur(b`
267
+ color: ${e=>e.disabled?c.colors.disabled.colorText:e.hoverColor||c.colors.button.hoverColorClose};
268
+ `)}
269
+
270
+ &:before {
271
+ content: "";
272
+ height: 100dvh;
273
+ position: fixed;
274
+ left: 50%;
275
+ top: 50%;
276
+ transform: translate(-50%, -50%);
277
+ width: 100vw;
278
+ z-index: -1;
279
+ }
280
+
281
+ path {
282
+ stroke: currentColor;
283
+ stroke-width: 0.125rem;
284
+ }
285
+ `,Io=({disabled:e=!1,className:r="",...t})=>Q.jsxs(No,{type:"button",className:r,disabled:e,"aria-label":"Close",...t,children:[Q.jsx("span",{style:{display:"none"},children:"Close"}),Q.jsxs("svg",{viewBox:"0 0 24 25",children:[Q.jsx("path",{d:"M6.34314 18.1567L17.6568 6.84303"}),Q.jsx("path",{d:"M17.6569 18.1567L6.34315 6.84303"})]})]}),fr=b`
286
+ border: 1px solid ${c.colors.brDefault};
287
+ padding: 8px 12px;
288
+ border-radius: 4px;
289
+ width: 100%;
290
+
291
+ &::placeholder {
292
+ color: #999;
293
+ }
294
+ `,jo=b`
295
+ ${pr}
296
+ display: inline-block;
297
+ text-align: center;
298
+ `,Do=b`
299
+ margin-right: 8px;
300
+ transform: scale(1.2);
301
+
302
+ &:checked {
303
+ accent-color: ${c.colors.bgPrimary};
304
+ }
305
+ `,Mo=b`
306
+ width: 50px;
307
+ height: 30px;
308
+ padding: 2px;
309
+ border: 1px solid ${c.colors.brDefault};
310
+ border-radius: 4px;
311
+ cursor: pointer;
312
+ `,zo=b`
313
+ padding: 8px;
314
+ border: 1px dashed ${c.colors.brDefault};
315
+ border-radius: 4px;
316
+ width: 100%;
317
+ cursor: pointer;
318
+
319
+ &::file-selector-button {
320
+ ${pr}
321
+ margin-right: 12px;
322
+ }
323
+ `,Lo=b`
324
+ ${fr}
325
+
326
+ &::-webkit-inner-spin-button,
327
+ &::-webkit-outer-spin-button {
328
+ margin: 0;
329
+ }
330
+ `,Wo=b`
331
+ width: 100%;
332
+ height: 6px;
333
+ background: ${c.colors.bgDefault};
334
+ border-radius: 3px;
335
+ outline: none;
336
+
337
+ &::-webkit-slider-thumb {
338
+ width: 18px;
339
+ height: 18px;
340
+ border-radius: 50%;
341
+ background: ${c.colors.bgPrimary};
342
+ cursor: pointer;
343
+ appearance: none;
344
+ }
345
+
346
+ &::-moz-range-thumb {
347
+ width: 18px;
348
+ height: 18px;
349
+ border-radius: 50%;
350
+ background: ${c.colors.bgPrimary};
351
+ cursor: pointer;
352
+ border: none;
353
+ }
354
+ `,Fo=b`
355
+ padding: 10px 20px;
356
+ border: none;
357
+ border-radius: 4px;
358
+ cursor: pointer;
359
+ font-weight: bold;
360
+ background-color: ${c.colors.bgPrimary};
361
+ color: ${c.colors.colorWhite};
362
+
363
+ &:hover:not(:disabled) {
364
+ background-color: ${c.colors.hover.bgPrimary};
365
+ }
366
+ `,Yo=b`
367
+ display: none;
368
+ `,Bo=e=>{switch(e){case"button":case"submit":case"reset":return jo;case"checkbox":case"radio":return Do;case"color":return Mo;case"date":case"datetime-local":case"month":case"time":case"week":return fr;case"file":return zo;case"image":return Fo;case"number":return Lo;case"range":return Wo;case"hidden":return Yo;default:return fr}},Vo=ve.input`
369
+ ${({type:e})=>Bo(e)}
370
+ `,Go=({id:e,type:r,name:t,className:o,disabled:n,required:a,readOnly:i,onBlur:u,onFocus:l,onClick:v,...g})=>Q.jsx(Vo,{type:r,className:o,name:t,id:e,disabled:n,required:a,readOnly:i,onBlur:u,onFocus:l,onClick:v,...g});U.Button=Oo,U.ButtonClose=Io,U.Input=Go,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kilya-ui",
3
3
  "private": false,
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -26,6 +26,8 @@
26
26
  "build-storybook": "storybook build"
27
27
  },
28
28
  "dependencies": {
29
+ "@emotion/styled": "^11.14.1",
30
+ "@types/styled-components": "^5.1.36",
29
31
  "classnames": "^2.5.1",
30
32
  "react": "*",
31
33
  "react-dom": "*"
package/dist/kilya-ui.css DELETED
@@ -1 +0,0 @@
1
- .kilya-button-white path[fill],.kilya-button-reset path[fill],.kilya-button-link path[fill],.kilya-button-border path[fill],.kilya-button-default path[fill],.kilya-button-white rect[fill],.kilya-button-reset rect[fill],.kilya-button-link rect[fill],.kilya-button-border rect[fill],.kilya-button-default rect[fill],.kilya-button-white circle[fill],.kilya-button-reset circle[fill],.kilya-button-link circle[fill],.kilya-button-border circle[fill],.kilya-button-default circle[fill]{fill:currentColor;transition:.2s fill}.kilya-button-white path[stroke],.kilya-button-reset path[stroke],.kilya-button-link path[stroke],.kilya-button-border path[stroke],.kilya-button-default path[stroke],.kilya-button-white rect[stroke],.kilya-button-reset rect[stroke],.kilya-button-link rect[stroke],.kilya-button-border rect[stroke],.kilya-button-default rect[stroke],.kilya-button-white circle[stroke],.kilya-button-reset circle[stroke],.kilya-button-link circle[stroke],.kilya-button-border circle[stroke],.kilya-button-default circle[stroke]{stroke:currentColor;transition:.2s stroke}.kilya-button-white svg,.kilya-button-reset svg,.kilya-button-link svg,.kilya-button-border svg,.kilya-button-default svg{max-width:100%;width:100%;height:100%;object-fit:contain}.kilya-button-white,.kilya-button-reset,.kilya-button-link,.kilya-button-border,.kilya-button-default{font-style:normal;line-height:1.5;width:fit-content;background-color:transparent;border:.0625rem solid transparent;padding:0;cursor:pointer;-webkit-user-select:none;user-select:none;transition:.2s color,.2s background-color,.2s border-color}.kilya-button-white:focus-visible,.kilya-button-reset:focus-visible,.kilya-button-link:focus-visible,.kilya-button-border:focus-visible,.kilya-button-default:focus-visible{outline:none}.kilya-button-white:disabled,.kilya-button-reset:disabled,.kilya-button-link:disabled,.kilya-button-border:disabled,.kilya-button-default:disabled{background-color:var(--disabled-bg-primary, #ddd);color:var(--disabled-color-white, #818181);border-color:var(--disabled-br-default, #ddd);pointer-events:none}.kilya-button-white,.kilya-button-border,.kilya-button-default{font-family:var(--button-font-family);font-size:var(--button-font-size);font-weight:var(--button-font-weight);text-align:center;display:flex;align-items:center;justify-content:center;gap:.625rem}.kilya-button-white,.kilya-button-border,.kilya-button-default{background-color:var(--background-color);color:var(--color);border-color:var(--border-color);border-radius:var(--border-radius);padding:.5rem 1rem}@media(hover:hover){.kilya-button-white:hover,.kilya-button-border:hover,.kilya-button-default:hover{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}@media(hover:none){.kilya-button-white:active,.kilya-button-border:active,.kilya-button-default:active{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}.kilya-button-white:active,.kilya-button-border:active,.kilya-button-default:active{background-color:var(--pressed-background-color);color:var(--pressed-color);border-color:var(--pressed-border-color)}.kilya-button-default{--background-color: var(--bg-primary, #1677ff);--color: var(--color-white, #fff);--border-color: var(--bg-primary, #1677ff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}.kilya-button-border{--background-color: transparent;--color: var(--color-text, #000);--border-color: var(--bg-primary, #1677ff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}.kilya-button-link{--color: var(--color-link, #1677ff);--hover-color: var(--hover-color-link, #4096ff);--pressed-color: var(--pressed-color-link, #0958d9);color:var(--color);border:none;border-radius:0}@media(hover:hover){.kilya-button-link:hover{color:var(--hover-color)}}@media(hover:none){.kilya-button-link:active{color:var(--hover-color)}}.kilya-button-link:active{color:var(--pressed-color)}.kilya-button-white{--background-color: var(--bg-white, #fff);--color: var(--color-text, #000);--border-color: var(--bg-white, #fff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}._kilya-button-close_cfuu0_1 path[fill],._kilya-button-close_cfuu0_1 rect[fill],._kilya-button-close_cfuu0_1 circle[fill]{fill:currentColor;transition:.2s fill}._kilya-button-close_cfuu0_1 path[stroke],._kilya-button-close_cfuu0_1 rect[stroke],._kilya-button-close_cfuu0_1 circle[stroke]{stroke:currentColor;transition:.2s stroke}._kilya-button-close_cfuu0_1 svg{max-width:100%;width:100%;height:100%;object-fit:contain}._kilya-button-close_cfuu0_1{font-style:normal;line-height:1.5;width:fit-content;background-color:transparent;border:.0625rem solid transparent;padding:0;cursor:pointer;-webkit-user-select:none;user-select:none;transition:.2s color,.2s background-color,.2s border-color}._kilya-button-close_cfuu0_1:focus-visible{outline:none}._kilya-button-close_cfuu0_1:disabled{background-color:var(--disabled-bg-primary, #ddd);color:var(--disabled-color-white, #818181);border-color:var(--disabled-br-default, #ddd);pointer-events:none}._kilya-button-close_cfuu0_1{--ava: 1.875rem;max-width:var(--ava);min-width:var(--ava);width:var(--ava);height:var(--ava);max-height:var(--ava);font-size:0;position:relative;border-radius:.25rem;color:var(--button-color-close)}@media(hover:hover){._kilya-button-close_cfuu0_1:hover{color:var(--button-hover-color-close)}}@media(hover:none){._kilya-button-close_cfuu0_1:active{color:var(--button-hover-color-close)}}._kilya-button-close_cfuu0_1:before{content:"";height:100dvh;position:fixed;left:50%;top:50%;translate:-50% -50%;width:100vw;z-index:-1}._kilya-button-close_cfuu0_1 path{stroke:currentColor;stroke-width:.125rem}.kilya-input-button path[fill],.kilya-input-submit path[fill],.kilya-input-reset path[fill],.kilya-input-button rect[fill],.kilya-input-submit rect[fill],.kilya-input-reset rect[fill],.kilya-input-button circle[fill],.kilya-input-submit circle[fill],.kilya-input-reset circle[fill]{fill:currentColor;transition:.2s fill}.kilya-input-button path[stroke],.kilya-input-submit path[stroke],.kilya-input-reset path[stroke],.kilya-input-button rect[stroke],.kilya-input-submit rect[stroke],.kilya-input-reset rect[stroke],.kilya-input-button circle[stroke],.kilya-input-submit circle[stroke],.kilya-input-reset circle[stroke]{stroke:currentColor;transition:.2s stroke}.kilya-input-button svg,.kilya-input-submit svg,.kilya-input-reset svg{max-width:100%;width:100%;height:100%;object-fit:contain}.kilya-input-button,.kilya-input-submit,.kilya-input-reset{font-style:normal;line-height:1.5;width:fit-content;background-color:transparent;border:.0625rem solid transparent;padding:0;cursor:pointer;-webkit-user-select:none;user-select:none;transition:.2s color,.2s background-color,.2s border-color}.kilya-input-button:focus-visible,.kilya-input-submit:focus-visible,.kilya-input-reset:focus-visible{outline:none}.kilya-input-button:disabled,.kilya-input-submit:disabled,.kilya-input-reset:disabled{background-color:var(--disabled-bg-primary, #ddd);color:var(--disabled-color-white, #818181);border-color:var(--disabled-br-default, #ddd);pointer-events:none}.kilya-input-button,.kilya-input-submit,.kilya-input-reset{font-family:var(--button-font-family);font-size:var(--button-font-size);font-weight:var(--button-font-weight);text-align:center;display:flex;align-items:center;justify-content:center;gap:.625rem}.kilya-input-button,.kilya-input-submit,.kilya-input-reset{background-color:var(--background-color);color:var(--color);border-color:var(--border-color);border-radius:var(--border-radius);padding:.5rem 1rem}@media(hover:hover){.kilya-input-button:hover,.kilya-input-submit:hover,.kilya-input-reset:hover{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}@media(hover:none){.kilya-input-button:active,.kilya-input-submit:active,.kilya-input-reset:active{background-color:var(--hover-background-color);color:var(--hover-color);border-color:var(--hover-border-color)}}.kilya-input-button:active,.kilya-input-submit:active,.kilya-input-reset:active{background-color:var(--pressed-background-color);color:var(--pressed-color);border-color:var(--pressed-border-color)}.kilya-input-button,.kilya-input-submit,.kilya-input-reset{--background-color: var(--bg-primary, #1677ff);--color: var(--color-white, #fff);--border-color: var(--bg-primary, #1677ff);--border-radius: var(--button-br-small);--hover-background-color: var(--hover-bg-primary, #4096ff);--hover-color: var(--color-white, #fff);--hover-border-color: var(--hover-bg-primary, #4096ff);--pressed-background-color: var(--pressed-bg-primary, #0958d9);--pressed-color: var(--color-white, #fff);--pressed-border-color: var(--pressed-bg-primary, #0958d9)}:root{--bg-primary: #1677ff;--bg-default: #d9d9d9;--bg-white: #fff;--color-text: #000;--color-white: #fff;--color-link: #1677ff;--br-default: #d9d9d9;--hover-bg-primary: #4096ff;--hover-bg-default: #0000000f;--hover-color-link: #4096ff;--hover-br-default: #0000000f;--focused-bg-primary: #4096ff;--focused-bg-default: #0000000f;--focused-color-link: #4096ff;--focused-br-default: #0000000f;--pressed-bg-primary: #0958d9;--pressed-bg-default: #00000026;--pressed-color-link: #0958d9;--pressed-br-default: #00000026;--disabled-bg-primary: #ddd;--disabled-bg-default: #ddd;--disabled-bg-white: #ddd;--disabled-color-text: #818181;--disabled-color-white: #818181;--disabled-color-link: #818181;--disabled-br-default: #ddd;--button-br-small: .25rem;--button-font-family: monospace;--button-font-size: 1rem;--button-font-weight: 300;--button-color-close: #000;--button-hover-color-close: #ff0000}html{font-size:16px}.kilya-input-color{width:50px;height:30px;padding:2px}.kilya-input-checkbox,.kilya-input-radio{margin-right:8px;transform:scale(1.2)}.kilya-input-date,.kilya-input-datetime-local,.kilya-input-month,.kilya-input-time,.kilya-input-week{border:1px solid #ccc;padding:8px;font-family:inherit}.kilya-input-file{padding:8px;border:1px dashed #ccc}.kilya-input-number,.kilya-input-text,.kilya-input-email,.kilya-input-password,.kilya-input-search,.kilya-input-tel,.kilya-input-url{border:1px solid #ccc;padding:8px 12px;border-radius:4px;font-size:14px}.kilya-input-image{padding:10px 20px;border:none;border-radius:4px;cursor:pointer;font-weight:700}.kilya-input-hidden{display:none}.kilya-input-range{width:100%;height:6px}