diditui 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/diditui.d.ts +2 -2
- package/dist/diditui.js +224 -222
- package/dist/diditui.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/diditui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as M from "react";
|
|
2
|
-
import Rt, { forwardRef as ve, useMemo as vo, useLayoutEffect as
|
|
2
|
+
import Rt, { forwardRef as ve, useMemo as vo, useLayoutEffect as bo, useEffect as yo, useState as wo } from "react";
|
|
3
3
|
import xo from "react-dom";
|
|
4
4
|
function un(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -60,14 +60,14 @@ var ot = {};
|
|
|
60
60
|
var Dr;
|
|
61
61
|
function _o() {
|
|
62
62
|
return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
63
|
-
var e = Rt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), T = Symbol.iterator,
|
|
63
|
+
var e = Rt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), T = Symbol.iterator, b = "@@iterator";
|
|
64
64
|
function C(c) {
|
|
65
65
|
if (c === null || typeof c != "object")
|
|
66
66
|
return null;
|
|
67
|
-
var x = T && c[T] || c[
|
|
67
|
+
var x = T && c[T] || c[b];
|
|
68
68
|
return typeof x == "function" ? x : null;
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
71
71
|
function w(c) {
|
|
72
72
|
{
|
|
73
73
|
for (var x = arguments.length, O = new Array(x > 1 ? x - 1 : 0), I = 1; I < x; I++)
|
|
@@ -77,7 +77,7 @@ function _o() {
|
|
|
77
77
|
}
|
|
78
78
|
function S(c, x, O) {
|
|
79
79
|
{
|
|
80
|
-
var I =
|
|
80
|
+
var I = y.ReactDebugCurrentFrame, Q = I.getStackAddendum();
|
|
81
81
|
Q !== "" && (x += "%s", O = O.concat([Q]));
|
|
82
82
|
var ne = O.map(function(G) {
|
|
83
83
|
return String(G);
|
|
@@ -211,7 +211,7 @@ function _o() {
|
|
|
211
211
|
P < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
var j =
|
|
214
|
+
var j = y.ReactCurrentDispatcher, B;
|
|
215
215
|
function H(c, x, O) {
|
|
216
216
|
{
|
|
217
217
|
if (B === void 0)
|
|
@@ -301,7 +301,7 @@ function _o() {
|
|
|
301
301
|
var He = c ? c.displayName || c.name : "", Le = He ? H(He) : "";
|
|
302
302
|
return typeof c == "function" && V.set(c, Le), Le;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function ye(c, x, O) {
|
|
305
305
|
return R(c, !1);
|
|
306
306
|
}
|
|
307
307
|
function We(c) {
|
|
@@ -324,7 +324,7 @@ function _o() {
|
|
|
324
324
|
if (typeof c == "object")
|
|
325
325
|
switch (c.$$typeof) {
|
|
326
326
|
case l:
|
|
327
|
-
return
|
|
327
|
+
return ye(c.render);
|
|
328
328
|
case m:
|
|
329
329
|
return Ne(c.type, x, O);
|
|
330
330
|
case p: {
|
|
@@ -337,7 +337,7 @@ function _o() {
|
|
|
337
337
|
}
|
|
338
338
|
return "";
|
|
339
339
|
}
|
|
340
|
-
var tt = Object.prototype.hasOwnProperty, Cr = {}, _r =
|
|
340
|
+
var tt = Object.prototype.hasOwnProperty, Cr = {}, _r = y.ReactDebugCurrentFrame;
|
|
341
341
|
function ht(c) {
|
|
342
342
|
if (c) {
|
|
343
343
|
var x = c._owner, O = Ne(c.type, c._source, x ? x.type : null);
|
|
@@ -388,7 +388,7 @@ function _o() {
|
|
|
388
388
|
if (Xn(c))
|
|
389
389
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jn(c)), Sr(c);
|
|
390
390
|
}
|
|
391
|
-
var rt =
|
|
391
|
+
var rt = y.ReactCurrentOwner, Qn = {
|
|
392
392
|
key: !0,
|
|
393
393
|
ref: !0,
|
|
394
394
|
__self: !0,
|
|
@@ -486,7 +486,7 @@ function _o() {
|
|
|
486
486
|
return oo(c, Y, pe, Q, I, rt.current, G);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
var It =
|
|
489
|
+
var It = y.ReactCurrentOwner, Mr = y.ReactDebugCurrentFrame;
|
|
490
490
|
function $e(c) {
|
|
491
491
|
if (c) {
|
|
492
492
|
var x = c._owner, O = Ne(c.type, c._source, x ? x.type : null);
|
|
@@ -795,25 +795,25 @@ function Ao(e) {
|
|
|
795
795
|
const l = [];
|
|
796
796
|
let u = 0, f = 0, m;
|
|
797
797
|
for (let C = 0; C < i.length; C++) {
|
|
798
|
-
let
|
|
798
|
+
let y = i[C];
|
|
799
799
|
if (u === 0) {
|
|
800
|
-
if (
|
|
800
|
+
if (y === o && (n || i.slice(C, C + a) === t)) {
|
|
801
801
|
l.push(i.slice(f, C)), f = C + a;
|
|
802
802
|
continue;
|
|
803
803
|
}
|
|
804
|
-
if (
|
|
804
|
+
if (y === "/") {
|
|
805
805
|
m = C;
|
|
806
806
|
continue;
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
|
|
809
|
+
y === "[" ? u++ : y === "]" && u--;
|
|
810
810
|
}
|
|
811
|
-
const p = l.length === 0 ? i : i.substring(f), h = p.startsWith(pn), T = h ? p.substring(1) : p,
|
|
811
|
+
const p = l.length === 0 ? i : i.substring(f), h = p.startsWith(pn), T = h ? p.substring(1) : p, b = m && m > f ? m - f : void 0;
|
|
812
812
|
return {
|
|
813
813
|
modifiers: l,
|
|
814
814
|
hasImportantModifier: h,
|
|
815
815
|
baseClassName: T,
|
|
816
|
-
maybePostfixModifierPosition:
|
|
816
|
+
maybePostfixModifierPosition: b
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
819
|
return r ? function(l) {
|
|
@@ -980,7 +980,7 @@ function ea(e) {
|
|
|
980
980
|
return Ho.test(e);
|
|
981
981
|
}
|
|
982
982
|
function ta() {
|
|
983
|
-
const e = oe("colors"), t = oe("spacing"), r = oe("blur"), n = oe("brightness"), o = oe("borderColor"), a = oe("borderRadius"), s = oe("borderSpacing"), i = oe("borderWidth"), l = oe("contrast"), u = oe("grayscale"), f = oe("hueRotate"), m = oe("invert"), p = oe("gap"), h = oe("gradientColorStops"), T = oe("gradientColorStopPositions"),
|
|
983
|
+
const e = oe("colors"), t = oe("spacing"), r = oe("blur"), n = oe("brightness"), o = oe("borderColor"), a = oe("borderRadius"), s = oe("borderSpacing"), i = oe("borderWidth"), l = oe("contrast"), u = oe("grayscale"), f = oe("hueRotate"), m = oe("invert"), p = oe("gap"), h = oe("gradientColorStops"), T = oe("gradientColorStopPositions"), b = oe("inset"), C = oe("margin"), y = oe("opacity"), w = oe("padding"), S = oe("saturate"), E = oe("scale"), g = oe("sepia"), $ = oe("skew"), te = oe("space"), ie = oe("translate"), ae = () => ["auto", "contain", "none"], se = () => ["auto", "hidden", "clip", "visible", "scroll"], ue = () => ["auto", z, t], U = () => [z, t], X = () => ["", Te, Oe], k = () => ["auto", Ie, z], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], W = () => ["solid", "dashed", "dotted", "double", "none"], d = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], A = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", z], v = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [Ie, vt], N = () => [Ie, z];
|
|
984
984
|
return {
|
|
985
985
|
cacheSize: 500,
|
|
986
986
|
separator: ":",
|
|
@@ -1157,63 +1157,63 @@ function ta() {
|
|
|
1157
1157
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1158
1158
|
*/
|
|
1159
1159
|
inset: [{
|
|
1160
|
-
inset: [
|
|
1160
|
+
inset: [b]
|
|
1161
1161
|
}],
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Right / Left
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1165
1165
|
*/
|
|
1166
1166
|
"inset-x": [{
|
|
1167
|
-
"inset-x": [
|
|
1167
|
+
"inset-x": [b]
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Top / Bottom
|
|
1171
1171
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1172
1172
|
*/
|
|
1173
1173
|
"inset-y": [{
|
|
1174
|
-
"inset-y": [
|
|
1174
|
+
"inset-y": [b]
|
|
1175
1175
|
}],
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Start
|
|
1178
1178
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1179
1179
|
*/
|
|
1180
1180
|
start: [{
|
|
1181
|
-
start: [
|
|
1181
|
+
start: [b]
|
|
1182
1182
|
}],
|
|
1183
1183
|
/**
|
|
1184
1184
|
* End
|
|
1185
1185
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1186
1186
|
*/
|
|
1187
1187
|
end: [{
|
|
1188
|
-
end: [
|
|
1188
|
+
end: [b]
|
|
1189
1189
|
}],
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Top
|
|
1192
1192
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1193
1193
|
*/
|
|
1194
1194
|
top: [{
|
|
1195
|
-
top: [
|
|
1195
|
+
top: [b]
|
|
1196
1196
|
}],
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Right
|
|
1199
1199
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1200
1200
|
*/
|
|
1201
1201
|
right: [{
|
|
1202
|
-
right: [
|
|
1202
|
+
right: [b]
|
|
1203
1203
|
}],
|
|
1204
1204
|
/**
|
|
1205
1205
|
* Bottom
|
|
1206
1206
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1207
1207
|
*/
|
|
1208
1208
|
bottom: [{
|
|
1209
|
-
bottom: [
|
|
1209
|
+
bottom: [b]
|
|
1210
1210
|
}],
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Left
|
|
1213
1213
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1214
1214
|
*/
|
|
1215
1215
|
left: [{
|
|
1216
|
-
left: [
|
|
1216
|
+
left: [b]
|
|
1217
1217
|
}],
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Visibility
|
|
@@ -1762,7 +1762,7 @@ function ta() {
|
|
|
1762
1762
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1763
1763
|
*/
|
|
1764
1764
|
"placeholder-opacity": [{
|
|
1765
|
-
"placeholder-opacity": [
|
|
1765
|
+
"placeholder-opacity": [y]
|
|
1766
1766
|
}],
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Text Alignment
|
|
@@ -1783,7 +1783,7 @@ function ta() {
|
|
|
1783
1783
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1784
1784
|
*/
|
|
1785
1785
|
"text-opacity": [{
|
|
1786
|
-
"text-opacity": [
|
|
1786
|
+
"text-opacity": [y]
|
|
1787
1787
|
}],
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Text Decoration
|
|
@@ -1898,7 +1898,7 @@ function ta() {
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1899
1899
|
*/
|
|
1900
1900
|
"bg-opacity": [{
|
|
1901
|
-
"bg-opacity": [
|
|
1901
|
+
"bg-opacity": [y]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Background Origin
|
|
@@ -2162,7 +2162,7 @@ function ta() {
|
|
|
2162
2162
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
2163
2163
|
*/
|
|
2164
2164
|
"border-opacity": [{
|
|
2165
|
-
"border-opacity": [
|
|
2165
|
+
"border-opacity": [y]
|
|
2166
2166
|
}],
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Border Style
|
|
@@ -2200,7 +2200,7 @@ function ta() {
|
|
|
2200
2200
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
2201
2201
|
*/
|
|
2202
2202
|
"divide-opacity": [{
|
|
2203
|
-
"divide-opacity": [
|
|
2203
|
+
"divide-opacity": [y]
|
|
2204
2204
|
}],
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Divide Style
|
|
@@ -2317,7 +2317,7 @@ function ta() {
|
|
|
2317
2317
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2318
2318
|
*/
|
|
2319
2319
|
"ring-opacity": [{
|
|
2320
|
-
"ring-opacity": [
|
|
2320
|
+
"ring-opacity": [y]
|
|
2321
2321
|
}],
|
|
2322
2322
|
/**
|
|
2323
2323
|
* Ring Offset Width
|
|
@@ -2353,7 +2353,7 @@ function ta() {
|
|
|
2353
2353
|
* @see https://tailwindcss.com/docs/opacity
|
|
2354
2354
|
*/
|
|
2355
2355
|
opacity: [{
|
|
2356
|
-
opacity: [
|
|
2356
|
+
opacity: [y]
|
|
2357
2357
|
}],
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Mix Blend Mode
|
|
@@ -2496,7 +2496,7 @@ function ta() {
|
|
|
2496
2496
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2497
2497
|
*/
|
|
2498
2498
|
"backdrop-opacity": [{
|
|
2499
|
-
"backdrop-opacity": [
|
|
2499
|
+
"backdrop-opacity": [y]
|
|
2500
2500
|
}],
|
|
2501
2501
|
/**
|
|
2502
2502
|
* Backdrop Saturate
|
|
@@ -3030,14 +3030,14 @@ const zr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Ur =
|
|
|
3030
3030
|
}, {}), l = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((u, f) => {
|
|
3031
3031
|
let { class: m, className: p, ...h } = f;
|
|
3032
3032
|
return Object.entries(h).every((T) => {
|
|
3033
|
-
let [
|
|
3033
|
+
let [b, C] = T;
|
|
3034
3034
|
return Array.isArray(C) ? C.includes({
|
|
3035
3035
|
...a,
|
|
3036
3036
|
...i
|
|
3037
|
-
}[
|
|
3037
|
+
}[b]) : {
|
|
3038
3038
|
...a,
|
|
3039
3039
|
...i
|
|
3040
|
-
}[
|
|
3040
|
+
}[b] === C;
|
|
3041
3041
|
}) ? [
|
|
3042
3042
|
...u,
|
|
3043
3043
|
m,
|
|
@@ -3065,11 +3065,11 @@ const zr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Ur =
|
|
|
3065
3065
|
title: e,
|
|
3066
3066
|
titleId: t,
|
|
3067
3067
|
...r
|
|
3068
|
-
}, n) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ref: n, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ M.createElement("title", { id: t }, e) : null, /* @__PURE__ */ M.createElement("path", { d: "M9 16.5C13.125 16.5 16.5 13.125 16.5 9C16.5 4.875 13.125 1.5 9 1.5C4.875 1.5 1.5 4.875 1.5 9C1.5 13.125 4.875 16.5 9 16.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ M.createElement("path", { d: "M9 6V9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ M.createElement("path", { d: "M8.99609 12H9.00283", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })),
|
|
3068
|
+
}, n) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ref: n, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ M.createElement("title", { id: t }, e) : null, /* @__PURE__ */ M.createElement("path", { d: "M9 16.5C13.125 16.5 16.5 13.125 16.5 9C16.5 4.875 13.125 1.5 9 1.5C4.875 1.5 1.5 4.875 1.5 9C1.5 13.125 4.875 16.5 9 16.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ M.createElement("path", { d: "M9 6V9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ M.createElement("path", { d: "M8.99609 12H9.00283", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ba = ve(va), ya = ({
|
|
3069
3069
|
title: e,
|
|
3070
3070
|
titleId: t,
|
|
3071
3071
|
...r
|
|
3072
|
-
}, n) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ref: n, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ M.createElement("title", { id: t }, e) : null, /* @__PURE__ */ M.createElement("path", { d: "M4 9.49361L7.49358 12.9872L14.48 6", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), wa = ve(
|
|
3072
|
+
}, n) => /* @__PURE__ */ M.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ref: n, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ M.createElement("title", { id: t }, e) : null, /* @__PURE__ */ M.createElement("path", { d: "M4 9.49361L7.49358 12.9872L14.48 6", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), wa = ve(ya), xa = ({
|
|
3073
3073
|
title: e,
|
|
3074
3074
|
titleId: t,
|
|
3075
3075
|
...r
|
|
@@ -3098,7 +3098,7 @@ const zr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Ur =
|
|
|
3098
3098
|
settings: da,
|
|
3099
3099
|
info: ma,
|
|
3100
3100
|
arrowRight: ha,
|
|
3101
|
-
warning:
|
|
3101
|
+
warning: ba,
|
|
3102
3102
|
check: wa,
|
|
3103
3103
|
copy: Ea,
|
|
3104
3104
|
connect: _a,
|
|
@@ -3205,8 +3205,9 @@ function nl({
|
|
|
3205
3205
|
"px-2 py-4": e === "md",
|
|
3206
3206
|
"px-3 py-5": e === "lg",
|
|
3207
3207
|
"bg-transparent border border-foreground text-foreground": t === "default",
|
|
3208
|
+
"bg-transparent border border-background text-background": t === "white",
|
|
3208
3209
|
"bg-primary border border-primary text-background": t === "primary",
|
|
3209
|
-
"": t === "soft",
|
|
3210
|
+
"bg-soft border border-soft text-primary": t === "soft",
|
|
3210
3211
|
"pointer-events-none": n || o,
|
|
3211
3212
|
"bg-surface-lo text-surface-mdlo border-surface-lo": o
|
|
3212
3213
|
},
|
|
@@ -3224,10 +3225,10 @@ function nl({
|
|
|
3224
3225
|
return /* @__PURE__ */ K.jsxs("button", { className: l, ...i, children: [
|
|
3225
3226
|
/* @__PURE__ */ K.jsx("span", { className: "text-sm font-medium leading-[90%] tracking-tight w-full text-center z-20 text-inherit", children: s }),
|
|
3226
3227
|
r && !n && /* @__PURE__ */ K.jsx("div", { className: u, children: /* @__PURE__ */ K.jsx(Ot, { type: r, size: o ? "sm" : f }) }),
|
|
3227
|
-
n && /* @__PURE__ */ K.jsx("div", { className: u, children: /* @__PURE__ */ K.jsx(Ia, { size: "xs", variant: t }) })
|
|
3228
|
+
n && /* @__PURE__ */ K.jsx("div", { className: u, children: /* @__PURE__ */ K.jsx(Ia, { size: "xs", variant: t === "white" ? "soft" : t }) })
|
|
3228
3229
|
] });
|
|
3229
3230
|
}
|
|
3230
|
-
const Da = Xe("
|
|
3231
|
+
const Da = Xe("font-inter", {
|
|
3231
3232
|
variants: {
|
|
3232
3233
|
variant: {
|
|
3233
3234
|
H1: "text-[52px] font-medium leading-[95%] tracking-tighter",
|
|
@@ -3316,7 +3317,7 @@ function Ba({ icon: e = "scan", label: t, size: r, className: n, ...o }) {
|
|
|
3316
3317
|
}
|
|
3317
3318
|
var dt = {}, za = function() {
|
|
3318
3319
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
3319
|
-
},
|
|
3320
|
+
}, bn = {}, be = {};
|
|
3320
3321
|
let gr;
|
|
3321
3322
|
const Ua = [
|
|
3322
3323
|
0,
|
|
@@ -3362,29 +3363,29 @@ const Ua = [
|
|
|
3362
3363
|
3532,
|
|
3363
3364
|
3706
|
|
3364
3365
|
];
|
|
3365
|
-
|
|
3366
|
+
be.getSymbolSize = function(t) {
|
|
3366
3367
|
if (!t) throw new Error('"version" cannot be null or undefined');
|
|
3367
3368
|
if (t < 1 || t > 40) throw new Error('"version" should be in range from 1 to 40');
|
|
3368
3369
|
return t * 4 + 17;
|
|
3369
3370
|
};
|
|
3370
|
-
|
|
3371
|
+
be.getSymbolTotalCodewords = function(t) {
|
|
3371
3372
|
return Ua[t];
|
|
3372
3373
|
};
|
|
3373
|
-
|
|
3374
|
+
be.getBCHDigit = function(e) {
|
|
3374
3375
|
let t = 0;
|
|
3375
3376
|
for (; e !== 0; )
|
|
3376
3377
|
t++, e >>>= 1;
|
|
3377
3378
|
return t;
|
|
3378
3379
|
};
|
|
3379
|
-
|
|
3380
|
+
be.setToSJISFunction = function(t) {
|
|
3380
3381
|
if (typeof t != "function")
|
|
3381
3382
|
throw new Error('"toSJISFunc" is not a valid function.');
|
|
3382
3383
|
gr = t;
|
|
3383
3384
|
};
|
|
3384
|
-
|
|
3385
|
+
be.isKanjiModeEnabled = function() {
|
|
3385
3386
|
return typeof gr < "u";
|
|
3386
3387
|
};
|
|
3387
|
-
|
|
3388
|
+
be.toSJIS = function(t) {
|
|
3388
3389
|
return gr(t);
|
|
3389
3390
|
};
|
|
3390
3391
|
var Mt = {};
|
|
@@ -3422,10 +3423,10 @@ var Mt = {};
|
|
|
3422
3423
|
}
|
|
3423
3424
|
};
|
|
3424
3425
|
})(Mt);
|
|
3425
|
-
function
|
|
3426
|
+
function yn() {
|
|
3426
3427
|
this.buffer = [], this.length = 0;
|
|
3427
3428
|
}
|
|
3428
|
-
|
|
3429
|
+
yn.prototype = {
|
|
3429
3430
|
get: function(e) {
|
|
3430
3431
|
const t = Math.floor(e / 8);
|
|
3431
3432
|
return (this.buffer[t] >>> 7 - e % 8 & 1) === 1;
|
|
@@ -3442,7 +3443,7 @@ bn.prototype = {
|
|
|
3442
3443
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
3443
3444
|
}
|
|
3444
3445
|
};
|
|
3445
|
-
var Wa =
|
|
3446
|
+
var Wa = yn;
|
|
3446
3447
|
function pt(e) {
|
|
3447
3448
|
if (!e || e < 1)
|
|
3448
3449
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -3463,7 +3464,7 @@ pt.prototype.isReserved = function(e, t) {
|
|
|
3463
3464
|
};
|
|
3464
3465
|
var $a = pt, wn = {};
|
|
3465
3466
|
(function(e) {
|
|
3466
|
-
const t =
|
|
3467
|
+
const t = be.getSymbolSize;
|
|
3467
3468
|
e.getRowColCoords = function(n) {
|
|
3468
3469
|
if (n === 1) return [];
|
|
3469
3470
|
const o = Math.floor(n / 7) + 2, a = t(n), s = a === 145 ? 26 : Math.ceil((a - 13) / (2 * o - 2)) * 2, i = [a - 7];
|
|
@@ -3481,7 +3482,7 @@ var $a = pt, wn = {};
|
|
|
3481
3482
|
};
|
|
3482
3483
|
})(wn);
|
|
3483
3484
|
var xn = {};
|
|
3484
|
-
const Ha =
|
|
3485
|
+
const Ha = be.getSymbolSize, Wr = 7;
|
|
3485
3486
|
xn.getPositions = function(t) {
|
|
3486
3487
|
const r = Ha(t);
|
|
3487
3488
|
return [
|
|
@@ -3590,7 +3591,7 @@ var En = {};
|
|
|
3590
3591
|
};
|
|
3591
3592
|
})(En);
|
|
3592
3593
|
var kt = {};
|
|
3593
|
-
const ke = Mt,
|
|
3594
|
+
const ke = Mt, bt = [
|
|
3594
3595
|
// L M Q H
|
|
3595
3596
|
1,
|
|
3596
3597
|
1,
|
|
@@ -3752,7 +3753,7 @@ const ke = Mt, yt = [
|
|
|
3752
3753
|
49,
|
|
3753
3754
|
68,
|
|
3754
3755
|
81
|
|
3755
|
-
],
|
|
3756
|
+
], yt = [
|
|
3756
3757
|
// L M Q H
|
|
3757
3758
|
7,
|
|
3758
3759
|
10,
|
|
@@ -3918,13 +3919,13 @@ const ke = Mt, yt = [
|
|
|
3918
3919
|
kt.getBlocksCount = function(t, r) {
|
|
3919
3920
|
switch (r) {
|
|
3920
3921
|
case ke.L:
|
|
3921
|
-
return
|
|
3922
|
+
return bt[(t - 1) * 4 + 0];
|
|
3922
3923
|
case ke.M:
|
|
3923
|
-
return
|
|
3924
|
+
return bt[(t - 1) * 4 + 1];
|
|
3924
3925
|
case ke.Q:
|
|
3925
|
-
return
|
|
3926
|
+
return bt[(t - 1) * 4 + 2];
|
|
3926
3927
|
case ke.H:
|
|
3927
|
-
return
|
|
3928
|
+
return bt[(t - 1) * 4 + 3];
|
|
3928
3929
|
default:
|
|
3929
3930
|
return;
|
|
3930
3931
|
}
|
|
@@ -3932,13 +3933,13 @@ kt.getBlocksCount = function(t, r) {
|
|
|
3932
3933
|
kt.getTotalCodewordsCount = function(t, r) {
|
|
3933
3934
|
switch (r) {
|
|
3934
3935
|
case ke.L:
|
|
3935
|
-
return
|
|
3936
|
+
return yt[(t - 1) * 4 + 0];
|
|
3936
3937
|
case ke.M:
|
|
3937
|
-
return
|
|
3938
|
+
return yt[(t - 1) * 4 + 1];
|
|
3938
3939
|
case ke.Q:
|
|
3939
|
-
return
|
|
3940
|
+
return yt[(t - 1) * 4 + 2];
|
|
3940
3941
|
case ke.H:
|
|
3941
|
-
return
|
|
3942
|
+
return yt[(t - 1) * 4 + 3];
|
|
3942
3943
|
default:
|
|
3943
3944
|
return;
|
|
3944
3945
|
}
|
|
@@ -4092,20 +4093,20 @@ Se.testAlphanumeric = function(t) {
|
|
|
4092
4093
|
};
|
|
4093
4094
|
})(Pe);
|
|
4094
4095
|
(function(e) {
|
|
4095
|
-
const t =
|
|
4096
|
+
const t = be, r = kt, n = Mt, o = Pe, a = vr, s = 7973, i = t.getBCHDigit(s);
|
|
4096
4097
|
function l(p, h, T) {
|
|
4097
|
-
for (let
|
|
4098
|
-
if (h <= e.getCapacity(
|
|
4099
|
-
return
|
|
4098
|
+
for (let b = 1; b <= 40; b++)
|
|
4099
|
+
if (h <= e.getCapacity(b, T, p))
|
|
4100
|
+
return b;
|
|
4100
4101
|
}
|
|
4101
4102
|
function u(p, h) {
|
|
4102
4103
|
return o.getCharCountIndicator(p, h) + 4;
|
|
4103
4104
|
}
|
|
4104
4105
|
function f(p, h) {
|
|
4105
4106
|
let T = 0;
|
|
4106
|
-
return p.forEach(function(
|
|
4107
|
-
const C = u(
|
|
4108
|
-
T += C +
|
|
4107
|
+
return p.forEach(function(b) {
|
|
4108
|
+
const C = u(b.mode, h);
|
|
4109
|
+
T += C + b.getBitsLength();
|
|
4109
4110
|
}), T;
|
|
4110
4111
|
}
|
|
4111
4112
|
function m(p, h) {
|
|
@@ -4115,14 +4116,14 @@ Se.testAlphanumeric = function(t) {
|
|
|
4115
4116
|
}
|
|
4116
4117
|
e.from = function(h, T) {
|
|
4117
4118
|
return a.isValid(h) ? parseInt(h, 10) : T;
|
|
4118
|
-
}, e.getCapacity = function(h, T,
|
|
4119
|
+
}, e.getCapacity = function(h, T, b) {
|
|
4119
4120
|
if (!a.isValid(h))
|
|
4120
4121
|
throw new Error("Invalid QR Code version");
|
|
4121
|
-
typeof
|
|
4122
|
-
const C = t.getSymbolTotalCodewords(h),
|
|
4123
|
-
if (
|
|
4124
|
-
const S = w - u(
|
|
4125
|
-
switch (
|
|
4122
|
+
typeof b > "u" && (b = o.BYTE);
|
|
4123
|
+
const C = t.getSymbolTotalCodewords(h), y = r.getTotalCodewordsCount(h, T), w = (C - y) * 8;
|
|
4124
|
+
if (b === o.MIXED) return w;
|
|
4125
|
+
const S = w - u(b, h);
|
|
4126
|
+
switch (b) {
|
|
4126
4127
|
case o.NUMERIC:
|
|
4127
4128
|
return Math.floor(S / 10 * 3);
|
|
4128
4129
|
case o.ALPHANUMERIC:
|
|
@@ -4134,17 +4135,17 @@ Se.testAlphanumeric = function(t) {
|
|
|
4134
4135
|
return Math.floor(S / 8);
|
|
4135
4136
|
}
|
|
4136
4137
|
}, e.getBestVersionForData = function(h, T) {
|
|
4137
|
-
let
|
|
4138
|
+
let b;
|
|
4138
4139
|
const C = n.from(T, n.M);
|
|
4139
4140
|
if (Array.isArray(h)) {
|
|
4140
4141
|
if (h.length > 1)
|
|
4141
4142
|
return m(h, C);
|
|
4142
4143
|
if (h.length === 0)
|
|
4143
4144
|
return 1;
|
|
4144
|
-
|
|
4145
|
+
b = h[0];
|
|
4145
4146
|
} else
|
|
4146
|
-
|
|
4147
|
-
return l(
|
|
4147
|
+
b = h;
|
|
4148
|
+
return l(b.mode, b.getLength(), C);
|
|
4148
4149
|
}, e.getEncodedBits = function(h) {
|
|
4149
4150
|
if (!a.isValid(h) || h < 7)
|
|
4150
4151
|
throw new Error("Invalid QR Code version");
|
|
@@ -4155,7 +4156,7 @@ Se.testAlphanumeric = function(t) {
|
|
|
4155
4156
|
};
|
|
4156
4157
|
})(Sn);
|
|
4157
4158
|
var Rn = {};
|
|
4158
|
-
const nr =
|
|
4159
|
+
const nr = be, On = 1335, Xa = 21522, $r = nr.getBCHDigit(On);
|
|
4159
4160
|
Rn.getEncodedBits = function(t, r) {
|
|
4160
4161
|
const n = t.bit << 3 | r;
|
|
4161
4162
|
let o = n << 10;
|
|
@@ -4297,7 +4298,7 @@ Ge.prototype.write = function(e) {
|
|
|
4297
4298
|
e.put(this.data[t], 8);
|
|
4298
4299
|
};
|
|
4299
4300
|
var ai = Ge;
|
|
4300
|
-
const ii = Pe, si =
|
|
4301
|
+
const ii = Pe, si = be;
|
|
4301
4302
|
function Ke(e) {
|
|
4302
4303
|
this.mode = ii.KANJI, this.data = e;
|
|
4303
4304
|
}
|
|
@@ -4334,14 +4335,14 @@ var li = Ke, kn = { exports: {} };
|
|
|
4334
4335
|
s[n] = 0;
|
|
4335
4336
|
var i = t.PriorityQueue.make();
|
|
4336
4337
|
i.push(n, 0);
|
|
4337
|
-
for (var l, u, f, m, p, h, T,
|
|
4338
|
+
for (var l, u, f, m, p, h, T, b, C; !i.empty(); ) {
|
|
4338
4339
|
l = i.pop(), u = l.value, m = l.cost, p = r[u] || {};
|
|
4339
4340
|
for (f in p)
|
|
4340
|
-
p.hasOwnProperty(f) && (h = p[f], T = m + h,
|
|
4341
|
+
p.hasOwnProperty(f) && (h = p[f], T = m + h, b = s[f], C = typeof s[f] > "u", (C || b > T) && (s[f] = T, i.push(f, T), a[f] = u));
|
|
4341
4342
|
}
|
|
4342
4343
|
if (typeof o < "u" && typeof s[o] > "u") {
|
|
4343
|
-
var
|
|
4344
|
-
throw new Error(
|
|
4344
|
+
var y = ["Could not find a path from ", n, " to ", o, "."].join("");
|
|
4345
|
+
throw new Error(y);
|
|
4345
4346
|
}
|
|
4346
4347
|
return a;
|
|
4347
4348
|
},
|
|
@@ -4394,14 +4395,14 @@ var li = Ke, kn = { exports: {} };
|
|
|
4394
4395
|
})(kn);
|
|
4395
4396
|
var ci = kn.exports;
|
|
4396
4397
|
(function(e) {
|
|
4397
|
-
const t = Pe, r = Za, n = ti, o = ai, a = li, s = Se, i =
|
|
4398
|
-
function u(
|
|
4399
|
-
return unescape(encodeURIComponent(
|
|
4398
|
+
const t = Pe, r = Za, n = ti, o = ai, a = li, s = Se, i = be, l = ci;
|
|
4399
|
+
function u(y) {
|
|
4400
|
+
return unescape(encodeURIComponent(y)).length;
|
|
4400
4401
|
}
|
|
4401
|
-
function f(
|
|
4402
|
+
function f(y, w, S) {
|
|
4402
4403
|
const E = [];
|
|
4403
4404
|
let g;
|
|
4404
|
-
for (; (g =
|
|
4405
|
+
for (; (g = y.exec(S)) !== null; )
|
|
4405
4406
|
E.push({
|
|
4406
4407
|
data: g[0],
|
|
4407
4408
|
index: g.index,
|
|
@@ -4410,10 +4411,10 @@ var ci = kn.exports;
|
|
|
4410
4411
|
});
|
|
4411
4412
|
return E;
|
|
4412
4413
|
}
|
|
4413
|
-
function m(
|
|
4414
|
-
const w = f(s.NUMERIC, t.NUMERIC,
|
|
4414
|
+
function m(y) {
|
|
4415
|
+
const w = f(s.NUMERIC, t.NUMERIC, y), S = f(s.ALPHANUMERIC, t.ALPHANUMERIC, y);
|
|
4415
4416
|
let E, g;
|
|
4416
|
-
return i.isKanjiModeEnabled() ? (E = f(s.BYTE, t.BYTE,
|
|
4417
|
+
return i.isKanjiModeEnabled() ? (E = f(s.BYTE, t.BYTE, y), g = f(s.KANJI, t.KANJI, y)) : (E = f(s.BYTE_KANJI, t.BYTE, y), g = []), w.concat(S, E, g).sort(function(te, ie) {
|
|
4417
4418
|
return te.index - ie.index;
|
|
4418
4419
|
}).map(function(te) {
|
|
4419
4420
|
return {
|
|
@@ -4423,28 +4424,28 @@ var ci = kn.exports;
|
|
|
4423
4424
|
};
|
|
4424
4425
|
});
|
|
4425
4426
|
}
|
|
4426
|
-
function p(
|
|
4427
|
+
function p(y, w) {
|
|
4427
4428
|
switch (w) {
|
|
4428
4429
|
case t.NUMERIC:
|
|
4429
|
-
return r.getBitsLength(
|
|
4430
|
+
return r.getBitsLength(y);
|
|
4430
4431
|
case t.ALPHANUMERIC:
|
|
4431
|
-
return n.getBitsLength(
|
|
4432
|
+
return n.getBitsLength(y);
|
|
4432
4433
|
case t.KANJI:
|
|
4433
|
-
return a.getBitsLength(
|
|
4434
|
+
return a.getBitsLength(y);
|
|
4434
4435
|
case t.BYTE:
|
|
4435
|
-
return o.getBitsLength(
|
|
4436
|
+
return o.getBitsLength(y);
|
|
4436
4437
|
}
|
|
4437
4438
|
}
|
|
4438
|
-
function h(
|
|
4439
|
-
return
|
|
4439
|
+
function h(y) {
|
|
4440
|
+
return y.reduce(function(w, S) {
|
|
4440
4441
|
const E = w.length - 1 >= 0 ? w[w.length - 1] : null;
|
|
4441
4442
|
return E && E.mode === S.mode ? (w[w.length - 1].data += S.data, w) : (w.push(S), w);
|
|
4442
4443
|
}, []);
|
|
4443
4444
|
}
|
|
4444
|
-
function T(
|
|
4445
|
+
function T(y) {
|
|
4445
4446
|
const w = [];
|
|
4446
|
-
for (let S = 0; S <
|
|
4447
|
-
const E =
|
|
4447
|
+
for (let S = 0; S < y.length; S++) {
|
|
4448
|
+
const E = y[S];
|
|
4448
4449
|
switch (E.mode) {
|
|
4449
4450
|
case t.NUMERIC:
|
|
4450
4451
|
w.push([
|
|
@@ -4473,11 +4474,11 @@ var ci = kn.exports;
|
|
|
4473
4474
|
}
|
|
4474
4475
|
return w;
|
|
4475
4476
|
}
|
|
4476
|
-
function y
|
|
4477
|
+
function b(y, w) {
|
|
4477
4478
|
const S = {}, E = { start: {} };
|
|
4478
4479
|
let g = ["start"];
|
|
4479
|
-
for (let $ = 0; $ <
|
|
4480
|
-
const te =
|
|
4480
|
+
for (let $ = 0; $ < y.length; $++) {
|
|
4481
|
+
const te = y[$], ie = [];
|
|
4481
4482
|
for (let ae = 0; ae < te.length; ae++) {
|
|
4482
4483
|
const se = te[ae], ue = "" + $ + ae;
|
|
4483
4484
|
ie.push(ue), S[ue] = { node: se, lastCount: 0 }, E[ue] = {};
|
|
@@ -4492,21 +4493,21 @@ var ci = kn.exports;
|
|
|
4492
4493
|
E[g[$]].end = 0;
|
|
4493
4494
|
return { map: E, table: S };
|
|
4494
4495
|
}
|
|
4495
|
-
function C(
|
|
4496
|
+
function C(y, w) {
|
|
4496
4497
|
let S;
|
|
4497
|
-
const E = t.getBestModeForData(
|
|
4498
|
+
const E = t.getBestModeForData(y);
|
|
4498
4499
|
if (S = t.from(w, E), S !== t.BYTE && S.bit < E.bit)
|
|
4499
|
-
throw new Error('"' +
|
|
4500
|
+
throw new Error('"' + y + '" cannot be encoded with mode ' + t.toString(S) + `.
|
|
4500
4501
|
Suggested mode is: ` + t.toString(E));
|
|
4501
4502
|
switch (S === t.KANJI && !i.isKanjiModeEnabled() && (S = t.BYTE), S) {
|
|
4502
4503
|
case t.NUMERIC:
|
|
4503
|
-
return new r(
|
|
4504
|
+
return new r(y);
|
|
4504
4505
|
case t.ALPHANUMERIC:
|
|
4505
|
-
return new n(
|
|
4506
|
+
return new n(y);
|
|
4506
4507
|
case t.KANJI:
|
|
4507
|
-
return new a(
|
|
4508
|
+
return new a(y);
|
|
4508
4509
|
case t.BYTE:
|
|
4509
|
-
return new o(
|
|
4510
|
+
return new o(y);
|
|
4510
4511
|
}
|
|
4511
4512
|
}
|
|
4512
4513
|
e.fromArray = function(w) {
|
|
@@ -4514,7 +4515,7 @@ var ci = kn.exports;
|
|
|
4514
4515
|
return typeof E == "string" ? S.push(C(E, null)) : E.data && S.push(C(E.data, E.mode)), S;
|
|
4515
4516
|
}, []);
|
|
4516
4517
|
}, e.fromString = function(w, S) {
|
|
4517
|
-
const E = m(w, i.isKanjiModeEnabled()), g = T(E), $ =
|
|
4518
|
+
const E = m(w, i.isKanjiModeEnabled()), g = T(E), $ = b(g, S), te = l.find_path($.map, "start", "end"), ie = [];
|
|
4518
4519
|
for (let ae = 1; ae < te.length - 1; ae++)
|
|
4519
4520
|
ie.push($.table[te[ae]].node);
|
|
4520
4521
|
return e.fromArray(h(ie));
|
|
@@ -4524,7 +4525,7 @@ var ci = kn.exports;
|
|
|
4524
4525
|
);
|
|
4525
4526
|
};
|
|
4526
4527
|
})(Mn);
|
|
4527
|
-
const Pt =
|
|
4528
|
+
const Pt = be, Ut = Mt, ui = Wa, fi = $a, di = wn, pi = xn, or = En, ar = kt, mi = Va, Ct = Sn, gi = Rn, hi = Pe, Wt = Mn;
|
|
4528
4529
|
function vi(e, t) {
|
|
4529
4530
|
const r = e.size, n = pi.getPositions(t);
|
|
4530
4531
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -4535,14 +4536,14 @@ function vi(e, t) {
|
|
|
4535
4536
|
s + l <= -1 || r <= s + l || (i >= 0 && i <= 6 && (l === 0 || l === 6) || l >= 0 && l <= 6 && (i === 0 || i === 6) || i >= 2 && i <= 4 && l >= 2 && l <= 4 ? e.set(a + i, s + l, !0, !0) : e.set(a + i, s + l, !1, !0));
|
|
4536
4537
|
}
|
|
4537
4538
|
}
|
|
4538
|
-
function
|
|
4539
|
+
function bi(e) {
|
|
4539
4540
|
const t = e.size;
|
|
4540
4541
|
for (let r = 8; r < t - 8; r++) {
|
|
4541
4542
|
const n = r % 2 === 0;
|
|
4542
4543
|
e.set(r, 6, n, !0), e.set(6, r, n, !0);
|
|
4543
4544
|
}
|
|
4544
4545
|
}
|
|
4545
|
-
function
|
|
4546
|
+
function yi(e, t) {
|
|
4546
4547
|
const r = di.getPositions(t);
|
|
4547
4548
|
for (let n = 0; n < r.length; n++) {
|
|
4548
4549
|
const o = r[n][0], a = r[n][1];
|
|
@@ -4596,18 +4597,18 @@ function Ei(e, t, r) {
|
|
|
4596
4597
|
function Ci(e, t, r) {
|
|
4597
4598
|
const n = Pt.getSymbolTotalCodewords(t), o = ar.getTotalCodewordsCount(t, r), a = n - o, s = ar.getBlocksCount(t, r), i = n % s, l = s - i, u = Math.floor(n / s), f = Math.floor(a / s), m = f + 1, p = u - f, h = new mi(p);
|
|
4598
4599
|
let T = 0;
|
|
4599
|
-
const
|
|
4600
|
-
let
|
|
4600
|
+
const b = new Array(s), C = new Array(s);
|
|
4601
|
+
let y = 0;
|
|
4601
4602
|
const w = new Uint8Array(e.buffer);
|
|
4602
4603
|
for (let te = 0; te < s; te++) {
|
|
4603
4604
|
const ie = te < l ? f : m;
|
|
4604
|
-
|
|
4605
|
+
b[te] = w.slice(T, T + ie), C[te] = h.encode(b[te]), T += ie, y = Math.max(y, ie);
|
|
4605
4606
|
}
|
|
4606
4607
|
const S = new Uint8Array(n);
|
|
4607
4608
|
let E = 0, g, $;
|
|
4608
|
-
for (g = 0; g <
|
|
4609
|
+
for (g = 0; g < y; g++)
|
|
4609
4610
|
for ($ = 0; $ < s; $++)
|
|
4610
|
-
g <
|
|
4611
|
+
g < b[$].length && (S[E++] = b[$][g]);
|
|
4611
4612
|
for (g = 0; g < p; g++)
|
|
4612
4613
|
for ($ = 0; $ < s; $++)
|
|
4613
4614
|
S[E++] = C[$][g];
|
|
@@ -4639,7 +4640,7 @@ Minimum version required to store current data is: ` + a + `.
|
|
|
4639
4640
|
`
|
|
4640
4641
|
);
|
|
4641
4642
|
const s = Ei(t, r, o), i = Pt.getSymbolSize(t), l = new fi(i);
|
|
4642
|
-
return vi(l, t),
|
|
4643
|
+
return vi(l, t), bi(l), yi(l, t), $t(l, r, 0), t >= 7 && wi(l, t), xi(l, s), isNaN(n) && (n = or.getBestMask(
|
|
4643
4644
|
l,
|
|
4644
4645
|
$t.bind(null, l, r)
|
|
4645
4646
|
)), or.applyMask(n, l), $t(l, r, n), {
|
|
@@ -4650,13 +4651,13 @@ Minimum version required to store current data is: ` + a + `.
|
|
|
4650
4651
|
segments: o
|
|
4651
4652
|
};
|
|
4652
4653
|
}
|
|
4653
|
-
|
|
4654
|
+
bn.create = function(t, r) {
|
|
4654
4655
|
if (typeof t > "u" || t === "")
|
|
4655
4656
|
throw new Error("No input text");
|
|
4656
4657
|
let n = Ut.M, o, a;
|
|
4657
4658
|
return typeof r < "u" && (n = Ut.from(r.errorCorrectionLevel, Ut.M), o = Ct.from(r.version), a = or.from(r.maskPattern), r.toSJISFunc && Pt.setToSJISFunction(r.toSJISFunc)), _i(t, o, n, a);
|
|
4658
4659
|
};
|
|
4659
|
-
var An = {},
|
|
4660
|
+
var An = {}, br = {};
|
|
4660
4661
|
(function(e) {
|
|
4661
4662
|
function t(r) {
|
|
4662
4663
|
if (typeof r == "number" && (r = r.toString()), typeof r != "string")
|
|
@@ -4699,17 +4700,17 @@ var An = {}, yr = {};
|
|
|
4699
4700
|
const s = o.modules.size, i = o.modules.data, l = e.getScale(s, a), u = Math.floor((s + a.margin * 2) * l), f = a.margin * l, m = [a.color.light, a.color.dark];
|
|
4700
4701
|
for (let p = 0; p < u; p++)
|
|
4701
4702
|
for (let h = 0; h < u; h++) {
|
|
4702
|
-
let T = (p * u + h) * 4,
|
|
4703
|
+
let T = (p * u + h) * 4, b = a.color.light;
|
|
4703
4704
|
if (p >= f && h >= f && p < u - f && h < u - f) {
|
|
4704
|
-
const C = Math.floor((p - f) / l),
|
|
4705
|
-
|
|
4705
|
+
const C = Math.floor((p - f) / l), y = Math.floor((h - f) / l);
|
|
4706
|
+
b = m[i[C * s + y] ? 1 : 0];
|
|
4706
4707
|
}
|
|
4707
|
-
n[T++] =
|
|
4708
|
+
n[T++] = b.r, n[T++] = b.g, n[T++] = b.b, n[T] = b.a;
|
|
4708
4709
|
}
|
|
4709
4710
|
};
|
|
4710
|
-
})(
|
|
4711
|
+
})(br);
|
|
4711
4712
|
(function(e) {
|
|
4712
|
-
const t =
|
|
4713
|
+
const t = br;
|
|
4713
4714
|
function r(o, a, s) {
|
|
4714
4715
|
o.clearRect(0, 0, a.width, a.height), a.style || (a.style = {}), a.height = s, a.width = s, a.style.height = s + "px", a.style.width = s + "px";
|
|
4715
4716
|
}
|
|
@@ -4733,7 +4734,7 @@ var An = {}, yr = {};
|
|
|
4733
4734
|
};
|
|
4734
4735
|
})(An);
|
|
4735
4736
|
var Pn = {};
|
|
4736
|
-
const Si =
|
|
4737
|
+
const Si = br;
|
|
4737
4738
|
function Hr(e, t) {
|
|
4738
4739
|
const r = e.a / 255, n = t + '="' + e.hex + '"';
|
|
4739
4740
|
return r < 1 ? n + " " + t + '-opacity="' + r.toFixed(2).slice(1) + '"' : n;
|
|
@@ -4755,8 +4756,8 @@ Pn.render = function(t, r, n) {
|
|
|
4755
4756
|
`;
|
|
4756
4757
|
return typeof n == "function" && n(null, p), p;
|
|
4757
4758
|
};
|
|
4758
|
-
const Ri = za, ir =
|
|
4759
|
-
function
|
|
4759
|
+
const Ri = za, ir = bn, Nn = An, Oi = Pn;
|
|
4760
|
+
function yr(e, t, r, n, o) {
|
|
4760
4761
|
const a = [].slice.call(arguments, 1), s = a.length, i = typeof a[s - 1] == "function";
|
|
4761
4762
|
if (!i && !Ri())
|
|
4762
4763
|
throw new Error("Callback required as last argument");
|
|
@@ -4784,9 +4785,9 @@ function br(e, t, r, n, o) {
|
|
|
4784
4785
|
}
|
|
4785
4786
|
}
|
|
4786
4787
|
dt.create = ir.create;
|
|
4787
|
-
dt.toCanvas =
|
|
4788
|
-
dt.toDataURL =
|
|
4789
|
-
dt.toString =
|
|
4788
|
+
dt.toCanvas = yr.bind(null, Nn.render);
|
|
4789
|
+
dt.toDataURL = yr.bind(null, Nn.renderToDataURL);
|
|
4790
|
+
dt.toString = yr.bind(null, function(e, t, r) {
|
|
4790
4791
|
return Oi.render(e, r);
|
|
4791
4792
|
});
|
|
4792
4793
|
const Mi = 0.1, Vr = 2.5, Re = 7;
|
|
@@ -4810,8 +4811,8 @@ const Ai = {
|
|
|
4810
4811
|
{ x: 1, y: 0 },
|
|
4811
4812
|
{ x: 0, y: 1 }
|
|
4812
4813
|
], u = [];
|
|
4813
|
-
l.forEach(({ x:
|
|
4814
|
-
const
|
|
4814
|
+
l.forEach(({ x: b, y: C }) => {
|
|
4815
|
+
const y = (s.length - Re) * i * b, w = (s.length - Re) * i * C, S = 0.3;
|
|
4815
4816
|
for (let E = 0; E < l.length; E += 1) {
|
|
4816
4817
|
const g = i * (Re - E * 2);
|
|
4817
4818
|
u.push(
|
|
@@ -4826,15 +4827,15 @@ const Ai = {
|
|
|
4826
4827
|
strokeWidth: E === 0 ? 5 : 0,
|
|
4827
4828
|
height: E === 0 ? g - 5 : g,
|
|
4828
4829
|
x: E === 0 ? w + i * E + 5 / 2 : w + i * E,
|
|
4829
|
-
y: E === 0 ?
|
|
4830
|
+
y: E === 0 ? y + i * E + 5 / 2 : y + i * E
|
|
4830
4831
|
}
|
|
4831
4832
|
)
|
|
4832
4833
|
);
|
|
4833
4834
|
}
|
|
4834
4835
|
});
|
|
4835
4836
|
const f = Math.floor((r + 25) / i), m = s.length / 2 - f / 2, p = s.length / 2 + f / 2 - 1, h = [];
|
|
4836
|
-
s.forEach((
|
|
4837
|
-
|
|
4837
|
+
s.forEach((b, C) => {
|
|
4838
|
+
b.forEach((y, w) => {
|
|
4838
4839
|
if (s[C][w] && !(C < Re && w < Re || C > s.length - (Re + 1) && w < Re || C < Re && w > s.length - (Re + 1)) && !(C > m && C < p && w > m && w < p)) {
|
|
4839
4840
|
const S = C * i + i / 2, E = w * i + i / 2;
|
|
4840
4841
|
h.push([S, E]);
|
|
@@ -4842,40 +4843,40 @@ const Ai = {
|
|
|
4842
4843
|
});
|
|
4843
4844
|
});
|
|
4844
4845
|
const T = {};
|
|
4845
|
-
return h.forEach(([
|
|
4846
|
-
var
|
|
4847
|
-
T[
|
|
4848
|
-
}), Object.entries(T).map(([
|
|
4849
|
-
const
|
|
4846
|
+
return h.forEach(([b, C]) => {
|
|
4847
|
+
var y;
|
|
4848
|
+
T[b] ? (y = T[b]) == null || y.push(C) : T[b] = [C];
|
|
4849
|
+
}), Object.entries(T).map(([b, C]) => {
|
|
4850
|
+
const y = C.filter(
|
|
4850
4851
|
(w) => C.every((S) => !Vt(w, S, i))
|
|
4851
4852
|
);
|
|
4852
|
-
return [Number(
|
|
4853
|
-
}).forEach(([
|
|
4854
|
-
C.forEach((
|
|
4855
|
-
u.push(/* @__PURE__ */ K.jsx("circle", { cx:
|
|
4853
|
+
return [Number(b), y];
|
|
4854
|
+
}).forEach(([b, C]) => {
|
|
4855
|
+
C.forEach((y) => {
|
|
4856
|
+
u.push(/* @__PURE__ */ K.jsx("circle", { cx: b, cy: y, fill: n, r: i / Vr }));
|
|
4856
4857
|
});
|
|
4857
|
-
}), Object.entries(T).filter(([
|
|
4858
|
-
const
|
|
4859
|
-
return [Number(
|
|
4860
|
-
}).map(([
|
|
4858
|
+
}), Object.entries(T).filter(([b, C]) => C.length > 1).map(([b, C]) => {
|
|
4859
|
+
const y = C.filter((w) => C.some((S) => Vt(w, S, i)));
|
|
4860
|
+
return [Number(b), y];
|
|
4861
|
+
}).map(([b, C]) => {
|
|
4861
4862
|
C.sort((w, S) => w < S ? -1 : 1);
|
|
4862
|
-
const
|
|
4863
|
+
const y = [];
|
|
4863
4864
|
for (const w of C) {
|
|
4864
|
-
const S =
|
|
4865
|
+
const S = y.find(
|
|
4865
4866
|
(E) => E.some((g) => Vt(w, g, i))
|
|
4866
4867
|
);
|
|
4867
|
-
S ? S.push(w) :
|
|
4868
|
+
S ? S.push(w) : y.push([w]);
|
|
4868
4869
|
}
|
|
4869
|
-
return [
|
|
4870
|
-
}).forEach(([
|
|
4871
|
-
C.forEach(([
|
|
4870
|
+
return [b, y.map((w) => [w[0], w[w.length - 1]])];
|
|
4871
|
+
}).forEach(([b, C]) => {
|
|
4872
|
+
C.forEach(([y, w]) => {
|
|
4872
4873
|
u.push(
|
|
4873
4874
|
/* @__PURE__ */ K.jsx(
|
|
4874
4875
|
"line",
|
|
4875
4876
|
{
|
|
4876
|
-
x1:
|
|
4877
|
-
x2:
|
|
4878
|
-
y1:
|
|
4877
|
+
x1: b,
|
|
4878
|
+
x2: b,
|
|
4879
|
+
y1: y,
|
|
4879
4880
|
y2: w,
|
|
4880
4881
|
stroke: n,
|
|
4881
4882
|
strokeWidth: i / (Vr / 2),
|
|
@@ -4889,7 +4890,8 @@ const Ai = {
|
|
|
4889
4890
|
}, Pi = {
|
|
4890
4891
|
sm: 120,
|
|
4891
4892
|
md: 200,
|
|
4892
|
-
lg: 256
|
|
4893
|
+
lg: 256,
|
|
4894
|
+
xl: 320
|
|
4893
4895
|
};
|
|
4894
4896
|
function ol({ uri: e, size: t = "md", color: r, iconName: n = "didit", className: o, ...a }) {
|
|
4895
4897
|
const s = typeof t == "number" ? t : Pi[t], i = vo(
|
|
@@ -4941,7 +4943,7 @@ var qr;
|
|
|
4941
4943
|
function Li() {
|
|
4942
4944
|
if (qr) return Z;
|
|
4943
4945
|
qr = 1;
|
|
4944
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116,
|
|
4946
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
4945
4947
|
function S(g) {
|
|
4946
4948
|
if (typeof g == "object" && g !== null) {
|
|
4947
4949
|
var $ = g.$$typeof;
|
|
@@ -5000,7 +5002,7 @@ function Li() {
|
|
|
5000
5002
|
}, Z.isSuspense = function(g) {
|
|
5001
5003
|
return S(g) === m;
|
|
5002
5004
|
}, Z.isValidElementType = function(g) {
|
|
5003
|
-
return typeof g == "string" || typeof g == "function" || g === n || g === u || g === a || g === o || g === m || g === p || typeof g == "object" && g !== null && (g.$$typeof === T || g.$$typeof === h || g.$$typeof === s || g.$$typeof === i || g.$$typeof === f || g.$$typeof === C || g.$$typeof ===
|
|
5005
|
+
return typeof g == "string" || typeof g == "function" || g === n || g === u || g === a || g === o || g === m || g === p || typeof g == "object" && g !== null && (g.$$typeof === T || g.$$typeof === h || g.$$typeof === s || g.$$typeof === i || g.$$typeof === f || g.$$typeof === C || g.$$typeof === y || g.$$typeof === w || g.$$typeof === b);
|
|
5004
5006
|
}, Z.typeOf = S, Z;
|
|
5005
5007
|
}
|
|
5006
5008
|
var ee = {};
|
|
@@ -5015,15 +5017,15 @@ var ee = {};
|
|
|
5015
5017
|
var Yr;
|
|
5016
5018
|
function Fi() {
|
|
5017
5019
|
return Yr || (Yr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5018
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116,
|
|
5020
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
5019
5021
|
function S(R) {
|
|
5020
5022
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
5021
|
-
R === n || R === u || R === a || R === o || R === m || R === p || typeof R == "object" && R !== null && (R.$$typeof === T || R.$$typeof === h || R.$$typeof === s || R.$$typeof === i || R.$$typeof === f || R.$$typeof === C || R.$$typeof ===
|
|
5023
|
+
R === n || R === u || R === a || R === o || R === m || R === p || typeof R == "object" && R !== null && (R.$$typeof === T || R.$$typeof === h || R.$$typeof === s || R.$$typeof === i || R.$$typeof === f || R.$$typeof === C || R.$$typeof === y || R.$$typeof === w || R.$$typeof === b);
|
|
5022
5024
|
}
|
|
5023
5025
|
function E(R) {
|
|
5024
5026
|
if (typeof R == "object" && R !== null) {
|
|
5025
|
-
var
|
|
5026
|
-
switch (
|
|
5027
|
+
var ye = R.$$typeof;
|
|
5028
|
+
switch (ye) {
|
|
5027
5029
|
case t:
|
|
5028
5030
|
var We = R.type;
|
|
5029
5031
|
switch (We) {
|
|
@@ -5044,11 +5046,11 @@ function Fi() {
|
|
|
5044
5046
|
case s:
|
|
5045
5047
|
return Ne;
|
|
5046
5048
|
default:
|
|
5047
|
-
return
|
|
5049
|
+
return ye;
|
|
5048
5050
|
}
|
|
5049
5051
|
}
|
|
5050
5052
|
case r:
|
|
5051
|
-
return
|
|
5053
|
+
return ye;
|
|
5052
5054
|
}
|
|
5053
5055
|
}
|
|
5054
5056
|
}
|
|
@@ -5235,14 +5237,14 @@ function ji() {
|
|
|
5235
5237
|
return _;
|
|
5236
5238
|
}
|
|
5237
5239
|
var p = "<<anonymous>>", h = {
|
|
5238
|
-
array:
|
|
5239
|
-
bigint:
|
|
5240
|
-
bool:
|
|
5241
|
-
func:
|
|
5242
|
-
number:
|
|
5243
|
-
object:
|
|
5244
|
-
string:
|
|
5245
|
-
symbol:
|
|
5240
|
+
array: y("array"),
|
|
5241
|
+
bigint: y("bigint"),
|
|
5242
|
+
bool: y("boolean"),
|
|
5243
|
+
func: y("function"),
|
|
5244
|
+
number: y("number"),
|
|
5245
|
+
object: y("object"),
|
|
5246
|
+
string: y("string"),
|
|
5247
|
+
symbol: y("symbol"),
|
|
5246
5248
|
any: w(),
|
|
5247
5249
|
arrayOf: S,
|
|
5248
5250
|
element: E(),
|
|
@@ -5258,10 +5260,10 @@ function ji() {
|
|
|
5258
5260
|
function T(v, _) {
|
|
5259
5261
|
return v === _ ? v !== 0 || 1 / v === 1 / _ : v !== v && _ !== _;
|
|
5260
5262
|
}
|
|
5261
|
-
function
|
|
5263
|
+
function b(v, _) {
|
|
5262
5264
|
this.message = v, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
|
|
5263
5265
|
}
|
|
5264
|
-
|
|
5266
|
+
b.prototype = Error.prototype;
|
|
5265
5267
|
function C(v) {
|
|
5266
5268
|
if (process.env.NODE_ENV !== "production")
|
|
5267
5269
|
var _ = {}, N = 0;
|
|
@@ -5273,24 +5275,24 @@ function ji() {
|
|
|
5273
5275
|
);
|
|
5274
5276
|
throw R.name = "Invariant Violation", R;
|
|
5275
5277
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
5276
|
-
var
|
|
5277
|
-
!_[
|
|
5278
|
+
var ye = H + ":" + B;
|
|
5279
|
+
!_[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
5278
5280
|
N < 3 && (a(
|
|
5279
5281
|
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
5280
|
-
), _[
|
|
5282
|
+
), _[ye] = !0, N++);
|
|
5281
5283
|
}
|
|
5282
5284
|
}
|
|
5283
|
-
return j[B] == null ? q ? j[B] === null ? new
|
|
5285
|
+
return j[B] == null ? q ? j[B] === null ? new b("The " + J + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new b("The " + J + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : v(j, B, H, J, V);
|
|
5284
5286
|
}
|
|
5285
5287
|
var F = L.bind(null, !1);
|
|
5286
5288
|
return F.isRequired = L.bind(null, !0), F;
|
|
5287
5289
|
}
|
|
5288
|
-
function
|
|
5290
|
+
function y(v) {
|
|
5289
5291
|
function _(N, L, F, q, j, B) {
|
|
5290
5292
|
var H = N[L], J = W(H);
|
|
5291
5293
|
if (J !== v) {
|
|
5292
5294
|
var V = d(H);
|
|
5293
|
-
return new
|
|
5295
|
+
return new b(
|
|
5294
5296
|
"Invalid " + q + " `" + j + "` of type " + ("`" + V + "` supplied to `" + F + "`, expected ") + ("`" + v + "`."),
|
|
5295
5297
|
{ expectedType: v }
|
|
5296
5298
|
);
|
|
@@ -5305,11 +5307,11 @@ function ji() {
|
|
|
5305
5307
|
function S(v) {
|
|
5306
5308
|
function _(N, L, F, q, j) {
|
|
5307
5309
|
if (typeof v != "function")
|
|
5308
|
-
return new
|
|
5310
|
+
return new b("Property `" + j + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
|
|
5309
5311
|
var B = N[L];
|
|
5310
5312
|
if (!Array.isArray(B)) {
|
|
5311
5313
|
var H = W(B);
|
|
5312
|
-
return new
|
|
5314
|
+
return new b("Invalid " + q + " `" + j + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected an array."));
|
|
5313
5315
|
}
|
|
5314
5316
|
for (var J = 0; J < B.length; J++) {
|
|
5315
5317
|
var V = v(B, J, F, q, j + "[" + J + "]", r);
|
|
@@ -5325,7 +5327,7 @@ function ji() {
|
|
|
5325
5327
|
var j = _[N];
|
|
5326
5328
|
if (!i(j)) {
|
|
5327
5329
|
var B = W(j);
|
|
5328
|
-
return new
|
|
5330
|
+
return new b("Invalid " + F + " `" + q + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
5329
5331
|
}
|
|
5330
5332
|
return null;
|
|
5331
5333
|
}
|
|
@@ -5336,7 +5338,7 @@ function ji() {
|
|
|
5336
5338
|
var j = _[N];
|
|
5337
5339
|
if (!e.isValidElementType(j)) {
|
|
5338
5340
|
var B = W(j);
|
|
5339
|
-
return new
|
|
5341
|
+
return new b("Invalid " + F + " `" + q + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
5340
5342
|
}
|
|
5341
5343
|
return null;
|
|
5342
5344
|
}
|
|
@@ -5346,7 +5348,7 @@ function ji() {
|
|
|
5346
5348
|
function _(N, L, F, q, j) {
|
|
5347
5349
|
if (!(N[L] instanceof v)) {
|
|
5348
5350
|
var B = v.name || p, H = re(N[L]);
|
|
5349
|
-
return new
|
|
5351
|
+
return new b("Invalid " + q + " `" + j + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected ") + ("instance of `" + B + "`."));
|
|
5350
5352
|
}
|
|
5351
5353
|
return null;
|
|
5352
5354
|
}
|
|
@@ -5362,20 +5364,20 @@ function ji() {
|
|
|
5362
5364
|
if (T(B, v[H]))
|
|
5363
5365
|
return null;
|
|
5364
5366
|
var J = JSON.stringify(v, function(fe, R) {
|
|
5365
|
-
var
|
|
5366
|
-
return
|
|
5367
|
+
var ye = d(R);
|
|
5368
|
+
return ye === "symbol" ? String(R) : R;
|
|
5367
5369
|
});
|
|
5368
|
-
return new
|
|
5370
|
+
return new b("Invalid " + q + " `" + j + "` of value `" + String(B) + "` " + ("supplied to `" + F + "`, expected one of " + J + "."));
|
|
5369
5371
|
}
|
|
5370
5372
|
return C(_);
|
|
5371
5373
|
}
|
|
5372
5374
|
function ie(v) {
|
|
5373
5375
|
function _(N, L, F, q, j) {
|
|
5374
5376
|
if (typeof v != "function")
|
|
5375
|
-
return new
|
|
5377
|
+
return new b("Property `" + j + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
|
|
5376
5378
|
var B = N[L], H = W(B);
|
|
5377
5379
|
if (H !== "object")
|
|
5378
|
-
return new
|
|
5380
|
+
return new b("Invalid " + q + " `" + j + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected an object."));
|
|
5379
5381
|
for (var J in B)
|
|
5380
5382
|
if (n(B, J)) {
|
|
5381
5383
|
var V = v(B, J, F, q, j + "." + J, r);
|
|
@@ -5403,19 +5405,19 @@ function ji() {
|
|
|
5403
5405
|
return null;
|
|
5404
5406
|
R.data && n(R.data, "expectedType") && J.push(R.data.expectedType);
|
|
5405
5407
|
}
|
|
5406
|
-
var
|
|
5407
|
-
return new
|
|
5408
|
+
var ye = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
5409
|
+
return new b("Invalid " + B + " `" + H + "` supplied to " + ("`" + j + "`" + ye + "."));
|
|
5408
5410
|
}
|
|
5409
5411
|
return C(L);
|
|
5410
5412
|
}
|
|
5411
5413
|
function se() {
|
|
5412
5414
|
function v(_, N, L, F, q) {
|
|
5413
|
-
return k(_[N]) ? null : new
|
|
5415
|
+
return k(_[N]) ? null : new b("Invalid " + F + " `" + q + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
5414
5416
|
}
|
|
5415
5417
|
return C(v);
|
|
5416
5418
|
}
|
|
5417
5419
|
function ue(v, _, N, L, F) {
|
|
5418
|
-
return new
|
|
5420
|
+
return new b(
|
|
5419
5421
|
(v || "React class") + ": " + _ + " type `" + N + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + F + "`."
|
|
5420
5422
|
);
|
|
5421
5423
|
}
|
|
@@ -5423,7 +5425,7 @@ function ji() {
|
|
|
5423
5425
|
function _(N, L, F, q, j) {
|
|
5424
5426
|
var B = N[L], H = W(B);
|
|
5425
5427
|
if (H !== "object")
|
|
5426
|
-
return new
|
|
5428
|
+
return new b("Invalid " + q + " `" + j + "` of type `" + H + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
5427
5429
|
for (var J in v) {
|
|
5428
5430
|
var V = v[J];
|
|
5429
5431
|
if (typeof V != "function")
|
|
@@ -5440,14 +5442,14 @@ function ji() {
|
|
|
5440
5442
|
function _(N, L, F, q, j) {
|
|
5441
5443
|
var B = N[L], H = W(B);
|
|
5442
5444
|
if (H !== "object")
|
|
5443
|
-
return new
|
|
5445
|
+
return new b("Invalid " + q + " `" + j + "` of type `" + H + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
5444
5446
|
var J = t({}, N[L], v);
|
|
5445
5447
|
for (var V in J) {
|
|
5446
5448
|
var fe = v[V];
|
|
5447
5449
|
if (n(v, V) && typeof fe != "function")
|
|
5448
5450
|
return ue(F, q, j, V, d(fe));
|
|
5449
5451
|
if (!fe)
|
|
5450
|
-
return new
|
|
5452
|
+
return new b(
|
|
5451
5453
|
"Invalid " + q + " `" + j + "` key `" + V + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(N[L], null, " ") + `
|
|
5452
5454
|
Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
5453
5455
|
);
|
|
@@ -5731,10 +5733,10 @@ var dr = { exports: {} };
|
|
|
5731
5733
|
l.preventDefault(), f.focus();
|
|
5732
5734
|
return;
|
|
5733
5735
|
}
|
|
5734
|
-
var
|
|
5736
|
+
var b = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), C = b != null && b[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
5735
5737
|
if (C) {
|
|
5736
|
-
var
|
|
5737
|
-
if (
|
|
5738
|
+
var y = u.indexOf(T);
|
|
5739
|
+
if (y > -1 && (y += m ? -1 : 1), f = u[y], typeof f > "u") {
|
|
5738
5740
|
l.preventDefault(), f = m ? h : p, f.focus();
|
|
5739
5741
|
return;
|
|
5740
5742
|
}
|
|
@@ -5892,7 +5894,7 @@ Object.defineProperty(Qe, "__esModule", {
|
|
|
5892
5894
|
value: !0
|
|
5893
5895
|
});
|
|
5894
5896
|
Qe.resetState = vs;
|
|
5895
|
-
Qe.log =
|
|
5897
|
+
Qe.log = bs;
|
|
5896
5898
|
var De = {}, je = {};
|
|
5897
5899
|
function tn(e, t) {
|
|
5898
5900
|
e.classList.remove(t);
|
|
@@ -5906,7 +5908,7 @@ function vs() {
|
|
|
5906
5908
|
tn(r, je[n]);
|
|
5907
5909
|
De = {}, je = {};
|
|
5908
5910
|
}
|
|
5909
|
-
function
|
|
5911
|
+
function bs() {
|
|
5910
5912
|
if (process.env.NODE_ENV !== "production") {
|
|
5911
5913
|
var e = document.getElementsByTagName("html")[0].className, t = `Show tracked classes:
|
|
5912
5914
|
|
|
@@ -5927,13 +5929,13 @@ doc.body (` + e + `):
|
|
|
5927
5929
|
`, console.log(t);
|
|
5928
5930
|
}
|
|
5929
5931
|
}
|
|
5930
|
-
var
|
|
5932
|
+
var ys = function(t, r) {
|
|
5931
5933
|
return t[r] || (t[r] = 0), t[r] += 1, r;
|
|
5932
5934
|
}, ws = function(t, r) {
|
|
5933
5935
|
return t[r] && (t[r] -= 1), r;
|
|
5934
5936
|
}, xs = function(t, r, n) {
|
|
5935
5937
|
n.forEach(function(o) {
|
|
5936
|
-
|
|
5938
|
+
ys(r, o), t.add(o);
|
|
5937
5939
|
});
|
|
5938
5940
|
}, Es = function(t, r, n) {
|
|
5939
5941
|
n.forEach(function(o) {
|
|
@@ -6054,7 +6056,7 @@ Rs.default.subscribe(As);
|
|
|
6054
6056
|
return function(P, W, d) {
|
|
6055
6057
|
return W && k(P.prototype, W), d && k(P, d), P;
|
|
6056
6058
|
};
|
|
6057
|
-
}(), a = Rt, s = In, i = g(s), l = Ce, u = E(l), f = Qi, m = g(f), p = _e, h = E(p), T = Qe,
|
|
6059
|
+
}(), a = Rt, s = In, i = g(s), l = Ce, u = E(l), f = Qi, m = g(f), p = _e, h = E(p), T = Qe, b = E(T), C = Ee, y = g(C), w = Ze, S = g(w);
|
|
6058
6060
|
function E(k) {
|
|
6059
6061
|
if (k && k.__esModule)
|
|
6060
6062
|
return k;
|
|
@@ -6099,7 +6101,7 @@ Rs.default.subscribe(As);
|
|
|
6099
6101
|
d.content = A, d.props.contentRef && d.props.contentRef(A);
|
|
6100
6102
|
}, d.afterClose = function() {
|
|
6101
6103
|
var A = d.props, re = A.appElement, v = A.ariaHideApp, _ = A.htmlOpenClassName, N = A.bodyOpenClassName, L = A.parentSelector, F = L && L().ownerDocument || document;
|
|
6102
|
-
N &&
|
|
6104
|
+
N && b.remove(F.body, N), _ && b.remove(F.getElementsByTagName("html")[0], _), v && U > 0 && (U -= 1, U === 0 && h.show(re)), d.props.shouldFocusAfterRender && (d.props.shouldReturnFocusAfterClose ? (u.returnFocus(d.props.preventScroll), u.teardownScopedFocus()) : u.popWithoutFocus()), d.props.onAfterClose && d.props.onAfterClose(), S.default.deregister(d);
|
|
6103
6105
|
}, d.open = function() {
|
|
6104
6106
|
d.beforeOpen(), d.state.afterOpen && d.state.beforeClose ? (clearTimeout(d.closeTimer), d.setState({ beforeClose: !1 })) : (d.props.shouldFocusAfterRender && (u.setupScopedFocus(d.node), u.markForFocusLater()), d.setState({ isOpen: !0 }, function() {
|
|
6105
6107
|
d.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6180,7 +6182,7 @@ Rs.default.subscribe(As);
|
|
|
6180
6182
|
key: "beforeOpen",
|
|
6181
6183
|
value: function() {
|
|
6182
6184
|
var d = this.props, A = d.appElement, re = d.ariaHideApp, v = d.htmlOpenClassName, _ = d.bodyOpenClassName, N = d.parentSelector, L = N && N().ownerDocument || document;
|
|
6183
|
-
_ &&
|
|
6185
|
+
_ && b.add(L.body, _), v && b.add(L.getElementsByTagName("html")[0], v), re && (U += 1, h.hide(A)), S.default.register(this);
|
|
6184
6186
|
}
|
|
6185
6187
|
// Don't steal focus from inner elements
|
|
6186
6188
|
}, {
|
|
@@ -6236,7 +6238,7 @@ Rs.default.subscribe(As);
|
|
|
6236
6238
|
bodyOpenClassName: i.default.string,
|
|
6237
6239
|
htmlOpenClassName: i.default.string,
|
|
6238
6240
|
ariaHideApp: i.default.bool,
|
|
6239
|
-
appElement: i.default.oneOfType([i.default.instanceOf(
|
|
6241
|
+
appElement: i.default.oneOfType([i.default.instanceOf(y.default), i.default.instanceOf(C.SafeHTMLCollection), i.default.instanceOf(C.SafeNodeList), i.default.arrayOf(i.default.instanceOf(y.default))]),
|
|
6240
6242
|
onAfterOpen: i.default.func,
|
|
6241
6243
|
onAfterClose: i.default.func,
|
|
6242
6244
|
onRequestClose: i.default.func,
|
|
@@ -6622,7 +6624,7 @@ function sl({ name: e, label: t, avatar: r, size: n, className: o, ...a }) {
|
|
|
6622
6624
|
] })
|
|
6623
6625
|
] });
|
|
6624
6626
|
}
|
|
6625
|
-
const Xs = typeof window < "u" ?
|
|
6627
|
+
const Xs = typeof window < "u" ? bo : yo, Qs = typeof window > "u";
|
|
6626
6628
|
function gt(e, { defaultValue: t = !1, initializeWithValue: r = !0 } = {}) {
|
|
6627
6629
|
function n(i) {
|
|
6628
6630
|
return Qs ? t : window.matchMedia(i).matches;
|