@teamturing/react-kit 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +55 -1665
- package/esm/core/Button/index.js +9 -3
- package/esm/core/Chip/index.js +5 -2
- package/esm/core/GradientText/index.js +6 -8
- package/esm/core/Grid/index.js +5 -2
- package/esm/core/IconButton/index.js +5 -2
- package/esm/core/IconToggleButton/index.js +5 -2
- package/esm/core/Space/index.js +5 -6
- package/esm/core/Spinner/index.js +6 -12
- package/esm/core/Stack/index.js +5 -2
- package/esm/core/Text/index.js +5 -2
- package/esm/core/View/index.js +5 -5
- package/esm/core/_UnstyledButton.js +5 -10
- package/package.json +7 -6
- package/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -12
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -51
- package/esm/node_modules/styled-components/dist/styled-components.esm.js +0 -657
- package/esm/node_modules/stylis/src/Enum.js +0 -11
- package/esm/node_modules/stylis/src/Middleware.js +0 -85
- package/esm/node_modules/stylis/src/Parser.js +0 -187
- package/esm/node_modules/stylis/src/Prefixer.js +0 -197
- package/esm/node_modules/stylis/src/Serializer.js +0 -39
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -242
- package/esm/node_modules/stylis/src/Utility.js +0 -128
- package/esm/node_modules/tslib/tslib.es6.js +0 -44
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var styled = require('styled-components');
|
|
4
5
|
|
|
5
6
|
function _interopNamespaceDefault(e) {
|
|
6
7
|
var n = Object.create(null);
|
|
@@ -565,1631 +566,10 @@ const typography$1 = {
|
|
|
565
566
|
}
|
|
566
567
|
};
|
|
567
568
|
|
|
568
|
-
/******************************************************************************
|
|
569
|
-
Copyright (c) Microsoft Corporation.
|
|
570
|
-
|
|
571
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
572
|
-
purpose with or without fee is hereby granted.
|
|
573
|
-
|
|
574
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
575
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
576
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
577
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
578
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
579
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
580
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
581
|
-
***************************************************************************** */
|
|
582
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
var __assign = function() {
|
|
586
|
-
__assign = Object.assign || function __assign(t) {
|
|
587
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
588
|
-
s = arguments[i];
|
|
589
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
590
|
-
}
|
|
591
|
-
return t;
|
|
592
|
-
};
|
|
593
|
-
return __assign.apply(this, arguments);
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
function __spreadArray(to, from, pack) {
|
|
597
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
598
|
-
if (ar || !(i in from)) {
|
|
599
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
600
|
-
ar[i] = from[i];
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
607
|
-
var e = new Error(message);
|
|
608
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
function memoize(fn) {
|
|
612
|
-
var cache = Object.create(null);
|
|
613
|
-
return function (arg) {
|
|
614
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
615
|
-
return cache[arg];
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
620
|
-
|
|
621
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
622
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
623
|
-
/* o */ && prop.charCodeAt(1) === 110
|
|
624
|
-
/* n */ && prop.charCodeAt(2) < 91;
|
|
625
|
-
}
|
|
626
|
-
/* Z+1 */);
|
|
627
|
-
|
|
628
569
|
function getDefaultExportFromCjs (x) {
|
|
629
570
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
630
571
|
}
|
|
631
572
|
|
|
632
|
-
var MS = '-ms-';
|
|
633
|
-
var MOZ = '-moz-';
|
|
634
|
-
var WEBKIT = '-webkit-';
|
|
635
|
-
var COMMENT = 'comm';
|
|
636
|
-
var RULESET = 'rule';
|
|
637
|
-
var DECLARATION = 'decl';
|
|
638
|
-
var IMPORT = '@import';
|
|
639
|
-
var KEYFRAMES = '@keyframes';
|
|
640
|
-
var LAYER = '@layer';
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* @param {number}
|
|
644
|
-
* @return {number}
|
|
645
|
-
*/
|
|
646
|
-
var abs = Math.abs;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* @param {number}
|
|
650
|
-
* @return {string}
|
|
651
|
-
*/
|
|
652
|
-
var from = String.fromCharCode;
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* @param {object}
|
|
656
|
-
* @return {object}
|
|
657
|
-
*/
|
|
658
|
-
var assign$1 = Object.assign;
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* @param {string} value
|
|
662
|
-
* @param {number} length
|
|
663
|
-
* @return {number}
|
|
664
|
-
*/
|
|
665
|
-
function hash(value, length) {
|
|
666
|
-
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* @param {string} value
|
|
671
|
-
* @return {string}
|
|
672
|
-
*/
|
|
673
|
-
function trim(value) {
|
|
674
|
-
return value.trim();
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* @param {string} value
|
|
679
|
-
* @param {RegExp} pattern
|
|
680
|
-
* @return {string?}
|
|
681
|
-
*/
|
|
682
|
-
function match(value, pattern) {
|
|
683
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* @param {string} value
|
|
688
|
-
* @param {(string|RegExp)} pattern
|
|
689
|
-
* @param {string} replacement
|
|
690
|
-
* @return {string}
|
|
691
|
-
*/
|
|
692
|
-
function replace(value, pattern, replacement) {
|
|
693
|
-
return value.replace(pattern, replacement);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* @param {string} value
|
|
698
|
-
* @param {string} search
|
|
699
|
-
* @return {number}
|
|
700
|
-
*/
|
|
701
|
-
function indexof(value, search) {
|
|
702
|
-
return value.indexOf(search);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* @param {string} value
|
|
707
|
-
* @param {number} index
|
|
708
|
-
* @return {number}
|
|
709
|
-
*/
|
|
710
|
-
function charat(value, index) {
|
|
711
|
-
return value.charCodeAt(index) | 0;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* @param {string} value
|
|
716
|
-
* @param {number} begin
|
|
717
|
-
* @param {number} end
|
|
718
|
-
* @return {string}
|
|
719
|
-
*/
|
|
720
|
-
function substr(value, begin, end) {
|
|
721
|
-
return value.slice(begin, end);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* @param {string} value
|
|
726
|
-
* @return {number}
|
|
727
|
-
*/
|
|
728
|
-
function strlen(value) {
|
|
729
|
-
return value.length;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* @param {any[]} value
|
|
734
|
-
* @return {number}
|
|
735
|
-
*/
|
|
736
|
-
function sizeof(value) {
|
|
737
|
-
return value.length;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* @param {any} value
|
|
742
|
-
* @param {any[]} array
|
|
743
|
-
* @return {any}
|
|
744
|
-
*/
|
|
745
|
-
function append(value, array) {
|
|
746
|
-
return array.push(value), value;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* @param {string[]} array
|
|
751
|
-
* @param {function} callback
|
|
752
|
-
* @return {string}
|
|
753
|
-
*/
|
|
754
|
-
function combine(array, callback) {
|
|
755
|
-
return array.map(callback).join('');
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* @param {string[]} array
|
|
760
|
-
* @param {RegExp} pattern
|
|
761
|
-
* @return {string[]}
|
|
762
|
-
*/
|
|
763
|
-
function filter(array, pattern) {
|
|
764
|
-
return array.filter(function (value) {
|
|
765
|
-
return !match(value, pattern);
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
var line = 1;
|
|
770
|
-
var column = 1;
|
|
771
|
-
var length = 0;
|
|
772
|
-
var position$1 = 0;
|
|
773
|
-
var character = 0;
|
|
774
|
-
var characters = '';
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* @param {string} value
|
|
778
|
-
* @param {object | null} root
|
|
779
|
-
* @param {object | null} parent
|
|
780
|
-
* @param {string} type
|
|
781
|
-
* @param {string[] | string} props
|
|
782
|
-
* @param {object[] | string} children
|
|
783
|
-
* @param {object[]} siblings
|
|
784
|
-
* @param {number} length
|
|
785
|
-
*/
|
|
786
|
-
function node(value, root, parent, type, props, children, length, siblings) {
|
|
787
|
-
return {
|
|
788
|
-
value: value,
|
|
789
|
-
root: root,
|
|
790
|
-
parent: parent,
|
|
791
|
-
type: type,
|
|
792
|
-
props: props,
|
|
793
|
-
children: children,
|
|
794
|
-
line: line,
|
|
795
|
-
column: column,
|
|
796
|
-
length: length,
|
|
797
|
-
return: '',
|
|
798
|
-
siblings: siblings
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* @param {object} root
|
|
804
|
-
* @param {object} props
|
|
805
|
-
* @return {object}
|
|
806
|
-
*/
|
|
807
|
-
function copy(root, props) {
|
|
808
|
-
return assign$1(node('', null, null, '', null, null, 0, root.siblings), root, {
|
|
809
|
-
length: -root.length
|
|
810
|
-
}, props);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* @param {object} root
|
|
815
|
-
*/
|
|
816
|
-
function lift(root) {
|
|
817
|
-
while (root.root) root = copy(root.root, {
|
|
818
|
-
children: [root]
|
|
819
|
-
});
|
|
820
|
-
append(root, root.siblings);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
/**
|
|
824
|
-
* @return {number}
|
|
825
|
-
*/
|
|
826
|
-
function char() {
|
|
827
|
-
return character;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* @return {number}
|
|
832
|
-
*/
|
|
833
|
-
function prev() {
|
|
834
|
-
character = position$1 > 0 ? charat(characters, --position$1) : 0;
|
|
835
|
-
if (column--, character === 10) column = 1, line--;
|
|
836
|
-
return character;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* @return {number}
|
|
841
|
-
*/
|
|
842
|
-
function next() {
|
|
843
|
-
character = position$1 < length ? charat(characters, position$1++) : 0;
|
|
844
|
-
if (column++, character === 10) column = 1, line++;
|
|
845
|
-
return character;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* @return {number}
|
|
850
|
-
*/
|
|
851
|
-
function peek() {
|
|
852
|
-
return charat(characters, position$1);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* @return {number}
|
|
857
|
-
*/
|
|
858
|
-
function caret() {
|
|
859
|
-
return position$1;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* @param {number} begin
|
|
864
|
-
* @param {number} end
|
|
865
|
-
* @return {string}
|
|
866
|
-
*/
|
|
867
|
-
function slice(begin, end) {
|
|
868
|
-
return substr(characters, begin, end);
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* @param {number} type
|
|
873
|
-
* @return {number}
|
|
874
|
-
*/
|
|
875
|
-
function token(type) {
|
|
876
|
-
switch (type) {
|
|
877
|
-
// \0 \t \n \r \s whitespace token
|
|
878
|
-
case 0:
|
|
879
|
-
case 9:
|
|
880
|
-
case 10:
|
|
881
|
-
case 13:
|
|
882
|
-
case 32:
|
|
883
|
-
return 5;
|
|
884
|
-
// ! + , / > @ ~ isolate token
|
|
885
|
-
case 33:
|
|
886
|
-
case 43:
|
|
887
|
-
case 44:
|
|
888
|
-
case 47:
|
|
889
|
-
case 62:
|
|
890
|
-
case 64:
|
|
891
|
-
case 126:
|
|
892
|
-
// ; { } breakpoint token
|
|
893
|
-
case 59:
|
|
894
|
-
case 123:
|
|
895
|
-
case 125:
|
|
896
|
-
return 4;
|
|
897
|
-
// : accompanied token
|
|
898
|
-
case 58:
|
|
899
|
-
return 3;
|
|
900
|
-
// " ' ( [ opening delimit token
|
|
901
|
-
case 34:
|
|
902
|
-
case 39:
|
|
903
|
-
case 40:
|
|
904
|
-
case 91:
|
|
905
|
-
return 2;
|
|
906
|
-
// ) ] closing delimit token
|
|
907
|
-
case 41:
|
|
908
|
-
case 93:
|
|
909
|
-
return 1;
|
|
910
|
-
}
|
|
911
|
-
return 0;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
* @param {string} value
|
|
916
|
-
* @return {any[]}
|
|
917
|
-
*/
|
|
918
|
-
function alloc(value) {
|
|
919
|
-
return line = column = 1, length = strlen(characters = value), position$1 = 0, [];
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* @param {any} value
|
|
924
|
-
* @return {any}
|
|
925
|
-
*/
|
|
926
|
-
function dealloc(value) {
|
|
927
|
-
return characters = '', value;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* @param {number} type
|
|
932
|
-
* @return {string}
|
|
933
|
-
*/
|
|
934
|
-
function delimit(type) {
|
|
935
|
-
return trim(slice(position$1 - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* @param {number} type
|
|
940
|
-
* @return {string}
|
|
941
|
-
*/
|
|
942
|
-
function whitespace(type) {
|
|
943
|
-
while (character = peek()) if (character < 33) next();else break;
|
|
944
|
-
return token(type) > 2 || token(character) > 3 ? '' : ' ';
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* @param {number} index
|
|
949
|
-
* @param {number} count
|
|
950
|
-
* @return {string}
|
|
951
|
-
*/
|
|
952
|
-
function escaping(index, count) {
|
|
953
|
-
while (--count && next())
|
|
954
|
-
// not 0-9 A-F a-f
|
|
955
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
956
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* @param {number} type
|
|
961
|
-
* @return {number}
|
|
962
|
-
*/
|
|
963
|
-
function delimiter(type) {
|
|
964
|
-
while (next()) switch (character) {
|
|
965
|
-
// ] ) " '
|
|
966
|
-
case type:
|
|
967
|
-
return position$1;
|
|
968
|
-
// " '
|
|
969
|
-
case 34:
|
|
970
|
-
case 39:
|
|
971
|
-
if (type !== 34 && type !== 39) delimiter(character);
|
|
972
|
-
break;
|
|
973
|
-
// (
|
|
974
|
-
case 40:
|
|
975
|
-
if (type === 41) delimiter(type);
|
|
976
|
-
break;
|
|
977
|
-
// \
|
|
978
|
-
case 92:
|
|
979
|
-
next();
|
|
980
|
-
break;
|
|
981
|
-
}
|
|
982
|
-
return position$1;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
/**
|
|
986
|
-
* @param {number} type
|
|
987
|
-
* @param {number} index
|
|
988
|
-
* @return {number}
|
|
989
|
-
*/
|
|
990
|
-
function commenter(type, index) {
|
|
991
|
-
while (next())
|
|
992
|
-
// //
|
|
993
|
-
if (type + character === 47 + 10) break;
|
|
994
|
-
// /*
|
|
995
|
-
else if (type + character === 42 + 42 && peek() === 47) break;
|
|
996
|
-
return '/*' + slice(index, position$1 - 1) + '*' + from(type === 47 ? type : next());
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* @param {number} index
|
|
1001
|
-
* @return {string}
|
|
1002
|
-
*/
|
|
1003
|
-
function identifier(index) {
|
|
1004
|
-
while (!token(peek())) next();
|
|
1005
|
-
return slice(index, position$1);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* @param {string} value
|
|
1010
|
-
* @return {object[]}
|
|
1011
|
-
*/
|
|
1012
|
-
function compile(value) {
|
|
1013
|
-
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* @param {string} value
|
|
1018
|
-
* @param {object} root
|
|
1019
|
-
* @param {object?} parent
|
|
1020
|
-
* @param {string[]} rule
|
|
1021
|
-
* @param {string[]} rules
|
|
1022
|
-
* @param {string[]} rulesets
|
|
1023
|
-
* @param {number[]} pseudo
|
|
1024
|
-
* @param {number[]} points
|
|
1025
|
-
* @param {string[]} declarations
|
|
1026
|
-
* @return {object}
|
|
1027
|
-
*/
|
|
1028
|
-
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
1029
|
-
var index = 0;
|
|
1030
|
-
var offset = 0;
|
|
1031
|
-
var length = pseudo;
|
|
1032
|
-
var atrule = 0;
|
|
1033
|
-
var property = 0;
|
|
1034
|
-
var previous = 0;
|
|
1035
|
-
var variable = 1;
|
|
1036
|
-
var scanning = 1;
|
|
1037
|
-
var ampersand = 1;
|
|
1038
|
-
var character = 0;
|
|
1039
|
-
var type = '';
|
|
1040
|
-
var props = rules;
|
|
1041
|
-
var children = rulesets;
|
|
1042
|
-
var reference = rule;
|
|
1043
|
-
var characters = type;
|
|
1044
|
-
while (scanning) switch (previous = character, character = next()) {
|
|
1045
|
-
// (
|
|
1046
|
-
case 40:
|
|
1047
|
-
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
1048
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1) ampersand = -1;
|
|
1049
|
-
break;
|
|
1050
|
-
}
|
|
1051
|
-
// " ' [
|
|
1052
|
-
case 34:
|
|
1053
|
-
case 39:
|
|
1054
|
-
case 91:
|
|
1055
|
-
characters += delimit(character);
|
|
1056
|
-
break;
|
|
1057
|
-
// \t \n \r \s
|
|
1058
|
-
case 9:
|
|
1059
|
-
case 10:
|
|
1060
|
-
case 13:
|
|
1061
|
-
case 32:
|
|
1062
|
-
characters += whitespace(previous);
|
|
1063
|
-
break;
|
|
1064
|
-
// \
|
|
1065
|
-
case 92:
|
|
1066
|
-
characters += escaping(caret() - 1, 7);
|
|
1067
|
-
continue;
|
|
1068
|
-
// /
|
|
1069
|
-
case 47:
|
|
1070
|
-
switch (peek()) {
|
|
1071
|
-
case 42:
|
|
1072
|
-
case 47:
|
|
1073
|
-
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
1074
|
-
break;
|
|
1075
|
-
default:
|
|
1076
|
-
characters += '/';
|
|
1077
|
-
}
|
|
1078
|
-
break;
|
|
1079
|
-
// {
|
|
1080
|
-
case 123 * variable:
|
|
1081
|
-
points[index++] = strlen(characters) * ampersand;
|
|
1082
|
-
// } ; \0
|
|
1083
|
-
case 125 * variable:
|
|
1084
|
-
case 59:
|
|
1085
|
-
case 0:
|
|
1086
|
-
switch (character) {
|
|
1087
|
-
// \0 }
|
|
1088
|
-
case 0:
|
|
1089
|
-
case 125:
|
|
1090
|
-
scanning = 0;
|
|
1091
|
-
// ;
|
|
1092
|
-
case 59 + offset:
|
|
1093
|
-
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
1094
|
-
if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
1095
|
-
break;
|
|
1096
|
-
// @ ;
|
|
1097
|
-
case 59:
|
|
1098
|
-
characters += ';';
|
|
1099
|
-
// { rule/at-rule
|
|
1100
|
-
default:
|
|
1101
|
-
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
1102
|
-
if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
1103
|
-
// d l m s
|
|
1104
|
-
case 100:
|
|
1105
|
-
case 108:
|
|
1106
|
-
case 109:
|
|
1107
|
-
case 115:
|
|
1108
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
1109
|
-
break;
|
|
1110
|
-
default:
|
|
1111
|
-
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
1115
|
-
break;
|
|
1116
|
-
// :
|
|
1117
|
-
case 58:
|
|
1118
|
-
length = 1 + strlen(characters), property = previous;
|
|
1119
|
-
default:
|
|
1120
|
-
if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
1121
|
-
switch (characters += from(character), character * variable) {
|
|
1122
|
-
// &
|
|
1123
|
-
case 38:
|
|
1124
|
-
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
1125
|
-
break;
|
|
1126
|
-
// ,
|
|
1127
|
-
case 44:
|
|
1128
|
-
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
1129
|
-
break;
|
|
1130
|
-
// @
|
|
1131
|
-
case 64:
|
|
1132
|
-
// -
|
|
1133
|
-
if (peek() === 45) characters += delimit(next());
|
|
1134
|
-
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
1135
|
-
break;
|
|
1136
|
-
// -
|
|
1137
|
-
case 45:
|
|
1138
|
-
if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
return rulesets;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* @param {string} value
|
|
1146
|
-
* @param {object} root
|
|
1147
|
-
* @param {object?} parent
|
|
1148
|
-
* @param {number} index
|
|
1149
|
-
* @param {number} offset
|
|
1150
|
-
* @param {string[]} rules
|
|
1151
|
-
* @param {number[]} points
|
|
1152
|
-
* @param {string} type
|
|
1153
|
-
* @param {string[]} props
|
|
1154
|
-
* @param {string[]} children
|
|
1155
|
-
* @param {number} length
|
|
1156
|
-
* @param {object[]} siblings
|
|
1157
|
-
* @return {object}
|
|
1158
|
-
*/
|
|
1159
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
1160
|
-
var post = offset - 1;
|
|
1161
|
-
var rule = offset === 0 ? rules : [''];
|
|
1162
|
-
var size = sizeof(rule);
|
|
1163
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
|
|
1164
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* @param {number} value
|
|
1169
|
-
* @param {object} root
|
|
1170
|
-
* @param {object?} parent
|
|
1171
|
-
* @param {object[]} siblings
|
|
1172
|
-
* @return {object}
|
|
1173
|
-
*/
|
|
1174
|
-
function comment(value, root, parent, siblings) {
|
|
1175
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
/**
|
|
1179
|
-
* @param {string} value
|
|
1180
|
-
* @param {object} root
|
|
1181
|
-
* @param {object?} parent
|
|
1182
|
-
* @param {number} length
|
|
1183
|
-
* @param {object[]} siblings
|
|
1184
|
-
* @return {object}
|
|
1185
|
-
*/
|
|
1186
|
-
function declaration(value, root, parent, length, siblings) {
|
|
1187
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
/**
|
|
1191
|
-
* @param {string} value
|
|
1192
|
-
* @param {number} length
|
|
1193
|
-
* @param {object[]} children
|
|
1194
|
-
* @return {string}
|
|
1195
|
-
*/
|
|
1196
|
-
function prefix(value, length, children) {
|
|
1197
|
-
switch (hash(value, length)) {
|
|
1198
|
-
// color-adjust
|
|
1199
|
-
case 5103:
|
|
1200
|
-
return WEBKIT + 'print-' + value + value;
|
|
1201
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1202
|
-
case 5737:
|
|
1203
|
-
case 4201:
|
|
1204
|
-
case 3177:
|
|
1205
|
-
case 3433:
|
|
1206
|
-
case 1641:
|
|
1207
|
-
case 4457:
|
|
1208
|
-
case 2921:
|
|
1209
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1210
|
-
case 5572:
|
|
1211
|
-
case 6356:
|
|
1212
|
-
case 5844:
|
|
1213
|
-
case 3191:
|
|
1214
|
-
case 6645:
|
|
1215
|
-
case 3005:
|
|
1216
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1217
|
-
case 6391:
|
|
1218
|
-
case 5879:
|
|
1219
|
-
case 5623:
|
|
1220
|
-
case 6135:
|
|
1221
|
-
case 4599:
|
|
1222
|
-
case 4855:
|
|
1223
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1224
|
-
case 4215:
|
|
1225
|
-
case 6389:
|
|
1226
|
-
case 5109:
|
|
1227
|
-
case 5365:
|
|
1228
|
-
case 5621:
|
|
1229
|
-
case 3829:
|
|
1230
|
-
return WEBKIT + value + value;
|
|
1231
|
-
// tab-size
|
|
1232
|
-
case 4789:
|
|
1233
|
-
return MOZ + value + value;
|
|
1234
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1235
|
-
case 5349:
|
|
1236
|
-
case 4246:
|
|
1237
|
-
case 4810:
|
|
1238
|
-
case 6968:
|
|
1239
|
-
case 2756:
|
|
1240
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1241
|
-
// writing-mode
|
|
1242
|
-
case 5936:
|
|
1243
|
-
switch (charat(value, length + 11)) {
|
|
1244
|
-
// vertical-l(r)
|
|
1245
|
-
case 114:
|
|
1246
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
1247
|
-
// vertical-r(l)
|
|
1248
|
-
case 108:
|
|
1249
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
1250
|
-
// horizontal(-)tb
|
|
1251
|
-
case 45:
|
|
1252
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
1253
|
-
// default: fallthrough to below
|
|
1254
|
-
}
|
|
1255
|
-
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1256
|
-
case 6828:
|
|
1257
|
-
case 4268:
|
|
1258
|
-
case 2903:
|
|
1259
|
-
return WEBKIT + value + MS + value + value;
|
|
1260
|
-
// order
|
|
1261
|
-
case 6165:
|
|
1262
|
-
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
1263
|
-
// align-items
|
|
1264
|
-
case 5187:
|
|
1265
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
1266
|
-
// align-self
|
|
1267
|
-
case 5443:
|
|
1268
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value;
|
|
1269
|
-
// align-content
|
|
1270
|
-
case 4675:
|
|
1271
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value;
|
|
1272
|
-
// flex-shrink
|
|
1273
|
-
case 5548:
|
|
1274
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
1275
|
-
// flex-basis
|
|
1276
|
-
case 5292:
|
|
1277
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
1278
|
-
// flex-grow
|
|
1279
|
-
case 6060:
|
|
1280
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
1281
|
-
// transition
|
|
1282
|
-
case 4554:
|
|
1283
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
1284
|
-
// cursor
|
|
1285
|
-
case 6187:
|
|
1286
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
1287
|
-
// background, background-image
|
|
1288
|
-
case 5495:
|
|
1289
|
-
case 3959:
|
|
1290
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
1291
|
-
// justify-content
|
|
1292
|
-
case 4968:
|
|
1293
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
1294
|
-
// justify-self
|
|
1295
|
-
case 4200:
|
|
1296
|
-
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value;
|
|
1297
|
-
break;
|
|
1298
|
-
// grid-template-(columns|rows)
|
|
1299
|
-
case 2592:
|
|
1300
|
-
case 3360:
|
|
1301
|
-
return MS + replace(value, 'template-', '') + value;
|
|
1302
|
-
// grid-(row|column)-start
|
|
1303
|
-
case 4384:
|
|
1304
|
-
case 3616:
|
|
1305
|
-
if (children && children.some(function (element, index) {
|
|
1306
|
-
return length = index, match(element.props, /grid-\w+-end/);
|
|
1307
|
-
})) {
|
|
1308
|
-
return ~indexof(value + (children = children[length].value), 'span') ? value : MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span') ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';';
|
|
1309
|
-
}
|
|
1310
|
-
return MS + replace(value, '-start', '') + value;
|
|
1311
|
-
// grid-(row|column)-end
|
|
1312
|
-
case 4896:
|
|
1313
|
-
case 4128:
|
|
1314
|
-
return children && children.some(function (element) {
|
|
1315
|
-
return match(element.props, /grid-\w+-start/);
|
|
1316
|
-
}) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value;
|
|
1317
|
-
// (margin|padding)-inline-(start|end)
|
|
1318
|
-
case 4095:
|
|
1319
|
-
case 3583:
|
|
1320
|
-
case 4068:
|
|
1321
|
-
case 2532:
|
|
1322
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
1323
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
1324
|
-
case 8116:
|
|
1325
|
-
case 7059:
|
|
1326
|
-
case 5753:
|
|
1327
|
-
case 5535:
|
|
1328
|
-
case 5445:
|
|
1329
|
-
case 5701:
|
|
1330
|
-
case 4933:
|
|
1331
|
-
case 4677:
|
|
1332
|
-
case 5533:
|
|
1333
|
-
case 5789:
|
|
1334
|
-
case 5021:
|
|
1335
|
-
case 4765:
|
|
1336
|
-
// stretch, max-content, min-content, fill-available
|
|
1337
|
-
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
1338
|
-
// (m)ax-content, (m)in-content
|
|
1339
|
-
case 109:
|
|
1340
|
-
// -
|
|
1341
|
-
if (charat(value, length + 4) !== 45) break;
|
|
1342
|
-
// (f)ill-available, (f)it-content
|
|
1343
|
-
case 102:
|
|
1344
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
1345
|
-
// (s)tretch
|
|
1346
|
-
case 115:
|
|
1347
|
-
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value;
|
|
1348
|
-
}
|
|
1349
|
-
break;
|
|
1350
|
-
// grid-(column|row)
|
|
1351
|
-
case 5152:
|
|
1352
|
-
case 5920:
|
|
1353
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) {
|
|
1354
|
-
return MS + a + ':' + b + f + (c ? MS + a + '-span:' + (d ? e : +e - +b) + f : '') + value;
|
|
1355
|
-
});
|
|
1356
|
-
// position: sticky
|
|
1357
|
-
case 4949:
|
|
1358
|
-
// stick(y)?
|
|
1359
|
-
if (charat(value, length + 6) === 121) return replace(value, ':', ':' + WEBKIT) + value;
|
|
1360
|
-
break;
|
|
1361
|
-
// display: (flex|inline-flex|grid|inline-grid)
|
|
1362
|
-
case 6444:
|
|
1363
|
-
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
1364
|
-
// (inline-)?fle(x)
|
|
1365
|
-
case 120:
|
|
1366
|
-
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
1367
|
-
// (inline-)?gri(d)
|
|
1368
|
-
case 100:
|
|
1369
|
-
return replace(value, ':', ':' + MS) + value;
|
|
1370
|
-
}
|
|
1371
|
-
break;
|
|
1372
|
-
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
1373
|
-
case 5719:
|
|
1374
|
-
case 2647:
|
|
1375
|
-
case 2135:
|
|
1376
|
-
case 3927:
|
|
1377
|
-
case 2391:
|
|
1378
|
-
return replace(value, 'scroll-', 'scroll-snap-') + value;
|
|
1379
|
-
}
|
|
1380
|
-
return value;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* @param {object[]} children
|
|
1385
|
-
* @param {function} callback
|
|
1386
|
-
* @return {string}
|
|
1387
|
-
*/
|
|
1388
|
-
function serialize(children, callback) {
|
|
1389
|
-
var output = '';
|
|
1390
|
-
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || '';
|
|
1391
|
-
return output;
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
/**
|
|
1395
|
-
* @param {object} element
|
|
1396
|
-
* @param {number} index
|
|
1397
|
-
* @param {object[]} children
|
|
1398
|
-
* @param {function} callback
|
|
1399
|
-
* @return {string}
|
|
1400
|
-
*/
|
|
1401
|
-
function stringify(element, index, children, callback) {
|
|
1402
|
-
switch (element.type) {
|
|
1403
|
-
case LAYER:
|
|
1404
|
-
if (element.children.length) break;
|
|
1405
|
-
case IMPORT:
|
|
1406
|
-
case DECLARATION:
|
|
1407
|
-
return element.return = element.return || element.value;
|
|
1408
|
-
case COMMENT:
|
|
1409
|
-
return '';
|
|
1410
|
-
case KEYFRAMES:
|
|
1411
|
-
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
1412
|
-
case RULESET:
|
|
1413
|
-
if (!strlen(element.value = element.props.join(','))) return '';
|
|
1414
|
-
}
|
|
1415
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/**
|
|
1419
|
-
* @param {function[]} collection
|
|
1420
|
-
* @return {function}
|
|
1421
|
-
*/
|
|
1422
|
-
function middleware(collection) {
|
|
1423
|
-
var length = sizeof(collection);
|
|
1424
|
-
return function (element, index, children, callback) {
|
|
1425
|
-
var output = '';
|
|
1426
|
-
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || '';
|
|
1427
|
-
return output;
|
|
1428
|
-
};
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
/**
|
|
1432
|
-
* @param {function} callback
|
|
1433
|
-
* @return {function}
|
|
1434
|
-
*/
|
|
1435
|
-
function rulesheet(callback) {
|
|
1436
|
-
return function (element) {
|
|
1437
|
-
if (!element.root) if (element = element.return) callback(element);
|
|
1438
|
-
};
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* @param {object} element
|
|
1443
|
-
* @param {number} index
|
|
1444
|
-
* @param {object[]} children
|
|
1445
|
-
* @param {function} callback
|
|
1446
|
-
*/
|
|
1447
|
-
function prefixer(element, index, children, callback) {
|
|
1448
|
-
if (element.length > -1) if (!element.return) switch (element.type) {
|
|
1449
|
-
case DECLARATION:
|
|
1450
|
-
element.return = prefix(element.value, element.length, children);
|
|
1451
|
-
return;
|
|
1452
|
-
case KEYFRAMES:
|
|
1453
|
-
return serialize([copy(element, {
|
|
1454
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
|
1455
|
-
})], callback);
|
|
1456
|
-
case RULESET:
|
|
1457
|
-
if (element.length) return combine(children = element.props, function (value) {
|
|
1458
|
-
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
1459
|
-
// :read-(only|write)
|
|
1460
|
-
case ':read-only':
|
|
1461
|
-
case ':read-write':
|
|
1462
|
-
lift(copy(element, {
|
|
1463
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
1464
|
-
}));
|
|
1465
|
-
lift(copy(element, {
|
|
1466
|
-
props: [value]
|
|
1467
|
-
}));
|
|
1468
|
-
assign$1(element, {
|
|
1469
|
-
props: filter(children, callback)
|
|
1470
|
-
});
|
|
1471
|
-
break;
|
|
1472
|
-
// :placeholder
|
|
1473
|
-
case '::placeholder':
|
|
1474
|
-
lift(copy(element, {
|
|
1475
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
1476
|
-
}));
|
|
1477
|
-
lift(copy(element, {
|
|
1478
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
1479
|
-
}));
|
|
1480
|
-
lift(copy(element, {
|
|
1481
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
1482
|
-
}));
|
|
1483
|
-
lift(copy(element, {
|
|
1484
|
-
props: [value]
|
|
1485
|
-
}));
|
|
1486
|
-
assign$1(element, {
|
|
1487
|
-
props: filter(children, callback)
|
|
1488
|
-
});
|
|
1489
|
-
break;
|
|
1490
|
-
}
|
|
1491
|
-
return '';
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
var unitlessKeys = {
|
|
1497
|
-
animationIterationCount: 1,
|
|
1498
|
-
aspectRatio: 1,
|
|
1499
|
-
borderImageOutset: 1,
|
|
1500
|
-
borderImageSlice: 1,
|
|
1501
|
-
borderImageWidth: 1,
|
|
1502
|
-
boxFlex: 1,
|
|
1503
|
-
boxFlexGroup: 1,
|
|
1504
|
-
boxOrdinalGroup: 1,
|
|
1505
|
-
columnCount: 1,
|
|
1506
|
-
columns: 1,
|
|
1507
|
-
flex: 1,
|
|
1508
|
-
flexGrow: 1,
|
|
1509
|
-
flexPositive: 1,
|
|
1510
|
-
flexShrink: 1,
|
|
1511
|
-
flexNegative: 1,
|
|
1512
|
-
flexOrder: 1,
|
|
1513
|
-
gridRow: 1,
|
|
1514
|
-
gridRowEnd: 1,
|
|
1515
|
-
gridRowSpan: 1,
|
|
1516
|
-
gridRowStart: 1,
|
|
1517
|
-
gridColumn: 1,
|
|
1518
|
-
gridColumnEnd: 1,
|
|
1519
|
-
gridColumnSpan: 1,
|
|
1520
|
-
gridColumnStart: 1,
|
|
1521
|
-
msGridRow: 1,
|
|
1522
|
-
msGridRowSpan: 1,
|
|
1523
|
-
msGridColumn: 1,
|
|
1524
|
-
msGridColumnSpan: 1,
|
|
1525
|
-
fontWeight: 1,
|
|
1526
|
-
lineHeight: 1,
|
|
1527
|
-
opacity: 1,
|
|
1528
|
-
order: 1,
|
|
1529
|
-
orphans: 1,
|
|
1530
|
-
tabSize: 1,
|
|
1531
|
-
widows: 1,
|
|
1532
|
-
zIndex: 1,
|
|
1533
|
-
zoom: 1,
|
|
1534
|
-
WebkitLineClamp: 1,
|
|
1535
|
-
// SVG-related properties
|
|
1536
|
-
fillOpacity: 1,
|
|
1537
|
-
floodOpacity: 1,
|
|
1538
|
-
stopOpacity: 1,
|
|
1539
|
-
strokeDasharray: 1,
|
|
1540
|
-
strokeDashoffset: 1,
|
|
1541
|
-
strokeMiterlimit: 1,
|
|
1542
|
-
strokeOpacity: 1,
|
|
1543
|
-
strokeWidth: 1
|
|
1544
|
-
};
|
|
1545
|
-
|
|
1546
|
-
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
1547
|
-
y = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV),
|
|
1548
|
-
g = /invalid hook call/i,
|
|
1549
|
-
S = new Set(),
|
|
1550
|
-
w = function (t, n) {
|
|
1551
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
1552
|
-
var o = n ? ' with the id of "'.concat(n, '"') : "",
|
|
1553
|
-
s = "The component ".concat(t).concat(o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
|
|
1554
|
-
i = console.error;
|
|
1555
|
-
try {
|
|
1556
|
-
var a = !0;
|
|
1557
|
-
console.error = function (t) {
|
|
1558
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1559
|
-
g.test(t) ? (a = !1, S.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
1560
|
-
}, React.useRef(), a && !S.has(s) && (console.warn(s), S.add(s));
|
|
1561
|
-
} catch (e) {
|
|
1562
|
-
g.test(e.message) && S.delete(s);
|
|
1563
|
-
} finally {
|
|
1564
|
-
console.error = i;
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
b = Object.freeze([]),
|
|
1569
|
-
E = Object.freeze({});
|
|
1570
|
-
function N(e, t, n) {
|
|
1571
|
-
return void 0 === n && (n = E), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1572
|
-
}
|
|
1573
|
-
var P = 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", "head", "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", "title", "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"]),
|
|
1574
|
-
_ = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1575
|
-
C = /(^-|-$)/g;
|
|
1576
|
-
function I(e) {
|
|
1577
|
-
return e.replace(_, "-").replace(C, "");
|
|
1578
|
-
}
|
|
1579
|
-
var A = /(a)(d)/gi,
|
|
1580
|
-
O = function (e) {
|
|
1581
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1582
|
-
};
|
|
1583
|
-
function D(e) {
|
|
1584
|
-
var t,
|
|
1585
|
-
n = "";
|
|
1586
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = O(t % 52) + n;
|
|
1587
|
-
return (O(t % 52) + n).replace(A, "$1-$2");
|
|
1588
|
-
}
|
|
1589
|
-
var R,
|
|
1590
|
-
T = function (e, t) {
|
|
1591
|
-
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1592
|
-
return e;
|
|
1593
|
-
},
|
|
1594
|
-
j = function (e) {
|
|
1595
|
-
return T(5381, e);
|
|
1596
|
-
};
|
|
1597
|
-
function x(e) {
|
|
1598
|
-
return D(j(e) >>> 0);
|
|
1599
|
-
}
|
|
1600
|
-
function k(e) {
|
|
1601
|
-
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1602
|
-
}
|
|
1603
|
-
function V(e) {
|
|
1604
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1605
|
-
}
|
|
1606
|
-
var F = "function" == typeof Symbol && Symbol.for,
|
|
1607
|
-
M = F ? Symbol.for("react.memo") : 60115,
|
|
1608
|
-
$ = F ? Symbol.for("react.forward_ref") : 60112,
|
|
1609
|
-
z = {
|
|
1610
|
-
childContextTypes: !0,
|
|
1611
|
-
contextType: !0,
|
|
1612
|
-
contextTypes: !0,
|
|
1613
|
-
defaultProps: !0,
|
|
1614
|
-
displayName: !0,
|
|
1615
|
-
getDefaultProps: !0,
|
|
1616
|
-
getDerivedStateFromError: !0,
|
|
1617
|
-
getDerivedStateFromProps: !0,
|
|
1618
|
-
mixins: !0,
|
|
1619
|
-
propTypes: !0,
|
|
1620
|
-
type: !0
|
|
1621
|
-
},
|
|
1622
|
-
B = {
|
|
1623
|
-
name: !0,
|
|
1624
|
-
length: !0,
|
|
1625
|
-
prototype: !0,
|
|
1626
|
-
caller: !0,
|
|
1627
|
-
callee: !0,
|
|
1628
|
-
arguments: !0,
|
|
1629
|
-
arity: !0
|
|
1630
|
-
},
|
|
1631
|
-
G = {
|
|
1632
|
-
$$typeof: !0,
|
|
1633
|
-
compare: !0,
|
|
1634
|
-
defaultProps: !0,
|
|
1635
|
-
displayName: !0,
|
|
1636
|
-
propTypes: !0,
|
|
1637
|
-
type: !0
|
|
1638
|
-
},
|
|
1639
|
-
L = ((R = {})[$] = {
|
|
1640
|
-
$$typeof: !0,
|
|
1641
|
-
render: !0,
|
|
1642
|
-
defaultProps: !0,
|
|
1643
|
-
displayName: !0,
|
|
1644
|
-
propTypes: !0
|
|
1645
|
-
}, R[M] = G, R);
|
|
1646
|
-
function Y(e) {
|
|
1647
|
-
return ("type" in (t = e) && t.type.$$typeof) === M ? G : "$$typeof" in e ? L[e.$$typeof] : z;
|
|
1648
|
-
var t;
|
|
1649
|
-
}
|
|
1650
|
-
var W = Object.defineProperty,
|
|
1651
|
-
q = Object.getOwnPropertyNames,
|
|
1652
|
-
H = Object.getOwnPropertySymbols,
|
|
1653
|
-
U = Object.getOwnPropertyDescriptor,
|
|
1654
|
-
J = Object.getPrototypeOf,
|
|
1655
|
-
X = Object.prototype;
|
|
1656
|
-
function Z(e, t, n) {
|
|
1657
|
-
if ("string" != typeof t) {
|
|
1658
|
-
if (X) {
|
|
1659
|
-
var o = J(t);
|
|
1660
|
-
o && o !== X && Z(e, o, n);
|
|
1661
|
-
}
|
|
1662
|
-
var r = q(t);
|
|
1663
|
-
H && (r = r.concat(H(t)));
|
|
1664
|
-
for (var s = Y(e), i = Y(t), a = 0; a < r.length; ++a) {
|
|
1665
|
-
var c = r[a];
|
|
1666
|
-
if (!(c in B || n && n[c] || i && c in i || s && c in s)) {
|
|
1667
|
-
var l = U(t, c);
|
|
1668
|
-
try {
|
|
1669
|
-
W(e, c, l);
|
|
1670
|
-
} catch (e) {}
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
return e;
|
|
1675
|
-
}
|
|
1676
|
-
function K(e) {
|
|
1677
|
-
return "function" == typeof e;
|
|
1678
|
-
}
|
|
1679
|
-
function Q(e) {
|
|
1680
|
-
return "object" == typeof e && "styledComponentId" in e;
|
|
1681
|
-
}
|
|
1682
|
-
function ee(e, t) {
|
|
1683
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1684
|
-
}
|
|
1685
|
-
function te(e, t) {
|
|
1686
|
-
if (0 === e.length) return "";
|
|
1687
|
-
for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
|
|
1688
|
-
return n;
|
|
1689
|
-
}
|
|
1690
|
-
function ne(e) {
|
|
1691
|
-
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1692
|
-
}
|
|
1693
|
-
function oe(e, t, n) {
|
|
1694
|
-
if (void 0 === n && (n = !1), !n && !ne(e) && !Array.isArray(e)) return t;
|
|
1695
|
-
if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = oe(e[o], t[o]);else if (ne(t)) for (var o in t) e[o] = oe(e[o], t[o]);
|
|
1696
|
-
return e;
|
|
1697
|
-
}
|
|
1698
|
-
function re(e, t) {
|
|
1699
|
-
Object.defineProperty(e, "toString", {
|
|
1700
|
-
value: t
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
var se = "production" !== process.env.NODE_ENV ? {
|
|
1704
|
-
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1705
|
-
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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
1706
|
-
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1707
|
-
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
1708
|
-
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
1709
|
-
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
1710
|
-
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1711
|
-
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1712
|
-
9: "Missing document `<head>`\n\n",
|
|
1713
|
-
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\n\n",
|
|
1714
|
-
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.\n\n",
|
|
1715
|
-
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",
|
|
1716
|
-
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.\n\n",
|
|
1717
|
-
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1718
|
-
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",
|
|
1719
|
-
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
1720
|
-
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
1721
|
-
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
1722
|
-
} : {};
|
|
1723
|
-
function ie() {
|
|
1724
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1725
|
-
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
|
|
1726
|
-
return o.forEach(function (e) {
|
|
1727
|
-
n = n.replace(/%[a-z]/, e);
|
|
1728
|
-
}), n;
|
|
1729
|
-
}
|
|
1730
|
-
function ae(t) {
|
|
1731
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1732
|
-
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(ie.apply(void 0, __spreadArray([se[t]], n, !1)).trim());
|
|
1733
|
-
}
|
|
1734
|
-
var ce = function () {
|
|
1735
|
-
function e(e) {
|
|
1736
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1737
|
-
}
|
|
1738
|
-
return e.prototype.indexOfGroup = function (e) {
|
|
1739
|
-
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1740
|
-
return t;
|
|
1741
|
-
}, e.prototype.insertRules = function (e, t) {
|
|
1742
|
-
if (e >= this.groupSizes.length) {
|
|
1743
|
-
for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw ae(16, "".concat(e));
|
|
1744
|
-
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
1745
|
-
for (var s = o; s < r; s++) this.groupSizes[s] = 0;
|
|
1746
|
-
}
|
|
1747
|
-
for (var i = this.indexOfGroup(e + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++);
|
|
1748
|
-
}, e.prototype.clearGroup = function (e) {
|
|
1749
|
-
if (e < this.length) {
|
|
1750
|
-
var t = this.groupSizes[e],
|
|
1751
|
-
n = this.indexOfGroup(e),
|
|
1752
|
-
o = n + t;
|
|
1753
|
-
this.groupSizes[e] = 0;
|
|
1754
|
-
for (var r = n; r < o; r++) this.tag.deleteRule(n);
|
|
1755
|
-
}
|
|
1756
|
-
}, e.prototype.getGroup = function (e) {
|
|
1757
|
-
var t = "";
|
|
1758
|
-
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1759
|
-
for (var n = this.groupSizes[e], o = this.indexOfGroup(e), r = o + n, s = o; s < r; s++) t += "".concat(this.tag.getRule(s)).concat("/*!sc*/\n");
|
|
1760
|
-
return t;
|
|
1761
|
-
}, e;
|
|
1762
|
-
}(),
|
|
1763
|
-
le = new Map(),
|
|
1764
|
-
ue = new Map(),
|
|
1765
|
-
pe = 1,
|
|
1766
|
-
de = function (e) {
|
|
1767
|
-
if (le.has(e)) return le.get(e);
|
|
1768
|
-
for (; ue.has(pe);) pe++;
|
|
1769
|
-
var t = pe++;
|
|
1770
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824)) throw ae(16, "".concat(t));
|
|
1771
|
-
return le.set(e, t), ue.set(t, e), t;
|
|
1772
|
-
},
|
|
1773
|
-
he = (function (e) {
|
|
1774
|
-
for (var t = e.getTag(), n = t.length, o = "", r = function (n) {
|
|
1775
|
-
var r = function (e) {
|
|
1776
|
-
return ue.get(e);
|
|
1777
|
-
}(n);
|
|
1778
|
-
if (void 0 === r) return "continue";
|
|
1779
|
-
var s = e.names.get(r),
|
|
1780
|
-
i = t.getGroup(n);
|
|
1781
|
-
if (void 0 === s || 0 === i.length) return "continue";
|
|
1782
|
-
var a = "".concat(f, ".g").concat(n, '[id="').concat(r, '"]'),
|
|
1783
|
-
c = "";
|
|
1784
|
-
void 0 !== s && s.forEach(function (e) {
|
|
1785
|
-
e.length > 0 && (c += "".concat(e, ","));
|
|
1786
|
-
}), o += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat("/*!sc*/\n");
|
|
1787
|
-
}, s = 0; s < n; s++) r(s);
|
|
1788
|
-
return o;
|
|
1789
|
-
});
|
|
1790
|
-
function fe() {
|
|
1791
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1792
|
-
}
|
|
1793
|
-
var me = function (e) {
|
|
1794
|
-
var t = document.head,
|
|
1795
|
-
n = e || t,
|
|
1796
|
-
o = document.createElement("style"),
|
|
1797
|
-
r = function (e) {
|
|
1798
|
-
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
1799
|
-
return t[t.length - 1];
|
|
1800
|
-
}(n),
|
|
1801
|
-
s = void 0 !== r ? r.nextSibling : null;
|
|
1802
|
-
o.setAttribute(f, "active"), o.setAttribute("data-styled-version", "6.0.7");
|
|
1803
|
-
var i = fe();
|
|
1804
|
-
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
1805
|
-
},
|
|
1806
|
-
ye = function () {
|
|
1807
|
-
function e(e) {
|
|
1808
|
-
this.element = me(e), this.element.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1809
|
-
if (e.sheet) return e.sheet;
|
|
1810
|
-
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
1811
|
-
var r = t[n];
|
|
1812
|
-
if (r.ownerNode === e) return r;
|
|
1813
|
-
}
|
|
1814
|
-
throw ae(17);
|
|
1815
|
-
}(this.element), this.length = 0;
|
|
1816
|
-
}
|
|
1817
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1818
|
-
try {
|
|
1819
|
-
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1820
|
-
} catch (e) {
|
|
1821
|
-
return !1;
|
|
1822
|
-
}
|
|
1823
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1824
|
-
this.sheet.deleteRule(e), this.length--;
|
|
1825
|
-
}, e.prototype.getRule = function (e) {
|
|
1826
|
-
var t = this.sheet.cssRules[e];
|
|
1827
|
-
return t && t.cssText ? t.cssText : "";
|
|
1828
|
-
}, e;
|
|
1829
|
-
}(),
|
|
1830
|
-
ve = function () {
|
|
1831
|
-
function e(e) {
|
|
1832
|
-
this.element = me(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
1833
|
-
}
|
|
1834
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1835
|
-
if (e <= this.length && e >= 0) {
|
|
1836
|
-
var n = document.createTextNode(t);
|
|
1837
|
-
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
1838
|
-
}
|
|
1839
|
-
return !1;
|
|
1840
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1841
|
-
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1842
|
-
}, e.prototype.getRule = function (e) {
|
|
1843
|
-
return e < this.length ? this.nodes[e].textContent : "";
|
|
1844
|
-
}, e;
|
|
1845
|
-
}(),
|
|
1846
|
-
ge = function () {
|
|
1847
|
-
function e(e) {
|
|
1848
|
-
this.rules = [], this.length = 0;
|
|
1849
|
-
}
|
|
1850
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1851
|
-
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1852
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1853
|
-
this.rules.splice(e, 1), this.length--;
|
|
1854
|
-
}, e.prototype.getRule = function (e) {
|
|
1855
|
-
return e < this.length ? this.rules[e] : "";
|
|
1856
|
-
}, e;
|
|
1857
|
-
}(),
|
|
1858
|
-
Se = {
|
|
1859
|
-
isServer: !0,
|
|
1860
|
-
useCSSOMInjection: !y
|
|
1861
|
-
},
|
|
1862
|
-
we = function () {
|
|
1863
|
-
function e(e, n, o) {
|
|
1864
|
-
void 0 === e && (e = E), void 0 === n && (n = {});
|
|
1865
|
-
var r = this;
|
|
1866
|
-
this.options = __assign(__assign({}, Se), e), this.gs = n, this.names = new Map(o), this.server = !!e.isServer, re(this, function () {
|
|
1867
|
-
return he(r);
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
return e.registerId = function (e) {
|
|
1871
|
-
return de(e);
|
|
1872
|
-
}, e.prototype.reconstructWithOptions = function (n, o) {
|
|
1873
|
-
return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1874
|
-
}, e.prototype.allocateGSInstance = function (e) {
|
|
1875
|
-
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1876
|
-
}, e.prototype.getTag = function () {
|
|
1877
|
-
return this.tag || (this.tag = (e = function (e) {
|
|
1878
|
-
var t = e.useCSSOMInjection,
|
|
1879
|
-
n = e.target;
|
|
1880
|
-
return e.isServer ? new ge(n) : t ? new ye(n) : new ve(n);
|
|
1881
|
-
}(this.options), new ce(e)));
|
|
1882
|
-
var e;
|
|
1883
|
-
}, e.prototype.hasNameForId = function (e, t) {
|
|
1884
|
-
return this.names.has(e) && this.names.get(e).has(t);
|
|
1885
|
-
}, e.prototype.registerName = function (e, t) {
|
|
1886
|
-
if (de(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1887
|
-
var n = new Set();
|
|
1888
|
-
n.add(t), this.names.set(e, n);
|
|
1889
|
-
}
|
|
1890
|
-
}, e.prototype.insertRules = function (e, t, n) {
|
|
1891
|
-
this.registerName(e, t), this.getTag().insertRules(de(e), n);
|
|
1892
|
-
}, e.prototype.clearNames = function (e) {
|
|
1893
|
-
this.names.has(e) && this.names.get(e).clear();
|
|
1894
|
-
}, e.prototype.clearRules = function (e) {
|
|
1895
|
-
this.getTag().clearGroup(de(e)), this.clearNames(e);
|
|
1896
|
-
}, e.prototype.clearTag = function () {
|
|
1897
|
-
this.tag = void 0;
|
|
1898
|
-
}, e;
|
|
1899
|
-
}(),
|
|
1900
|
-
be = /&/g,
|
|
1901
|
-
Ee = /^\s*\/\/.*$/gm;
|
|
1902
|
-
function Ne(e, t) {
|
|
1903
|
-
return e.map(function (e) {
|
|
1904
|
-
return "rule" === e.type && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function (e) {
|
|
1905
|
-
return "".concat(t, " ").concat(e);
|
|
1906
|
-
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = Ne(e.children, t)), e;
|
|
1907
|
-
});
|
|
1908
|
-
}
|
|
1909
|
-
function Pe(e) {
|
|
1910
|
-
var t,
|
|
1911
|
-
n,
|
|
1912
|
-
o,
|
|
1913
|
-
r = void 0 === e ? E : e,
|
|
1914
|
-
s = r.options,
|
|
1915
|
-
i = void 0 === s ? E : s,
|
|
1916
|
-
a = r.plugins,
|
|
1917
|
-
c = void 0 === a ? b : a,
|
|
1918
|
-
l = function (e, o, r) {
|
|
1919
|
-
return r === n || r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
1920
|
-
},
|
|
1921
|
-
u = c.slice();
|
|
1922
|
-
u.push(function (e) {
|
|
1923
|
-
e.type === RULESET && e.value.includes("&") && (e.props[0] = e.props[0].replace(be, n).replace(o, l));
|
|
1924
|
-
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1925
|
-
var p = function (e, r, s, a) {
|
|
1926
|
-
void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1927
|
-
var c = e.replace(Ee, ""),
|
|
1928
|
-
l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
|
|
1929
|
-
i.namespace && (l = Ne(l, i.namespace));
|
|
1930
|
-
var p = [];
|
|
1931
|
-
return serialize(l, middleware(u.concat(rulesheet(function (e) {
|
|
1932
|
-
return p.push(e);
|
|
1933
|
-
})))), p;
|
|
1934
|
-
};
|
|
1935
|
-
return p.hash = c.length ? c.reduce(function (e, t) {
|
|
1936
|
-
return t.name || ae(15), T(e, t.name);
|
|
1937
|
-
}, 5381).toString() : "", p;
|
|
1938
|
-
}
|
|
1939
|
-
var _e = new we(),
|
|
1940
|
-
Ce = Pe(),
|
|
1941
|
-
Ie = /*#__PURE__*/React.createContext({
|
|
1942
|
-
shouldForwardProp: void 0,
|
|
1943
|
-
styleSheet: _e,
|
|
1944
|
-
stylis: Ce
|
|
1945
|
-
});
|
|
1946
|
-
Ie.Consumer;
|
|
1947
|
-
function De() {
|
|
1948
|
-
return React.useContext(Ie);
|
|
1949
|
-
}
|
|
1950
|
-
var Te = function () {
|
|
1951
|
-
function e(e, t) {
|
|
1952
|
-
var n = this;
|
|
1953
|
-
this.inject = function (e, t) {
|
|
1954
|
-
void 0 === t && (t = Ce);
|
|
1955
|
-
var o = n.name + t.hash;
|
|
1956
|
-
e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
|
|
1957
|
-
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, re(this, function () {
|
|
1958
|
-
throw ae(12, String(n.name));
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
return e.prototype.getName = function (e) {
|
|
1962
|
-
return void 0 === e && (e = Ce), this.name + e.hash;
|
|
1963
|
-
}, e;
|
|
1964
|
-
}(),
|
|
1965
|
-
je = function (e) {
|
|
1966
|
-
return e >= "A" && e <= "Z";
|
|
1967
|
-
};
|
|
1968
|
-
function xe(e) {
|
|
1969
|
-
for (var t = "", n = 0; n < e.length; n++) {
|
|
1970
|
-
var o = e[n];
|
|
1971
|
-
if (1 === n && "-" === o && "-" === e[0]) return e;
|
|
1972
|
-
je(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1973
|
-
}
|
|
1974
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
1975
|
-
}
|
|
1976
|
-
var ke = function (e) {
|
|
1977
|
-
return null == e || !1 === e || "" === e;
|
|
1978
|
-
},
|
|
1979
|
-
Ve = function (t) {
|
|
1980
|
-
var n,
|
|
1981
|
-
o,
|
|
1982
|
-
r = [];
|
|
1983
|
-
for (var s in t) {
|
|
1984
|
-
var i = t[s];
|
|
1985
|
-
t.hasOwnProperty(s) && !ke(i) && (Array.isArray(i) && i.isCss || K(i) ? r.push("".concat(xe(s), ":"), i, ";") : ne(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Ve(i), !1), ["}"], !1)) : r.push("".concat(xe(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
|
|
1986
|
-
}
|
|
1987
|
-
return r;
|
|
1988
|
-
};
|
|
1989
|
-
function Fe(e, t, n, o) {
|
|
1990
|
-
if (ke(e)) return [];
|
|
1991
|
-
if (Q(e)) return [".".concat(e.styledComponentId)];
|
|
1992
|
-
if (K(e)) {
|
|
1993
|
-
if (!K(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1994
|
-
var r = e(t);
|
|
1995
|
-
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof Te || ne(r) || null === r || console.error("".concat(k(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.")), Fe(r, t, n, o);
|
|
1996
|
-
}
|
|
1997
|
-
var s;
|
|
1998
|
-
return e instanceof Te ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : ne(e) ? Ve(e) : Array.isArray(e) ? Array.prototype.concat.apply(b, e.map(function (e) {
|
|
1999
|
-
return Fe(e, t, n, o);
|
|
2000
|
-
})) : [e.toString()];
|
|
2001
|
-
}
|
|
2002
|
-
function Me(e) {
|
|
2003
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
2004
|
-
var n = e[t];
|
|
2005
|
-
if (K(n) && !Q(n)) return !1;
|
|
2006
|
-
}
|
|
2007
|
-
return !0;
|
|
2008
|
-
}
|
|
2009
|
-
var $e = j("6.0.7"),
|
|
2010
|
-
ze = function () {
|
|
2011
|
-
function e(e, t, n) {
|
|
2012
|
-
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Me(e), this.componentId = t, this.baseHash = T($e, t), this.baseStyle = n, we.registerId(t);
|
|
2013
|
-
}
|
|
2014
|
-
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
2015
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
2016
|
-
if (this.isStatic && !n.hash) {
|
|
2017
|
-
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ee(o, this.staticRulesId);else {
|
|
2018
|
-
var r = te(Fe(this.rules, e, t, n)),
|
|
2019
|
-
s = D(T(this.baseHash, r) >>> 0);
|
|
2020
|
-
if (!t.hasNameForId(this.componentId, s)) {
|
|
2021
|
-
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
2022
|
-
t.insertRules(this.componentId, s, i);
|
|
2023
|
-
}
|
|
2024
|
-
o = ee(o, s), this.staticRulesId = s;
|
|
2025
|
-
}
|
|
2026
|
-
} else {
|
|
2027
|
-
for (var a = T(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
2028
|
-
var u = this.rules[l];
|
|
2029
|
-
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = T(a, u));else if (u) {
|
|
2030
|
-
var p = te(Fe(u, e, t, n));
|
|
2031
|
-
a = T(a, p), c += p;
|
|
2032
|
-
}
|
|
2033
|
-
}
|
|
2034
|
-
if (c) {
|
|
2035
|
-
var d = D(a >>> 0);
|
|
2036
|
-
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ee(o, d);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
return o;
|
|
2040
|
-
}, e;
|
|
2041
|
-
}(),
|
|
2042
|
-
Be = /*#__PURE__*/React.createContext(void 0);
|
|
2043
|
-
Be.Consumer;
|
|
2044
|
-
var We = {},
|
|
2045
|
-
qe = new Set();
|
|
2046
|
-
function He(e, r, s) {
|
|
2047
|
-
var i = Q(e),
|
|
2048
|
-
a = e,
|
|
2049
|
-
c = !V(e),
|
|
2050
|
-
p = r.attrs,
|
|
2051
|
-
d = void 0 === p ? b : p,
|
|
2052
|
-
h = r.componentId,
|
|
2053
|
-
f = void 0 === h ? function (e, t) {
|
|
2054
|
-
var n = "string" != typeof e ? "sc" : I(e);
|
|
2055
|
-
We[n] = (We[n] || 0) + 1;
|
|
2056
|
-
var o = "".concat(n, "-").concat(x("6.0.7" + n + We[n]));
|
|
2057
|
-
return t ? "".concat(t, "-").concat(o) : o;
|
|
2058
|
-
}(r.displayName, r.parentComponentId) : h,
|
|
2059
|
-
m = r.displayName,
|
|
2060
|
-
y = void 0 === m ? function (e) {
|
|
2061
|
-
return V(e) ? "styled.".concat(e) : "Styled(".concat(k(e), ")");
|
|
2062
|
-
}(e) : m,
|
|
2063
|
-
v = r.displayName && r.componentId ? "".concat(I(r.displayName), "-").concat(r.componentId) : r.componentId || f,
|
|
2064
|
-
g = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d,
|
|
2065
|
-
S = r.shouldForwardProp;
|
|
2066
|
-
if (i && a.shouldForwardProp) {
|
|
2067
|
-
var _ = a.shouldForwardProp;
|
|
2068
|
-
if (r.shouldForwardProp) {
|
|
2069
|
-
var C = r.shouldForwardProp;
|
|
2070
|
-
S = function (e, t) {
|
|
2071
|
-
return _(e, t) && C(e, t);
|
|
2072
|
-
};
|
|
2073
|
-
} else S = _;
|
|
2074
|
-
}
|
|
2075
|
-
var A = new ze(s, v, i ? a.componentStyle : void 0);
|
|
2076
|
-
function O(e, r) {
|
|
2077
|
-
return function (e, r, s) {
|
|
2078
|
-
var i = e.attrs,
|
|
2079
|
-
a = e.componentStyle,
|
|
2080
|
-
c = e.defaultProps,
|
|
2081
|
-
p = e.foldedComponentIds,
|
|
2082
|
-
d = e.styledComponentId,
|
|
2083
|
-
h = e.target,
|
|
2084
|
-
f = React.useContext(Be),
|
|
2085
|
-
m = De(),
|
|
2086
|
-
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
2087
|
-
"production" !== process.env.NODE_ENV && React.useDebugValue(d);
|
|
2088
|
-
var v = function (e, n, o) {
|
|
2089
|
-
for (var r, s = __assign(__assign({}, n), {
|
|
2090
|
-
className: void 0,
|
|
2091
|
-
theme: o
|
|
2092
|
-
}), i = 0; i < e.length; i += 1) {
|
|
2093
|
-
var a = K(r = e[i]) ? r(s) : r;
|
|
2094
|
-
for (var c in a) s[c] = "className" === c ? ee(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
2095
|
-
}
|
|
2096
|
-
return n.className && (s.className = ee(s.className, n.className)), s;
|
|
2097
|
-
}(i, r, N(r, f, c) || E),
|
|
2098
|
-
g = v.as || h,
|
|
2099
|
-
S = {};
|
|
2100
|
-
for (var w in v) void 0 === v[w] || "$" === w[0] || "as" === w || "theme" === w || ("forwardedAs" === w ? S.as = v.forwardedAs : y && !y(w, g) || (S[w] = v[w], y || "development" !== process.env.NODE_ENV || isPropValid(w) || qe.has(w) || !P.has(g) || (qe.add(w), console.warn('styled-components: it looks like an unknown prop "'.concat(w, '" 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.)')))));
|
|
2101
|
-
var b = function (e, t) {
|
|
2102
|
-
var n = De(),
|
|
2103
|
-
o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
2104
|
-
return "production" !== process.env.NODE_ENV && React.useDebugValue(o), o;
|
|
2105
|
-
}(a, v);
|
|
2106
|
-
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(b);
|
|
2107
|
-
var _ = ee(p, d);
|
|
2108
|
-
return b && (_ += " " + b), v.className && (_ += " " + v.className), S[V(g) && !P.has(g) ? "class" : "className"] = _, S.ref = s, /*#__PURE__*/React.createElement(g, S);
|
|
2109
|
-
}(D, e, r);
|
|
2110
|
-
}
|
|
2111
|
-
"production" !== process.env.NODE_ENV && (O.displayName = y);
|
|
2112
|
-
var D = /*#__PURE__*/React.forwardRef(O);
|
|
2113
|
-
return D.attrs = g, D.componentStyle = A, D.shouldForwardProp = S, "production" !== process.env.NODE_ENV && (D.displayName = y), D.foldedComponentIds = i ? ee(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = v, D.target = i ? a.target : e, Object.defineProperty(D, "defaultProps", {
|
|
2114
|
-
get: function () {
|
|
2115
|
-
return this._foldedDefaultProps;
|
|
2116
|
-
},
|
|
2117
|
-
set: function (e) {
|
|
2118
|
-
this._foldedDefaultProps = i ? function (e) {
|
|
2119
|
-
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2120
|
-
for (var o = 0, r = t; o < r.length; o++) oe(e, r[o], !0);
|
|
2121
|
-
return e;
|
|
2122
|
-
}({}, a.defaultProps, e) : e;
|
|
2123
|
-
}
|
|
2124
|
-
}), "production" !== process.env.NODE_ENV && (w(y, v), D.warnTooManyClasses = function (e, t) {
|
|
2125
|
-
var n = {},
|
|
2126
|
-
o = !1;
|
|
2127
|
-
return function (r) {
|
|
2128
|
-
if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
|
|
2129
|
-
var s = t ? ' with the id of "'.concat(t, '"') : "";
|
|
2130
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o = !0, n = {};
|
|
2131
|
-
}
|
|
2132
|
-
};
|
|
2133
|
-
}(y, v)), re(D, function () {
|
|
2134
|
-
return ".".concat(D.styledComponentId);
|
|
2135
|
-
}), c && Z(D, e, {
|
|
2136
|
-
attrs: !0,
|
|
2137
|
-
componentStyle: !0,
|
|
2138
|
-
displayName: !0,
|
|
2139
|
-
foldedComponentIds: !0,
|
|
2140
|
-
shouldForwardProp: !0,
|
|
2141
|
-
styledComponentId: !0,
|
|
2142
|
-
target: !0
|
|
2143
|
-
}), D;
|
|
2144
|
-
}
|
|
2145
|
-
function Ue(e, t) {
|
|
2146
|
-
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
|
|
2147
|
-
return n;
|
|
2148
|
-
}
|
|
2149
|
-
var Je = function (e) {
|
|
2150
|
-
return Object.assign(e, {
|
|
2151
|
-
isCss: !0
|
|
2152
|
-
});
|
|
2153
|
-
};
|
|
2154
|
-
function Xe(t) {
|
|
2155
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
2156
|
-
if (K(t) || ne(t)) {
|
|
2157
|
-
var r = t;
|
|
2158
|
-
return Je(Fe(Ue(b, __spreadArray([r], n, !0))));
|
|
2159
|
-
}
|
|
2160
|
-
var s = t;
|
|
2161
|
-
return 0 === n.length && 1 === s.length && "string" == typeof s[0] ? Fe(s) : Je(Fe(Ue(s, n)));
|
|
2162
|
-
}
|
|
2163
|
-
function Ze(n, o, r) {
|
|
2164
|
-
if (void 0 === r && (r = E), !o) throw ae(1, o);
|
|
2165
|
-
var s = function (t) {
|
|
2166
|
-
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
2167
|
-
return n(o, r, Xe.apply(void 0, __spreadArray([t], s, !1)));
|
|
2168
|
-
};
|
|
2169
|
-
return s.attrs = function (e) {
|
|
2170
|
-
return Ze(n, o, __assign(__assign({}, r), {
|
|
2171
|
-
attrs: Array.prototype.concat(r.attrs, e).filter(Boolean)
|
|
2172
|
-
}));
|
|
2173
|
-
}, s.withConfig = function (e) {
|
|
2174
|
-
return Ze(n, o, __assign(__assign({}, r), e));
|
|
2175
|
-
}, s;
|
|
2176
|
-
}
|
|
2177
|
-
var Ke = function (e) {
|
|
2178
|
-
return Ze(He, e);
|
|
2179
|
-
},
|
|
2180
|
-
Qe = Ke;
|
|
2181
|
-
P.forEach(function (e) {
|
|
2182
|
-
Qe[e] = Ke(e);
|
|
2183
|
-
});
|
|
2184
|
-
function nt(t) {
|
|
2185
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
2186
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
2187
|
-
var r = te(Xe.apply(void 0, __spreadArray([t], n, !1))),
|
|
2188
|
-
s = x(r);
|
|
2189
|
-
return new Te(s, r);
|
|
2190
|
-
}
|
|
2191
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && process;
|
|
2192
|
-
|
|
2193
573
|
/*
|
|
2194
574
|
object-assign
|
|
2195
575
|
(c) Sindre Sorhus
|
|
@@ -3243,17 +1623,11 @@ const SvgProgressGradient = props => /*#__PURE__*/React__namespace.createElement
|
|
|
3243
1623
|
opacity: 0.72
|
|
3244
1624
|
}));
|
|
3245
1625
|
|
|
3246
|
-
const spin =
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
transform: rotate(360deg);
|
|
3252
|
-
}
|
|
3253
|
-
`;
|
|
3254
|
-
const Spinner = Qe(SvgProgressGradient)`
|
|
3255
|
-
animation: ${spin} 1000ms infinite steps(8, end);
|
|
3256
|
-
`;
|
|
1626
|
+
const spin = styled.keyframes(["from{transform:rotate(0);}to{transform:rotate(360deg);}"]);
|
|
1627
|
+
const Spinner = styled(SvgProgressGradient).withConfig({
|
|
1628
|
+
displayName: "Spinner",
|
|
1629
|
+
componentId: "sc-13dlgyx-0"
|
|
1630
|
+
})(["animation:", " 1000ms infinite steps(8,end);"], spin);
|
|
3257
1631
|
Spinner.defaultProps = {
|
|
3258
1632
|
width: 32,
|
|
3259
1633
|
height: 32,
|
|
@@ -3282,20 +1656,15 @@ const wordBreak = system({
|
|
|
3282
1656
|
}
|
|
3283
1657
|
});
|
|
3284
1658
|
|
|
3285
|
-
const View =
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
const UnstyledButton = Qe.button`
|
|
3291
|
-
background: none;
|
|
3292
|
-
border: 0;
|
|
3293
|
-
padding: 0;
|
|
3294
|
-
outline: none;
|
|
3295
|
-
cursor: pointer;
|
|
1659
|
+
const View = styled.div.withConfig({
|
|
1660
|
+
displayName: "View",
|
|
1661
|
+
componentId: "sc-1v428e-0"
|
|
1662
|
+
})(["", " ", ""], compose(layout, color, flexbox, background, border, position, shadow), sx);
|
|
3296
1663
|
|
|
3297
|
-
|
|
3298
|
-
|
|
1664
|
+
const UnstyledButton = styled.button.withConfig({
|
|
1665
|
+
displayName: "_UnstyledButton__UnstyledButton",
|
|
1666
|
+
componentId: "sc-j96ib-0"
|
|
1667
|
+
})(["background:none;border:0;padding:0;outline:none;cursor:pointer;", ""], sx);
|
|
3299
1668
|
|
|
3300
1669
|
var jsxRuntime = {exports: {}};
|
|
3301
1670
|
|
|
@@ -4545,7 +2914,10 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
4545
2914
|
}) : null]
|
|
4546
2915
|
});
|
|
4547
2916
|
});
|
|
4548
|
-
const BaseButton =
|
|
2917
|
+
const BaseButton = styled(UnstyledButton).withConfig({
|
|
2918
|
+
displayName: "Button__BaseButton",
|
|
2919
|
+
componentId: "sc-1yhc0ra-0"
|
|
2920
|
+
})(({
|
|
4549
2921
|
$loading,
|
|
4550
2922
|
$disabled,
|
|
4551
2923
|
fillWidth
|
|
@@ -4793,7 +3165,10 @@ const BaseButton = Qe(UnstyledButton)(({
|
|
|
4793
3165
|
}
|
|
4794
3166
|
}
|
|
4795
3167
|
}));
|
|
4796
|
-
const BaseSpinner =
|
|
3168
|
+
const BaseSpinner = styled(Spinner).withConfig({
|
|
3169
|
+
displayName: "Button__BaseSpinner",
|
|
3170
|
+
componentId: "sc-1yhc0ra-1"
|
|
3171
|
+
})(variant({
|
|
4797
3172
|
prop: 'size',
|
|
4798
3173
|
variants: {
|
|
4799
3174
|
l: {
|
|
@@ -4848,7 +3223,10 @@ const Chip = ({
|
|
|
4848
3223
|
trailingIcon: TrailingIcon,
|
|
4849
3224
|
children: [LeadingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingIcon, {}) : null, children, TrailingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingIcon, {}) : null]
|
|
4850
3225
|
});
|
|
4851
|
-
const BaseChip =
|
|
3226
|
+
const BaseChip = styled.span.withConfig({
|
|
3227
|
+
displayName: "Chip__BaseChip",
|
|
3228
|
+
componentId: "sc-sq73uo-0"
|
|
3229
|
+
})({
|
|
4852
3230
|
position: 'relative',
|
|
4853
3231
|
width: 'fit-content',
|
|
4854
3232
|
borderRadius: radii.full,
|
|
@@ -5004,7 +3382,10 @@ const BaseChip = Qe.span({
|
|
|
5004
3382
|
}
|
|
5005
3383
|
}), sx);
|
|
5006
3384
|
|
|
5007
|
-
const Text =
|
|
3385
|
+
const Text = styled.span.withConfig({
|
|
3386
|
+
displayName: "Text",
|
|
3387
|
+
componentId: "sc-yuorjy-0"
|
|
3388
|
+
})({
|
|
5008
3389
|
'display': 'block',
|
|
5009
3390
|
'whiteSpace': 'pre-wrap',
|
|
5010
3391
|
'& > span': {
|
|
@@ -5044,14 +3425,12 @@ Text.defaultProps = {
|
|
|
5044
3425
|
color: 'text/neutral'
|
|
5045
3426
|
};
|
|
5046
3427
|
|
|
5047
|
-
const GradientText =
|
|
5048
|
-
|
|
3428
|
+
const GradientText = styled(Text).withConfig({
|
|
3429
|
+
displayName: "GradientText",
|
|
3430
|
+
componentId: "sc-1jku3z1-0"
|
|
3431
|
+
})(["background:", ";background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;"], ({
|
|
5049
3432
|
theme
|
|
5050
|
-
}) => `linear-gradient(${theme.gradients['text/accent']})`
|
|
5051
|
-
background-clip: text;
|
|
5052
|
-
-webkit-background-clip: text;
|
|
5053
|
-
-webkit-text-fill-color: transparent;
|
|
5054
|
-
`;
|
|
3433
|
+
}) => `linear-gradient(${theme.gradients['text/accent']})`);
|
|
5055
3434
|
|
|
5056
3435
|
/**
|
|
5057
3436
|
* CSS에서 사용할 수 있는 픽셀값으로 강제합니다.
|
|
@@ -5083,7 +3462,10 @@ const Grid = /*#__PURE__*/React.forwardRef(({
|
|
|
5083
3462
|
children: children
|
|
5084
3463
|
});
|
|
5085
3464
|
});
|
|
5086
|
-
const BaseGrid =
|
|
3465
|
+
const BaseGrid = styled(View).withConfig({
|
|
3466
|
+
displayName: "Grid__BaseGrid",
|
|
3467
|
+
componentId: "sc-4l957f-0"
|
|
3468
|
+
})({
|
|
5087
3469
|
display: 'flex',
|
|
5088
3470
|
flexDirection: 'row'
|
|
5089
3471
|
}, variant({
|
|
@@ -5187,7 +3569,10 @@ const IconButton = /*#__PURE__*/React.forwardRef(({
|
|
|
5187
3569
|
})
|
|
5188
3570
|
});
|
|
5189
3571
|
});
|
|
5190
|
-
const BaseIconButton =
|
|
3572
|
+
const BaseIconButton = styled(UnstyledButton).withConfig({
|
|
3573
|
+
displayName: "IconButton__BaseIconButton",
|
|
3574
|
+
componentId: "sc-13ybfes-0"
|
|
3575
|
+
})(({
|
|
5191
3576
|
$loading,
|
|
5192
3577
|
$disabled
|
|
5193
3578
|
}) => ({
|
|
@@ -5388,7 +3773,10 @@ const IconToggleButton = ({
|
|
|
5388
3773
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
|
|
5389
3774
|
});
|
|
5390
3775
|
};
|
|
5391
|
-
const BaseIconToggleButton =
|
|
3776
|
+
const BaseIconToggleButton = styled(UnstyledButton).withConfig({
|
|
3777
|
+
displayName: "IconToggleButton__BaseIconToggleButton",
|
|
3778
|
+
componentId: "sc-1y68w0-0"
|
|
3779
|
+
})(({
|
|
5392
3780
|
$disabled
|
|
5393
3781
|
}) => ({
|
|
5394
3782
|
'position': 'relative',
|
|
@@ -5475,11 +3863,10 @@ const ItemList = ({
|
|
|
5475
3863
|
});
|
|
5476
3864
|
};
|
|
5477
3865
|
|
|
5478
|
-
const Space =
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
`;
|
|
3866
|
+
const Space = styled.div.withConfig({
|
|
3867
|
+
displayName: "Space",
|
|
3868
|
+
componentId: "sc-4g4g8r-0"
|
|
3869
|
+
})(["width:inherit;", ";", ""], space, sx);
|
|
5483
3870
|
|
|
5484
3871
|
const Stack = /*#__PURE__*/React.forwardRef(({
|
|
5485
3872
|
gapX = 0,
|
|
@@ -5495,7 +3882,10 @@ const Stack = /*#__PURE__*/React.forwardRef(({
|
|
|
5495
3882
|
...props,
|
|
5496
3883
|
children: children
|
|
5497
3884
|
}));
|
|
5498
|
-
const BaseStack =
|
|
3885
|
+
const BaseStack = styled(View).withConfig({
|
|
3886
|
+
displayName: "Stack__BaseStack",
|
|
3887
|
+
componentId: "sc-1lqh56h-0"
|
|
3888
|
+
})({
|
|
5499
3889
|
display: 'flex',
|
|
5500
3890
|
flexDirection: 'row',
|
|
5501
3891
|
flexWrap: 'wrap'
|