@streamlayer/react 1.23.2 → 1.24.0
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/lib/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +203 -28
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -3
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -3
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +5 -3
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +5 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +8 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +14 -9
- package/lib/cjs/sl-types.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -3
- package/lib/cjs/utils.js +47 -1
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +203 -28
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +5 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +4 -3
- package/lib/classic/cjs/index2.js +5 -3
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -3
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +14 -9
- package/lib/classic/cjs/sl-types.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
- package/lib/classic/cjs/utils.js +47 -1
- package/lib/classic/es/Question.js +258 -275
- package/lib/classic/es/advertisement.js +22128 -38694
- package/lib/classic/es/analytics.js +55 -57
- package/lib/classic/es/auth.js +8 -14
- package/lib/classic/es/bet-pack.js +2413 -2455
- package/lib/classic/es/feature.js +46 -95
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -83
- package/lib/classic/es/index11.js +305 -3087
- package/lib/classic/es/index12.js +121 -124
- package/lib/classic/es/index13.js +559 -589
- package/lib/classic/es/index2.js +1755 -2114
- package/lib/classic/es/index3.js +13 -13
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +5 -5
- package/lib/classic/es/index6.js +285 -10
- package/lib/classic/es/index7.js +179 -6
- package/lib/classic/es/index8.js +5 -10
- package/lib/classic/es/index9.js +8 -318
- package/lib/classic/es/insight.js +54 -61
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +730 -787
- package/lib/classic/es/pause-ad.js +168 -191
- package/lib/classic/es/points.js +47 -55
- package/lib/classic/es/polymarket.js +4058 -4289
- package/lib/classic/es/sl-types.js +128 -298
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +0 -1
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +69 -3
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -10
- package/lib/dist/es/masters.js +16944 -19645
- package/lib/dist/index.d.ts +7 -17
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +101 -105
- package/lib/es/advertisement.js +22128 -38694
- package/lib/es/analytics.js +55 -57
- package/lib/es/auth.js +8 -14
- package/lib/es/bet-pack.js +18 -29
- package/lib/es/feature.js +46 -95
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -17
- package/lib/es/index10.js +8 -274
- package/lib/es/index11.js +172 -837
- package/lib/es/index12.js +2587 -183
- package/lib/es/index13.js +258 -314
- package/lib/es/index14.js +813 -81
- package/lib/es/index15.js +305 -3087
- package/lib/es/index16.js +803 -1005
- package/lib/es/index2.js +980 -1133
- package/lib/es/index3.js +4 -3
- package/lib/es/index4.js +2401 -2431
- package/lib/es/index5.js +13 -13
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -10
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +180 -10
- package/lib/es/insight.js +54 -61
- package/lib/es/masters.js +5 -7
- package/lib/es/masters2.js +538 -708
- package/lib/es/notification.js +663 -719
- package/lib/es/pause-ad.js +168 -191
- package/lib/es/points.js +48 -56
- package/lib/es/polymarket.js +4058 -4289
- package/lib/es/sl-types.js +128 -317
- package/lib/es/storage.js +74 -75
- package/lib/es/theme.js +3 -190
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9090 -11121
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +0 -1
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +21 -24
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -1
- package/lib/cjs/style.css +0 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -1
- package/lib/classic/cjs/style.css +0 -1
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/classic/style.css +0 -1
- package/lib/dist/cjs/index-eShKGO10.js +0 -1
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
package/lib/es/sl-types.js
CHANGED
|
@@ -1,345 +1,156 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const atomicClasses = {};
|
|
13
|
-
const nonAtomicClasses = [];
|
|
14
|
-
presentClassNames.forEach((arg) => {
|
|
15
|
-
const individualClassNames = arg ? arg.split(" ") : [];
|
|
16
|
-
individualClassNames.forEach((className) => {
|
|
17
|
-
if (className.startsWith("atm_")) {
|
|
18
|
-
const [, keyHash] = className.split("_");
|
|
19
|
-
atomicClasses[keyHash] = className;
|
|
20
|
-
} else {
|
|
21
|
-
nonAtomicClasses.push(className);
|
|
22
|
-
}
|
|
1
|
+
import y, { forwardRef as w, createElement as O } from "react";
|
|
2
|
+
import { listenKeys as U } from "nanostores";
|
|
3
|
+
var L = function() {
|
|
4
|
+
const r = Array.prototype.slice.call(arguments).filter(Boolean), t = {}, a = [];
|
|
5
|
+
r.forEach((n) => {
|
|
6
|
+
(n ? n.split(" ") : []).forEach((c) => {
|
|
7
|
+
if (c.startsWith("atm_")) {
|
|
8
|
+
const [, p] = c.split("_");
|
|
9
|
+
t[p] = c;
|
|
10
|
+
} else
|
|
11
|
+
a.push(c);
|
|
23
12
|
});
|
|
24
13
|
});
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
var cx_default = cx;
|
|
35
|
-
const R = {
|
|
36
|
-
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
37
|
-
WHITE: "#FFFFFF",
|
|
38
|
-
BLUE: "#2d6ffd",
|
|
39
|
-
GREY_PRIMARY: "#909395",
|
|
40
|
-
GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
|
|
41
|
-
PRIMARY_1: "#1D7BFF",
|
|
42
|
-
// main
|
|
43
|
-
PRIMARY_2: "#095CD1",
|
|
44
|
-
// hover, active, ...etc (darken 10%)
|
|
45
|
-
PRIMARY_TEXT: "#090E13",
|
|
46
|
-
SECONDARY_TEXT: "rgba(10, 14, 19, 0.70)",
|
|
47
|
-
QUESTION_TYPE_ICON: "#1D7BFF",
|
|
48
|
-
QUESTION_BODY_TEXT: "#090E13",
|
|
49
|
-
PRESENTED_BY_TEXT: "#090E13",
|
|
50
|
-
SUCCESS: "#107D57",
|
|
51
|
-
UNSUCCESS: "#DF2F3B",
|
|
52
|
-
SECONDARY_RED1: "#DF2F3B",
|
|
53
|
-
NEUTRALS_WHITE: "#FFFFFF",
|
|
54
|
-
NEUTRALS_WHITE1: "#FFFFFF",
|
|
55
|
-
NEUTRALS_GRAY1: "#F7F7F7",
|
|
56
|
-
NEUTRALS_GRAY2: "#F2F2F1",
|
|
57
|
-
NEUTRALS_GRAY3: "#E8E8E8",
|
|
58
|
-
NEUTRALS_GRAY4: "#D9D9D6",
|
|
59
|
-
NEUTRALS_GRAY5: "#B1B3B3",
|
|
60
|
-
NEUTRALS_GRAY6: "#888B8D",
|
|
61
|
-
NEUTRALS_GRAY7: "#6B6F73",
|
|
62
|
-
NEUTRALS_GRAY9: "#25282A",
|
|
63
|
-
SDK_CONTAINER_BG: "#F7F7F7",
|
|
64
|
-
SDK_WHITE_CONTAINER_BG: "#fff",
|
|
65
|
-
SDK_DARK_CONTAINER_BG: "#fff",
|
|
66
|
-
SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
|
|
67
|
-
SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
|
|
68
|
-
SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
|
|
69
|
-
SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
|
|
70
|
-
SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
|
|
71
|
-
SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
|
|
72
|
-
SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
|
|
73
|
-
SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
|
|
74
|
-
SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
|
|
75
|
-
PREDICTION_BG_LINES_CORRECT: "#01AB58",
|
|
76
|
-
PREDICTION_BG_LINES_INCORRECT: "#888B8D",
|
|
77
|
-
SKELETON_COLOR_1: "#f1efef",
|
|
78
|
-
SKELETON_COLOR_2: "#f9f8f8",
|
|
79
|
-
TABS_CONTAINER_BG: "#F2F2F1",
|
|
80
|
-
TABS_ACTIVE_BG: "#FFFFFF",
|
|
81
|
-
TABS_COLOR: "#6B6F73",
|
|
82
|
-
TABS_ACTIVE_COLOR: "#1D7BFF",
|
|
83
|
-
CARD_BG: "#FFFFFF",
|
|
84
|
-
CARD_BORDER: "#fff",
|
|
85
|
-
BORDER: "#E8E8E8",
|
|
86
|
-
VOTE_BTN_BG: "#F7F7F7",
|
|
87
|
-
VOTE_BTN_BORDER: "rgb(232, 232, 232)",
|
|
88
|
-
VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
|
|
89
|
-
VOTE_BTN_SELECTED_BORDER: "#25282A",
|
|
90
|
-
VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
|
|
91
|
-
VOTE_BTN_SELECTED_BG: "#FFFFFF",
|
|
92
|
-
VOTE_BTN_SELECTED_BG_AD_UNIT: "#FFFFFF",
|
|
93
|
-
VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
|
|
94
|
-
VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
|
|
95
|
-
VOTED_ANSWER_BG: "#FFFFFF",
|
|
96
|
-
VOTED_BTN_RCT_BG: "#2d5694",
|
|
97
|
-
IN_APP_BG: "rgba(255, 255, 255, 0.90)",
|
|
98
|
-
IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
|
|
99
|
-
IN_APP_QUESTION_TYPE_LABEL: "#82899E",
|
|
100
|
-
IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
|
|
101
|
-
IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
|
|
102
|
-
IN_APP_QUESTION_RESULT_LINE: "#babfc5",
|
|
103
|
-
QUOTE_BORDER: "#E8E8E8",
|
|
104
|
-
QUOTE_TEXT: "rgba(10, 14, 19, 0.70)"
|
|
105
|
-
}, F = {
|
|
106
|
-
BG_PRIMARY: "#13212b",
|
|
107
|
-
BG_SECONDARY: "#152430",
|
|
108
|
-
BG_SECONDARY1: "#435059",
|
|
109
|
-
BORDER_PRIMARY: "rgba(255, 255, 255, 0.1)",
|
|
110
|
-
TEXT_PRIMARY: "#f9f9f9",
|
|
111
|
-
TEXT_PRIMARY1: "#f9f9f9",
|
|
112
|
-
TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
|
|
113
|
-
TEXT_SECONDARY1: "#878787",
|
|
114
|
-
WHITE: "#fff"
|
|
115
|
-
}, I = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], O = "#cee5de", N = "#f9d6d8", S = "#E8E8E8", D = {
|
|
116
|
-
REGULAR: "'SF Pro Text', Arial, Helvetica, sans-serif",
|
|
117
|
-
SERIF: "'SF Pro Display', Arial, Helvetica, sans-serif",
|
|
118
|
-
COLOR: "#fff",
|
|
119
|
-
WEIGHT_DEFAULT: "500",
|
|
120
|
-
WEIGHT_DEFAULT1: "500",
|
|
121
|
-
WEIGHT_DEFAULT2: "400",
|
|
122
|
-
WEIGHT_DEFAULT3: "500",
|
|
123
|
-
SIZE_DEFAULT: "16px",
|
|
124
|
-
SIZE_DEFAULT1: "14px",
|
|
125
|
-
SIZE_DEFAULT2: "12px",
|
|
126
|
-
LINE_HEIGHT: "24px",
|
|
127
|
-
MARGIN_TITLE_DEFAULT: "0px 0px 12px"
|
|
128
|
-
}, A = {
|
|
129
|
-
xs: 324,
|
|
130
|
-
sm: 576,
|
|
131
|
-
md: 768,
|
|
132
|
-
lg: 992,
|
|
133
|
-
xl: 1200,
|
|
134
|
-
xxl: 1440
|
|
135
|
-
}, B = {
|
|
136
|
-
landscape: "landscape",
|
|
137
|
-
portrait: "portrait"
|
|
138
|
-
}, C = Object.entries(R).reduce((E, [_, T]) => `
|
|
139
|
-
${E}
|
|
140
|
-
--color-${_.toLowerCase().replaceAll("_", "-")}: ${T};
|
|
141
|
-
`, ""), L = Object.entries(F).reduce((E, [_, T]) => `
|
|
142
|
-
${E}
|
|
143
|
-
--color-adv-${_.toLowerCase().replaceAll("_", "-")}: ${T};
|
|
144
|
-
`, "");
|
|
145
|
-
function memoize(fn) {
|
|
146
|
-
var cache = /* @__PURE__ */ Object.create(null);
|
|
147
|
-
return function(arg) {
|
|
148
|
-
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
149
|
-
return cache[arg];
|
|
14
|
+
const s = [];
|
|
15
|
+
for (const n in t)
|
|
16
|
+
Object.prototype.hasOwnProperty.call(t, n) && s.push(t[n]);
|
|
17
|
+
return s.push(...a), s.join(" ");
|
|
18
|
+
}, R = L;
|
|
19
|
+
function _(e) {
|
|
20
|
+
var r = /* @__PURE__ */ Object.create(null);
|
|
21
|
+
return function(t) {
|
|
22
|
+
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
150
23
|
};
|
|
151
24
|
}
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
25
|
+
var N = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/, S = /* @__PURE__ */ _(
|
|
26
|
+
function(e) {
|
|
27
|
+
return N.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
156
28
|
}
|
|
157
29
|
/* Z+1 */
|
|
158
|
-
)
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
Object.keys(obj).filter(filterKey(keys)).forEach((key) => {
|
|
164
|
-
res[key] = obj[key];
|
|
165
|
-
});
|
|
166
|
-
return res;
|
|
30
|
+
), D = (e) => e.toUpperCase() === e, M = (e) => (r) => e.indexOf(r) === -1, P = (e, r) => {
|
|
31
|
+
const t = {};
|
|
32
|
+
return Object.keys(e).filter(M(r)).forEach((a) => {
|
|
33
|
+
t[a] = e[a];
|
|
34
|
+
}), t;
|
|
167
35
|
};
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
if (!
|
|
171
|
-
const
|
|
172
|
-
Object.keys(
|
|
173
|
-
|
|
174
|
-
delete filteredProps[key];
|
|
175
|
-
}
|
|
36
|
+
function H(e, r, t) {
|
|
37
|
+
const a = P(r, t);
|
|
38
|
+
if (!e) {
|
|
39
|
+
const s = typeof S == "function" ? { default: S } : S;
|
|
40
|
+
Object.keys(a).forEach((n) => {
|
|
41
|
+
s.default(n) || delete a[n];
|
|
176
42
|
});
|
|
177
43
|
}
|
|
178
|
-
return
|
|
44
|
+
return a;
|
|
179
45
|
}
|
|
180
|
-
var
|
|
46
|
+
var q = (e, r) => {
|
|
181
47
|
};
|
|
182
|
-
function
|
|
183
|
-
let
|
|
184
|
-
return (
|
|
185
|
-
const
|
|
186
|
-
const { as:
|
|
187
|
-
const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
|
|
188
|
-
const filteredProps = filterProps(shouldKeepProps, props, [
|
|
48
|
+
function z(e) {
|
|
49
|
+
let r = "";
|
|
50
|
+
return (t) => {
|
|
51
|
+
const a = (n, d) => {
|
|
52
|
+
const { as: c = e, class: p = r } = n, g = t.propsAsIs === void 0 ? !(typeof c == "string" && c.indexOf("-") === -1 && !D(c[0])) : t.propsAsIs, u = H(g, n, [
|
|
189
53
|
"as",
|
|
190
54
|
"class"
|
|
191
55
|
]);
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
const result = variable[0];
|
|
200
|
-
const unit = variable[1] || "";
|
|
201
|
-
const value = typeof result === "function" ? result(props) : result;
|
|
202
|
-
warnIfInvalid(value, options.name);
|
|
203
|
-
style[`--${name}`] = `${value}${unit}`;
|
|
56
|
+
u.ref = d, u.className = t.atomic ? R(t.class, u.className || p) : R(u.className || p, t.class);
|
|
57
|
+
const { vars: i } = t;
|
|
58
|
+
if (i) {
|
|
59
|
+
const o = {};
|
|
60
|
+
for (const l in i) {
|
|
61
|
+
const h = i[l], v = h[0], I = h[1] || "", E = typeof v == "function" ? v(n) : v;
|
|
62
|
+
q(E, t.name), o[`--${l}`] = `${E}${I}`;
|
|
204
63
|
}
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
style[key] = ownStyle[key];
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
filteredProps.style = style;
|
|
213
|
-
}
|
|
214
|
-
if (tag.__wyw_meta && tag !== component) {
|
|
215
|
-
filteredProps.as = component;
|
|
216
|
-
return React36__default.createElement(tag, filteredProps);
|
|
64
|
+
const f = u.style || {}, m = Object.keys(f);
|
|
65
|
+
m.length > 0 && m.forEach((l) => {
|
|
66
|
+
o[l] = f[l];
|
|
67
|
+
}), u.style = o;
|
|
217
68
|
}
|
|
218
|
-
return
|
|
219
|
-
}
|
|
220
|
-
const Result = React36__default.forwardRef ? React36__default.forwardRef(render) : (
|
|
69
|
+
return e.__wyw_meta && e !== c ? (u.as = c, O(e, u)) : O(c, u);
|
|
70
|
+
}, s = w ? w(a) : (
|
|
221
71
|
// React.forwardRef won't available on older React versions and in Preact
|
|
222
72
|
// Fallback to a innerRef prop in that case
|
|
223
|
-
(
|
|
224
|
-
const
|
|
225
|
-
return
|
|
226
|
-
}
|
|
73
|
+
((n) => {
|
|
74
|
+
const d = P(n, ["innerRef"]);
|
|
75
|
+
return a(d, n.innerRef);
|
|
76
|
+
})
|
|
227
77
|
);
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
return Result;
|
|
78
|
+
return s.displayName = t.name, s.__wyw_meta = {
|
|
79
|
+
className: t.class || r,
|
|
80
|
+
extends: e
|
|
81
|
+
}, s;
|
|
234
82
|
};
|
|
235
83
|
}
|
|
236
|
-
var
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
*
|
|
245
|
-
* This source code is licensed under the MIT license found in the
|
|
246
|
-
* LICENSE file in the root directory of this source tree.
|
|
247
|
-
*/
|
|
248
|
-
var React = React36__default;
|
|
249
|
-
function is(x, y) {
|
|
250
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
251
|
-
}
|
|
252
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue;
|
|
253
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
254
|
-
var value = getSnapshot(), _useState = useState({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
255
|
-
useLayoutEffect(
|
|
256
|
-
function() {
|
|
257
|
-
inst.value = value;
|
|
258
|
-
inst.getSnapshot = getSnapshot;
|
|
259
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
260
|
-
},
|
|
261
|
-
[subscribe, value, getSnapshot]
|
|
262
|
-
);
|
|
263
|
-
useEffect(
|
|
264
|
-
function() {
|
|
265
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
266
|
-
return subscribe(function() {
|
|
267
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
268
|
-
});
|
|
269
|
-
},
|
|
270
|
-
[subscribe]
|
|
271
|
-
);
|
|
272
|
-
useDebugValue(value);
|
|
273
|
-
return value;
|
|
274
|
-
}
|
|
275
|
-
function checkIfSnapshotChanged(inst) {
|
|
276
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
277
|
-
inst = inst.value;
|
|
278
|
-
try {
|
|
279
|
-
var nextValue = latestGetSnapshot();
|
|
280
|
-
return !objectIs(inst, nextValue);
|
|
281
|
-
} catch (error) {
|
|
282
|
-
return true;
|
|
84
|
+
var G = z, x = { exports: {} }, k = {};
|
|
85
|
+
var A;
|
|
86
|
+
function V() {
|
|
87
|
+
if (A) return k;
|
|
88
|
+
A = 1;
|
|
89
|
+
var e = y;
|
|
90
|
+
function r(i, o) {
|
|
91
|
+
return i === o && (i !== 0 || 1 / i === 1 / o) || i !== i && o !== o;
|
|
283
92
|
}
|
|
93
|
+
var t = typeof Object.is == "function" ? Object.is : r, a = e.useState, s = e.useEffect, n = e.useLayoutEffect, d = e.useDebugValue;
|
|
94
|
+
function c(i, o) {
|
|
95
|
+
var f = o(), m = a({ inst: { value: f, getSnapshot: o } }), l = m[0].inst, h = m[1];
|
|
96
|
+
return n(
|
|
97
|
+
function() {
|
|
98
|
+
l.value = f, l.getSnapshot = o, p(l) && h({ inst: l });
|
|
99
|
+
},
|
|
100
|
+
[i, f, o]
|
|
101
|
+
), s(
|
|
102
|
+
function() {
|
|
103
|
+
return p(l) && h({ inst: l }), i(function() {
|
|
104
|
+
p(l) && h({ inst: l });
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
[i]
|
|
108
|
+
), d(f), f;
|
|
109
|
+
}
|
|
110
|
+
function p(i) {
|
|
111
|
+
var o = i.getSnapshot;
|
|
112
|
+
i = i.value;
|
|
113
|
+
try {
|
|
114
|
+
var f = o();
|
|
115
|
+
return !t(i, f);
|
|
116
|
+
} catch {
|
|
117
|
+
return !0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function g(i, o) {
|
|
121
|
+
return o();
|
|
122
|
+
}
|
|
123
|
+
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : c;
|
|
124
|
+
return k.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, k;
|
|
284
125
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
289
|
-
useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
290
|
-
{
|
|
291
|
-
shim$1.exports = useSyncExternalStoreShim_production;
|
|
126
|
+
var C;
|
|
127
|
+
function j() {
|
|
128
|
+
return C || (C = 1, x.exports = V()), x.exports;
|
|
292
129
|
}
|
|
293
|
-
var
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
return;
|
|
297
|
-
snapshotRef.current = value;
|
|
298
|
-
onChange();
|
|
130
|
+
var B = j();
|
|
131
|
+
const b = (e, r) => (t) => {
|
|
132
|
+
e.current !== t && (e.current = t, r());
|
|
299
133
|
};
|
|
300
|
-
function
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
return (keys == null ? void 0 : keys.length) > 0 ? listenKeys(store, keys, emit(snapshotRef, onChange)) : store.listen(emit(snapshotRef, onChange));
|
|
306
|
-
}, deps);
|
|
307
|
-
const get = () => snapshotRef.current;
|
|
308
|
-
if (React36__default.useSyncExternalStore) {
|
|
309
|
-
return React36__default.useSyncExternalStore(subscribe, get, get);
|
|
310
|
-
}
|
|
311
|
-
return shimExports.useSyncExternalStore(subscribe, get, get);
|
|
134
|
+
function F(e, { keys: r, deps: t = [e, r] } = {}) {
|
|
135
|
+
const a = y.useRef();
|
|
136
|
+
a.current = e.get();
|
|
137
|
+
const s = y.useCallback((d) => (b(a, d)(e.value), r?.length > 0 ? U(e, r, b(a, d)) : e.listen(b(a, d))), t), n = () => a.current;
|
|
138
|
+
return y.useSyncExternalStore ? y.useSyncExternalStore(s, n, n) : B.useSyncExternalStore(s, n, n);
|
|
312
139
|
}
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
var NotificationType;
|
|
324
|
-
(function(NotificationType2) {
|
|
325
|
-
NotificationType2[NotificationType2["ONBOARDING"] = 1] = "ONBOARDING";
|
|
326
|
-
NotificationType2[NotificationType2["QUESTION"] = 2] = "QUESTION";
|
|
327
|
-
NotificationType2[NotificationType2["QUESTION_RESOLVED"] = 3] = "QUESTION_RESOLVED";
|
|
328
|
-
})(NotificationType || (NotificationType = {}));
|
|
140
|
+
const K = F, W = () => [
|
|
141
|
+
!1,
|
|
142
|
+
(e) => {
|
|
143
|
+
window.requestAnimationFrame(() => e());
|
|
144
|
+
}
|
|
145
|
+
], Y = y.useTransition || W;
|
|
146
|
+
var T;
|
|
147
|
+
(function(e) {
|
|
148
|
+
e[e.ONBOARDING = 1] = "ONBOARDING", e[e.QUESTION = 2] = "QUESTION", e[e.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
|
|
149
|
+
})(T || (T = {}));
|
|
329
150
|
export {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
L,
|
|
336
|
-
N,
|
|
337
|
-
O,
|
|
338
|
-
R,
|
|
339
|
-
S,
|
|
340
|
-
NotificationType as a,
|
|
341
|
-
useTransition as b,
|
|
342
|
-
cx_default as c,
|
|
343
|
-
styled_default as s,
|
|
344
|
-
useStore as u
|
|
151
|
+
T as N,
|
|
152
|
+
Y as a,
|
|
153
|
+
R as c,
|
|
154
|
+
G as s,
|
|
155
|
+
K as u
|
|
345
156
|
};
|