You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@feverus/react-custom-cursor

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feverus/react-custom-cursor - npm Package Compare versions

Comparing version

to
0.1.3

2

dist/lib/CustomCursor/Cursor.d.ts
import { CursorProps } from './CustomCursor.props';
export declare const Cursor: ({ cursor, x, y, angle, scale, unmounting, rotating }: CursorProps) => import("react/jsx-runtime").JSX.Element;
export declare const Cursor: ({ cursor, x, y, angle, scale, unmounting, rotating, hoverClassName }: CursorProps) => import("react/jsx-runtime").JSX.Element;
import { CustomCursorProps } from './CustomCursor.props';
export default function CustomCursor({ children, cursor, rotating, scale, }: CustomCursorProps): import("react/jsx-runtime").JSX.Element;
export default function CustomCursor({ children, cursor, rotating, scale, hoverClassName, }: CustomCursorProps): import("react/jsx-runtime").JSX.Element;

@@ -7,2 +7,3 @@ import React, { RefObject, PropsWithChildren } from "react";

scale?: number;
hoverClassName?: string;
}

@@ -16,2 +17,3 @@ export type ContextProps = {

unmounting: boolean,
hovered: boolean,
mousePosition: [number, number],

@@ -30,2 +32,3 @@ angle: number,

rotating: RotatingType;
hoverClassName: string;
};

@@ -1,3 +0,3 @@

import ze, { useRef as Y, useState as W, useEffect as Se, createContext as dr, useContext as vr } from "react";
var le = { exports: {} }, U = {};
import Ye, { useRef as W, useState as z, useEffect as ke, createContext as dr, useContext as vr } from "react";
var ve = { exports: {} }, U = {};
/**

@@ -12,19 +12,19 @@ * @license React

*/
var Pe;
var Le;
function gr() {
if (Pe)
if (Le)
return U;
Pe = 1;
var E = ze, p = Symbol.for("react.element"), y = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, I = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
function T(g, f, _) {
var d, x = {}, j = null, A = null;
_ !== void 0 && (j = "" + _), f.key !== void 0 && (j = "" + f.key), f.ref !== void 0 && (A = f.ref);
for (d in f)
h.call(f, d) && !b.hasOwnProperty(d) && (x[d] = f[d]);
if (g && g.defaultProps)
for (d in f = g.defaultProps, f)
x[d] === void 0 && (x[d] = f[d]);
return { $$typeof: p, type: g, key: j, ref: A, props: x, _owner: I.current };
Le = 1;
var M = Ye, p = Symbol.for("react.element"), m = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, I = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
function j(v, c, w) {
var g, h = {}, _ = null, N = null;
w !== void 0 && (_ = "" + w), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (N = c.ref);
for (g in c)
T.call(c, g) && !x.hasOwnProperty(g) && (h[g] = c[g]);
if (v && v.defaultProps)
for (g in c = v.defaultProps, c)
h[g] === void 0 && (h[g] = c[g]);
return { $$typeof: p, type: v, key: _, ref: N, props: h, _owner: I.current };
}
return U.Fragment = y, U.jsx = T, U.jsxs = T, U;
return U.Fragment = m, U.jsx = j, U.jsxs = j, U;
}

@@ -41,23 +41,23 @@ var $ = {};

*/
var ke;
function pr() {
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
var E = ze, p = Symbol.for("react.element"), y = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), g = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), Q = Symbol.iterator, V = "@@iterator";
function S(e) {
var ze;
function hr() {
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
var M = Ye, p = Symbol.for("react.element"), m = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), v = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), S = Symbol.iterator, Q = "@@iterator";
function te(e) {
if (e === null || typeof e != "object")
return null;
var r = Q && e[Q] || e[V];
var r = S && e[S] || e[Q];
return typeof r == "function" ? r : null;
}
var R = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function v(e) {
var R = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function f(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
q("error", e, t);
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
t[a - 1] = arguments[a];
ne("error", e, t);
}
}
function q(e, r, t) {
function ne(e, r, t) {
{
var n = R.ReactDebugCurrentFrame, s = n.getStackAddendum();
var a = R.ReactDebugCurrentFrame, s = a.getStackAddendum();
s !== "" && (r += "%s", t = t.concat([s]));

@@ -70,19 +70,19 @@ var u = t.map(function(i) {

}
var B = !1, a = !1, P = !1, ee = !1, re = !1, J;
J = Symbol.for("react.module.reference");
function Fe(e) {
return !!(typeof e == "string" || typeof e == "function" || e === h || e === b || re || e === I || e === _ || e === d || ee || e === A || B || a || P || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === x || e.$$typeof === T || e.$$typeof === g || e.$$typeof === f || // This needs to include all possible module reference object
var V = !1, B = !1, J = !1, G = !1, H = !1, n;
n = Symbol.for("react.module.reference");
function b(e) {
return !!(typeof e == "string" || typeof e == "function" || e === T || e === x || H || e === I || e === w || e === g || G || e === N || V || B || J || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === h || e.$$typeof === j || e.$$typeof === v || e.$$typeof === c || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === J || e.getModuleId !== void 0));
e.$$typeof === n || e.getModuleId !== void 0));
}
function Ye(e, r, t) {
var n = e.displayName;
if (n)
return n;
function ae(e, r, t) {
var a = e.displayName;
if (a)
return a;
var s = r.displayName || r.name || "";
return s !== "" ? t + "(" + s + ")" : t;
}
function fe(e) {
function Z(e) {
return e.displayName || "Context";

@@ -93,3 +93,3 @@ }

return null;
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;

@@ -99,13 +99,13 @@ if (typeof e == "string")

switch (e) {
case h:
case T:
return "Fragment";
case y:
case m:
return "Portal";
case b:
case x:
return "Profiler";
case I:
return "StrictMode";
case _:
case w:
return "Suspense";
case d:
case g:
return "SuspenseList";

@@ -115,14 +115,14 @@ }

switch (e.$$typeof) {
case g:
case v:
var r = e;
return fe(r) + ".Consumer";
case T:
return Z(r) + ".Consumer";
case j:
var t = e;
return fe(t._context) + ".Provider";
case f:
return Ye(e, e.render, "ForwardRef");
case x:
var n = e.displayName || null;
return n !== null ? n : C(e.type) || "Memo";
case j: {
return Z(t._context) + ".Provider";
case c:
return ae(e, e.render, "ForwardRef");
case h:
var a = e.displayName || null;
return a !== null ? a : C(e.type) || "Memo";
case _: {
var s = e, u = s._payload, i = s._init;

@@ -138,14 +138,14 @@ try {

}
var N = Object.assign, z = 0, de, ve, ge, pe, ye, me, Ee;
function he() {
var P = Object.assign, F = 0, ge, he, pe, me, ye, Ee, Me;
function Te() {
}
he.__reactDisabledLog = !0;
Te.__reactDisabledLog = !0;
function We() {
{
if (z === 0) {
de = console.log, ve = console.info, ge = console.warn, pe = console.error, ye = console.group, me = console.groupCollapsed, Ee = console.groupEnd;
if (F === 0) {
ge = console.log, he = console.info, pe = console.warn, me = console.error, ye = console.group, Ee = console.groupCollapsed, Me = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: he,
value: Te,
writable: !0

@@ -163,3 +163,3 @@ };

}
z++;
F++;
}

@@ -169,3 +169,3 @@ }

{
if (z--, z === 0) {
if (F--, F === 0) {
var e = {

@@ -177,61 +177,61 @@ configurable: !0,

Object.defineProperties(console, {
log: N({}, e, {
value: de
log: P({}, e, {
value: ge
}),
info: N({}, e, {
value: ve
info: P({}, e, {
value: he
}),
warn: N({}, e, {
value: ge
}),
error: N({}, e, {
warn: P({}, e, {
value: pe
}),
group: N({}, e, {
error: P({}, e, {
value: me
}),
group: P({}, e, {
value: ye
}),
groupCollapsed: N({}, e, {
value: me
groupCollapsed: P({}, e, {
value: Ee
}),
groupEnd: N({}, e, {
value: Ee
groupEnd: P({}, e, {
value: Me
})
});
}
z < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
F < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var te = R.ReactCurrentDispatcher, ne;
function G(e, r, t) {
var oe = R.ReactCurrentDispatcher, ie;
function q(e, r, t) {
{
if (ne === void 0)
if (ie === void 0)
try {
throw Error();
} catch (s) {
var n = s.stack.trim().match(/\n( *(at )?)/);
ne = n && n[1] || "";
var a = s.stack.trim().match(/\n( *(at )?)/);
ie = a && a[1] || "";
}
return `
` + ne + e;
` + ie + e;
}
}
var ae = !1, Z;
var se = !1, X;
{
var $e = typeof WeakMap == "function" ? WeakMap : Map;
Z = new $e();
X = new $e();
}
function Me(e, r) {
if (!e || ae)
function _e(e, r) {
if (!e || se)
return "";
{
var t = Z.get(e);
var t = X.get(e);
if (t !== void 0)
return t;
}
var n;
ae = !0;
var a;
se = !0;
var s = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = te.current, te.current = null, We();
u = oe.current, oe.current = null, We();
try {

@@ -249,4 +249,4 @@ if (r) {

Reflect.construct(i, []);
} catch (w) {
n = w;
} catch (O) {
a = O;
}

@@ -257,4 +257,4 @@ Reflect.construct(e, [], i);

i.call();
} catch (w) {
n = w;
} catch (O) {
a = O;
}

@@ -266,23 +266,23 @@ e.call(i.prototype);

throw Error();
} catch (w) {
n = w;
} catch (O) {
a = O;
}
e();
}
} catch (w) {
if (w && n && typeof w.stack == "string") {
for (var o = w.stack.split(`
`), m = n.stack.split(`
`), c = o.length - 1, l = m.length - 1; c >= 1 && l >= 0 && o[c] !== m[l]; )
l--;
for (; c >= 1 && l >= 0; c--, l--)
if (o[c] !== m[l]) {
if (c !== 1 || l !== 1)
} catch (O) {
if (O && a && typeof O.stack == "string") {
for (var o = O.stack.split(`
`), y = a.stack.split(`
`), l = o.length - 1, d = y.length - 1; l >= 1 && d >= 0 && o[l] !== y[d]; )
d--;
for (; l >= 1 && d >= 0; l--, d--)
if (o[l] !== y[d]) {
if (l !== 1 || d !== 1)
do
if (c--, l--, l < 0 || o[c] !== m[l]) {
if (l--, d--, d < 0 || o[l] !== y[d]) {
var D = `
` + o[c].replace(" at new ", " at ");
return e.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, D), D;
` + o[l].replace(" at new ", " at ");
return e.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, D), D;
}
while (c >= 1 && l >= 0);
while (l >= 1 && d >= 0);
break;

@@ -292,9 +292,9 @@ }

} finally {
ae = !1, te.current = u, Ue(), Error.prepareStackTrace = s;
se = !1, oe.current = u, Ue(), Error.prepareStackTrace = s;
}
var L = e ? e.displayName || e.name : "", Ne = L ? G(L) : "";
return typeof e == "function" && Z.set(e, Ne), Ne;
var L = e ? e.displayName || e.name : "", Pe = L ? q(L) : "";
return typeof e == "function" && X.set(e, Pe), Pe;
}
function Qe(e, r, t) {
return Me(e, !1);
return _e(e, !1);
}

@@ -305,25 +305,25 @@ function Ve(e) {

}
function H(e, r, t) {
function K(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return Me(e, Ve(e));
return _e(e, Ve(e));
if (typeof e == "string")
return G(e);
return q(e);
switch (e) {
case _:
return G("Suspense");
case d:
return G("SuspenseList");
case w:
return q("Suspense");
case g:
return q("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case f:
case c:
return Qe(e.render);
case x:
return H(e.type, r, t);
case j: {
var n = e, s = n._payload, u = n._init;
case h:
return K(e.type, r, t);
case _: {
var a = e, s = a._payload, u = a._init;
try {
return H(u(s), r, t);
return K(u(s), r, t);
} catch {

@@ -335,13 +335,13 @@ }

}
var X = Object.prototype.hasOwnProperty, Te = {}, _e = R.ReactDebugCurrentFrame;
function K(e) {
var ee = Object.prototype.hasOwnProperty, xe = {}, je = R.ReactDebugCurrentFrame;
function re(e) {
if (e) {
var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
_e.setExtraStackFrame(t);
var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
je.setExtraStackFrame(t);
} else
_e.setExtraStackFrame(null);
je.setExtraStackFrame(null);
}
function qe(e, r, t, n, s) {
function Be(e, r, t, a, s) {
{
var u = Function.call.bind(X);
var u = Function.call.bind(ee);
for (var i in e)

@@ -352,18 +352,18 @@ if (u(e, i)) {

if (typeof e[i] != "function") {
var m = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw m.name = "Invariant Violation", m;
var y = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw y.name = "Invariant Violation", y;
}
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (c) {
o = c;
o = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (l) {
o = l;
}
o && !(o instanceof Error) && (K(s), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), K(null)), o instanceof Error && !(o.message in Te) && (Te[o.message] = !0, K(s), v("Failed %s type: %s", t, o.message), K(null));
o && !(o instanceof Error) && (re(s), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, i, typeof o), re(null)), o instanceof Error && !(o.message in xe) && (xe[o.message] = !0, re(s), f("Failed %s type: %s", t, o.message), re(null));
}
}
}
var Be = Array.isArray;
function oe(e) {
return Be(e);
var Je = Array.isArray;
function ue(e) {
return Je(e);
}
function Je(e) {
function Ge(e) {
{

@@ -374,5 +374,5 @@ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";

}
function Ge(e) {
function He(e) {
try {
return xe(e), !1;
return be(e), !1;
} catch {

@@ -382,10 +382,10 @@ return !0;

}
function xe(e) {
function be(e) {
return "" + e;
}
function je(e) {
if (Ge(e))
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), xe(e);
function De(e) {
if (He(e))
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), be(e);
}
var F = R.ReactCurrentOwner, Ze = {
var Y = R.ReactCurrentOwner, Ze = {
key: !0,

@@ -395,6 +395,6 @@ ref: !0,

__source: !0
}, be, De, ie;
ie = {};
function He(e) {
if (X.call(e, "ref")) {
}, Ie, Ce, ce;
ce = {};
function qe(e) {
if (ee.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;

@@ -407,3 +407,3 @@ if (r && r.isReactWarning)

function Xe(e) {
if (X.call(e, "key")) {
if (ee.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;

@@ -416,5 +416,5 @@ if (r && r.isReactWarning)

function Ke(e, r) {
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
var t = C(F.current.type);
ie[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(F.current.type), e.ref), ie[t] = !0);
if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
var t = C(Y.current.type);
ce[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Y.current.type), e.ref), ce[t] = !0);
}

@@ -425,3 +425,3 @@ }

var t = function() {
be || (be = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
Ie || (Ie = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -437,3 +437,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

var t = function() {
De || (De = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
Ce || (Ce = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -446,3 +446,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var tr = function(e, r, t, n, s, u, i) {
var tr = function(e, r, t, a, s, u, i) {
var o = {

@@ -468,3 +468,3 @@ // This tag allows us to uniquely identify this as a React Element

writable: !1,
value: n
value: a
}), Object.defineProperty(o, "_source", {

@@ -477,37 +477,37 @@ configurable: !1,

};
function nr(e, r, t, n, s) {
function nr(e, r, t, a, s) {
{
var u, i = {}, o = null, m = null;
t !== void 0 && (je(t), o = "" + t), Xe(r) && (je(r.key), o = "" + r.key), He(r) && (m = r.ref, Ke(r, s));
var u, i = {}, o = null, y = null;
t !== void 0 && (De(t), o = "" + t), Xe(r) && (De(r.key), o = "" + r.key), qe(r) && (y = r.ref, Ke(r, s));
for (u in r)
X.call(r, u) && !Ze.hasOwnProperty(u) && (i[u] = r[u]);
ee.call(r, u) && !Ze.hasOwnProperty(u) && (i[u] = r[u]);
if (e && e.defaultProps) {
var c = e.defaultProps;
for (u in c)
i[u] === void 0 && (i[u] = c[u]);
var l = e.defaultProps;
for (u in l)
i[u] === void 0 && (i[u] = l[u]);
}
if (o || m) {
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && er(i, l), m && rr(i, l);
if (o || y) {
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && er(i, d), y && rr(i, d);
}
return tr(e, o, m, s, n, F.current, i);
return tr(e, o, y, s, a, Y.current, i);
}
}
var se = R.ReactCurrentOwner, Ie = R.ReactDebugCurrentFrame;
var le = R.ReactCurrentOwner, we = R.ReactDebugCurrentFrame;
function k(e) {
if (e) {
var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
Ie.setExtraStackFrame(t);
var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
we.setExtraStackFrame(t);
} else
Ie.setExtraStackFrame(null);
we.setExtraStackFrame(null);
}
var ue;
ue = !1;
function ce(e) {
var fe;
fe = !1;
function de(e) {
return typeof e == "object" && e !== null && e.$$typeof === p;
}
function Ce() {
function Re() {
{
if (se.current) {
var e = C(se.current.type);
if (le.current) {
var e = C(le.current.type);
if (e)

@@ -532,6 +532,6 @@ return `

}
var we = {};
var Oe = {};
function or(e) {
{
var r = Ce();
var r = Re();
if (!r) {

@@ -546,3 +546,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

}
function Re(e, r) {
function Ae(e, r) {
{

@@ -553,25 +553,25 @@ if (!e._store || e._store.validated || e.key != null)

var t = or(r);
if (we[t])
if (Oe[t])
return;
we[t] = !0;
var n = "";
e && e._owner && e._owner !== se.current && (n = " It was passed a child from " + C(e._owner.type) + "."), k(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
Oe[t] = !0;
var a = "";
e && e._owner && e._owner !== le.current && (a = " It was passed a child from " + C(e._owner.type) + "."), k(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), k(null);
}
}
function Oe(e, r) {
function Ne(e, r) {
{
if (typeof e != "object")
return;
if (oe(e))
if (ue(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
ce(n) && Re(n, r);
var a = e[t];
de(a) && Ae(a, r);
}
else if (ce(e))
else if (de(e))
e._store && (e._store.validated = !0);
else if (e) {
var s = S(e);
var s = te(e);
if (typeof s == "function" && s !== e.entries)
for (var u = s.call(e), i; !(i = u.next()).done; )
ce(i.value) && Re(i.value, r);
de(i.value) && Ae(i.value, r);
}

@@ -588,5 +588,5 @@ }

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === x))
r.$$typeof === h))
t = r.propTypes;

@@ -596,10 +596,10 @@ else

if (t) {
var n = C(r);
qe(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !ue) {
ue = !0;
var a = C(r);
Be(t, e.props, "prop", a, e);
} else if (r.PropTypes !== void 0 && !fe) {
fe = !0;
var s = C(r);
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}

@@ -610,87 +610,99 @@ }

for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
k(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
var a = r[t];
if (a !== "children" && a !== "key") {
k(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), k(null);
break;
}
}
e.ref !== null && (k(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
e.ref !== null && (k(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
}
}
function Ae(e, r, t, n, s, u) {
function Se(e, r, t, a, s, u) {
{
var i = Fe(e);
var i = b(e);
if (!i) {
var o = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var m = ar(s);
m ? o += m : o += Ce();
var c;
e === null ? c = "null" : oe(e) ? c = "array" : e !== void 0 && e.$$typeof === p ? (c = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, o);
var y = ar(s);
y ? o += y : o += Re();
var l;
e === null ? l = "null" : ue(e) ? l = "array" : e !== void 0 && e.$$typeof === p ? (l = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, o);
}
var l = nr(e, r, t, s, u);
if (l == null)
return l;
var d = nr(e, r, t, s, u);
if (d == null)
return d;
if (i) {
var D = r.children;
if (D !== void 0)
if (n)
if (oe(D)) {
if (a)
if (ue(D)) {
for (var L = 0; L < D.length; L++)
Oe(D[L], e);
Ne(D[L], e);
Object.freeze && Object.freeze(D);
} else
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Oe(D, e);
Ne(D, e);
}
return e === h ? sr(l) : ir(l), l;
return e === T ? sr(d) : ir(d), d;
}
}
function ur(e, r, t) {
return Ae(e, r, t, !0);
return Se(e, r, t, !0);
}
function cr(e, r, t) {
return Ae(e, r, t, !1);
return Se(e, r, t, !1);
}
var lr = cr, fr = ur;
$.Fragment = h, $.jsx = lr, $.jsxs = fr;
$.Fragment = T, $.jsx = lr, $.jsxs = fr;
}()), $;
}
process.env.NODE_ENV === "production" ? le.exports = gr() : le.exports = pr();
var M = le.exports;
const yr = (E, p) => {
const y = Y(null), [h, I] = W(!1), [b, T] = W(!1), [g, f] = W([0, 0]), [_, d] = W(0), [x, j] = W(!1), A = Y([0, 0]), Q = Y([0, 0]), V = Y([0, 0]), S = Y(void 0), R = () => {
d(_ + (Math.random() - 0.5) * 6);
}, v = () => {
var P;
const a = (P = y.current) == null ? void 0 : P.getBoundingClientRect();
a && (A.current = [a == null ? void 0 : a.x, a == null ? void 0 : a.y], Q.current = [a == null ? void 0 : a.width, a == null ? void 0 : a.height], V.current = [(a == null ? void 0 : a.x) + (a == null ? void 0 : a.width) / 2, (a == null ? void 0 : a.y) + (a == null ? void 0 : a.height) / 2]), E && E(!0), I(!0), T(!1);
}, q = () => {
clearTimeout(S.current), E && E(!1), I(!1);
}, B = (a) => {
const [P, ee] = A.current, [re, J] = V.current;
p === !0 && d(Math.atan2(a.clientY - J, a.clientX - re)), p === "onMove" && d(_ + 0.01), f([a.clientX - P, a.clientY - ee]);
process.env.NODE_ENV === "production" ? ve.exports = gr() : ve.exports = hr();
var E = ve.exports;
const pr = (M, p) => {
const m = W(null), [T, I] = z(!1), [x, j] = z(!1), [v, c] = z(!1), [w, g] = z([0, 0]), [h, _] = z(0), [N, S] = z(!1), Q = W([0, 0]), te = W([0, 0]), R = W([0, 0]), f = W(void 0), ne = () => {
_(h + (Math.random() - 0.5) * 6);
}, V = () => {
var b;
console.log("activate");
const n = (b = m.current) == null ? void 0 : b.getBoundingClientRect();
n && (Q.current = [n == null ? void 0 : n.x, n == null ? void 0 : n.y], te.current = [n == null ? void 0 : n.width, n == null ? void 0 : n.height], R.current = [(n == null ? void 0 : n.x) + (n == null ? void 0 : n.width) / 2, (n == null ? void 0 : n.y) + (n == null ? void 0 : n.height) / 2]), M && M(!0), I(!0), j(!1);
}, B = () => {
clearTimeout(f.current), M && M(!1), I(!1);
}, J = (n) => {
const [b, ae] = Q.current, [Z, C] = R.current;
p === !0 && _(Math.atan2(n.clientY - C, n.clientX - Z)), p === "onMove" && _(h + 0.01), g([n.clientX - b, n.clientY - ae]);
}, G = (n) => {
if (n.target === null || v === !0)
return;
const b = n.target.tagName.toLowerCase();
(b === "a" || b === "button") && (n.stopPropagation(), c(!0));
}, H = (n) => {
if (n.target === null || v === !1)
return;
const b = n.target.tagName.toLowerCase();
(b === "a" || b === "button") && (n.stopPropagation(), c(!1));
};
return Se(() => {
clearTimeout(S.current), h && p === "auto" && (S.current = setTimeout(R, 1e3));
const a = y.current;
return a && (a.addEventListener("mouseenter", v), a.addEventListener("mouseleave", q), a.addEventListener("mousemove", B)), () => {
clearTimeout(S.current), a && (a.removeEventListener("mouseenter", v), a.removeEventListener("mouseleave", q), a.removeEventListener("mousemove", B));
return ke(() => {
clearTimeout(f.current), T && p === "auto" && (f.current = setTimeout(ne, 1e3));
const n = m.current;
return n && (n.addEventListener("mouseenter", V), n.addEventListener("mouseleave", B), n.addEventListener("mousemove", J), n.addEventListener("mouseover", G), n.addEventListener("mouseout", H)), () => {
clearTimeout(f.current), n && (n.removeEventListener("mouseenter", V), n.removeEventListener("mouseleave", B), n.removeEventListener("mousemove", J), n.addEventListener("mouseover", G), n.addEventListener("mouseout", H));
};
}, [_, h]), Se(() => (setTimeout(b ? () => j(!0) : () => j(!1), 200), () => {
j(!1);
}), [b]), [
y,
}, [h, T, v]), ke(() => (setTimeout(x ? () => S(!0) : () => S(!1), 200), () => {
S(!1);
}), [x]), [
m,
T,
x,
v,
w,
h,
b,
g,
_,
x,
(a) => T(a)
N,
(n) => j(n)
];
}, mr = "_active_sc2qf_1", Er = "_cursorWrapper_sc2qf_10", hr = "_cursor_sc2qf_10", Mr = "_show_sc2qf_1", Tr = "_forCenter_sc2qf_33", _r = "_shell_sc2qf_42", xr = "_unmounting_sc2qf_46", jr = "_smooth_sc2qf_50", O = {
}, mr = "_active_czh8n_1", yr = "_cursorWrapper_czh8n_10", Er = "_cursor_czh8n_10", Mr = "_show_czh8n_1", Tr = "_forCenter_czh8n_33", _r = "_shell_czh8n_45", xr = "_unmounting_czh8n_49", jr = "_smooth_czh8n_53", br = "_hover_czh8n_59", A = {
active: mr,
cursorWrapper: Er,
cursor: hr,
cursorWrapper: yr,
cursor: Er,
show: Mr,

@@ -700,50 +712,54 @@ forCenter: Tr,

unmounting: xr,
smooth: jr
}, br = ({ cursor: E, x: p, y, angle: h, scale: I, unmounting: b, rotating: T }) => {
let g = O.cursorWrapper;
return b && (g = g + " " + O.unmounting), T === "auto" && (g = g + " " + O.smooth), /* @__PURE__ */ M.jsx(
smooth: jr,
hover: br
}, Dr = ({ cursor: M, x: p, y: m, angle: T, scale: I, unmounting: x, rotating: j, hoverClassName: v }) => {
let c = A.cursorWrapper;
return x && (c = c + " " + A.unmounting), j === "auto" && (c = c + " " + A.smooth), /* @__PURE__ */ E.jsx(
"div",
{
className: g,
className: c,
style: {
left: p,
top: y,
transform: `rotate(${h}rad) scale(${I})`
top: m,
transform: `rotate(${T}rad) scale(${I})`
},
children: /* @__PURE__ */ M.jsx("div", { className: O.cursor, children: /* @__PURE__ */ M.jsx("div", { className: O.forCenter, children: E }) })
children: /* @__PURE__ */ E.jsx("div", { className: A.cursor, children: /* @__PURE__ */ E.jsx("div", { className: A.forCenter, children: /* @__PURE__ */ E.jsx("div", { className: v, children: M }) }) })
}
);
}, Le = dr(null);
function Rr({
children: E,
}, Fe = dr(null);
function Or({
children: M,
cursor: p = "Кастомный курсор",
rotating: y = !1,
scale: h = 1
rotating: m = !1,
scale: T = 1,
hoverClassName: I = A.hover
}) {
const I = vr(Le), [
b,
T,
g,
[f, _],
d,
x,
j
] = yr(I, y);
return /* @__PURE__ */ M.jsxs(
const x = vr(Fe), [
j,
v,
c,
w,
[g, h],
_,
N,
S
] = pr(x, m);
return /* @__PURE__ */ E.jsxs(
"div",
{
ref: b,
className: T ? O.shell + " " + O.active : O.shell,
ref: j,
className: v ? A.shell + " " + A.active : A.shell,
children: [
/* @__PURE__ */ M.jsx(Le.Provider, { value: j, children: E }),
T && !x && /* @__PURE__ */ M.jsx(
br,
/* @__PURE__ */ E.jsx(Fe.Provider, { value: S, children: M }),
v && !N && /* @__PURE__ */ E.jsx(
Dr,
{
cursor: p,
x: f,
y: _,
angle: y ? d : 0,
scale: h,
unmounting: g,
rotating: y
x: g,
y: h,
angle: m ? _ : 0,
scale: T,
unmounting: c,
rotating: m,
hoverClassName: w ? I : ""
}

@@ -755,3 +771,3 @@ )

}
const Dr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1MTIgMTEuNDY4MUwxNC44MjI2IDkuMjExMThDMTQuOTg0MyA5LjA3NDE0IDE1LjIwMDggOC45OTgzMSAxNS40MjU1IDkuMDAwMDNDMTUuNjUwMiA5LjAwMTc0IDE1Ljg2NTIgOS4wODA4NiAxNi4wMjQyIDkuMjIwMzVDMTYuMTgzMSA5LjM1OTgzIDE2LjI3MzIgOS41NDg1MiAxNi4yNzUyIDkuNzQ1NzdDMTYuMjc3MSA5Ljk0MzAzIDE2LjE5MDcgMTAuMTMzMSAxNi4wMzQ2IDEwLjI3NDlMMTQuOTI2MyAxMS4yNDc3TDIzLjE0MjkgMTEuMjQ3N0MyMy4zNzAyIDExLjI0NzcgMjMuNTg4MiAxMS4zMjY5IDIzLjc0ODkgMTEuNDY4QzIzLjkwOTcgMTEuNjA5MSAyNCAxMS44MDA1IDI0IDEyQzI0IDEyLjE5OTUgMjMuOTA5NyAxMi4zOTA5IDIzLjc0ODkgMTIuNTMyQzIzLjU4ODIgMTIuNjczIDIzLjM3MDIgMTIuNzUyMyAyMy4xNDI5IDEyLjc1MjNMMTQuOTI2MyAxMi43NTIzTDE2LjAzNDYgMTMuNzI1QzE2LjE5MDcgMTMuODY2OSAxNi4yNzcxIDE0LjA1NyAxNi4yNzUyIDE0LjI1NDJDMTYuMjczMiAxNC40NTE1IDE2LjE4MzEgMTQuNjQwMiAxNi4wMjQyIDE0Ljc3OTdDMTUuODY1MiAxNC45MTkxIDE1LjY1MDIgMTQuOTk4MyAxNS40MjU1IDE1QzE1LjIwMDggMTUuMDAxNyAxNC45ODQzIDE0LjkyNTkgMTQuODIyNiAxNC43ODg4TDEyLjI1MTIgMTIuNTMxOUMxMi4wOTA1IDEyLjM5MDggMTIuMDAwMiAxMi4xOTk1IDEyLjAwMDIgMTJDMTIuMDAwMiAxMS44MDA1IDEyLjA5MDUgMTEuNjA5MiAxMi4yNTEyIDExLjQ2ODFaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K", Or = /* @__PURE__ */ M.jsx(
const Ir = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1MTIgMTEuNDY4MUwxNC44MjI2IDkuMjExMThDMTQuOTg0MyA5LjA3NDE0IDE1LjIwMDggOC45OTgzMSAxNS40MjU1IDkuMDAwMDNDMTUuNjUwMiA5LjAwMTc0IDE1Ljg2NTIgOS4wODA4NiAxNi4wMjQyIDkuMjIwMzVDMTYuMTgzMSA5LjM1OTgzIDE2LjI3MzIgOS41NDg1MiAxNi4yNzUyIDkuNzQ1NzdDMTYuMjc3MSA5Ljk0MzAzIDE2LjE5MDcgMTAuMTMzMSAxNi4wMzQ2IDEwLjI3NDlMMTQuOTI2MyAxMS4yNDc3TDIzLjE0MjkgMTEuMjQ3N0MyMy4zNzAyIDExLjI0NzcgMjMuNTg4MiAxMS4zMjY5IDIzLjc0ODkgMTEuNDY4QzIzLjkwOTcgMTEuNjA5MSAyNCAxMS44MDA1IDI0IDEyQzI0IDEyLjE5OTUgMjMuOTA5NyAxMi4zOTA5IDIzLjc0ODkgMTIuNTMyQzIzLjU4ODIgMTIuNjczIDIzLjM3MDIgMTIuNzUyMyAyMy4xNDI5IDEyLjc1MjNMMTQuOTI2MyAxMi43NTIzTDE2LjAzNDYgMTMuNzI1QzE2LjE5MDcgMTMuODY2OSAxNi4yNzcxIDE0LjA1NyAxNi4yNzUyIDE0LjI1NDJDMTYuMjczMiAxNC40NTE1IDE2LjE4MzEgMTQuNjQwMiAxNi4wMjQyIDE0Ljc3OTdDMTUuODY1MiAxNC45MTkxIDE1LjY1MDIgMTQuOTk4MyAxNS40MjU1IDE1QzE1LjIwMDggMTUuMDAxNyAxNC45ODQzIDE0LjkyNTkgMTQuODIyNiAxNC43ODg4TDEyLjI1MTIgMTIuNTMxOUMxMi4wOTA1IDEyLjM5MDggMTIuMDAwMiAxMi4xOTk1IDEyLjAwMDIgMTJDMTIuMDAwMiAxMS44MDA1IDEyLjA5MDUgMTEuNjA5MiAxMi4yNTEyIDExLjQ2ODFaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K", Ar = /* @__PURE__ */ E.jsx(
"div",

@@ -762,13 +778,13 @@ {

height: "100px",
backgroundImage: `url(${Dr})`,
backgroundImage: `url(${Ir})`,
backgroundSize: "contain"
}
}
), Ir = "_text_1qg3d_1", Cr = {
text: Ir
}, Ar = ({
text: E = "...",
), Cr = "_text_1qg3d_1", wr = {
text: Cr
}, Nr = ({
text: M = "...",
color: p = "black",
donutColor: y = "#eeeeee90"
}) => /* @__PURE__ */ M.jsxs(
donutColor: m = "#eeeeee90"
}) => /* @__PURE__ */ E.jsxs(
"svg",

@@ -782,4 +798,4 @@ {

children: [
/* @__PURE__ */ M.jsx("defs", { children: /* @__PURE__ */ M.jsx("path", { d: "M250 440C145.114 440 60 354.886 60 250C60 145.114 145.114 60 250 60C354.886 60 440 145.114 440 250C440 354.886 345.351 440 240.465 440H250Z", id: "textcircle" }) }),
/* @__PURE__ */ M.jsx(
/* @__PURE__ */ E.jsx("defs", { children: /* @__PURE__ */ E.jsx("path", { d: "M250 440C145.114 440 60 354.886 60 250C60 145.114 145.114 60 250 60C354.886 60 440 145.114 440 250C440 354.886 345.351 440 240.465 440H250Z", id: "textcircle" }) }),
/* @__PURE__ */ E.jsx(
"circle",

@@ -792,10 +808,10 @@ {

strokeWidth: "80",
stroke: y,
stroke: m,
id: "background"
}
),
/* @__PURE__ */ M.jsx("text", { dy: "0", className: Cr.text, fill: p, children: /* @__PURE__ */ M.jsx("textPath", { xlinkHref: "#textcircle", children: E }) })
/* @__PURE__ */ E.jsx("text", { dy: "0", className: wr.text, fill: p, children: /* @__PURE__ */ E.jsx("textPath", { xlinkHref: "#textcircle", children: M }) })
]
}
), Nr = /* @__PURE__ */ M.jsx(
), Sr = /* @__PURE__ */ E.jsx(
"div",

@@ -813,6 +829,6 @@ {

export {
Ar as CircleWithText,
Rr as CustomCursor,
Nr as LaserDot,
Or as RotatingArrow
Nr as CircleWithText,
Or as CustomCursor,
Sr as LaserDot,
Ar as RotatingArrow
};

@@ -1,2 +0,2 @@

(function(R,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],l):(R=typeof globalThis<"u"?globalThis:R||self,l(R.ReactCustomCursors={},R.React))})(this,function(R,l){"use strict";var ee={exports:{}},W={};/**
(function(w,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],l):(w=typeof globalThis<"u"?globalThis:w||self,l(w.ReactCustomCursors={},w.React))})(this,function(w,l){"use strict";var te={exports:{}},W={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var fe;function Le(){if(fe)return W;fe=1;var M=l,y=Symbol.for("react.element"),h=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,C=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,D={key:!0,ref:!0,__self:!0,__source:!0};function _(p,d,x){var v,j={},b=null,N=null;x!==void 0&&(b=""+x),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(N=d.ref);for(v in d)T.call(d,v)&&!D.hasOwnProperty(v)&&(j[v]=d[v]);if(p&&p.defaultProps)for(v in d=p.defaultProps,d)j[v]===void 0&&(j[v]=d[v]);return{$$typeof:y,type:p,key:b,ref:N,props:j,_owner:C.current}}return W.Fragment=h,W.jsx=_,W.jsxs=_,W}var Y={};/**
*/var ge;function Fe(){if(ge)return W;ge=1;var T=l,y=Symbol.for("react.element"),E=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,C=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function b(g,c,O){var h,p={},x=null,P=null;O!==void 0&&(x=""+O),c.key!==void 0&&(x=""+c.key),c.ref!==void 0&&(P=c.ref);for(h in c)_.call(c,h)&&!j.hasOwnProperty(h)&&(p[h]=c[h]);if(g&&g.defaultProps)for(h in c=g.defaultProps,c)p[h]===void 0&&(p[h]=c[h]);return{$$typeof:y,type:g,key:x,ref:P,props:p,_owner:C.current}}return W.Fragment=E,W.jsx=b,W.jsxs=b,W}var Y={};/**
* @license React

@@ -18,12 +18,12 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var de;function ze(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var M=l,y=Symbol.for("react.element"),h=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),V=Symbol.iterator,B="@@iterator";function k(e){if(e===null||typeof e!="object")return null;var r=V&&e[V]||e[B];return typeof r=="function"?r:null}var S=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];J("error",e,t)}}function J(e,r,t){{var n=S.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var G=!1,a=!1,L=!1,re=!1,te=!1,Z;Z=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===D||te||e===C||e===x||e===v||re||e===N||G||a||L||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===d||e.$$typeof===Z||e.getModuleId!==void 0))}function Ze(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ge(e){return e.displayName||"Context"}function w(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case h:return"Portal";case D:return"Profiler";case C:return"StrictMode";case x:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return ge(r)+".Consumer";case _:var t=e;return ge(t._context)+".Provider";case d:return Ze(e,e.render,"ForwardRef");case j:var n=e.displayName||null;return n!==null?n:w(e.type)||"Memo";case b:{var s=e,u=s._payload,i=s._init;try{return w(i(u))}catch{return null}}}return null}var P=Object.assign,U=0,pe,ye,he,me,Ee,Me,Te;function _e(){}_e.__reactDisabledLog=!0;function He(){{if(U===0){pe=console.log,ye=console.info,he=console.warn,me=console.error,Ee=console.group,Me=console.groupCollapsed,Te=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function Xe(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:pe}),info:P({},e,{value:ye}),warn:P({},e,{value:he}),error:P({},e,{value:me}),group:P({},e,{value:Ee}),groupCollapsed:P({},e,{value:Me}),groupEnd:P({},e,{value:Te})})}U<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=S.ReactCurrentDispatcher,ae;function H(e,r,t){{if(ae===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ae=n&&n[1]||""}return`
`+ae+e}}var oe=!1,X;{var Ke=typeof WeakMap=="function"?WeakMap:Map;X=new Ke}function xe(e,r){if(!e||oe)return"";{var t=X.get(e);if(t!==void 0)return t}var n;oe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=ne.current,ne.current=null,He();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){n=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){n=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var o=O.stack.split(`
`),m=n.stack.split(`
`),c=o.length-1,f=m.length-1;c>=1&&f>=0&&o[c]!==m[f];)f--;for(;c>=1&&f>=0;c--,f--)if(o[c]!==m[f]){if(c!==1||f!==1)do if(c--,f--,f<0||o[c]!==m[f]){var I=`
`+o[c].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,I),I}while(c>=1&&f>=0);break}}}finally{oe=!1,ne.current=u,Xe(),Error.prepareStackTrace=s}var F=e?e.displayName||e.name:"",ke=F?H(F):"";return typeof e=="function"&&X.set(e,ke),ke}function qe(e,r,t){return xe(e,!1)}function $e(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return xe(e,$e(e));if(typeof e=="string")return H(e);switch(e){case x:return H("Suspense");case v:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return qe(e.render);case j:return K(e.type,r,t);case b:{var n=e,s=n._payload,u=n._init;try{return K(u(s),r,t)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,je={},be=S.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function er(e,r,t,n,s){{var u=Function.call.bind(q);for(var i in e)if(u(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){o=c}o&&!(o instanceof Error)&&($(s),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),$(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,$(s),g("Failed %s type: %s",t,o.message),$(null))}}}var rr=Array.isArray;function ie(e){return rr(e)}function tr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function nr(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function Ie(e){if(nr(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(e)),De(e)}var Q=S.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},Ce,Re,se;se={};function or(e){if(q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ir(e){if(q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function sr(e,r){if(typeof e.ref=="string"&&Q.current&&r&&Q.current.stateNode!==r){var t=w(Q.current.type);se[t]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(Q.current.type),e.ref),se[t]=!0)}}function ur(e,r){{var t=function(){Ce||(Ce=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function cr(e,r){{var t=function(){Re||(Re=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,n,s,u,i){var o={$$typeof:y,type:e,key:r,ref:t,props:i,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function fr(e,r,t,n,s){{var u,i={},o=null,m=null;t!==void 0&&(Ie(t),o=""+t),ir(r)&&(Ie(r.key),o=""+r.key),or(r)&&(m=r.ref,sr(r,s));for(u in r)q.call(r,u)&&!ar.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var c=e.defaultProps;for(u in c)i[u]===void 0&&(i[u]=c[u])}if(o||m){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ur(i,f),m&&cr(i,f)}return lr(e,o,m,s,n,Q.current,i)}}var ue=S.ReactCurrentOwner,we=S.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);we.setExtraStackFrame(t)}else we.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function Oe(){{if(ue.current){var e=w(ue.current.type);if(e)return`
*/var he;function We(){return he||(he=1,process.env.NODE_ENV!=="production"&&function(){var T=l,y=Symbol.for("react.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),g=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),k=Symbol.iterator,V="@@iterator";function ne(e){if(e===null||typeof e!="object")return null;var r=k&&e[k]||e[V];return typeof r=="function"?r:null}var S=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];ae("error",e,t)}}function ae(e,r,t){{var a=S.ReactDebugCurrentFrame,s=a.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var B=!1,J=!1,G=!1,H=!1,Z=!1,n;n=Symbol.for("react.module.reference");function D(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===j||Z||e===C||e===O||e===h||H||e===P||B||J||G||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===p||e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===n||e.getModuleId!==void 0))}function oe(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function X(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case E:return"Portal";case j:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return X(r)+".Consumer";case b:var t=e;return X(t._context)+".Provider";case c:return oe(e,e.render,"ForwardRef");case p:var a=e.displayName||null;return a!==null?a:R(e.type)||"Memo";case x:{var s=e,u=s._payload,i=s._init;try{return R(i(u))}catch{return null}}}return null}var L=Object.assign,U=0,me,ye,Ee,Me,Te,_e,xe;function je(){}je.__reactDisabledLog=!0;function Ze(){{if(U===0){me=console.log,ye=console.info,Ee=console.warn,Me=console.error,Te=console.group,_e=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:je,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function Xe(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:me}),info:L({},e,{value:ye}),warn:L({},e,{value:Ee}),error:L({},e,{value:Me}),group:L({},e,{value:Te}),groupCollapsed:L({},e,{value:_e}),groupEnd:L({},e,{value:xe})})}U<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=S.ReactCurrentDispatcher,se;function K(e,r,t){{if(se===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);se=a&&a[1]||""}return`
`+se+e}}var ue=!1,$;{var Ke=typeof WeakMap=="function"?WeakMap:Map;$=new Ke}function be(e,r){if(!e||ue)return"";{var t=$.get(e);if(t!==void 0)return t}var a;ue=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=ie.current,ie.current=null,Ze();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(N){a=N}Reflect.construct(e,[],i)}else{try{i.call()}catch(N){a=N}e.call(i.prototype)}}else{try{throw Error()}catch(N){a=N}e()}}catch(N){if(N&&a&&typeof N.stack=="string"){for(var o=N.stack.split(`
`),M=a.stack.split(`
`),f=o.length-1,v=M.length-1;f>=1&&v>=0&&o[f]!==M[v];)v--;for(;f>=1&&v>=0;f--,v--)if(o[f]!==M[v]){if(f!==1||v!==1)do if(f--,v--,v<0||o[f]!==M[v]){var I=`
`+o[f].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,I),I}while(f>=1&&v>=0);break}}}finally{ue=!1,ie.current=u,Xe(),Error.prepareStackTrace=s}var F=e?e.displayName||e.name:"",ze=F?K(F):"";return typeof e=="function"&&$.set(e,ze),ze}function $e(e,r,t){return be(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return be(e,qe(e));if(typeof e=="string")return K(e);switch(e){case O:return K("Suspense");case h:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return $e(e.render);case p:return q(e.type,r,t);case x:{var a=e,s=a._payload,u=a._init;try{return q(u(s),r,t)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,De={},Ie=S.ReactDebugCurrentFrame;function re(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(t)}else Ie.setExtraStackFrame(null)}function er(e,r,t,a,s){{var u=Function.call.bind(ee);for(var i in e)if(u(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var M=Error((a||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}o=e[i](r,i,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){o=f}o&&!(o instanceof Error)&&(re(s),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,i,typeof o),re(null)),o instanceof Error&&!(o.message in De)&&(De[o.message]=!0,re(s),d("Failed %s type: %s",t,o.message),re(null))}}}var rr=Array.isArray;function ce(e){return rr(e)}function tr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function nr(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Re(e){if(nr(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(e)),Ce(e)}var Q=S.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},we,Oe,le;le={};function or(e){if(ee.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ir(e){if(ee.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function sr(e,r){if(typeof e.ref=="string"&&Q.current&&r&&Q.current.stateNode!==r){var t=R(Q.current.type);le[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(Q.current.type),e.ref),le[t]=!0)}}function ur(e,r){{var t=function(){we||(we=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function cr(e,r){{var t=function(){Oe||(Oe=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,a,s,u,i){var o={$$typeof:y,type:e,key:r,ref:t,props:i,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function fr(e,r,t,a,s){{var u,i={},o=null,M=null;t!==void 0&&(Re(t),o=""+t),ir(r)&&(Re(r.key),o=""+r.key),or(r)&&(M=r.ref,sr(r,s));for(u in r)ee.call(r,u)&&!ar.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)i[u]===void 0&&(i[u]=f[u])}if(o||M){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ur(i,v),M&&cr(i,v)}return lr(e,o,M,s,a,Q.current,i)}}var fe=S.ReactCurrentOwner,Ae=S.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Ae.setExtraStackFrame(t)}else Ae.setExtraStackFrame(null)}var de;de=!1;function ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function Se(){{if(fe.current){var e=R(fe.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function dr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var Ae={};function vr(e){{var r=Oe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check your code at `+r+":"+t+"."}return""}}var Ne={};function vr(e){{var r=Se();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=vr(r);if(Ae[t])return;Ae[t]=!0;var n="";e&&e._owner&&e._owner!==ue.current&&(n=" It was passed a child from "+w(e._owner.type)+"."),z(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),z(null)}}function Ne(e,r){{if(typeof e!="object")return;if(ie(e))for(var t=0;t<e.length;t++){var n=e[t];le(n)&&Se(n,r)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var s=k(e);if(typeof s=="function"&&s!==e.entries)for(var u=s.call(e),i;!(i=u.next()).done;)le(i.value)&&Se(i.value,r)}}}function gr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===j))t=r.propTypes;else return;if(t){var n=w(r);er(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ce){ce=!0;var s=w(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){z(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),z(null);break}}e.ref!==null&&(z(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}function Pe(e,r,t,n,s,u){{var i=Ge(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=dr(s);m?o+=m:o+=Oe();var c;e===null?c="null":ie(e)?c="array":e!==void 0&&e.$$typeof===y?(c="<"+(w(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,o)}var f=fr(e,r,t,s,u);if(f==null)return f;if(i){var I=r.children;if(I!==void 0)if(n)if(ie(I)){for(var F=0;F<I.length;F++)Ne(I[F],e);Object.freeze&&Object.freeze(I)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(I,e)}return e===T?pr(f):gr(f),f}}function yr(e,r,t){return Pe(e,r,t,!0)}function hr(e,r,t){return Pe(e,r,t,!1)}var mr=hr,Er=yr;Y.Fragment=T,Y.jsx=mr,Y.jsxs=Er}()),Y}process.env.NODE_ENV==="production"?ee.exports=Le():ee.exports=ze();var E=ee.exports;const Fe=(M,y)=>{const h=l.useRef(null),[T,C]=l.useState(!1),[D,_]=l.useState(!1),[p,d]=l.useState([0,0]),[x,v]=l.useState(0),[j,b]=l.useState(!1),N=l.useRef([0,0]),V=l.useRef([0,0]),B=l.useRef([0,0]),k=l.useRef(void 0),S=()=>{v(x+(Math.random()-.5)*6)},g=()=>{var L;const a=(L=h.current)==null?void 0:L.getBoundingClientRect();a&&(N.current=[a==null?void 0:a.x,a==null?void 0:a.y],V.current=[a==null?void 0:a.width,a==null?void 0:a.height],B.current=[(a==null?void 0:a.x)+(a==null?void 0:a.width)/2,(a==null?void 0:a.y)+(a==null?void 0:a.height)/2]),M&&M(!0),C(!0),_(!1)},J=()=>{clearTimeout(k.current),M&&M(!1),C(!1)},G=a=>{const[L,re]=N.current,[te,Z]=B.current;y===!0&&v(Math.atan2(a.clientY-Z,a.clientX-te)),y==="onMove"&&v(x+.01),d([a.clientX-L,a.clientY-re])};return l.useEffect(()=>{clearTimeout(k.current),T&&y==="auto"&&(k.current=setTimeout(S,1e3));const a=h.current;return a&&(a.addEventListener("mouseenter",g),a.addEventListener("mouseleave",J),a.addEventListener("mousemove",G)),()=>{clearTimeout(k.current),a&&(a.removeEventListener("mouseenter",g),a.removeEventListener("mouseleave",J),a.removeEventListener("mousemove",G))}},[x,T]),l.useEffect(()=>(setTimeout(D?()=>b(!0):()=>b(!1),200),()=>{b(!1)}),[D]),[h,T,D,p,x,j,a=>_(a)]},A={active:"_active_sc2qf_1",cursorWrapper:"_cursorWrapper_sc2qf_10",cursor:"_cursor_sc2qf_10",show:"_show_sc2qf_1",forCenter:"_forCenter_sc2qf_33",shell:"_shell_sc2qf_42",unmounting:"_unmounting_sc2qf_46",smooth:"_smooth_sc2qf_50"},We=({cursor:M,x:y,y:h,angle:T,scale:C,unmounting:D,rotating:_})=>{let p=A.cursorWrapper;return D&&(p=p+" "+A.unmounting),_==="auto"&&(p=p+" "+A.smooth),E.jsx("div",{className:p,style:{left:y,top:h,transform:`rotate(${T}rad) scale(${C})`},children:E.jsx("div",{className:A.cursor,children:E.jsx("div",{className:A.forCenter,children:M})})})},ve=l.createContext(null);function Ye({children:M,cursor:y="Кастомный курсор",rotating:h=!1,scale:T=1}){const C=l.useContext(ve),[D,_,p,[d,x],v,j,b]=Fe(C,h);return E.jsxs("div",{ref:D,className:_?A.shell+" "+A.active:A.shell,children:[E.jsx(ve.Provider,{value:b,children:M}),_&&!j&&E.jsx(We,{cursor:y,x:d,y:x,angle:h?v:0,scale:T,unmounting:p,rotating:h})]})}const Ue="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1MTIgMTEuNDY4MUwxNC44MjI2IDkuMjExMThDMTQuOTg0MyA5LjA3NDE0IDE1LjIwMDggOC45OTgzMSAxNS40MjU1IDkuMDAwMDNDMTUuNjUwMiA5LjAwMTc0IDE1Ljg2NTIgOS4wODA4NiAxNi4wMjQyIDkuMjIwMzVDMTYuMTgzMSA5LjM1OTgzIDE2LjI3MzIgOS41NDg1MiAxNi4yNzUyIDkuNzQ1NzdDMTYuMjc3MSA5Ljk0MzAzIDE2LjE5MDcgMTAuMTMzMSAxNi4wMzQ2IDEwLjI3NDlMMTQuOTI2MyAxMS4yNDc3TDIzLjE0MjkgMTEuMjQ3N0MyMy4zNzAyIDExLjI0NzcgMjMuNTg4MiAxMS4zMjY5IDIzLjc0ODkgMTEuNDY4QzIzLjkwOTcgMTEuNjA5MSAyNCAxMS44MDA1IDI0IDEyQzI0IDEyLjE5OTUgMjMuOTA5NyAxMi4zOTA5IDIzLjc0ODkgMTIuNTMyQzIzLjU4ODIgMTIuNjczIDIzLjM3MDIgMTIuNzUyMyAyMy4xNDI5IDEyLjc1MjNMMTQuOTI2MyAxMi43NTIzTDE2LjAzNDYgMTMuNzI1QzE2LjE5MDcgMTMuODY2OSAxNi4yNzcxIDE0LjA1NyAxNi4yNzUyIDE0LjI1NDJDMTYuMjczMiAxNC40NTE1IDE2LjE4MzEgMTQuNjQwMiAxNi4wMjQyIDE0Ljc3OTdDMTUuODY1MiAxNC45MTkxIDE1LjY1MDIgMTQuOTk4MyAxNS40MjU1IDE1QzE1LjIwMDggMTUuMDAxNyAxNC45ODQzIDE0LjkyNTkgMTQuODIyNiAxNC43ODg4TDEyLjI1MTIgMTIuNTMxOUMxMi4wOTA1IDEyLjM5MDggMTIuMDAwMiAxMi4xOTk1IDEyLjAwMDIgMTJDMTIuMDAwMiAxMS44MDA1IDEyLjA5MDUgMTEuNjA5MiAxMi4yNTEyIDExLjQ2ODFaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K",Qe=E.jsx("div",{style:{width:"100px",height:"100px",backgroundImage:`url(${Ue})`,backgroundSize:"contain"}}),Ve={text:"_text_1qg3d_1"},Be=({text:M="...",color:y="black",donutColor:h="#eeeeee90"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 500 500",width:"100",height:"100",children:[E.jsx("defs",{children:E.jsx("path",{d:"M250 440C145.114 440 60 354.886 60 250C60 145.114 145.114 60 250 60C354.886 60 440 145.114 440 250C440 354.886 345.351 440 240.465 440H250Z",id:"textcircle"})}),E.jsx("circle",{cx:"249.5",cy:"249.5",r:"200",fill:"transparent",strokeWidth:"80",stroke:h,id:"background"}),E.jsx("text",{dy:"0",className:Ve.text,fill:y,children:E.jsx("textPath",{xlinkHref:"#textcircle",children:M})})]}),Je=E.jsx("div",{style:{borderRadius:"50%",width:"10px",height:"10px",backgroundColor:"red",opacity:"50%"}});R.CircleWithText=Be,R.CustomCursor=Ye,R.LaserDot=Je,R.RotatingArrow=Qe,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=vr(r);if(Ne[t])return;Ne[t]=!0;var a="";e&&e._owner&&e._owner!==fe.current&&(a=" It was passed a child from "+R(e._owner.type)+"."),z(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),z(null)}}function ke(e,r){{if(typeof e!="object")return;if(ce(e))for(var t=0;t<e.length;t++){var a=e[t];ve(a)&&Pe(a,r)}else if(ve(e))e._store&&(e._store.validated=!0);else if(e){var s=ne(e);if(typeof s=="function"&&s!==e.entries)for(var u=s.call(e),i;!(i=u.next()).done;)ve(i.value)&&Pe(i.value,r)}}}function gr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===p))t=r.propTypes;else return;if(t){var a=R(r);er(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!de){de=!0;var s=R(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function hr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){z(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}function Le(e,r,t,a,s,u){{var i=D(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=dr(s);M?o+=M:o+=Se();var f;e===null?f="null":ce(e)?f="array":e!==void 0&&e.$$typeof===y?(f="<"+(R(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,o)}var v=fr(e,r,t,s,u);if(v==null)return v;if(i){var I=r.children;if(I!==void 0)if(a)if(ce(I)){for(var F=0;F<I.length;F++)ke(I[F],e);Object.freeze&&Object.freeze(I)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ke(I,e)}return e===_?hr(v):gr(v),v}}function pr(e,r,t){return Le(e,r,t,!0)}function mr(e,r,t){return Le(e,r,t,!1)}var yr=mr,Er=pr;Y.Fragment=_,Y.jsx=yr,Y.jsxs=Er}()),Y}process.env.NODE_ENV==="production"?te.exports=Fe():te.exports=We();var m=te.exports;const Ye=(T,y)=>{const E=l.useRef(null),[_,C]=l.useState(!1),[j,b]=l.useState(!1),[g,c]=l.useState(!1),[O,h]=l.useState([0,0]),[p,x]=l.useState(0),[P,k]=l.useState(!1),V=l.useRef([0,0]),ne=l.useRef([0,0]),S=l.useRef([0,0]),d=l.useRef(void 0),ae=()=>{x(p+(Math.random()-.5)*6)},B=()=>{var D;console.log("activate");const n=(D=E.current)==null?void 0:D.getBoundingClientRect();n&&(V.current=[n==null?void 0:n.x,n==null?void 0:n.y],ne.current=[n==null?void 0:n.width,n==null?void 0:n.height],S.current=[(n==null?void 0:n.x)+(n==null?void 0:n.width)/2,(n==null?void 0:n.y)+(n==null?void 0:n.height)/2]),T&&T(!0),C(!0),b(!1)},J=()=>{clearTimeout(d.current),T&&T(!1),C(!1)},G=n=>{const[D,oe]=V.current,[X,R]=S.current;y===!0&&x(Math.atan2(n.clientY-R,n.clientX-X)),y==="onMove"&&x(p+.01),h([n.clientX-D,n.clientY-oe])},H=n=>{if(n.target===null||g===!0)return;const D=n.target.tagName.toLowerCase();(D==="a"||D==="button")&&(n.stopPropagation(),c(!0))},Z=n=>{if(n.target===null||g===!1)return;const D=n.target.tagName.toLowerCase();(D==="a"||D==="button")&&(n.stopPropagation(),c(!1))};return l.useEffect(()=>{clearTimeout(d.current),_&&y==="auto"&&(d.current=setTimeout(ae,1e3));const n=E.current;return n&&(n.addEventListener("mouseenter",B),n.addEventListener("mouseleave",J),n.addEventListener("mousemove",G),n.addEventListener("mouseover",H),n.addEventListener("mouseout",Z)),()=>{clearTimeout(d.current),n&&(n.removeEventListener("mouseenter",B),n.removeEventListener("mouseleave",J),n.removeEventListener("mousemove",G),n.addEventListener("mouseover",H),n.addEventListener("mouseout",Z))}},[p,_,g]),l.useEffect(()=>(setTimeout(j?()=>k(!0):()=>k(!1),200),()=>{k(!1)}),[j]),[E,_,j,g,O,p,P,n=>b(n)]},A={active:"_active_czh8n_1",cursorWrapper:"_cursorWrapper_czh8n_10",cursor:"_cursor_czh8n_10",show:"_show_czh8n_1",forCenter:"_forCenter_czh8n_33",shell:"_shell_czh8n_45",unmounting:"_unmounting_czh8n_49",smooth:"_smooth_czh8n_53",hover:"_hover_czh8n_59"},Ue=({cursor:T,x:y,y:E,angle:_,scale:C,unmounting:j,rotating:b,hoverClassName:g})=>{let c=A.cursorWrapper;return j&&(c=c+" "+A.unmounting),b==="auto"&&(c=c+" "+A.smooth),m.jsx("div",{className:c,style:{left:y,top:E,transform:`rotate(${_}rad) scale(${C})`},children:m.jsx("div",{className:A.cursor,children:m.jsx("div",{className:A.forCenter,children:m.jsx("div",{className:g,children:T})})})})},pe=l.createContext(null);function Qe({children:T,cursor:y="Кастомный курсор",rotating:E=!1,scale:_=1,hoverClassName:C=A.hover}){const j=l.useContext(pe),[b,g,c,O,[h,p],x,P,k]=Ye(j,E);return m.jsxs("div",{ref:b,className:g?A.shell+" "+A.active:A.shell,children:[m.jsx(pe.Provider,{value:k,children:T}),g&&!P&&m.jsx(Ue,{cursor:y,x:h,y:p,angle:E?x:0,scale:_,unmounting:c,rotating:E,hoverClassName:O?C:""})]})}const Ve="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1MTIgMTEuNDY4MUwxNC44MjI2IDkuMjExMThDMTQuOTg0MyA5LjA3NDE0IDE1LjIwMDggOC45OTgzMSAxNS40MjU1IDkuMDAwMDNDMTUuNjUwMiA5LjAwMTc0IDE1Ljg2NTIgOS4wODA4NiAxNi4wMjQyIDkuMjIwMzVDMTYuMTgzMSA5LjM1OTgzIDE2LjI3MzIgOS41NDg1MiAxNi4yNzUyIDkuNzQ1NzdDMTYuMjc3MSA5Ljk0MzAzIDE2LjE5MDcgMTAuMTMzMSAxNi4wMzQ2IDEwLjI3NDlMMTQuOTI2MyAxMS4yNDc3TDIzLjE0MjkgMTEuMjQ3N0MyMy4zNzAyIDExLjI0NzcgMjMuNTg4MiAxMS4zMjY5IDIzLjc0ODkgMTEuNDY4QzIzLjkwOTcgMTEuNjA5MSAyNCAxMS44MDA1IDI0IDEyQzI0IDEyLjE5OTUgMjMuOTA5NyAxMi4zOTA5IDIzLjc0ODkgMTIuNTMyQzIzLjU4ODIgMTIuNjczIDIzLjM3MDIgMTIuNzUyMyAyMy4xNDI5IDEyLjc1MjNMMTQuOTI2MyAxMi43NTIzTDE2LjAzNDYgMTMuNzI1QzE2LjE5MDcgMTMuODY2OSAxNi4yNzcxIDE0LjA1NyAxNi4yNzUyIDE0LjI1NDJDMTYuMjczMiAxNC40NTE1IDE2LjE4MzEgMTQuNjQwMiAxNi4wMjQyIDE0Ljc3OTdDMTUuODY1MiAxNC45MTkxIDE1LjY1MDIgMTQuOTk4MyAxNS40MjU1IDE1QzE1LjIwMDggMTUuMDAxNyAxNC45ODQzIDE0LjkyNTkgMTQuODIyNiAxNC43ODg4TDEyLjI1MTIgMTIuNTMxOUMxMi4wOTA1IDEyLjM5MDggMTIuMDAwMiAxMi4xOTk1IDEyLjAwMDIgMTJDMTIuMDAwMiAxMS44MDA1IDEyLjA5MDUgMTEuNjA5MiAxMi4yNTEyIDExLjQ2ODFaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K",Be=m.jsx("div",{style:{width:"100px",height:"100px",backgroundImage:`url(${Ve})`,backgroundSize:"contain"}}),Je={text:"_text_1qg3d_1"},Ge=({text:T="...",color:y="black",donutColor:E="#eeeeee90"})=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 500 500",width:"100",height:"100",children:[m.jsx("defs",{children:m.jsx("path",{d:"M250 440C145.114 440 60 354.886 60 250C60 145.114 145.114 60 250 60C354.886 60 440 145.114 440 250C440 354.886 345.351 440 240.465 440H250Z",id:"textcircle"})}),m.jsx("circle",{cx:"249.5",cy:"249.5",r:"200",fill:"transparent",strokeWidth:"80",stroke:E,id:"background"}),m.jsx("text",{dy:"0",className:Je.text,fill:y,children:m.jsx("textPath",{xlinkHref:"#textcircle",children:T})})]}),He=m.jsx("div",{style:{borderRadius:"50%",width:"10px",height:"10px",backgroundColor:"red",opacity:"50%"}});w.CircleWithText=Ge,w.CustomCursor=Qe,w.LaserDot=He,w.RotatingArrow=Be,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
{
"name": "@feverus/react-custom-cursor",
"private": false,
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",

@@ -6,0 +6,0 @@ "type": "module",

@@ -14,3 +14,3 @@ # Кастомные курсоры для React приложений

const muCursor = 'любой JSX элемент или строка'
const muCursor = 'любой JSX элемент, строка или предустановленный курсор из списка ниже'

@@ -26,2 +26,4 @@ <CustomCursor cursor={muCursor}>

| :---: | :---: | :---: | :---: |
| hoverClassName | string | style.css > .hover | Стиль курсора при наведении на \<a\> или \<button\>
| scale | number | 1 | Изменяет масштаб курсора
| rotating | boolean \| 'auto' \| 'onMove' | false | Без вращения

@@ -31,4 +33,2 @@ |||| *true* - Поворачивает курсор вокруг центра области. Обратите внимание, что угол в **0 радиан** это направление от правого края к центру. Это важно для создания нового курсора.

|||| *auto* - поворачивает курсор случайным образом раз в секунду.
|
| scale | number | 1 | Изменяет масштаб курсора

@@ -35,0 +35,0 @@ ## Предустановленные курсоры

Sorry, the diff of this file is not supported yet