@maelstrom-futurism/core 0.7.4-beta.2 → 0.7.4-beta.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/README.md +11 -1
- package/dist/@babel-l0sNRNKZ.mjs +0 -1
- package/dist/@emotion-BvU6oYU9.mjs +2 -0
- package/dist/hoist-non-react-statics-DyJq81SJ.mjs +1 -0
- package/dist/index.js +43 -202
- package/dist/stylis-h7b_IEWc.mjs +1 -0
- package/package.json +2 -2
- package/dist/@babel-l0sNRNKZ.mjs.map +0 -1
- package/dist/@emotion-KupopH08.mjs +0 -637
- package/dist/@emotion-KupopH08.mjs.map +0 -1
- package/dist/hoist-non-react-statics-DMhtiRqe.mjs +0 -223
- package/dist/hoist-non-react-statics-DMhtiRqe.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/stylis-CdCMw5Aa.mjs +0 -335
- package/dist/stylis-CdCMw5Aa.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="-ms-",n="-moz-",r="-webkit-",a="comm",t="rule",c="decl",u="@keyframes",s=Math.abs,i=String.fromCharCode,f=Object.assign;function o(e,n){return 45^v(e,0)?(((n<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3):0}function l(e){return e.trim()}function h(e,n){return(e=n.exec(e))?e[0]:e}function b(e,n,r){return e.replace(n,r)}function k(e,n){return e.indexOf(n)}function v(e,n){return 0|e.charCodeAt(n)}function d(e,n,r){return e.slice(n,r)}function p(e){return e.length}function g(e){return e.length}function m(e,n){return n.push(e),e}function w(e,n){return e.map(n).join("")}var j=1,y=1,x=0,C=0,M=0,O="";function q(e,n,r,a,t,c,u){return{value:e,root:n,parent:r,type:a,props:t,children:c,line:j,column:y,length:u,return:""}}function z(e,n){return f(q("",null,null,"",null,null,0),e,{length:-e.length},n)}function A(){return M=C>0?v(O,--C):0,y--,10===M&&(y=1,j--),M}function D(){return M=C<x?v(O,C++):0,y++,10===M&&(y=1,j++),M}function K(){return v(O,C)}function R(){return C}function S(e,n){return d(O,e,n)}function W(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 B(e){return j=y=1,x=p(O=e),C=0,[]}function E(e){return O="",e}function F(e){return l(S(C-1,I(91===e?e+2:40===e?e+1:e)))}function G(e){for(;(M=K())&&M<33;)D();return W(e)>2||W(M)>3?"":" "}function H(e,n){for(;--n&&D()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return S(e,R()+(n<6&&32==K()&&32==D()))}function I(e){for(;D();)switch(M){case e:return C;case 34:case 39:34!==e&&39!==e&&I(M);break;case 40:41===e&&I(e);break;case 92:D()}return C}function J(e,n){for(;D()&&e+M!==57&&(e+M!==84||47!==K()););return"/*"+S(n,C-1)+"*"+i(47===e?e:D())}function L(e){for(;!W(K());)D();return S(e,C)}function N(e){return E(P("",null,null,null,[""],e=B(e),0,[0],e))}function P(e,n,r,a,t,c,u,s,f){for(var o=0,l=0,h=u,d=0,g=0,w=0,j=1,y=1,x=1,C=0,M="",O=t,q=c,z=a,S=M;y;)switch(w=C,C=D()){case 40:if(108!=w&&58==v(S,h-1)){-1!=k(S+=b(F(C),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=F(C);break;case 9:case 10:case 13:case 32:S+=G(w);break;case 92:S+=H(R()-1,7);continue;case 47:switch(K()){case 42:case 47:m(T(J(D(),R()),n,r),f);break;default:S+="/"}break;case 123*j:s[o++]=p(S)*x;case 125*j:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+l:-1==x&&(S=b(S,/\f/g,"")),g>0&&p(S)-h&&m(g>32?U(S+";",a,r,h-1):U(b(S," ","")+";",a,r,h-2),f);break;case 59:S+=";";default:if(m(z=Q(S,n,r,o,l,t,s,M,O=[],q=[],h),c),123===C)if(0===l)P(S,n,z,z,O,c,h,s,q);else switch(99===d&&110===v(S,3)?100:d){case 100:case 108:case 109:case 115:P(e,z,z,a&&m(Q(e,z,z,0,0,t,s,M,t,O=[],h),q),t,q,h,s,a?O:q);break;default:P(S,z,z,z,[""],q,0,s,q)}}o=l=g=0,j=x=1,M=S="",h=u;break;case 58:h=1+p(S),g=w;default:if(j<1)if(123==C)--j;else if(125==C&&0==j++&&125==A())continue;switch(S+=i(C),C*j){case 38:x=l>0?1:(S+="\f",-1);break;case 44:s[o++]=(p(S)-1)*x,x=1;break;case 64:45===K()&&(S+=F(D())),d=K(),l=h=p(M=S+=L(R())),C++;break;case 45:45===w&&2==p(S)&&(j=0)}}return c}function Q(e,n,r,a,c,u,i,f,o,h,k){for(var v=c-1,p=0===c?u:[""],m=g(p),w=0,j=0,y=0;w<a;++w)for(var x=0,C=d(e,v+1,v=s(j=i[w])),M=e;x<m;++x)(M=l(j>0?p[x]+" "+C:b(C,/&\f/g,p[x])))&&(o[y++]=M);return q(e,n,r,0===c?t:f,o,h,k)}function T(e,n,r){return q(e,n,r,a,i(M),d(e,2,-2),0)}function U(e,n,r,a){return q(e,n,r,c,d(e,0,a),d(e,a+1,-1),a)}function V(e,n){for(var r="",a=g(e),t=0;t<a;t++)r+=n(e[t],t,e,n)||"";return r}function X(e,n,r,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case c:return e.return=e.return||e.value;case a:return"";case u:return e.return=e.value+"{"+V(e.children,s)+"}";case t:e.value=e.props.join(",")}return p(r=V(e.children,s))?e.return=e.value+"{"+r+"}":""}function Y(e){var n=g(e);return function(r,a,t,c){for(var u="",s=0;s<n;s++)u+=e[s](r,a,t,c)||"";return u}}function Z(e){return function(n){n.root||(n=n.return)&&e(n)}}export{c as D,u as K,e as M,t as R,r as W,X as a,w as b,N as c,z as d,b as e,E as f,B as g,o as h,v as i,p as j,k,n as l,Y as m,h as n,D as o,i as p,K as q,Z as r,V as s,W as t,F as u,S as v,C as w};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maelstrom-futurism/core",
|
|
3
|
-
"version": "0.7.4-beta.
|
|
3
|
+
"version": "0.7.4-beta.4",
|
|
4
4
|
"description": "Core package for shared resources in Maelstrom Futurism",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"url": "https://github.com/DawsonG/maelstrom-futurism/issues"
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/DawsonG/maelstrom-futurism#readme",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f04972a70d3b1c17e03ccb9eba4e41e5f591415f"
|
|
33
33
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"@babel-l0sNRNKZ.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,637 +0,0 @@
|
|
|
1
|
-
import "./hoist-non-react-statics-DMhtiRqe.mjs";
|
|
2
|
-
import * as C from "react/jsx-runtime";
|
|
3
|
-
import * as h from "react";
|
|
4
|
-
import { forwardRef as ne, useContext as se } from "react";
|
|
5
|
-
import { s as E, c as ae, m as ie, a as ce, r as oe, R as fe, b as ue, K as de, d as v, e as f, W as c, D as le, f as he, g as me, h as ye, i as b, M as l, j as W, k as L, l as $, n as ge, o as J, t as X, p as xe, q as k, u as pe, v as be, w as q } from "./stylis-CdCMw5Aa.mjs";
|
|
6
|
-
function ve(t) {
|
|
7
|
-
if (t.sheet)
|
|
8
|
-
return t.sheet;
|
|
9
|
-
for (var e = 0; e < document.styleSheets.length; e++)
|
|
10
|
-
if (document.styleSheets[e].ownerNode === t)
|
|
11
|
-
return document.styleSheets[e];
|
|
12
|
-
}
|
|
13
|
-
function we(t) {
|
|
14
|
-
var e = document.createElement("style");
|
|
15
|
-
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
16
|
-
}
|
|
17
|
-
var Se = /* @__PURE__ */ (function() {
|
|
18
|
-
function t(r) {
|
|
19
|
-
var n = this;
|
|
20
|
-
this._insertTag = function(s) {
|
|
21
|
-
var a;
|
|
22
|
-
n.tags.length === 0 ? n.insertionPoint ? a = n.insertionPoint.nextSibling : n.prepend ? a = n.container.firstChild : a = n.before : a = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(s, a), n.tags.push(s);
|
|
23
|
-
}, this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
|
|
24
|
-
}
|
|
25
|
-
var e = t.prototype;
|
|
26
|
-
return e.hydrate = function(n) {
|
|
27
|
-
n.forEach(this._insertTag);
|
|
28
|
-
}, e.insert = function(n) {
|
|
29
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(we(this));
|
|
30
|
-
var s = this.tags[this.tags.length - 1];
|
|
31
|
-
if (this.isSpeedy) {
|
|
32
|
-
var a = ve(s);
|
|
33
|
-
try {
|
|
34
|
-
a.insertRule(n, a.cssRules.length);
|
|
35
|
-
} catch {
|
|
36
|
-
}
|
|
37
|
-
} else
|
|
38
|
-
s.appendChild(document.createTextNode(n));
|
|
39
|
-
this.ctr++;
|
|
40
|
-
}, e.flush = function() {
|
|
41
|
-
this.tags.forEach(function(n) {
|
|
42
|
-
var s;
|
|
43
|
-
return (s = n.parentNode) == null ? void 0 : s.removeChild(n);
|
|
44
|
-
}), this.tags = [], this.ctr = 0;
|
|
45
|
-
}, t;
|
|
46
|
-
})();
|
|
47
|
-
function Ee(t) {
|
|
48
|
-
var e = /* @__PURE__ */ Object.create(null);
|
|
49
|
-
return function(r) {
|
|
50
|
-
return e[r] === void 0 && (e[r] = t(r)), e[r];
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
var Ce = function(e, r, n) {
|
|
54
|
-
for (var s = 0, a = 0; s = a, a = k(), s === 38 && a === 12 && (r[n] = 1), !X(a); )
|
|
55
|
-
J();
|
|
56
|
-
return be(e, q);
|
|
57
|
-
}, $e = function(e, r) {
|
|
58
|
-
var n = -1, s = 44;
|
|
59
|
-
do
|
|
60
|
-
switch (X(s)) {
|
|
61
|
-
case 0:
|
|
62
|
-
s === 38 && k() === 12 && (r[n] = 1), e[n] += Ce(q - 1, r, n);
|
|
63
|
-
break;
|
|
64
|
-
case 2:
|
|
65
|
-
e[n] += pe(s);
|
|
66
|
-
break;
|
|
67
|
-
case 4:
|
|
68
|
-
if (s === 44) {
|
|
69
|
-
e[++n] = k() === 58 ? "&\f" : "", r[n] = e[n].length;
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
// fallthrough
|
|
73
|
-
default:
|
|
74
|
-
e[n] += xe(s);
|
|
75
|
-
}
|
|
76
|
-
while (s = J());
|
|
77
|
-
return e;
|
|
78
|
-
}, Ae = function(e, r) {
|
|
79
|
-
return he($e(me(e), r));
|
|
80
|
-
}, M = /* @__PURE__ */ new WeakMap(), Re = function(e) {
|
|
81
|
-
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
82
|
-
// negative .length indicates that this rule has been already prefixed
|
|
83
|
-
e.length < 1)) {
|
|
84
|
-
for (var r = e.value, n = e.parent, s = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
85
|
-
if (n = n.parent, !n) return;
|
|
86
|
-
if (!(e.props.length === 1 && r.charCodeAt(0) !== 58 && !M.get(n)) && !s) {
|
|
87
|
-
M.set(e, !0);
|
|
88
|
-
for (var a = [], i = Ae(r, a), u = n.props, o = 0, d = 0; o < i.length; o++)
|
|
89
|
-
for (var m = 0; m < u.length; m++, d++)
|
|
90
|
-
e.props[d] = a[o] ? i[o].replace(/&\f/g, u[m]) : u[m] + " " + i[o];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}, Pe = function(e) {
|
|
94
|
-
if (e.type === "decl") {
|
|
95
|
-
var r = e.value;
|
|
96
|
-
// charcode for l
|
|
97
|
-
r.charCodeAt(0) === 108 && // charcode for b
|
|
98
|
-
r.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
function z(t, e) {
|
|
102
|
-
switch (ye(t, e)) {
|
|
103
|
-
// color-adjust
|
|
104
|
-
case 5103:
|
|
105
|
-
return c + "print-" + t + t;
|
|
106
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
107
|
-
case 5737:
|
|
108
|
-
case 4201:
|
|
109
|
-
case 3177:
|
|
110
|
-
case 3433:
|
|
111
|
-
case 1641:
|
|
112
|
-
case 4457:
|
|
113
|
-
case 2921:
|
|
114
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
115
|
-
case 5572:
|
|
116
|
-
case 6356:
|
|
117
|
-
case 5844:
|
|
118
|
-
case 3191:
|
|
119
|
-
case 6645:
|
|
120
|
-
case 3005:
|
|
121
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
122
|
-
case 6391:
|
|
123
|
-
case 5879:
|
|
124
|
-
case 5623:
|
|
125
|
-
case 6135:
|
|
126
|
-
case 4599:
|
|
127
|
-
case 4855:
|
|
128
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
129
|
-
case 4215:
|
|
130
|
-
case 6389:
|
|
131
|
-
case 5109:
|
|
132
|
-
case 5365:
|
|
133
|
-
case 5621:
|
|
134
|
-
case 3829:
|
|
135
|
-
return c + t + t;
|
|
136
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
137
|
-
case 5349:
|
|
138
|
-
case 4246:
|
|
139
|
-
case 4810:
|
|
140
|
-
case 6968:
|
|
141
|
-
case 2756:
|
|
142
|
-
return c + t + $ + t + l + t + t;
|
|
143
|
-
// flex, flex-direction
|
|
144
|
-
case 6828:
|
|
145
|
-
case 4268:
|
|
146
|
-
return c + t + l + t + t;
|
|
147
|
-
// order
|
|
148
|
-
case 6165:
|
|
149
|
-
return c + t + l + "flex-" + t + t;
|
|
150
|
-
// align-items
|
|
151
|
-
case 5187:
|
|
152
|
-
return c + t + f(t, /(\w+).+(:[^]+)/, c + "box-$1$2" + l + "flex-$1$2") + t;
|
|
153
|
-
// align-self
|
|
154
|
-
case 5443:
|
|
155
|
-
return c + t + l + "flex-item-" + f(t, /flex-|-self/, "") + t;
|
|
156
|
-
// align-content
|
|
157
|
-
case 4675:
|
|
158
|
-
return c + t + l + "flex-line-pack" + f(t, /align-content|flex-|-self/, "") + t;
|
|
159
|
-
// flex-shrink
|
|
160
|
-
case 5548:
|
|
161
|
-
return c + t + l + f(t, "shrink", "negative") + t;
|
|
162
|
-
// flex-basis
|
|
163
|
-
case 5292:
|
|
164
|
-
return c + t + l + f(t, "basis", "preferred-size") + t;
|
|
165
|
-
// flex-grow
|
|
166
|
-
case 6060:
|
|
167
|
-
return c + "box-" + f(t, "-grow", "") + c + t + l + f(t, "grow", "positive") + t;
|
|
168
|
-
// transition
|
|
169
|
-
case 4554:
|
|
170
|
-
return c + f(t, /([^-])(transform)/g, "$1" + c + "$2") + t;
|
|
171
|
-
// cursor
|
|
172
|
-
case 6187:
|
|
173
|
-
return f(f(f(t, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), t, "") + t;
|
|
174
|
-
// background, background-image
|
|
175
|
-
case 5495:
|
|
176
|
-
case 3959:
|
|
177
|
-
return f(t, /(image-set\([^]*)/, c + "$1$`$1");
|
|
178
|
-
// justify-content
|
|
179
|
-
case 4968:
|
|
180
|
-
return f(f(t, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + l + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + t + t;
|
|
181
|
-
// (margin|padding)-inline-(start|end)
|
|
182
|
-
case 4095:
|
|
183
|
-
case 3583:
|
|
184
|
-
case 4068:
|
|
185
|
-
case 2532:
|
|
186
|
-
return f(t, /(.+)-inline(.+)/, c + "$1$2") + t;
|
|
187
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
188
|
-
case 8116:
|
|
189
|
-
case 7059:
|
|
190
|
-
case 5753:
|
|
191
|
-
case 5535:
|
|
192
|
-
case 5445:
|
|
193
|
-
case 5701:
|
|
194
|
-
case 4933:
|
|
195
|
-
case 4677:
|
|
196
|
-
case 5533:
|
|
197
|
-
case 5789:
|
|
198
|
-
case 5021:
|
|
199
|
-
case 4765:
|
|
200
|
-
if (W(t) - 1 - e > 6) switch (b(t, e + 1)) {
|
|
201
|
-
// (m)ax-content, (m)in-content
|
|
202
|
-
case 109:
|
|
203
|
-
if (b(t, e + 4) !== 45) break;
|
|
204
|
-
// (f)ill-available, (f)it-content
|
|
205
|
-
case 102:
|
|
206
|
-
return f(t, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3$1" + $ + (b(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
207
|
-
// (s)tretch
|
|
208
|
-
case 115:
|
|
209
|
-
return ~L(t, "stretch") ? z(f(t, "stretch", "fill-available"), e) + t : t;
|
|
210
|
-
}
|
|
211
|
-
break;
|
|
212
|
-
// position: sticky
|
|
213
|
-
case 4949:
|
|
214
|
-
if (b(t, e + 1) !== 115) break;
|
|
215
|
-
// display: (flex|inline-flex)
|
|
216
|
-
case 6444:
|
|
217
|
-
switch (b(t, W(t) - 3 - (~L(t, "!important") && 10))) {
|
|
218
|
-
// stic(k)y
|
|
219
|
-
case 107:
|
|
220
|
-
return f(t, ":", ":" + c) + t;
|
|
221
|
-
// (inline-)?fl(e)x
|
|
222
|
-
case 101:
|
|
223
|
-
return f(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + c + (b(t, 14) === 45 ? "inline-" : "") + "box$3$1" + c + "$2$3$1" + l + "$2box$3") + t;
|
|
224
|
-
}
|
|
225
|
-
break;
|
|
226
|
-
// writing-mode
|
|
227
|
-
case 5936:
|
|
228
|
-
switch (b(t, e + 11)) {
|
|
229
|
-
// vertical-l(r)
|
|
230
|
-
case 114:
|
|
231
|
-
return c + t + l + f(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
232
|
-
// vertical-r(l)
|
|
233
|
-
case 108:
|
|
234
|
-
return c + t + l + f(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
235
|
-
// horizontal(-)tb
|
|
236
|
-
case 45:
|
|
237
|
-
return c + t + l + f(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
238
|
-
}
|
|
239
|
-
return c + t + l + t + t;
|
|
240
|
-
}
|
|
241
|
-
return t;
|
|
242
|
-
}
|
|
243
|
-
var ke = function(e, r, n, s) {
|
|
244
|
-
if (e.length > -1 && !e.return) switch (e.type) {
|
|
245
|
-
case le:
|
|
246
|
-
e.return = z(e.value, e.length);
|
|
247
|
-
break;
|
|
248
|
-
case de:
|
|
249
|
-
return E([v(e, {
|
|
250
|
-
value: f(e.value, "@", "@" + c)
|
|
251
|
-
})], s);
|
|
252
|
-
case fe:
|
|
253
|
-
if (e.length) return ue(e.props, function(a) {
|
|
254
|
-
switch (ge(a, /(::plac\w+|:read-\w+)/)) {
|
|
255
|
-
// :read-(only|write)
|
|
256
|
-
case ":read-only":
|
|
257
|
-
case ":read-write":
|
|
258
|
-
return E([v(e, {
|
|
259
|
-
props: [f(a, /:(read-\w+)/, ":" + $ + "$1")]
|
|
260
|
-
})], s);
|
|
261
|
-
// :placeholder
|
|
262
|
-
case "::placeholder":
|
|
263
|
-
return E([v(e, {
|
|
264
|
-
props: [f(a, /:(plac\w+)/, ":" + c + "input-$1")]
|
|
265
|
-
}), v(e, {
|
|
266
|
-
props: [f(a, /:(plac\w+)/, ":" + $ + "$1")]
|
|
267
|
-
}), v(e, {
|
|
268
|
-
props: [f(a, /:(plac\w+)/, l + "input-$1")]
|
|
269
|
-
})], s);
|
|
270
|
-
}
|
|
271
|
-
return "";
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
}, Oe = [ke], Te = function(e) {
|
|
275
|
-
var r = e.key;
|
|
276
|
-
if (r === "css") {
|
|
277
|
-
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
278
|
-
Array.prototype.forEach.call(n, function(y) {
|
|
279
|
-
var x = y.getAttribute("data-emotion");
|
|
280
|
-
x.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
var s = e.stylisPlugins || Oe, a = {}, i, u = [];
|
|
284
|
-
i = e.container || document.head, Array.prototype.forEach.call(
|
|
285
|
-
// this means we will ignore elements which don't have a space in them which
|
|
286
|
-
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
287
|
-
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
288
|
-
function(y) {
|
|
289
|
-
for (var x = y.getAttribute("data-emotion").split(" "), p = 1; p < x.length; p++)
|
|
290
|
-
a[x[p]] = !0;
|
|
291
|
-
u.push(y);
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
var o, d = [Re, Pe];
|
|
295
|
-
{
|
|
296
|
-
var m, A = [ce, oe(function(y) {
|
|
297
|
-
m.insert(y);
|
|
298
|
-
})], Q = ie(d.concat(s, A)), ee = function(x) {
|
|
299
|
-
return E(ae(x), Q);
|
|
300
|
-
};
|
|
301
|
-
o = function(x, p, te, re) {
|
|
302
|
-
m = te, ee(x ? x + "{" + p.styles + "}" : p.styles), re && (R.inserted[p.name] = !0);
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
var R = {
|
|
306
|
-
key: r,
|
|
307
|
-
sheet: new Se({
|
|
308
|
-
key: r,
|
|
309
|
-
container: i,
|
|
310
|
-
nonce: e.nonce,
|
|
311
|
-
speedy: e.speedy,
|
|
312
|
-
prepend: e.prepend,
|
|
313
|
-
insertionPoint: e.insertionPoint
|
|
314
|
-
}),
|
|
315
|
-
nonce: e.nonce,
|
|
316
|
-
inserted: a,
|
|
317
|
-
registered: {},
|
|
318
|
-
insert: o
|
|
319
|
-
};
|
|
320
|
-
return R.sheet.hydrate(u), R;
|
|
321
|
-
}, Ie = !0;
|
|
322
|
-
function Ne(t, e, r) {
|
|
323
|
-
var n = "";
|
|
324
|
-
return r.split(" ").forEach(function(s) {
|
|
325
|
-
t[s] !== void 0 ? e.push(t[s] + ";") : s && (n += s + " ");
|
|
326
|
-
}), n;
|
|
327
|
-
}
|
|
328
|
-
var K = function(e, r, n) {
|
|
329
|
-
var s = e.key + "-" + r.name;
|
|
330
|
-
// we only need to add the styles to the registered cache if the
|
|
331
|
-
// class name could be used further down
|
|
332
|
-
// the tree but if it's a string tag, we know it won't
|
|
333
|
-
// so we don't have to add it to registered cache.
|
|
334
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
335
|
-
(n === !1 || // we need to always store it if we're in compat mode and
|
|
336
|
-
// in node since emotion-server relies on whether a style is in
|
|
337
|
-
// the registered cache to know whether a style is global or not
|
|
338
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
339
|
-
Ie === !1) && e.registered[s] === void 0 && (e.registered[s] = r.styles);
|
|
340
|
-
}, V = function(e, r, n) {
|
|
341
|
-
K(e, r, n);
|
|
342
|
-
var s = e.key + "-" + r.name;
|
|
343
|
-
if (e.inserted[r.name] === void 0) {
|
|
344
|
-
var a = r;
|
|
345
|
-
do
|
|
346
|
-
e.insert(r === a ? "." + s : "", a, e.sheet, !0), a = a.next;
|
|
347
|
-
while (a !== void 0);
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
function We(t) {
|
|
351
|
-
for (var e = 0, r, n = 0, s = t.length; s >= 4; ++n, s -= 4)
|
|
352
|
-
r = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
353
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
354
|
-
r >>> 24, e = /* Math.imul(k, m): */
|
|
355
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
356
|
-
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
|
|
357
|
-
switch (s) {
|
|
358
|
-
case 3:
|
|
359
|
-
e ^= (t.charCodeAt(n + 2) & 255) << 16;
|
|
360
|
-
case 2:
|
|
361
|
-
e ^= (t.charCodeAt(n + 1) & 255) << 8;
|
|
362
|
-
case 1:
|
|
363
|
-
e ^= t.charCodeAt(n) & 255, e = /* Math.imul(h, m): */
|
|
364
|
-
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
|
|
365
|
-
}
|
|
366
|
-
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
367
|
-
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
368
|
-
}
|
|
369
|
-
var Le = {
|
|
370
|
-
animationIterationCount: 1,
|
|
371
|
-
aspectRatio: 1,
|
|
372
|
-
borderImageOutset: 1,
|
|
373
|
-
borderImageSlice: 1,
|
|
374
|
-
borderImageWidth: 1,
|
|
375
|
-
boxFlex: 1,
|
|
376
|
-
boxFlexGroup: 1,
|
|
377
|
-
boxOrdinalGroup: 1,
|
|
378
|
-
columnCount: 1,
|
|
379
|
-
columns: 1,
|
|
380
|
-
flex: 1,
|
|
381
|
-
flexGrow: 1,
|
|
382
|
-
flexPositive: 1,
|
|
383
|
-
flexShrink: 1,
|
|
384
|
-
flexNegative: 1,
|
|
385
|
-
flexOrder: 1,
|
|
386
|
-
gridRow: 1,
|
|
387
|
-
gridRowEnd: 1,
|
|
388
|
-
gridRowSpan: 1,
|
|
389
|
-
gridRowStart: 1,
|
|
390
|
-
gridColumn: 1,
|
|
391
|
-
gridColumnEnd: 1,
|
|
392
|
-
gridColumnSpan: 1,
|
|
393
|
-
gridColumnStart: 1,
|
|
394
|
-
msGridRow: 1,
|
|
395
|
-
msGridRowSpan: 1,
|
|
396
|
-
msGridColumn: 1,
|
|
397
|
-
msGridColumnSpan: 1,
|
|
398
|
-
fontWeight: 1,
|
|
399
|
-
lineHeight: 1,
|
|
400
|
-
opacity: 1,
|
|
401
|
-
order: 1,
|
|
402
|
-
orphans: 1,
|
|
403
|
-
scale: 1,
|
|
404
|
-
tabSize: 1,
|
|
405
|
-
widows: 1,
|
|
406
|
-
zIndex: 1,
|
|
407
|
-
zoom: 1,
|
|
408
|
-
WebkitLineClamp: 1,
|
|
409
|
-
// SVG-related properties
|
|
410
|
-
fillOpacity: 1,
|
|
411
|
-
floodOpacity: 1,
|
|
412
|
-
stopOpacity: 1,
|
|
413
|
-
strokeDasharray: 1,
|
|
414
|
-
strokeDashoffset: 1,
|
|
415
|
-
strokeMiterlimit: 1,
|
|
416
|
-
strokeOpacity: 1,
|
|
417
|
-
strokeWidth: 1
|
|
418
|
-
}, Me = /[A-Z]|^ms/g, je = /_EMO_([^_]+?)_([^]*?)_EMO_/g, B = function(e) {
|
|
419
|
-
return e.charCodeAt(1) === 45;
|
|
420
|
-
}, j = function(e) {
|
|
421
|
-
return e != null && typeof e != "boolean";
|
|
422
|
-
}, P = /* @__PURE__ */ Ee(function(t) {
|
|
423
|
-
return B(t) ? t : t.replace(Me, "-$&").toLowerCase();
|
|
424
|
-
}), F = function(e, r) {
|
|
425
|
-
switch (e) {
|
|
426
|
-
case "animation":
|
|
427
|
-
case "animationName":
|
|
428
|
-
if (typeof r == "string")
|
|
429
|
-
return r.replace(je, function(n, s, a) {
|
|
430
|
-
return g = {
|
|
431
|
-
name: s,
|
|
432
|
-
styles: a,
|
|
433
|
-
next: g
|
|
434
|
-
}, s;
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
return Le[e] !== 1 && !B(e) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
438
|
-
};
|
|
439
|
-
function w(t, e, r) {
|
|
440
|
-
if (r == null)
|
|
441
|
-
return "";
|
|
442
|
-
var n = r;
|
|
443
|
-
if (n.__emotion_styles !== void 0)
|
|
444
|
-
return n;
|
|
445
|
-
switch (typeof r) {
|
|
446
|
-
case "boolean":
|
|
447
|
-
return "";
|
|
448
|
-
case "object": {
|
|
449
|
-
var s = r;
|
|
450
|
-
if (s.anim === 1)
|
|
451
|
-
return g = {
|
|
452
|
-
name: s.name,
|
|
453
|
-
styles: s.styles,
|
|
454
|
-
next: g
|
|
455
|
-
}, s.name;
|
|
456
|
-
var a = r;
|
|
457
|
-
if (a.styles !== void 0) {
|
|
458
|
-
var i = a.next;
|
|
459
|
-
if (i !== void 0)
|
|
460
|
-
for (; i !== void 0; )
|
|
461
|
-
g = {
|
|
462
|
-
name: i.name,
|
|
463
|
-
styles: i.styles,
|
|
464
|
-
next: g
|
|
465
|
-
}, i = i.next;
|
|
466
|
-
var u = a.styles + ";";
|
|
467
|
-
return u;
|
|
468
|
-
}
|
|
469
|
-
return Fe(t, e, r);
|
|
470
|
-
}
|
|
471
|
-
case "function": {
|
|
472
|
-
if (t !== void 0) {
|
|
473
|
-
var o = g, d = r(t);
|
|
474
|
-
return g = o, w(t, e, d);
|
|
475
|
-
}
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
var m = r;
|
|
480
|
-
return m;
|
|
481
|
-
}
|
|
482
|
-
function Fe(t, e, r) {
|
|
483
|
-
var n = "";
|
|
484
|
-
if (Array.isArray(r))
|
|
485
|
-
for (var s = 0; s < r.length; s++)
|
|
486
|
-
n += w(t, e, r[s]) + ";";
|
|
487
|
-
else
|
|
488
|
-
for (var a in r) {
|
|
489
|
-
var i = r[a];
|
|
490
|
-
if (typeof i != "object") {
|
|
491
|
-
var u = i;
|
|
492
|
-
j(u) && (n += P(a) + ":" + F(a, u) + ";");
|
|
493
|
-
} else if (Array.isArray(i) && typeof i[0] == "string" && e == null)
|
|
494
|
-
for (var o = 0; o < i.length; o++)
|
|
495
|
-
j(i[o]) && (n += P(a) + ":" + F(a, i[o]) + ";");
|
|
496
|
-
else {
|
|
497
|
-
var d = w(t, e, i);
|
|
498
|
-
switch (a) {
|
|
499
|
-
case "animation":
|
|
500
|
-
case "animationName": {
|
|
501
|
-
n += P(a) + ":" + d + ";";
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
default:
|
|
505
|
-
n += a + "{" + d + "}";
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
return n;
|
|
510
|
-
}
|
|
511
|
-
var _ = /label:\s*([^\s;{]+)\s*(;|$)/g, g;
|
|
512
|
-
function T(t, e, r) {
|
|
513
|
-
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
514
|
-
return t[0];
|
|
515
|
-
var n = !0, s = "";
|
|
516
|
-
g = void 0;
|
|
517
|
-
var a = t[0];
|
|
518
|
-
if (a == null || a.raw === void 0)
|
|
519
|
-
n = !1, s += w(r, e, a);
|
|
520
|
-
else {
|
|
521
|
-
var i = a;
|
|
522
|
-
s += i[0];
|
|
523
|
-
}
|
|
524
|
-
for (var u = 1; u < t.length; u++)
|
|
525
|
-
if (s += w(r, e, t[u]), n) {
|
|
526
|
-
var o = a;
|
|
527
|
-
s += o[u];
|
|
528
|
-
}
|
|
529
|
-
_.lastIndex = 0;
|
|
530
|
-
for (var d = "", m; (m = _.exec(s)) !== null; )
|
|
531
|
-
d += "-" + m[1];
|
|
532
|
-
var A = We(s) + d;
|
|
533
|
-
return {
|
|
534
|
-
name: A,
|
|
535
|
-
styles: s,
|
|
536
|
-
next: g
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
var _e = function(e) {
|
|
540
|
-
return e();
|
|
541
|
-
}, H = h.useInsertionEffect ? h.useInsertionEffect : !1, Ge = H || _e, G = H || h.useLayoutEffect, U = /* @__PURE__ */ h.createContext(
|
|
542
|
-
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
543
|
-
// because this module is primarily intended for the browser and node
|
|
544
|
-
// but it's also required in react native and similar environments sometimes
|
|
545
|
-
// and we could have a special build just for that
|
|
546
|
-
// but this is much easier and the native packages
|
|
547
|
-
// might use a different theme context in the future anyway
|
|
548
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */ Te({
|
|
549
|
-
key: "css"
|
|
550
|
-
}) : null
|
|
551
|
-
);
|
|
552
|
-
U.Provider;
|
|
553
|
-
var Y = function(e) {
|
|
554
|
-
return /* @__PURE__ */ ne(function(r, n) {
|
|
555
|
-
var s = se(U);
|
|
556
|
-
return e(r, s, n);
|
|
557
|
-
});
|
|
558
|
-
}, Z = /* @__PURE__ */ h.createContext({}), S = {}.hasOwnProperty, O = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", I = function(e, r) {
|
|
559
|
-
var n = {};
|
|
560
|
-
for (var s in r)
|
|
561
|
-
S.call(r, s) && (n[s] = r[s]);
|
|
562
|
-
return n[O] = e, n;
|
|
563
|
-
}, De = function(e) {
|
|
564
|
-
var r = e.cache, n = e.serialized, s = e.isStringTag;
|
|
565
|
-
return K(r, n, s), Ge(function() {
|
|
566
|
-
return V(r, n, s);
|
|
567
|
-
}), null;
|
|
568
|
-
}, Je = /* @__PURE__ */ Y(function(t, e, r) {
|
|
569
|
-
var n = t.css;
|
|
570
|
-
typeof n == "string" && e.registered[n] !== void 0 && (n = e.registered[n]);
|
|
571
|
-
var s = t[O], a = [n], i = "";
|
|
572
|
-
typeof t.className == "string" ? i = Ne(e.registered, a, t.className) : t.className != null && (i = t.className + " ");
|
|
573
|
-
var u = T(a, void 0, h.useContext(Z));
|
|
574
|
-
i += e.key + "-" + u.name;
|
|
575
|
-
var o = {};
|
|
576
|
-
for (var d in t)
|
|
577
|
-
S.call(t, d) && d !== "css" && d !== O && (o[d] = t[d]);
|
|
578
|
-
return o.className = i, r && (o.ref = r), /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(De, {
|
|
579
|
-
cache: e,
|
|
580
|
-
serialized: u,
|
|
581
|
-
isStringTag: typeof s == "string"
|
|
582
|
-
}), /* @__PURE__ */ h.createElement(s, o));
|
|
583
|
-
}), N = Je, Ke = function(e, r, n) {
|
|
584
|
-
return S.call(r, "css") ? C.jsx(N, I(e, r), n) : C.jsx(e, r, n);
|
|
585
|
-
}, Ve = function(e, r, n) {
|
|
586
|
-
return S.call(r, "css") ? C.jsxs(N, I(e, r), n) : C.jsxs(e, r, n);
|
|
587
|
-
}, D = function(e, r) {
|
|
588
|
-
var n = arguments;
|
|
589
|
-
if (r == null || !S.call(r, "css"))
|
|
590
|
-
return h.createElement.apply(void 0, n);
|
|
591
|
-
var s = n.length, a = new Array(s);
|
|
592
|
-
a[0] = N, a[1] = I(e, r);
|
|
593
|
-
for (var i = 2; i < s; i++)
|
|
594
|
-
a[i] = n[i];
|
|
595
|
-
return h.createElement.apply(null, a);
|
|
596
|
-
};
|
|
597
|
-
(function(t) {
|
|
598
|
-
var e;
|
|
599
|
-
e || (e = t.JSX || (t.JSX = {}));
|
|
600
|
-
})(D || (D = {}));
|
|
601
|
-
var Be = /* @__PURE__ */ Y(function(t, e) {
|
|
602
|
-
var r = t.styles, n = T([r], void 0, h.useContext(Z)), s = h.useRef();
|
|
603
|
-
return G(function() {
|
|
604
|
-
var a = e.key + "-global", i = new e.sheet.constructor({
|
|
605
|
-
key: a,
|
|
606
|
-
nonce: e.sheet.nonce,
|
|
607
|
-
container: e.sheet.container,
|
|
608
|
-
speedy: e.sheet.isSpeedy
|
|
609
|
-
}), u = !1, o = document.querySelector('style[data-emotion="' + a + " " + n.name + '"]');
|
|
610
|
-
return e.sheet.tags.length && (i.before = e.sheet.tags[0]), o !== null && (u = !0, o.setAttribute("data-emotion", a), i.hydrate([o])), s.current = [i, u], function() {
|
|
611
|
-
i.flush();
|
|
612
|
-
};
|
|
613
|
-
}, [e]), G(function() {
|
|
614
|
-
var a = s.current, i = a[0], u = a[1];
|
|
615
|
-
if (u) {
|
|
616
|
-
a[1] = !1;
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
if (n.next !== void 0 && V(e, n.next, !0), i.tags.length) {
|
|
620
|
-
var o = i.tags[i.tags.length - 1].nextElementSibling;
|
|
621
|
-
i.before = o, i.flush();
|
|
622
|
-
}
|
|
623
|
-
e.insert("", n, i, !1);
|
|
624
|
-
}, [e, n.name]), null;
|
|
625
|
-
});
|
|
626
|
-
function He() {
|
|
627
|
-
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
628
|
-
e[r] = arguments[r];
|
|
629
|
-
return T(e);
|
|
630
|
-
}
|
|
631
|
-
export {
|
|
632
|
-
Be as G,
|
|
633
|
-
Ke as a,
|
|
634
|
-
He as c,
|
|
635
|
-
Ve as j
|
|
636
|
-
};
|
|
637
|
-
//# sourceMappingURL=@emotion-KupopH08.mjs.map
|