@stakekit/widget 0.0.284 → 0.0.285

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.
@@ -2,7 +2,7 @@
2
2
  import { r as __exportAll, s as __toESM, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
3
3
  import { Fn as process$1, Mn as global, Nn as init_dist$1, Pn as init_dist, cn as require_bs58 } from "./cosmos-kit-BKSLI2IB.js";
4
4
  import { $ as BaseProto, At as isNotUndefined, Ct as hasProperty, Ft as isString$2, Gt as dual, Kt as flow, Mt as isObject$3, Ot as isIterable, Qt as pipeArguments, Rt as or, St as symbol, Ut as constVoid, Vt as constTrue, Wt as constant, X as assignProperty, Xt as pipe$1, _t as hash$1, a as isFailure$1, b as PipeInspectableProto, bt as string, c as map$4, d as succeed$1, dt as symbolRedactable, et as Class, f as try_, ft as equals, gt as combine, ht as array, it as format$2, l as mapError, mt as symbol$1, n as failVoid, nt as toJson, o as isResult, qt as identity$2, r as flatMap$2, s as isSuccess$1, t as fail$1, tt as NodeInspectSymbol, u as match$1, ut as redact$1, xt as structure, zt as constFalse } from "./Result-Cem4lYBf.js";
5
- import { $ as shutdown, $i as merge$2, $n as upTo, $r as encodeBase64, A as share, Ai as filter$2, An as succeedSome, At as fail$4, B as zipLatestAll, Bi as isReadonlyArrayNonEmpty, Bn as updateContext, Br as onExit, Bt as forever, C as mapError$2, Ci as toSeconds, Cn as runSyncWith, Cr as NoSuchElementError, Ct as catchTag, D as runForEach, Da as strictEqual, Di as chunksOf, Dn as sleep$1, Dr as hasInterrupts, Dt as die$1, E as runDrain, Ea as make$21, Ei as appendAll, En as service, Er as findErrorOption, Et as contextWith, F as tap$2, Fi as get$10, Fn as tryPromise, G as failCauseUnsafe, Gi as Reference, Gn as withParentSpan, Gr as succeed$2, Gt as gen, H as make$20, Hi as makeEquivalence$1, Hn as void_$1, Hr as provideContext, Ht as forkIn, I as toPull, Ii as getSomes, In as try_$1, Ir as flatMap$3, It as fn, J as offerUnsafe, Ji as empty$7, Jn as exponential$1, Jr as void_, Jt as isEffect, K as make$18, Ki as Service, Kn as withSpan, Kr as suspend, Kt as ignore, L as toQueue, Li as head, Ln as undefined_, Lr as forEach$1, Lt as fnUntraced, M as suspend$2, Mi as findFirst, Mn as sync$2, Mr as map$9, N as switchMap, Ni as flatMap$6, Nn as tap$1, Nr as squash, Nt as filterOrFail, O as runForEachArray, Oi as dedupeWith, On as succeed$4, Or as hasInterruptsOnly, Ot as ensuring$1, P as take$1, Pi as fromIterable$1, Pn as tapError, Pr as andThen, Pt as flatMap$4, Q as publishUnsafe, Qi as make$17, Qn as spaced, Qr as decodeBase64, R as toReadableStreamEffect, Ri as headNonEmpty, Rn as uninterruptible, S as mapEffect, Si as toMinutes, St as catchIf, T as paginate, Ta as Tuple$1, Ti as append$1, Tn as scopedWith, Tr as filterInterruptors, Tt as context$1, U as makeUnsafe$4, Ui as map$10, Un as whileLoop, Ur as provideService, Ut as forkScoped, V as toPullScoped, Vi as lastNonEmpty, Vn as useSpan, Vr as orDie$1, Vt as forkDetach, W as dropping, Wi as empty$9, Wn as withFiber, Wr as scopeAddFinalizerExit, Wt as fromResult, X as take, Xi as getOrUndefined, Xn as modifyDelay, Xt as logWarning, Y as shutdown$1, Yi as get$9, Yn as isSchedule, Yt as logError, Z as publish, Zi as getUnsafe, Zn as passthrough, Zr as DisablePropagation, Zt as map$6, _ as fromReadableStream, _i as minutes, _n as runCallbackWith, _r as isExit, _t as cached, a as changes$1, aa as fromNullishOr, ai as Scheduler, an as onError, ar as forkUnsafe, at as interruptAll, b as isStream, bi as toHours, bn as runPromiseExit, br as succeed$3, bt as catchCause, c as empty$6, ca as getOrThrowWith, ci as toPredicate, cn as orDie$2, cr as _await, ct as runIn, d as filter$1, da as isSome, di as hours, dn as provideService$1, dr as into, dt as all$1, ea as mergeAll$1, ei as Class$1, en as mapError$1, er as isDoneCause, et as unbounded, f as filterEffect, fi as isFinite$1, fn as race, fr as make$22, ft as andThen$1, g as fromQueue, ga as some, gi as min$2, gn as retry, gr as failCause, gt as asVoid, h as fromPubSub, ha as none, hi as millis, hn as result$1, hr as fail$3, ht as asSome, i as catchCause$1, ia as flatMapNullishOr, ii as MixedScheduler, in as never, ir as close, it as interrupt$2, j as succeed$6, ji as filterMap, jn as suspend$1, jr as isTimeoutError, jt as failCause$1, k as runHead, ki as empty$8, kn as succeedNone, kr as interrupt, kt as exit, l as ensuring, la as getOrUndefined$1, li as days, ln as orElseSucceed, lr as done, lt as acquireRelease, m as fromEffectSchedule, ma as match$2, mi as max$2, mn as repeat, mr as succeed$5, mt as as, n as createConnector, na as filter$3, ni as TaggedClass, nn as matchCauseEffect, nr as Scope, nt as set$5, o as changesWith, oa as getOrElse$1, oi as compose$1, on as onExit$1, or as makeUnsafe$2, ot as join, p as fromEffect, pa as map$7, pi as isLessThan, pn as raceFirst, pr as makeUnsafe$3, pt as annotateLogs, q as offer, qi as add, qn as yieldNow, qr as sync$1, qt as interrupt$1, r as callback, ra as flatMap$5, ri as TaggedError, rn as matchEffect, rr as addFinalizer, rt as getCurrent, s as debounce$2, sa as getOrNull, si as has$1, sn as onInterrupt, sr as provide$1, st as joinAll, t as wagmiConnectResult, ta as exists$1, ti as Error$1, tr as currentTimeMillis, tt as make$19, u as fail$5, ua as isNone$1, ui as fromInputUnsafe, un as promise, ur as doneUnsafe, ut as addFinalizer$1, v as fromSchedule, vi as seconds$1, vn as runFork, vr as isFailure$2, vt as cachedWithTTL, w as never$1, wi as zero$2, wn as scope, wr as fail$2, wt as catch_, x as map$8, xi as toMillis, xn as runSync, xr as void_$2, y as interruptWhen, yi as toDays, yn as runForkWith, yr as isSuccess$2, yt as callback$1, z as unwrap$1, zi as isArrayNonEmpty, zn as uninterruptibleMask, zr as map$5, zt as forEach$2 } from "./wagmi-connect-result-BJ91_jis.js";
5
+ import { $ as shutdown, $i as merge$2, $n as upTo, $r as encodeBase64, A as share, Ai as filter$2, An as succeedSome, At as fail$4, B as zipLatestAll, Bi as isReadonlyArrayNonEmpty, Bn as updateContext, Br as onExit, Bt as forever, C as mapError$2, Ci as toSeconds, Cn as runSyncWith, Cr as NoSuchElementError, Ct as catchTag, D as runForEach, Da as strictEqual, Di as chunksOf, Dn as sleep$1, Dr as hasInterrupts, Dt as die$1, E as runDrain, Ea as make$21, Ei as appendAll, En as service, Er as findErrorOption, Et as contextWith, F as tap$2, Fi as get$10, Fn as tryPromise, G as failCauseUnsafe, Gi as Reference, Gn as withParentSpan, Gr as succeed$2, Gt as gen, H as make$20, Hi as makeEquivalence$1, Hn as void_$1, Hr as provideContext, Ht as forkIn, I as toPull, Ii as getSomes, In as try_$1, Ir as flatMap$3, It as fn, J as offerUnsafe, Ji as empty$7, Jn as exponential$1, Jr as void_, Jt as isEffect, K as make$18, Ki as Service, Kn as withSpan, Kr as suspend, Kt as ignore, L as toQueue, Li as head, Ln as undefined_, Lr as forEach$1, Lt as fnUntraced, M as suspend$2, Mi as findFirst, Mn as sync$2, Mr as map$9, N as switchMap, Ni as flatMap$6, Nn as tap$1, Nr as squash, Nt as filterOrFail, O as runForEachArray, Oi as dedupeWith, On as succeed$4, Or as hasInterruptsOnly, Ot as ensuring$1, P as take$1, Pi as fromIterable$1, Pn as tapError, Pr as andThen, Pt as flatMap$4, Q as publishUnsafe, Qi as make$17, Qn as spaced, Qr as decodeBase64, R as toReadableStreamEffect, Ri as headNonEmpty, Rn as uninterruptible, S as mapEffect, Si as toMinutes, St as catchIf, T as paginate, Ta as Tuple$1, Ti as append$1, Tn as scopedWith, Tr as filterInterruptors, Tt as context$1, U as makeUnsafe$4, Ui as map$10, Un as whileLoop, Ur as provideService, Ut as forkScoped, V as toPullScoped, Vi as lastNonEmpty, Vn as useSpan, Vr as orDie$1, Vt as forkDetach, W as dropping, Wi as empty$9, Wn as withFiber, Wr as scopeAddFinalizerExit, Wt as fromResult, X as take, Xi as getOrUndefined, Xn as modifyDelay, Xt as logWarning, Y as shutdown$1, Yi as get$9, Yn as isSchedule, Yt as logError, Z as publish, Zi as getUnsafe, Zn as passthrough, Zr as DisablePropagation, Zt as map$6, _ as fromReadableStream, _i as minutes, _n as runCallbackWith, _r as isExit, _t as cached, a as changes$1, aa as fromNullishOr, ai as Scheduler$1, an as onError, ar as forkUnsafe, at as interruptAll, b as isStream, bi as toHours, bn as runPromiseExit, br as succeed$3, bt as catchCause, c as empty$6, ca as getOrThrowWith, ci as toPredicate, cn as orDie$2, cr as _await, ct as runIn, d as filter$1, da as isSome, di as hours, dn as provideService$1, dr as into, dt as all$1, ea as mergeAll$1, ei as Class$1, en as mapError$1, er as isDoneCause, et as unbounded, f as filterEffect, fi as isFinite$1, fn as race, fr as make$22, ft as andThen$1, g as fromQueue, ga as some, gi as min$2, gn as retry, gr as failCause, gt as asVoid, h as fromPubSub, ha as none, hi as millis, hn as result$1, hr as fail$3, ht as asSome, i as catchCause$1, ia as flatMapNullishOr, ii as MixedScheduler, in as never, ir as close, it as interrupt$2, j as succeed$6, ji as filterMap, jn as suspend$1, jr as isTimeoutError, jt as failCause$1, k as runHead, ki as empty$8, kn as succeedNone, kr as interrupt, kt as exit, l as ensuring, la as getOrUndefined$1, li as days, ln as orElseSucceed, lr as done, lt as acquireRelease, m as fromEffectSchedule, ma as match$2, mi as max$2, mn as repeat, mr as succeed$5, mt as as, n as createConnector, na as filter$3, ni as TaggedClass, nn as matchCauseEffect, nr as Scope, nt as set$5, o as changesWith, oa as getOrElse$1, oi as compose$1, on as onExit$1, or as makeUnsafe$2, ot as join, p as fromEffect, pa as map$7, pi as isLessThan, pn as raceFirst, pr as makeUnsafe$3, pt as annotateLogs, q as offer, qi as add, qn as yieldNow, qr as sync$1, qt as interrupt$1, r as callback, ra as flatMap$5, ri as TaggedError, rn as matchEffect, rr as addFinalizer, rt as getCurrent, s as debounce$2, sa as getOrNull, si as has$1, sn as onInterrupt, sr as provide$1, st as joinAll, t as wagmiConnectResult, ta as exists$1, ti as Error$1, tr as currentTimeMillis, tt as make$19, u as fail$5, ua as isNone$1, ui as fromInputUnsafe, un as promise, ur as doneUnsafe, ut as addFinalizer$1, v as fromSchedule, vi as seconds$1, vn as runFork, vr as isFailure$2, vt as cachedWithTTL, w as never$1, wi as zero$2, wn as scope, wr as fail$2, wt as catch_, x as map$8, xi as toMillis, xn as runSync, xr as void_$2, y as interruptWhen, yi as toDays, yn as runForkWith, yr as isSuccess$2, yt as callback$1, z as unwrap$1, zi as isArrayNonEmpty, zn as uninterruptibleMask, zr as map$5, zt as forEach$2 } from "./wagmi-connect-result-BJ91_jis.js";
6
6
  import { $ as isInt, A as UndefinedOr, B as decodeSync, Bt as filter$4, C as String$1, Ct as MissingKey, D as TemplateLiteral, Dt as formatLocal, E as TaggedError$1, F as declare, Ft as zoneMakeLocal, G as decodeUnknownSync, H as decodeUnknownEffect, Ht as map$11, I as decode, It as capitalize, J as fromJsonString, K as encodeEffect, L as decodeEffect, Lt as startsWith, M as Unknown, Mt as subtract, N as brand, Nt as toEpochMillis, O as Trim, Ot as isLessThanOrEqualTo$1, P as catchDecoding, Pt as toParts, Q as isGreaterThanOrEqualTo, R as decodeOption, Rt as toLowerCase$1, S as SchemaError, St as transformOrFail, T as StructWithRest, Tt as distance$1, U as decodeUnknownOption, V as decodeTo, Vt as makeEquivalence$2, W as decodeUnknownResult, Wt as union, X as is$2, Y as instanceOf, Z as isFinite$2, _ as Null, _t as transformOptional, a as DateTimeUtc, b as ReadonlySet, bt as forbidden, c as Error$2, ct as optionalKey, d as Json, dt as toCodecJson, et as isLessThanOrEqualTo, f as Literal, ft as toType, g as NonEmptyString, gt as transform$2, ht as toLowerCase, i as Boolean$1, j as Union, jt as setZone, k as Tuple$2, kt as now$1, l as Finite, lt as suspend$3, m as Natural$1, mt as decodeUnknownEffect$1, n as BigInt$1, nt as isMinLength, ot as makeFilter, p as Literals, pt as withConstructorDefault, q as extendTo, rt as isPattern, s as Defect, st as optional$1, t as ArraySchema, tt as isMaxLength, u as FiniteFromString, ut as tag$2, v as NullOr, vt as decodeUriComponent, w as Struct, wt as makeFormatterStandardSchemaV1, x as Record, xt as transform$3, y as Number$1, yt as encodeUriComponent, z as decodeResult, zt as empty$10 } from "./Schema-DFoi51wt.js";
7
7
  import { S as sumExact, T as BigNumber, _ as TolerantOptionalUtcDateTimeFromString, a as decodeUnsignedBorrowEvmTransactionJson, b as exactDecimal, d as isLedgerLiveConnector, f as ExactBaseUnitAmount, g as TolerantNullableUtcDateTimeFromString, h as NonNegativeExactDecimal, i as decodeAndPrepareEvmTransaction, l as normalizeChainId, m as ExactDecimalInput, n as substratePayloadCodec, o as decodeUnsignedEvmTransactionJson, p as ExactDecimal, r as decodeAndPrepareBorrowEvmTransaction, t as unsignedTronTransactionCodec, v as UtcDateTimeFromString, w as truncateToTokenDecimals, x as exactZero, y as logDecodeRejection } from "./transaction-CmOScFm6.js";
8
8
  import { a as TokenAddress$1, c as WalletAddress$1, i as ProviderId, l as YieldId, n as isCosmosConnector, o as TransactionId$1, r as ActionId$1, s as ValidatorAddress } from "./cosmos-connector-meta-UMFrkViG.js";
@@ -17,7 +17,6 @@ import { A as WalletPublicKeyError, C as WalletConfigError, D as WalletError, E
17
17
  import { t as require_dijkstra } from "./dijkstra-DE6XLT2u.js";
18
18
  import { a as WalletIntegrationError, c as WalletSwitchError, i as WalletDecodeError, n as WalletCapabilityUnavailableError, o as WalletRuntimeInvariantError, r as WalletConnectionError$1, s as WalletSigningError, t as WalletBroadcastError } from "./wallet-errors-B4cGcGNy.js";
19
19
  import { t as en_US_default } from "./chunk-ONEAIJQL-Ckaogdi2.js";
20
- import { f as init_tslib_es6, l as __rest, t as __assign, u as __spreadArray } from "./tslib.es6-Bdhxqx7j.js";
21
20
  import { n as isTonConnector, r as require_ua_parser } from "./ton-connector-meta-CXcDGgc2.js";
22
21
  import { n as miscChainsMap, s as getNetworkLogo } from "./configured-chains-BfQ8ESmR.js";
23
22
  import { t as makeCurrentValueStream } from "./current-value-stream-BPaLLDf4.js";
@@ -28,10 +27,16 @@ import { n as isSubstrateConnector } from "./substrate-connector-meta-DlZ7kUy-.j
28
27
  import { n as isTronConnector } from "./tron-connector-meta-Dy7RipKo.js";
29
28
  import * as m from "react";
30
29
  import React3, { Children, Component, Fragment, PureComponent, StrictMode, cloneElement, createContext, createElement, forwardRef, isValidElement, memo, useCallback, useContext, useEffect, useEffectEvent, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
30
+ import * as Scheduler from "scheduler";
31
31
  import "react-dom/client";
32
32
  import * as ReactDOM from "react-dom";
33
33
  import { createPortal, flushSync } from "react-dom";
34
34
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
35
+ import { RemoveScroll } from "react-remove-scroll";
36
+ import { DismissableLayer, useDismissableLayerSurface } from "@radix-ui/react-dismissable-layer";
37
+ import { FocusScope } from "@radix-ui/react-focus-scope";
38
+ import { useFocusGuards } from "@radix-ui/react-focus-guards";
39
+ import { hideOthers } from "aria-hidden";
35
40
  //#region builtin:esm-external-require-react
36
41
  var require_builtin_esm_external_require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37
42
  module.exports = { ...m };
@@ -3165,7 +3170,7 @@ function makeEffect(ctx, effect, initialValue, services = empty$7(), uninterrupt
3165
3170
  });
3166
3171
  let syncResult;
3167
3172
  let isAsync = false;
3168
- const cancel = runCallbackSync(services.pipe(add(Scope, scope), add(AtomRegistry, ctx.registry), add(Scheduler, ctx.registry.scheduler)), effect, function(exit) {
3173
+ const cancel = runCallbackSync(services.pipe(add(Scope, scope), add(AtomRegistry, ctx.registry), add(Scheduler$1, ctx.registry.scheduler)), effect, function(exit) {
3169
3174
  syncResult = fromExitWithPrevious(exit, previous);
3170
3175
  if (isAsync) ctx.setSelf(syncResult);
3171
3176
  }, uninterruptible);
@@ -3267,7 +3272,7 @@ function makeStream(ctx, stream, initialValue, services = empty$7()) {
3267
3272
  else ctx.setSelf(failureWithPrevious(cause, { previous: ctx.self() }));
3268
3273
  return void_$1;
3269
3274
  }));
3270
- const cancel = runCallbackSync(services.pipe(add(AtomRegistry, ctx.registry), add(Scheduler, ctx.registry.scheduler)), run, constVoid, false);
3275
+ const cancel = runCallbackSync(services.pipe(add(AtomRegistry, ctx.registry), add(Scheduler$1, ctx.registry.scheduler)), run, constVoid, false);
3271
3276
  if (cancel !== void 0) ctx.addFinalizer(cancel);
3272
3277
  if (previous._tag === "Some") return waitingFrom(previous);
3273
3278
  return waiting(initialValue);
@@ -3645,505 +3650,6 @@ var ServerValueTypeId = "~effect-atom/atom/Atom/ServerValue";
3645
3650
  */
3646
3651
  var getServerValue = /*#__PURE__*/ dual(2, (self, registry) => "~effect-atom/atom/Atom/ServerValue" in self ? self[ServerValueTypeId]((atom) => registry.get(atom)) : registry.get(self));
3647
3652
  //#endregion
3648
- //#region ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js
3649
- /**
3650
- * @license React
3651
- * scheduler.production.js
3652
- *
3653
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3654
- *
3655
- * This source code is licensed under the MIT license found in the
3656
- * LICENSE file in the root directory of this source tree.
3657
- */
3658
- var require_scheduler_production = /* @__PURE__ */ __commonJSMin(((exports) => {
3659
- function push(heap, node) {
3660
- var index = heap.length;
3661
- heap.push(node);
3662
- a: for (; 0 < index;) {
3663
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
3664
- if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
3665
- else break a;
3666
- }
3667
- }
3668
- function peek(heap) {
3669
- return 0 === heap.length ? null : heap[0];
3670
- }
3671
- function pop(heap) {
3672
- if (0 === heap.length) return null;
3673
- var first = heap[0], last = heap.pop();
3674
- if (last !== first) {
3675
- heap[0] = last;
3676
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength;) {
3677
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
3678
- if (0 > compare(left, last)) rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
3679
- else if (rightIndex < length && 0 > compare(right, last)) heap[index] = right, heap[rightIndex] = last, index = rightIndex;
3680
- else break a;
3681
- }
3682
- }
3683
- return first;
3684
- }
3685
- function compare(a, b) {
3686
- var diff = a.sortIndex - b.sortIndex;
3687
- return 0 !== diff ? diff : a.id - b.id;
3688
- }
3689
- exports.unstable_now = void 0;
3690
- if ("object" === typeof performance && "function" === typeof performance.now) {
3691
- var localPerformance = performance;
3692
- exports.unstable_now = function() {
3693
- return localPerformance.now();
3694
- };
3695
- } else {
3696
- var localDate = Date, initialTime = localDate.now();
3697
- exports.unstable_now = function() {
3698
- return localDate.now() - initialTime;
3699
- };
3700
- }
3701
- var taskQueue = [];
3702
- var timerQueue = [];
3703
- var taskIdCounter = 1;
3704
- var currentTask = null;
3705
- var currentPriorityLevel = 3;
3706
- var isPerformingWork = !1;
3707
- var isHostCallbackScheduled = !1;
3708
- var isHostTimeoutScheduled = !1;
3709
- var needsPaint = !1;
3710
- var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
3711
- var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
3712
- var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
3713
- function advanceTimers(currentTime) {
3714
- for (var timer = peek(timerQueue); null !== timer;) {
3715
- if (null === timer.callback) pop(timerQueue);
3716
- else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
3717
- else break;
3718
- timer = peek(timerQueue);
3719
- }
3720
- }
3721
- function handleTimeout(currentTime) {
3722
- isHostTimeoutScheduled = !1;
3723
- advanceTimers(currentTime);
3724
- if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline());
3725
- else {
3726
- var firstTimer = peek(timerQueue);
3727
- null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
3728
- }
3729
- }
3730
- var isMessageLoopRunning = !1;
3731
- var taskTimeoutID = -1;
3732
- var frameInterval = 5;
3733
- var startTime = -1;
3734
- function shouldYieldToHost() {
3735
- return needsPaint ? !0 : exports.unstable_now() - startTime < frameInterval ? !1 : !0;
3736
- }
3737
- function performWorkUntilDeadline() {
3738
- needsPaint = !1;
3739
- if (isMessageLoopRunning) {
3740
- var currentTime = exports.unstable_now();
3741
- startTime = currentTime;
3742
- var hasMoreWork = !0;
3743
- try {
3744
- a: {
3745
- isHostCallbackScheduled = !1;
3746
- isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
3747
- isPerformingWork = !0;
3748
- var previousPriorityLevel = currentPriorityLevel;
3749
- try {
3750
- b: {
3751
- advanceTimers(currentTime);
3752
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost());) {
3753
- var callback = currentTask.callback;
3754
- if ("function" === typeof callback) {
3755
- currentTask.callback = null;
3756
- currentPriorityLevel = currentTask.priorityLevel;
3757
- var continuationCallback = callback(currentTask.expirationTime <= currentTime);
3758
- currentTime = exports.unstable_now();
3759
- if ("function" === typeof continuationCallback) {
3760
- currentTask.callback = continuationCallback;
3761
- advanceTimers(currentTime);
3762
- hasMoreWork = !0;
3763
- break b;
3764
- }
3765
- currentTask === peek(taskQueue) && pop(taskQueue);
3766
- advanceTimers(currentTime);
3767
- } else pop(taskQueue);
3768
- currentTask = peek(taskQueue);
3769
- }
3770
- if (null !== currentTask) hasMoreWork = !0;
3771
- else {
3772
- var firstTimer = peek(timerQueue);
3773
- null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
3774
- hasMoreWork = !1;
3775
- }
3776
- }
3777
- break a;
3778
- } finally {
3779
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1;
3780
- }
3781
- hasMoreWork = void 0;
3782
- }
3783
- } finally {
3784
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1;
3785
- }
3786
- }
3787
- }
3788
- var schedulePerformWorkUntilDeadline;
3789
- if ("function" === typeof localSetImmediate) schedulePerformWorkUntilDeadline = function() {
3790
- localSetImmediate(performWorkUntilDeadline);
3791
- };
3792
- else if ("undefined" !== typeof MessageChannel) {
3793
- var channel = new MessageChannel(), port = channel.port2;
3794
- channel.port1.onmessage = performWorkUntilDeadline;
3795
- schedulePerformWorkUntilDeadline = function() {
3796
- port.postMessage(null);
3797
- };
3798
- } else schedulePerformWorkUntilDeadline = function() {
3799
- localSetTimeout(performWorkUntilDeadline, 0);
3800
- };
3801
- function requestHostTimeout(callback, ms) {
3802
- taskTimeoutID = localSetTimeout(function() {
3803
- callback(exports.unstable_now());
3804
- }, ms);
3805
- }
3806
- exports.unstable_IdlePriority = 5;
3807
- exports.unstable_ImmediatePriority = 1;
3808
- exports.unstable_LowPriority = 4;
3809
- exports.unstable_NormalPriority = 3;
3810
- exports.unstable_Profiling = null;
3811
- exports.unstable_UserBlockingPriority = 2;
3812
- exports.unstable_cancelCallback = function(task) {
3813
- task.callback = null;
3814
- };
3815
- exports.unstable_forceFrameRate = function(fps) {
3816
- 0 > fps || 125 < fps ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
3817
- };
3818
- exports.unstable_getCurrentPriorityLevel = function() {
3819
- return currentPriorityLevel;
3820
- };
3821
- exports.unstable_next = function(eventHandler) {
3822
- switch (currentPriorityLevel) {
3823
- case 1:
3824
- case 2:
3825
- case 3:
3826
- var priorityLevel = 3;
3827
- break;
3828
- default: priorityLevel = currentPriorityLevel;
3829
- }
3830
- var previousPriorityLevel = currentPriorityLevel;
3831
- currentPriorityLevel = priorityLevel;
3832
- try {
3833
- return eventHandler();
3834
- } finally {
3835
- currentPriorityLevel = previousPriorityLevel;
3836
- }
3837
- };
3838
- exports.unstable_requestPaint = function() {
3839
- needsPaint = !0;
3840
- };
3841
- exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
3842
- switch (priorityLevel) {
3843
- case 1:
3844
- case 2:
3845
- case 3:
3846
- case 4:
3847
- case 5: break;
3848
- default: priorityLevel = 3;
3849
- }
3850
- var previousPriorityLevel = currentPriorityLevel;
3851
- currentPriorityLevel = priorityLevel;
3852
- try {
3853
- return eventHandler();
3854
- } finally {
3855
- currentPriorityLevel = previousPriorityLevel;
3856
- }
3857
- };
3858
- exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
3859
- var currentTime = exports.unstable_now();
3860
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
3861
- switch (priorityLevel) {
3862
- case 1:
3863
- var timeout = -1;
3864
- break;
3865
- case 2:
3866
- timeout = 250;
3867
- break;
3868
- case 5:
3869
- timeout = 1073741823;
3870
- break;
3871
- case 4:
3872
- timeout = 1e4;
3873
- break;
3874
- default: timeout = 5e3;
3875
- }
3876
- timeout = options + timeout;
3877
- priorityLevel = {
3878
- id: taskIdCounter++,
3879
- callback,
3880
- priorityLevel,
3881
- startTime: options,
3882
- expirationTime: timeout,
3883
- sortIndex: -1
3884
- };
3885
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline())));
3886
- return priorityLevel;
3887
- };
3888
- exports.unstable_shouldYield = shouldYieldToHost;
3889
- exports.unstable_wrapCallback = function(callback) {
3890
- var parentPriorityLevel = currentPriorityLevel;
3891
- return function() {
3892
- var previousPriorityLevel = currentPriorityLevel;
3893
- currentPriorityLevel = parentPriorityLevel;
3894
- try {
3895
- return callback.apply(this, arguments);
3896
- } finally {
3897
- currentPriorityLevel = previousPriorityLevel;
3898
- }
3899
- };
3900
- };
3901
- }));
3902
- //#endregion
3903
- //#region ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js
3904
- /**
3905
- * @license React
3906
- * scheduler.development.js
3907
- *
3908
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3909
- *
3910
- * This source code is licensed under the MIT license found in the
3911
- * LICENSE file in the root directory of this source tree.
3912
- */
3913
- var require_scheduler_development = /* @__PURE__ */ __commonJSMin(((exports) => {
3914
- init_dist();
3915
- "production" !== process$1.env.NODE_ENV && (function() {
3916
- function performWorkUntilDeadline() {
3917
- needsPaint = !1;
3918
- if (isMessageLoopRunning) {
3919
- var currentTime = exports.unstable_now();
3920
- startTime = currentTime;
3921
- var hasMoreWork = !0;
3922
- try {
3923
- a: {
3924
- isHostCallbackScheduled = !1;
3925
- isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
3926
- isPerformingWork = !0;
3927
- var previousPriorityLevel = currentPriorityLevel;
3928
- try {
3929
- b: {
3930
- advanceTimers(currentTime);
3931
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost());) {
3932
- var callback = currentTask.callback;
3933
- if ("function" === typeof callback) {
3934
- currentTask.callback = null;
3935
- currentPriorityLevel = currentTask.priorityLevel;
3936
- var continuationCallback = callback(currentTask.expirationTime <= currentTime);
3937
- currentTime = exports.unstable_now();
3938
- if ("function" === typeof continuationCallback) {
3939
- currentTask.callback = continuationCallback;
3940
- advanceTimers(currentTime);
3941
- hasMoreWork = !0;
3942
- break b;
3943
- }
3944
- currentTask === peek(taskQueue) && pop(taskQueue);
3945
- advanceTimers(currentTime);
3946
- } else pop(taskQueue);
3947
- currentTask = peek(taskQueue);
3948
- }
3949
- if (null !== currentTask) hasMoreWork = !0;
3950
- else {
3951
- var firstTimer = peek(timerQueue);
3952
- null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
3953
- hasMoreWork = !1;
3954
- }
3955
- }
3956
- break a;
3957
- } finally {
3958
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1;
3959
- }
3960
- hasMoreWork = void 0;
3961
- }
3962
- } finally {
3963
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1;
3964
- }
3965
- }
3966
- }
3967
- function push(heap, node) {
3968
- var index = heap.length;
3969
- heap.push(node);
3970
- a: for (; 0 < index;) {
3971
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
3972
- if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
3973
- else break a;
3974
- }
3975
- }
3976
- function peek(heap) {
3977
- return 0 === heap.length ? null : heap[0];
3978
- }
3979
- function pop(heap) {
3980
- if (0 === heap.length) return null;
3981
- var first = heap[0], last = heap.pop();
3982
- if (last !== first) {
3983
- heap[0] = last;
3984
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength;) {
3985
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
3986
- if (0 > compare(left, last)) rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
3987
- else if (rightIndex < length && 0 > compare(right, last)) heap[index] = right, heap[rightIndex] = last, index = rightIndex;
3988
- else break a;
3989
- }
3990
- }
3991
- return first;
3992
- }
3993
- function compare(a, b) {
3994
- var diff = a.sortIndex - b.sortIndex;
3995
- return 0 !== diff ? diff : a.id - b.id;
3996
- }
3997
- function advanceTimers(currentTime) {
3998
- for (var timer = peek(timerQueue); null !== timer;) {
3999
- if (null === timer.callback) pop(timerQueue);
4000
- else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
4001
- else break;
4002
- timer = peek(timerQueue);
4003
- }
4004
- }
4005
- function handleTimeout(currentTime) {
4006
- isHostTimeoutScheduled = !1;
4007
- advanceTimers(currentTime);
4008
- if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline());
4009
- else {
4010
- var firstTimer = peek(timerQueue);
4011
- null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
4012
- }
4013
- }
4014
- function shouldYieldToHost() {
4015
- return needsPaint ? !0 : exports.unstable_now() - startTime < frameInterval ? !1 : !0;
4016
- }
4017
- function requestHostTimeout(callback, ms) {
4018
- taskTimeoutID = localSetTimeout(function() {
4019
- callback(exports.unstable_now());
4020
- }, ms);
4021
- }
4022
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
4023
- exports.unstable_now = void 0;
4024
- if ("object" === typeof performance && "function" === typeof performance.now) {
4025
- var localPerformance = performance;
4026
- exports.unstable_now = function() {
4027
- return localPerformance.now();
4028
- };
4029
- } else {
4030
- var localDate = Date, initialTime = localDate.now();
4031
- exports.unstable_now = function() {
4032
- return localDate.now() - initialTime;
4033
- };
4034
- }
4035
- var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
4036
- if ("function" === typeof localSetImmediate) var schedulePerformWorkUntilDeadline = function() {
4037
- localSetImmediate(performWorkUntilDeadline);
4038
- };
4039
- else if ("undefined" !== typeof MessageChannel) {
4040
- var channel = new MessageChannel(), port = channel.port2;
4041
- channel.port1.onmessage = performWorkUntilDeadline;
4042
- schedulePerformWorkUntilDeadline = function() {
4043
- port.postMessage(null);
4044
- };
4045
- } else schedulePerformWorkUntilDeadline = function() {
4046
- localSetTimeout(performWorkUntilDeadline, 0);
4047
- };
4048
- exports.unstable_IdlePriority = 5;
4049
- exports.unstable_ImmediatePriority = 1;
4050
- exports.unstable_LowPriority = 4;
4051
- exports.unstable_NormalPriority = 3;
4052
- exports.unstable_Profiling = null;
4053
- exports.unstable_UserBlockingPriority = 2;
4054
- exports.unstable_cancelCallback = function(task) {
4055
- task.callback = null;
4056
- };
4057
- exports.unstable_forceFrameRate = function(fps) {
4058
- 0 > fps || 125 < fps ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
4059
- };
4060
- exports.unstable_getCurrentPriorityLevel = function() {
4061
- return currentPriorityLevel;
4062
- };
4063
- exports.unstable_next = function(eventHandler) {
4064
- switch (currentPriorityLevel) {
4065
- case 1:
4066
- case 2:
4067
- case 3:
4068
- var priorityLevel = 3;
4069
- break;
4070
- default: priorityLevel = currentPriorityLevel;
4071
- }
4072
- var previousPriorityLevel = currentPriorityLevel;
4073
- currentPriorityLevel = priorityLevel;
4074
- try {
4075
- return eventHandler();
4076
- } finally {
4077
- currentPriorityLevel = previousPriorityLevel;
4078
- }
4079
- };
4080
- exports.unstable_requestPaint = function() {
4081
- needsPaint = !0;
4082
- };
4083
- exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
4084
- switch (priorityLevel) {
4085
- case 1:
4086
- case 2:
4087
- case 3:
4088
- case 4:
4089
- case 5: break;
4090
- default: priorityLevel = 3;
4091
- }
4092
- var previousPriorityLevel = currentPriorityLevel;
4093
- currentPriorityLevel = priorityLevel;
4094
- try {
4095
- return eventHandler();
4096
- } finally {
4097
- currentPriorityLevel = previousPriorityLevel;
4098
- }
4099
- };
4100
- exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
4101
- var currentTime = exports.unstable_now();
4102
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
4103
- switch (priorityLevel) {
4104
- case 1:
4105
- var timeout = -1;
4106
- break;
4107
- case 2:
4108
- timeout = 250;
4109
- break;
4110
- case 5:
4111
- timeout = 1073741823;
4112
- break;
4113
- case 4:
4114
- timeout = 1e4;
4115
- break;
4116
- default: timeout = 5e3;
4117
- }
4118
- timeout = options + timeout;
4119
- priorityLevel = {
4120
- id: taskIdCounter++,
4121
- callback,
4122
- priorityLevel,
4123
- startTime: options,
4124
- expirationTime: timeout,
4125
- sortIndex: -1
4126
- };
4127
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline())));
4128
- return priorityLevel;
4129
- };
4130
- exports.unstable_shouldYield = shouldYieldToHost;
4131
- exports.unstable_wrapCallback = function(callback) {
4132
- var parentPriorityLevel = currentPriorityLevel;
4133
- return function() {
4134
- var previousPriorityLevel = currentPriorityLevel;
4135
- currentPriorityLevel = parentPriorityLevel;
4136
- try {
4137
- return callback.apply(this, arguments);
4138
- } finally {
4139
- currentPriorityLevel = previousPriorityLevel;
4140
- }
4141
- };
4142
- };
4143
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
4144
- })();
4145
- }));
4146
- //#endregion
4147
3653
  //#region ../../node_modules/.pnpm/@effect+atom-react@4.0.0-rc.112_effect@4.0.0-rc.112_react@19.2.8_scheduler@0.27.0/node_modules/@effect/atom-react/dist/RegistryContext.js
4148
3654
  /**
4149
3655
  * React context and provider for the Atom registry used by Effect Atom hooks.
@@ -4153,11 +3659,6 @@ var require_scheduler_development = /* @__PURE__ */ __commonJSMin(((exports) =>
4153
3659
  *
4154
3660
  * @since 4.0.0
4155
3661
  */
4156
- var import_scheduler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
4157
- init_dist();
4158
- if (process$1.env.NODE_ENV === "production") module.exports = require_scheduler_production();
4159
- else module.exports = require_scheduler_development();
4160
- })))(), 1);
4161
3662
  /**
4162
3663
  * Schedules Atom registry work with React's scheduler at low priority and
4163
3664
  * returns a cancellation function for the scheduled task.
@@ -4166,8 +3667,8 @@ var import_scheduler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((
4166
3667
  * @since 4.0.0
4167
3668
  */
4168
3669
  function scheduleTask(f) {
4169
- const node = import_scheduler.unstable_scheduleCallback(4, f);
4170
- return () => import_scheduler.unstable_cancelCallback(node);
3670
+ const node = Scheduler.unstable_scheduleCallback(Scheduler.unstable_LowPriority, f);
3671
+ return () => Scheduler.unstable_cancelCallback(node);
4171
3672
  }
4172
3673
  /**
4173
3674
  * Provides a React context that supplies the `AtomRegistry` used by Atom hooks and
@@ -7761,7 +7262,7 @@ function useMatch(pattern) {
7761
7262
  return m.useMemo(() => matchPath(pattern, decodePath(pathname)), [pathname, pattern]);
7762
7263
  }
7763
7264
  var navigateEffectWarning = `You should call navigate() in a React.useEffect(), not when your component is first rendered.`;
7764
- function useIsomorphicLayoutEffect$4(cb) {
7265
+ function useIsomorphicLayoutEffect$3(cb) {
7765
7266
  if (!m.useContext(NavigationContext).static) m.useLayoutEffect(cb);
7766
7267
  }
7767
7268
  function useNavigate() {
@@ -7776,7 +7277,7 @@ function useNavigateUnstable() {
7776
7277
  let { pathname: locationPathname } = useLocation();
7777
7278
  let routePathnamesJson = JSON.stringify(getResolveToMatches(matches));
7778
7279
  let activeRef = m.useRef(false);
7779
- useIsomorphicLayoutEffect$4(() => {
7280
+ useIsomorphicLayoutEffect$3(() => {
7780
7281
  activeRef.current = true;
7781
7282
  });
7782
7283
  return m.useCallback((to, options = {}) => {
@@ -8105,7 +7606,7 @@ function useNavigateStable() {
8105
7606
  let { router } = useDataRouterContext("useNavigate");
8106
7607
  let id = useCurrentRouteId("useNavigate");
8107
7608
  let activeRef = m.useRef(false);
8108
- useIsomorphicLayoutEffect$4(() => {
7609
+ useIsomorphicLayoutEffect$3(() => {
8109
7610
  activeRef.current = true;
8110
7611
  });
8111
7612
  return m.useCallback(async (to, options = {}) => {
@@ -11503,7 +11004,7 @@ function restoreSentinels(nodes) {
11503
11004
  if (node.children.length) restoreSentinels(node.children);
11504
11005
  });
11505
11006
  }
11506
- function parse$1(html, options) {
11007
+ function parse(html, options) {
11507
11008
  const components = options && options.components || empty$4;
11508
11009
  const allowedTags = options && options.allowedTags;
11509
11010
  let restoreNeeded = false;
@@ -11685,7 +11186,7 @@ function stringify(doc) {
11685
11186
  }, "");
11686
11187
  }
11687
11188
  var index$2 = {
11688
- parse: parse$1,
11189
+ parse,
11689
11190
  stringify
11690
11191
  };
11691
11192
  //#endregion
@@ -30618,7 +30119,7 @@ var layer = /*#__PURE__*/ layerMergedContext(/*#__PURE__*/ succeed$4(/* @__PURE_
30618
30119
  })));
30619
30120
  //#endregion
30620
30121
  //#region package.json
30621
- var version$1 = "0.0.284";
30122
+ var version$1 = "0.0.285";
30622
30123
  //#endregion
30623
30124
  //#region src/generated/api/borrow-client.ts
30624
30125
  var make$2 = (httpClient, options = {}) => {
@@ -47509,682 +47010,6 @@ function normalize$1(name) {
47509
47010
  return normalize$2(name);
47510
47011
  }
47511
47012
  //#endregion
47512
- //#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
47513
- var zeroRightClassName = "right-scroll-bar-position";
47514
- var fullWidthClassName = "width-before-scroll-bar";
47515
- var noScrollbarsClassName = "with-scroll-bars-hidden";
47516
- /**
47517
- * Name of a CSS variable containing the amount of "hidden" scrollbar
47518
- * ! might be undefined ! use will fallback!
47519
- */
47520
- var removedBarSizeVariable = "--removed-body-scroll-bar-size";
47521
- //#endregion
47522
- //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/use-callback-ref/dist/es2015/assignRef.js
47523
- /**
47524
- * Assigns a value for a given ref, no matter of the ref format
47525
- * @param {RefObject} ref - a callback function or ref object
47526
- * @param value - a new value
47527
- *
47528
- * @see https://github.com/theKashey/use-callback-ref#assignref
47529
- * @example
47530
- * const refObject = useRef();
47531
- * const refFn = (ref) => {....}
47532
- *
47533
- * assignRef(refObject, "refValue");
47534
- * assignRef(refFn, "refValue");
47535
- */
47536
- function assignRef(ref, value) {
47537
- if (typeof ref === "function") ref(value);
47538
- else if (ref) ref.current = value;
47539
- return ref;
47540
- }
47541
- //#endregion
47542
- //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useRef.js
47543
- /**
47544
- * creates a MutableRef with ref change callback
47545
- * @param initialValue - initial ref value
47546
- * @param {Function} callback - a callback to run when value changes
47547
- *
47548
- * @example
47549
- * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
47550
- * ref.current = 1;
47551
- * // prints 0 -> 1
47552
- *
47553
- * @see https://reactjs.org/docs/hooks-reference.html#useref
47554
- * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
47555
- * @returns {MutableRefObject}
47556
- */
47557
- function useCallbackRef$1(initialValue, callback) {
47558
- var ref = useState(function() {
47559
- return {
47560
- value: initialValue,
47561
- callback,
47562
- facade: {
47563
- get current() {
47564
- return ref.value;
47565
- },
47566
- set current(value) {
47567
- var last = ref.value;
47568
- if (last !== value) {
47569
- ref.value = value;
47570
- ref.callback(value, last);
47571
- }
47572
- }
47573
- }
47574
- };
47575
- })[0];
47576
- ref.callback = callback;
47577
- return ref.facade;
47578
- }
47579
- //#endregion
47580
- //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
47581
- var useIsomorphicLayoutEffect$3 = typeof window !== "undefined" ? m.useLayoutEffect : m.useEffect;
47582
- var currentValues = /* @__PURE__ */ new WeakMap();
47583
- /**
47584
- * Merges two or more refs together providing a single interface to set their value
47585
- * @param {RefObject|Ref} refs
47586
- * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
47587
- *
47588
- * @see {@link mergeRefs} a version without buit-in memoization
47589
- * @see https://github.com/theKashey/use-callback-ref#usemergerefs
47590
- * @example
47591
- * const Component = React.forwardRef((props, ref) => {
47592
- * const ownRef = useRef();
47593
- * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
47594
- * return <div ref={domRef}>...</div>
47595
- * }
47596
- */
47597
- function useMergeRefs(refs, defaultValue) {
47598
- var callbackRef = useCallbackRef$1(defaultValue || null, function(newValue) {
47599
- return refs.forEach(function(ref) {
47600
- return assignRef(ref, newValue);
47601
- });
47602
- });
47603
- useIsomorphicLayoutEffect$3(function() {
47604
- var oldValue = currentValues.get(callbackRef);
47605
- if (oldValue) {
47606
- var prevRefs_1 = new Set(oldValue);
47607
- var nextRefs_1 = new Set(refs);
47608
- var current_1 = callbackRef.current;
47609
- prevRefs_1.forEach(function(ref) {
47610
- if (!nextRefs_1.has(ref)) assignRef(ref, null);
47611
- });
47612
- nextRefs_1.forEach(function(ref) {
47613
- if (!prevRefs_1.has(ref)) assignRef(ref, current_1);
47614
- });
47615
- }
47616
- currentValues.set(callbackRef, refs);
47617
- }, [refs]);
47618
- return callbackRef;
47619
- }
47620
- //#endregion
47621
- //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.18_react@19.2.8/node_modules/use-sidecar/dist/es2015/medium.js
47622
- init_tslib_es6();
47623
- function ItoI(a) {
47624
- return a;
47625
- }
47626
- function innerCreateMedium(defaults, middleware) {
47627
- if (middleware === void 0) middleware = ItoI;
47628
- var buffer = [];
47629
- var assigned = false;
47630
- return {
47631
- read: function() {
47632
- if (assigned) throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
47633
- if (buffer.length) return buffer[buffer.length - 1];
47634
- return defaults;
47635
- },
47636
- useMedium: function(data) {
47637
- var item = middleware(data, assigned);
47638
- buffer.push(item);
47639
- return function() {
47640
- buffer = buffer.filter(function(x) {
47641
- return x !== item;
47642
- });
47643
- };
47644
- },
47645
- assignSyncMedium: function(cb) {
47646
- assigned = true;
47647
- while (buffer.length) {
47648
- var cbs = buffer;
47649
- buffer = [];
47650
- cbs.forEach(cb);
47651
- }
47652
- buffer = {
47653
- push: function(x) {
47654
- return cb(x);
47655
- },
47656
- filter: function() {
47657
- return buffer;
47658
- }
47659
- };
47660
- },
47661
- assignMedium: function(cb) {
47662
- assigned = true;
47663
- var pendingQueue = [];
47664
- if (buffer.length) {
47665
- var cbs = buffer;
47666
- buffer = [];
47667
- cbs.forEach(cb);
47668
- pendingQueue = buffer;
47669
- }
47670
- var executeQueue = function() {
47671
- var cbs = pendingQueue;
47672
- pendingQueue = [];
47673
- cbs.forEach(cb);
47674
- };
47675
- var cycle = function() {
47676
- return Promise.resolve().then(executeQueue);
47677
- };
47678
- cycle();
47679
- buffer = {
47680
- push: function(x) {
47681
- pendingQueue.push(x);
47682
- cycle();
47683
- },
47684
- filter: function(filter) {
47685
- pendingQueue = pendingQueue.filter(filter);
47686
- return buffer;
47687
- }
47688
- };
47689
- }
47690
- };
47691
- }
47692
- function createSidecarMedium(options) {
47693
- if (options === void 0) options = {};
47694
- var medium = innerCreateMedium(null);
47695
- medium.options = __assign({
47696
- async: true,
47697
- ssr: false
47698
- }, options);
47699
- return medium;
47700
- }
47701
- //#endregion
47702
- //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.18_react@19.2.8/node_modules/use-sidecar/dist/es2015/exports.js
47703
- init_tslib_es6();
47704
- var SideCar = function(_a) {
47705
- var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
47706
- if (!sideCar) throw new Error("Sidecar: please provide `sideCar` property to import the right car");
47707
- var Target = sideCar.read();
47708
- if (!Target) throw new Error("Sidecar medium not found");
47709
- return m.createElement(Target, __assign({}, rest));
47710
- };
47711
- SideCar.isSideCarExport = true;
47712
- function exportSidecar(medium, exported) {
47713
- medium.useMedium(exported);
47714
- return SideCar;
47715
- }
47716
- //#endregion
47717
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/medium.js
47718
- var effectCar$1 = createSidecarMedium();
47719
- //#endregion
47720
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/UI.js
47721
- init_tslib_es6();
47722
- var nothing$1 = function() {};
47723
- /**
47724
- * Removes scrollbar from the page and contain the scroll within the Lock
47725
- */
47726
- var RemoveScroll$1 = m.forwardRef(function(props, parentRef) {
47727
- var ref = m.useRef(null);
47728
- var _a = m.useState({
47729
- onScrollCapture: nothing$1,
47730
- onWheelCapture: nothing$1,
47731
- onTouchMoveCapture: nothing$1
47732
- }), callbacks = _a[0], setCallbacks = _a[1];
47733
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, [
47734
- "forwardProps",
47735
- "children",
47736
- "className",
47737
- "removeScrollBar",
47738
- "enabled",
47739
- "shards",
47740
- "sideCar",
47741
- "noIsolation",
47742
- "inert",
47743
- "allowPinchZoom",
47744
- "as",
47745
- "gapMode"
47746
- ]);
47747
- var SideCar = sideCar;
47748
- var containerRef = useMergeRefs([ref, parentRef]);
47749
- var containerProps = __assign(__assign({}, rest), callbacks);
47750
- return m.createElement(m.Fragment, null, enabled && m.createElement(SideCar, {
47751
- sideCar: effectCar$1,
47752
- removeScrollBar,
47753
- shards,
47754
- noIsolation,
47755
- inert,
47756
- setCallbacks,
47757
- allowPinchZoom: !!allowPinchZoom,
47758
- lockRef: ref,
47759
- gapMode
47760
- }), forwardProps ? m.cloneElement(m.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : m.createElement(Container, __assign({}, containerProps, {
47761
- className,
47762
- ref: containerRef
47763
- }), children));
47764
- });
47765
- RemoveScroll$1.defaultProps = {
47766
- enabled: true,
47767
- removeScrollBar: true,
47768
- inert: false
47769
- };
47770
- RemoveScroll$1.classNames = {
47771
- fullWidth: fullWidthClassName,
47772
- zeroRight: zeroRightClassName
47773
- };
47774
- var getNonce = function() {
47775
- if (typeof __webpack_nonce__ !== "undefined") return __webpack_nonce__;
47776
- };
47777
- //#endregion
47778
- //#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/singleton.js
47779
- function makeStyleTag() {
47780
- if (!document) return null;
47781
- var tag = document.createElement("style");
47782
- tag.type = "text/css";
47783
- var nonce = getNonce();
47784
- if (nonce) tag.setAttribute("nonce", nonce);
47785
- return tag;
47786
- }
47787
- function injectStyles(tag, css) {
47788
- if (tag.styleSheet) tag.styleSheet.cssText = css;
47789
- else tag.appendChild(document.createTextNode(css));
47790
- }
47791
- function insertStyleTag(tag) {
47792
- (document.head || document.getElementsByTagName("head")[0]).appendChild(tag);
47793
- }
47794
- var stylesheetSingleton = function() {
47795
- var counter = 0;
47796
- var stylesheet = null;
47797
- return {
47798
- add: function(style) {
47799
- if (counter == 0) {
47800
- if (stylesheet = makeStyleTag()) {
47801
- injectStyles(stylesheet, style);
47802
- insertStyleTag(stylesheet);
47803
- }
47804
- }
47805
- counter++;
47806
- },
47807
- remove: function() {
47808
- counter--;
47809
- if (!counter && stylesheet) {
47810
- stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
47811
- stylesheet = null;
47812
- }
47813
- }
47814
- };
47815
- };
47816
- //#endregion
47817
- //#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/hook.js
47818
- /**
47819
- * creates a hook to control style singleton
47820
- * @see {@link styleSingleton} for a safer component version
47821
- * @example
47822
- * ```tsx
47823
- * const useStyle = styleHookSingleton();
47824
- * ///
47825
- * useStyle('body { overflow: hidden}');
47826
- */
47827
- var styleHookSingleton = function() {
47828
- var sheet = stylesheetSingleton();
47829
- return function(styles, isDynamic) {
47830
- m.useEffect(function() {
47831
- sheet.add(styles);
47832
- return function() {
47833
- sheet.remove();
47834
- };
47835
- }, [styles && isDynamic]);
47836
- };
47837
- };
47838
- //#endregion
47839
- //#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/component.js
47840
- /**
47841
- * create a Component to add styles on demand
47842
- * - styles are added when first instance is mounted
47843
- * - styles are removed when the last instance is unmounted
47844
- * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
47845
- */
47846
- var styleSingleton = function() {
47847
- var useStyle = styleHookSingleton();
47848
- var Sheet = function(_a) {
47849
- var styles = _a.styles, dynamic = _a.dynamic;
47850
- useStyle(styles, dynamic);
47851
- return null;
47852
- };
47853
- return Sheet;
47854
- };
47855
- //#endregion
47856
- //#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
47857
- var zeroGap = {
47858
- left: 0,
47859
- top: 0,
47860
- right: 0,
47861
- gap: 0
47862
- };
47863
- var parse = function(x) {
47864
- return parseInt(x || "", 10) || 0;
47865
- };
47866
- var getOffset = function(gapMode) {
47867
- var cs = window.getComputedStyle(document.body);
47868
- var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
47869
- var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
47870
- var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
47871
- return [
47872
- parse(left),
47873
- parse(top),
47874
- parse(right)
47875
- ];
47876
- };
47877
- var getGapWidth = function(gapMode) {
47878
- if (gapMode === void 0) gapMode = "margin";
47879
- if (typeof window === "undefined") return zeroGap;
47880
- var offsets = getOffset(gapMode);
47881
- var documentWidth = document.documentElement.clientWidth;
47882
- var windowWidth = window.innerWidth;
47883
- return {
47884
- left: offsets[0],
47885
- top: offsets[1],
47886
- right: offsets[2],
47887
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
47888
- };
47889
- };
47890
- //#endregion
47891
- //#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/component.js
47892
- var Style = styleSingleton();
47893
- var lockAttribute = "data-scroll-locked";
47894
- var getStyles = function(_a, allowRelative, gapMode, important) {
47895
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
47896
- if (gapMode === void 0) gapMode = "margin";
47897
- return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
47898
- allowRelative && "position: relative ".concat(important, ";"),
47899
- gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
47900
- gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
47901
- ].filter(Boolean).join(""), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
47902
- };
47903
- var getCurrentUseCounter = function() {
47904
- var counter = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
47905
- return isFinite(counter) ? counter : 0;
47906
- };
47907
- var useLockAttribute = function() {
47908
- m.useEffect(function() {
47909
- document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
47910
- return function() {
47911
- var newCounter = getCurrentUseCounter() - 1;
47912
- if (newCounter <= 0) document.body.removeAttribute(lockAttribute);
47913
- else document.body.setAttribute(lockAttribute, newCounter.toString());
47914
- };
47915
- }, []);
47916
- };
47917
- /**
47918
- * Removes page scrollbar and blocks page scroll when mounted
47919
- */
47920
- var RemoveScrollBar = function(_a) {
47921
- var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
47922
- useLockAttribute();
47923
- var gap = m.useMemo(function() {
47924
- return getGapWidth(gapMode);
47925
- }, [gapMode]);
47926
- return m.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
47927
- };
47928
- //#endregion
47929
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
47930
- var passiveSupported$1 = false;
47931
- if (typeof window !== "undefined") try {
47932
- var options$1 = Object.defineProperty({}, "passive", { get: function() {
47933
- passiveSupported$1 = true;
47934
- return true;
47935
- } });
47936
- window.addEventListener("test", options$1, options$1);
47937
- window.removeEventListener("test", options$1, options$1);
47938
- } catch (err) {
47939
- passiveSupported$1 = false;
47940
- }
47941
- var nonPassive$1 = passiveSupported$1 ? { passive: false } : false;
47942
- //#endregion
47943
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
47944
- var alwaysContainsScroll$1 = function(node) {
47945
- return node.tagName === "TEXTAREA";
47946
- };
47947
- var elementCanBeScrolled$1 = function(node, overflow) {
47948
- if (!(node instanceof Element)) return false;
47949
- var styles = window.getComputedStyle(node);
47950
- return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll$1(node) && styles[overflow] === "visible");
47951
- };
47952
- var elementCouldBeVScrolled$1 = function(node) {
47953
- return elementCanBeScrolled$1(node, "overflowY");
47954
- };
47955
- var elementCouldBeHScrolled$1 = function(node) {
47956
- return elementCanBeScrolled$1(node, "overflowX");
47957
- };
47958
- var locationCouldBeScrolled$1 = function(axis, node) {
47959
- var ownerDocument = node.ownerDocument;
47960
- var current = node;
47961
- do {
47962
- if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
47963
- if (elementCouldBeScrolled$1(axis, current)) {
47964
- var _a = getScrollVariables$1(axis, current);
47965
- if (_a[1] > _a[2]) return true;
47966
- }
47967
- current = current.parentNode;
47968
- } while (current && current !== ownerDocument.body);
47969
- return false;
47970
- };
47971
- var getVScrollVariables$1 = function(_a) {
47972
- return [
47973
- _a.scrollTop,
47974
- _a.scrollHeight,
47975
- _a.clientHeight
47976
- ];
47977
- };
47978
- var getHScrollVariables$1 = function(_a) {
47979
- return [
47980
- _a.scrollLeft,
47981
- _a.scrollWidth,
47982
- _a.clientWidth
47983
- ];
47984
- };
47985
- var elementCouldBeScrolled$1 = function(axis, node) {
47986
- return axis === "v" ? elementCouldBeVScrolled$1(node) : elementCouldBeHScrolled$1(node);
47987
- };
47988
- var getScrollVariables$1 = function(axis, node) {
47989
- return axis === "v" ? getVScrollVariables$1(node) : getHScrollVariables$1(node);
47990
- };
47991
- var getDirectionFactor$1 = function(axis, direction) {
47992
- /**
47993
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
47994
- * and then increasingly negative as you scroll towards the end of the content.
47995
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
47996
- */
47997
- return axis === "h" && direction === "rtl" ? -1 : 1;
47998
- };
47999
- var handleScroll$1 = function(axis, endTarget, event, sourceDelta, noOverscroll) {
48000
- var directionFactor = getDirectionFactor$1(axis, window.getComputedStyle(endTarget).direction);
48001
- var delta = directionFactor * sourceDelta;
48002
- var target = event.target;
48003
- var targetInLock = endTarget.contains(target);
48004
- var shouldCancelScroll = false;
48005
- var isDeltaPositive = delta > 0;
48006
- var availableScroll = 0;
48007
- var availableScrollTop = 0;
48008
- do {
48009
- var _a = getScrollVariables$1(axis, target), position = _a[0];
48010
- var elementScroll = _a[1] - _a[2] - directionFactor * position;
48011
- if (position || elementScroll) {
48012
- if (elementCouldBeScrolled$1(axis, target)) {
48013
- availableScroll += elementScroll;
48014
- availableScrollTop += position;
48015
- }
48016
- }
48017
- if (target instanceof ShadowRoot) target = target.host;
48018
- else target = target.parentNode;
48019
- } while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
48020
- if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
48021
- else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
48022
- return shouldCancelScroll;
48023
- };
48024
- //#endregion
48025
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
48026
- init_tslib_es6();
48027
- var getTouchXY$1 = function(event) {
48028
- return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
48029
- };
48030
- var getDeltaXY$1 = function(event) {
48031
- return [event.deltaX, event.deltaY];
48032
- };
48033
- var extractRef$1 = function(ref) {
48034
- return ref && "current" in ref ? ref.current : ref;
48035
- };
48036
- var deltaCompare$1 = function(x, y) {
48037
- return x[0] === y[0] && x[1] === y[1];
48038
- };
48039
- var generateStyle$1 = function(id) {
48040
- return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
48041
- };
48042
- var idCounter$2 = 0;
48043
- var lockStack$1 = [];
48044
- function RemoveScrollSideCar$1(props) {
48045
- var shouldPreventQueue = m.useRef([]);
48046
- var touchStartRef = m.useRef([0, 0]);
48047
- var activeAxis = m.useRef();
48048
- var id = m.useState(idCounter$2++)[0];
48049
- var Style = m.useState(styleSingleton)[0];
48050
- var lastProps = m.useRef(props);
48051
- m.useEffect(function() {
48052
- lastProps.current = props;
48053
- }, [props]);
48054
- m.useEffect(function() {
48055
- if (props.inert) {
48056
- document.body.classList.add("block-interactivity-".concat(id));
48057
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef$1), true).filter(Boolean);
48058
- allow_1.forEach(function(el) {
48059
- return el.classList.add("allow-interactivity-".concat(id));
48060
- });
48061
- return function() {
48062
- document.body.classList.remove("block-interactivity-".concat(id));
48063
- allow_1.forEach(function(el) {
48064
- return el.classList.remove("allow-interactivity-".concat(id));
48065
- });
48066
- };
48067
- }
48068
- }, [
48069
- props.inert,
48070
- props.lockRef.current,
48071
- props.shards
48072
- ]);
48073
- var shouldCancelEvent = m.useCallback(function(event, parent) {
48074
- if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
48075
- var touch = getTouchXY$1(event);
48076
- var touchStart = touchStartRef.current;
48077
- var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
48078
- var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
48079
- var currentAxis;
48080
- var target = event.target;
48081
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
48082
- if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
48083
- var canBeScrolledInMainDirection = locationCouldBeScrolled$1(moveDirection, target);
48084
- if (!canBeScrolledInMainDirection) return true;
48085
- if (canBeScrolledInMainDirection) currentAxis = moveDirection;
48086
- else {
48087
- currentAxis = moveDirection === "v" ? "h" : "v";
48088
- canBeScrolledInMainDirection = locationCouldBeScrolled$1(moveDirection, target);
48089
- }
48090
- if (!canBeScrolledInMainDirection) return false;
48091
- if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
48092
- if (!currentAxis) return true;
48093
- var cancelingAxis = activeAxis.current || currentAxis;
48094
- return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
48095
- }, []);
48096
- var shouldPrevent = m.useCallback(function(_event) {
48097
- var event = _event;
48098
- if (!lockStack$1.length || lockStack$1[lockStack$1.length - 1] !== Style) return;
48099
- var delta = "deltaY" in event ? getDeltaXY$1(event) : getTouchXY$1(event);
48100
- var sourceEvent = shouldPreventQueue.current.filter(function(e) {
48101
- return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare$1(e.delta, delta);
48102
- })[0];
48103
- if (sourceEvent && sourceEvent.should) {
48104
- if (event.cancelable) event.preventDefault();
48105
- return;
48106
- }
48107
- if (!sourceEvent) {
48108
- var shardNodes = (lastProps.current.shards || []).map(extractRef$1).filter(Boolean).filter(function(node) {
48109
- return node.contains(event.target);
48110
- });
48111
- if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
48112
- if (event.cancelable) event.preventDefault();
48113
- }
48114
- }
48115
- }, []);
48116
- var shouldCancel = m.useCallback(function(name, delta, target, should) {
48117
- var event = {
48118
- name,
48119
- delta,
48120
- target,
48121
- should,
48122
- shadowParent: getOutermostShadowParent$1(target)
48123
- };
48124
- shouldPreventQueue.current.push(event);
48125
- setTimeout(function() {
48126
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
48127
- return e !== event;
48128
- });
48129
- }, 1);
48130
- }, []);
48131
- var scrollTouchStart = m.useCallback(function(event) {
48132
- touchStartRef.current = getTouchXY$1(event);
48133
- activeAxis.current = void 0;
48134
- }, []);
48135
- var scrollWheel = m.useCallback(function(event) {
48136
- shouldCancel(event.type, getDeltaXY$1(event), event.target, shouldCancelEvent(event, props.lockRef.current));
48137
- }, []);
48138
- var scrollTouchMove = m.useCallback(function(event) {
48139
- shouldCancel(event.type, getTouchXY$1(event), event.target, shouldCancelEvent(event, props.lockRef.current));
48140
- }, []);
48141
- m.useEffect(function() {
48142
- lockStack$1.push(Style);
48143
- props.setCallbacks({
48144
- onScrollCapture: scrollWheel,
48145
- onWheelCapture: scrollWheel,
48146
- onTouchMoveCapture: scrollTouchMove
48147
- });
48148
- document.addEventListener("wheel", shouldPrevent, nonPassive$1);
48149
- document.addEventListener("touchmove", shouldPrevent, nonPassive$1);
48150
- document.addEventListener("touchstart", scrollTouchStart, nonPassive$1);
48151
- return function() {
48152
- lockStack$1 = lockStack$1.filter(function(inst) {
48153
- return inst !== Style;
48154
- });
48155
- document.removeEventListener("wheel", shouldPrevent, nonPassive$1);
48156
- document.removeEventListener("touchmove", shouldPrevent, nonPassive$1);
48157
- document.removeEventListener("touchstart", scrollTouchStart, nonPassive$1);
48158
- };
48159
- }, []);
48160
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
48161
- return m.createElement(m.Fragment, null, inert ? m.createElement(Style, { styles: generateStyle$1(id) }) : null, removeScrollBar ? m.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
48162
- }
48163
- function getOutermostShadowParent$1(node) {
48164
- var shadowParent = null;
48165
- while (node !== null) {
48166
- if (node instanceof ShadowRoot) {
48167
- shadowParent = node.host;
48168
- node = node.host;
48169
- }
48170
- node = node.parentNode;
48171
- }
48172
- return shadowParent;
48173
- }
48174
- //#endregion
48175
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/sidecar.js
48176
- var sidecar_default$1 = exportSidecar(effectCar$1, RemoveScrollSideCar$1);
48177
- //#endregion
48178
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/Combination.js
48179
- init_tslib_es6();
48180
- var ReactRemoveScroll$1 = m.forwardRef(function(props, ref) {
48181
- return m.createElement(RemoveScroll$1, __assign({}, props, {
48182
- ref,
48183
- sideCar: sidecar_default$1
48184
- }));
48185
- });
48186
- ReactRemoveScroll$1.classNames = RemoveScroll$1.classNames;
48187
- //#endregion
48188
47013
  //#region ../../node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js
48189
47014
  function getVarName(variable) {
48190
47015
  var matches = variable.match(/^var\((.*)\)$/);
@@ -54027,7 +52852,7 @@ function Dialog$1({ children, onClose, open, titleId, dialogRoot }) {
54027
52852
  const handleBackdropClick = useCallback(() => onClose(), [onClose]);
54028
52853
  const themeRootProps = useThemeRootProps();
54029
52854
  const mobile = isMobile$2();
54030
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, open ? createPortal(/* @__PURE__ */ React3.createElement(ReactRemoveScroll$1, { enabled: bodyScrollable }, /* @__PURE__ */ React3.createElement(Box$1, { ...themeRootProps }, /* @__PURE__ */ React3.createElement(Box$1, {
52855
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, open ? createPortal(/* @__PURE__ */ React3.createElement(RemoveScroll, { enabled: bodyScrollable }, /* @__PURE__ */ React3.createElement(Box$1, { ...themeRootProps }, /* @__PURE__ */ React3.createElement(Box$1, {
54031
52856
  ...themeRootProps,
54032
52857
  alignItems: mobile ? "flex-end" : "center",
54033
52858
  "aria-labelledby": titleId,
@@ -59146,7 +57971,7 @@ var initializeKit = tryPromise({
59146
57971
  import("./albedo.module-CRVsyAst.js"),
59147
57972
  import("./freighter.module-BeMgcM-N.js"),
59148
57973
  import("./lobstr.module-DMSUePxW.js"),
59149
- import("./xbull.module-C2cRKGsZ.js"),
57974
+ import("./xbull.module-C-UUZmRx.js"),
59150
57975
  import("./wallet-connect.module-DU9WV6lg.js"),
59151
57976
  import("./types-DO_reoxw.js").then((n) => n.r),
59152
57977
  import("./state-DcAcOoYZ.js")
@@ -93772,29 +92597,29 @@ var usePendingActionReview = () => {
93772
92597
  };
93773
92598
  //#endregion
93774
92599
  //#region ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.mjs
93775
- var __defProp$25 = Object.defineProperty;
93776
- var __name$25 = (target, value) => __defProp$25(target, "name", {
92600
+ var __defProp$22 = Object.defineProperty;
92601
+ var __name$22 = (target, value) => __defProp$22(target, "name", {
93777
92602
  value,
93778
92603
  configurable: true
93779
92604
  });
93780
92605
  var canUseDOM$1 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
93781
92606
  function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
93782
- return /* @__PURE__ */ __name$25(function handleEvent(event) {
92607
+ return /* @__PURE__ */ __name$22(function handleEvent(event) {
93783
92608
  originalEventHandler?.(event);
93784
92609
  if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) return ourEventHandler?.(event);
93785
92610
  }, "handleEvent");
93786
92611
  }
93787
- __name$25(composeEventHandlers, "composeEventHandlers");
92612
+ __name$22(composeEventHandlers, "composeEventHandlers");
93788
92613
  function getOwnerWindow(element) {
93789
92614
  if (!canUseDOM$1) throw new Error("Cannot access window outside of the DOM");
93790
92615
  return element?.ownerDocument?.defaultView ?? window;
93791
92616
  }
93792
- __name$25(getOwnerWindow, "getOwnerWindow");
92617
+ __name$22(getOwnerWindow, "getOwnerWindow");
93793
92618
  function getOwnerDocument(element) {
93794
92619
  if (!canUseDOM$1) throw new Error("Cannot access document outside of the DOM");
93795
92620
  return element?.ownerDocument ?? document;
93796
92621
  }
93797
- __name$25(getOwnerDocument, "getOwnerDocument");
92622
+ __name$22(getOwnerDocument, "getOwnerDocument");
93798
92623
  function getActiveElement(node, activeDescendant = false) {
93799
92624
  const { activeElement } = getOwnerDocument(node);
93800
92625
  if (!activeElement?.nodeName) return null;
@@ -93808,15 +92633,15 @@ function getActiveElement(node, activeDescendant = false) {
93808
92633
  }
93809
92634
  return activeElement;
93810
92635
  }
93811
- __name$25(getActiveElement, "getActiveElement");
92636
+ __name$22(getActiveElement, "getActiveElement");
93812
92637
  function isFrame(element) {
93813
92638
  return element.tagName === "IFRAME";
93814
92639
  }
93815
- __name$25(isFrame, "isFrame");
92640
+ __name$22(isFrame, "isFrame");
93816
92641
  //#endregion
93817
92642
  //#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
93818
- var __defProp$24 = Object.defineProperty;
93819
- var __name$24 = (target, value) => __defProp$24(target, "name", {
92643
+ var __defProp$21 = Object.defineProperty;
92644
+ var __name$21 = (target, value) => __defProp$21(target, "name", {
93820
92645
  value,
93821
92646
  configurable: true
93822
92647
  });
@@ -93824,7 +92649,7 @@ function setRef$1(ref, value) {
93824
92649
  if (typeof ref === "function") return ref(value);
93825
92650
  else if (ref !== null && ref !== void 0) ref.current = value;
93826
92651
  }
93827
- __name$24(setRef$1, "setRef");
92652
+ __name$21(setRef$1, "setRef");
93828
92653
  function composeRefs(...refs) {
93829
92654
  return (node) => {
93830
92655
  let hasCleanup = false;
@@ -93842,15 +92667,15 @@ function composeRefs(...refs) {
93842
92667
  };
93843
92668
  };
93844
92669
  }
93845
- __name$24(composeRefs, "composeRefs");
92670
+ __name$21(composeRefs, "composeRefs");
93846
92671
  function useComposedRefs(...refs) {
93847
92672
  return m.useCallback(composeRefs(...refs), refs);
93848
92673
  }
93849
- __name$24(useComposedRefs, "useComposedRefs");
92674
+ __name$21(useComposedRefs, "useComposedRefs");
93850
92675
  //#endregion
93851
92676
  //#region ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-context/dist/index.mjs
93852
- var __defProp$23 = Object.defineProperty;
93853
- var __name$23 = (target, value) => __defProp$23(target, "name", {
92677
+ var __defProp$20 = Object.defineProperty;
92678
+ var __name$20 = (target, value) => __defProp$20(target, "name", {
93854
92679
  value,
93855
92680
  configurable: true
93856
92681
  });
@@ -93858,7 +92683,7 @@ var __name$23 = (target, value) => __defProp$23(target, "name", {
93858
92683
  function createContext2(rootComponentName, defaultContext) {
93859
92684
  const Context = m.createContext(defaultContext);
93860
92685
  Context.displayName = rootComponentName + "Context";
93861
- const Provider = /* @__PURE__ */ __name$23((props) => {
92686
+ const Provider = /* @__PURE__ */ __name$20((props) => {
93862
92687
  const { children, ...context } = props;
93863
92688
  const value = m.useMemo(() => context, Object.values(context));
93864
92689
  return /* @__PURE__ */ jsx(Context.Provider, {
@@ -93875,10 +92700,10 @@ function createContext2(rootComponentName, defaultContext) {
93875
92700
  if (optional) return void 0;
93876
92701
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
93877
92702
  }
93878
- __name$23(useContext2, "useContext");
92703
+ __name$20(useContext2, "useContext");
93879
92704
  return [Provider, useContext2];
93880
92705
  }
93881
- __name$23(createContext2, "createContext");
92706
+ __name$20(createContext2, "createContext");
93882
92707
  // @__NO_SIDE_EFFECTS__
93883
92708
  function createContextScope(scopeName, createContextScopeDeps = []) {
93884
92709
  let defaultContexts = [];
@@ -93887,7 +92712,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
93887
92712
  BaseContext.displayName = rootComponentName + "Context";
93888
92713
  const index = defaultContexts.length;
93889
92714
  defaultContexts = [...defaultContexts, defaultContext];
93890
- const Provider = /* @__PURE__ */ __name$23((props) => {
92715
+ const Provider = /* @__PURE__ */ __name$20((props) => {
93891
92716
  const { scope, children, ...context } = props;
93892
92717
  const Context = scope?.[scopeName]?.[index] || BaseContext;
93893
92718
  const value = m.useMemo(() => context, Object.values(context));
@@ -93906,15 +92731,15 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
93906
92731
  if (optional) return void 0;
93907
92732
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
93908
92733
  }
93909
- __name$23(useContext2, "useContext");
92734
+ __name$20(useContext2, "useContext");
93910
92735
  return [Provider, useContext2];
93911
92736
  }
93912
- __name$23(createContext3, "createContext");
93913
- const createScope = /* @__PURE__ */ __name$23(() => {
92737
+ __name$20(createContext3, "createContext");
92738
+ const createScope = /* @__PURE__ */ __name$20(() => {
93914
92739
  const scopeContexts = defaultContexts.map((defaultContext) => {
93915
92740
  return m.createContext(defaultContext);
93916
92741
  });
93917
- return /* @__PURE__ */ __name$23(function useScope(scope) {
92742
+ return /* @__PURE__ */ __name$20(function useScope(scope) {
93918
92743
  const contexts = scope?.[scopeName] || scopeContexts;
93919
92744
  return m.useMemo(() => ({ [`__scope${scopeName}`]: {
93920
92745
  ...scope,
@@ -93925,16 +92750,16 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
93925
92750
  createScope.scopeName = scopeName;
93926
92751
  return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
93927
92752
  }
93928
- __name$23(createContextScope, "createContextScope");
92753
+ __name$20(createContextScope, "createContextScope");
93929
92754
  function composeContextScopes(...scopes) {
93930
92755
  const baseScope = scopes[0];
93931
92756
  if (scopes.length === 1) return baseScope;
93932
- const createScope = /* @__PURE__ */ __name$23(() => {
92757
+ const createScope = /* @__PURE__ */ __name$20(() => {
93933
92758
  const scopeHooks = scopes.map((createScope2) => ({
93934
92759
  useScope: createScope2(),
93935
92760
  scopeName: createScope2.scopeName
93936
92761
  }));
93937
- return /* @__PURE__ */ __name$23(function useComposedScopes(overrideScopes) {
92762
+ return /* @__PURE__ */ __name$20(function useComposedScopes(overrideScopes) {
93938
92763
  const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
93939
92764
  const currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
93940
92765
  return {
@@ -93948,464 +92773,27 @@ function composeContextScopes(...scopes) {
93948
92773
  createScope.scopeName = baseScope.scopeName;
93949
92774
  return createScope;
93950
92775
  }
93951
- __name$23(composeContextScopes, "composeContextScopes");
93952
- //#endregion
93953
- //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-slot/dist/index.mjs
93954
- var __defProp$22 = Object.defineProperty;
93955
- var __name$22 = (target, value) => __defProp$22(target, "name", {
93956
- value,
93957
- configurable: true
93958
- });
93959
- // @__NO_SIDE_EFFECTS__
93960
- function createSlot(ownerName) {
93961
- const Slot2 = m.forwardRef((props, forwardedRef) => {
93962
- let { children, ...slotProps } = props;
93963
- let slottableElement = null;
93964
- let hasSlottable = false;
93965
- const newChildren = [];
93966
- if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
93967
- m.Children.forEach(children, (maybeSlottable) => {
93968
- if (isSlottable(maybeSlottable)) {
93969
- hasSlottable = true;
93970
- const slottable = maybeSlottable;
93971
- let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
93972
- if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
93973
- slottableElement = getSlottableElementFromSlottable(slottable, child);
93974
- newChildren.push(slottableElement?.props?.children);
93975
- } else newChildren.push(maybeSlottable);
93976
- });
93977
- if (slottableElement) slottableElement = m.cloneElement(slottableElement, void 0, newChildren);
93978
- else if (!hasSlottable && m.Children.count(children) === 1 && m.isValidElement(children)) slottableElement = children;
93979
- const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
93980
- const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
93981
- if (!slottableElement) {
93982
- if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
93983
- return children;
93984
- }
93985
- const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
93986
- if (slottableElement.type !== m.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
93987
- return m.cloneElement(slottableElement, mergedProps);
93988
- });
93989
- Slot2.displayName = `${ownerName}.Slot`;
93990
- return Slot2;
93991
- }
93992
- __name$22(createSlot, "createSlot");
93993
- var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
93994
- // @__NO_SIDE_EFFECTS__
93995
- function createSlottable(ownerName) {
93996
- const Slottable2 = /* @__PURE__ */ __name$22((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
93997
- Slottable2.displayName = `${ownerName}.Slottable`;
93998
- Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
93999
- return Slottable2;
94000
- }
94001
- __name$22(createSlottable, "createSlottable");
94002
- var getSlottableElementFromSlottable = /* @__PURE__ */ __name$22((slottable, child) => {
94003
- if ("child" in slottable.props) {
94004
- const child2 = slottable.props.child;
94005
- if (!m.isValidElement(child2)) return null;
94006
- return m.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
94007
- }
94008
- return m.isValidElement(child) ? child : null;
94009
- }, "getSlottableElementFromSlottable");
94010
- function mergeProps(slotProps, childProps) {
94011
- const overrideProps = { ...childProps };
94012
- for (const propName in childProps) {
94013
- const slotPropValue = slotProps[propName];
94014
- const childPropValue = childProps[propName];
94015
- if (/^on[A-Z]/.test(propName)) {
94016
- if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
94017
- const result = childPropValue(...args);
94018
- slotPropValue(...args);
94019
- return result;
94020
- };
94021
- else if (slotPropValue) overrideProps[propName] = slotPropValue;
94022
- } else if (propName === "style") overrideProps[propName] = {
94023
- ...slotPropValue,
94024
- ...childPropValue
94025
- };
94026
- else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
94027
- }
94028
- return {
94029
- ...slotProps,
94030
- ...overrideProps
94031
- };
94032
- }
94033
- __name$22(mergeProps, "mergeProps");
94034
- function getElementRef$1(element) {
94035
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
94036
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
94037
- if (mayWarn) return element.ref;
94038
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
94039
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
94040
- if (mayWarn) return element.props.ref;
94041
- return element.props.ref || element.ref;
94042
- }
94043
- __name$22(getElementRef$1, "getElementRef");
94044
- function isSlottable(child) {
94045
- return m.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
94046
- }
94047
- __name$22(isSlottable, "isSlottable");
94048
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
94049
- function isLazyComponent(element) {
94050
- return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
94051
- }
94052
- __name$22(isLazyComponent, "isLazyComponent");
94053
- function isPromiseLike(value) {
94054
- return typeof value === "object" && value !== null && "then" in value;
94055
- }
94056
- __name$22(isPromiseLike, "isPromiseLike");
94057
- var createSlotError = /* @__PURE__ */ __name$22((ownerName) => {
94058
- return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
94059
- }, "createSlotError");
94060
- var createSlottableError = /* @__PURE__ */ __name$22((ownerName) => {
94061
- return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
94062
- }, "createSlottableError");
94063
- var use = m[" use ".trim().toString()];
94064
- //#endregion
94065
- //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+r_89d529a1bae70a6b01b956c8b2bdbce1/node_modules/@radix-ui/react-primitive/dist/index.mjs
94066
- var __defProp$21 = Object.defineProperty;
94067
- var __name$21 = (target, value) => __defProp$21(target, "name", {
94068
- value,
94069
- configurable: true
94070
- });
94071
- var Primitive = [
94072
- "a",
94073
- "button",
94074
- "div",
94075
- "form",
94076
- "h2",
94077
- "h3",
94078
- "img",
94079
- "input",
94080
- "label",
94081
- "li",
94082
- "nav",
94083
- "ol",
94084
- "p",
94085
- "select",
94086
- "span",
94087
- "svg",
94088
- "ul"
94089
- ].reduce((primitive, node) => {
94090
- const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
94091
- const Node = m.forwardRef((props, forwardedRef) => {
94092
- const { asChild, ...primitiveProps } = props;
94093
- const Comp = asChild ? Slot : node;
94094
- if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
94095
- return /* @__PURE__ */ jsx(Comp, {
94096
- ...primitiveProps,
94097
- ref: forwardedRef
94098
- });
94099
- });
94100
- Node.displayName = `Primitive.${node}`;
94101
- return {
94102
- ...primitive,
94103
- [node]: Node
94104
- };
94105
- }, {});
94106
- function dispatchDiscreteCustomEvent(target, event) {
94107
- if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
94108
- }
94109
- __name$21(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
94110
- //#endregion
94111
- //#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
94112
- var __defProp$20 = Object.defineProperty;
94113
- var __name$20 = (target, value) => __defProp$20(target, "name", {
94114
- value,
94115
- configurable: true
94116
- });
94117
- function useCallbackRef(callback) {
94118
- const callbackRef = m.useRef(callback);
94119
- m.useEffect(() => {
94120
- callbackRef.current = callback;
94121
- });
94122
- return m.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
94123
- }
94124
- __name$20(useCallbackRef, "useCallbackRef");
94125
- //#endregion
94126
- //#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.19_@types+react-dom@19.2.4_@types+react@19.2.18___40e495cae3a960f65f80435c18b02650/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
94127
- var __defProp$19 = Object.defineProperty;
94128
- var __name$19 = (target, value) => __defProp$19(target, "name", {
94129
- value,
94130
- configurable: true
94131
- });
94132
- var CONTEXT_UPDATE = "dismissableLayer.update";
94133
- var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
94134
- var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
94135
- var originalBodyPointerEvents;
94136
- var DismissableLayerContext = m.createContext({
94137
- layers: /* @__PURE__ */ new Set(),
94138
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
94139
- branches: /* @__PURE__ */ new Set(),
94140
- dismissableSurfaces: /* @__PURE__ */ new Set()
94141
- });
94142
- var DismissableLayer = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$19(function DismissableLayer2(props, forwardedRef) {
94143
- const { disableOutsidePointerEvents = false, deferPointerDownOutside = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
94144
- const context = m.useContext(DismissableLayerContext);
94145
- const [node, setNode] = m.useState(null);
94146
- const ownerDocument = node?.ownerDocument ?? globalThis?.document;
94147
- const [, force] = m.useState({});
94148
- const composedRefs = useComposedRefs(forwardedRef, setNode);
94149
- const layers = Array.from(context.layers);
94150
- const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
94151
- const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;
94152
- const index = node ? layers.indexOf(node) : -1;
94153
- const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
94154
- const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
94155
- const isDeferredPointerDownOutsideRef = m.useRef(false);
94156
- const pointerDownOutside = usePointerDownOutside((event) => {
94157
- onPointerDownOutside?.(event);
94158
- onInteractOutside?.(event);
94159
- if (!event.defaultPrevented) onDismiss?.();
94160
- }, {
94161
- ownerDocument,
94162
- deferPointerDownOutside,
94163
- isDeferredPointerDownOutsideRef,
94164
- dismissableSurfaces: context.dismissableSurfaces,
94165
- shouldHandlePointerDownOutside: m.useCallback((target) => {
94166
- if (!(target instanceof Node)) return false;
94167
- const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
94168
- return isPointerEventsEnabled && !isPointerDownOnBranch;
94169
- }, [context.branches, isPointerEventsEnabled])
94170
- });
94171
- const focusOutside = useFocusOutside((event) => {
94172
- if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) return;
94173
- const target = event.target;
94174
- if ([...context.branches].some((branch) => branch.contains(target))) return;
94175
- onFocusOutside?.(event);
94176
- onInteractOutside?.(event);
94177
- if (!event.defaultPrevented) onDismiss?.();
94178
- }, ownerDocument);
94179
- const isHighestLayer = node ? index === layers.length - 1 : false;
94180
- const handleKeyDown = useCallbackRef((event) => {
94181
- if (event.key !== "Escape") return;
94182
- onEscapeKeyDown?.(event);
94183
- if (!event.defaultPrevented && onDismiss) {
94184
- event.preventDefault();
94185
- onDismiss();
94186
- }
94187
- });
94188
- m.useEffect(() => {
94189
- if (!isHighestLayer) return;
94190
- ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
94191
- return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
94192
- }, [
94193
- ownerDocument,
94194
- isHighestLayer,
94195
- handleKeyDown
94196
- ]);
94197
- m.useEffect(() => {
94198
- if (!node) return;
94199
- if (disableOutsidePointerEvents) {
94200
- if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
94201
- originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
94202
- ownerDocument.body.style.pointerEvents = "none";
94203
- }
94204
- context.layersWithOutsidePointerEventsDisabled.add(node);
94205
- }
94206
- context.layers.add(node);
94207
- dispatchUpdate();
94208
- return () => {
94209
- if (disableOutsidePointerEvents) {
94210
- context.layersWithOutsidePointerEventsDisabled.delete(node);
94211
- if (context.layersWithOutsidePointerEventsDisabled.size === 0) ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
94212
- }
94213
- };
94214
- }, [
94215
- node,
94216
- ownerDocument,
94217
- disableOutsidePointerEvents,
94218
- context
94219
- ]);
94220
- m.useEffect(() => {
94221
- return () => {
94222
- if (!node) return;
94223
- context.layers.delete(node);
94224
- context.layersWithOutsidePointerEventsDisabled.delete(node);
94225
- dispatchUpdate();
94226
- };
94227
- }, [node, context]);
94228
- m.useEffect(() => {
94229
- const handleUpdate = /* @__PURE__ */ __name$19(() => force({}), "handleUpdate");
94230
- document.addEventListener(CONTEXT_UPDATE, handleUpdate);
94231
- return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
94232
- }, []);
94233
- return /* @__PURE__ */ jsx(Primitive.div, {
94234
- ...layerProps,
94235
- ref: composedRefs,
94236
- style: {
94237
- pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
94238
- ...props.style
94239
- },
94240
- onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
94241
- onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
94242
- onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
94243
- });
94244
- }, "DismissableLayer"));
94245
- function useDismissableLayerSurface() {
94246
- const context = m.useContext(DismissableLayerContext);
94247
- const [node, setNode] = m.useState(null);
94248
- m.useEffect(() => {
94249
- if (!node) return;
94250
- context.dismissableSurfaces.add(node);
94251
- return () => {
94252
- context.dismissableSurfaces.delete(node);
94253
- };
94254
- }, [node, context.dismissableSurfaces]);
94255
- return setNode;
94256
- }
94257
- __name$19(useDismissableLayerSurface, "useDismissableLayerSurface");
94258
- var IS_TRUE = /* @__PURE__ */ __name$19(() => true, "IS_TRUE");
94259
- function usePointerDownOutside(onPointerDownOutside, args) {
94260
- const { ownerDocument = globalThis?.document, deferPointerDownOutside = false, isDeferredPointerDownOutsideRef, dismissableSurfaces, shouldHandlePointerDownOutside = IS_TRUE } = args;
94261
- const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
94262
- const isPointerInsideReactTreeRef = m.useRef(false);
94263
- const isPointerDownOutsideRef = m.useRef(false);
94264
- const interceptedOutsideInteractionEventsRef = m.useRef(/* @__PURE__ */ new Map());
94265
- const handleClickRef = m.useRef(() => {});
94266
- m.useEffect(() => {
94267
- function resetOutsideInteraction() {
94268
- isPointerDownOutsideRef.current = false;
94269
- isDeferredPointerDownOutsideRef.current = false;
94270
- interceptedOutsideInteractionEventsRef.current.clear();
94271
- }
94272
- __name$19(resetOutsideInteraction, "resetOutsideInteraction");
94273
- function isOutsideInteractionIntercepted() {
94274
- return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);
94275
- }
94276
- __name$19(isOutsideInteractionIntercepted, "isOutsideInteractionIntercepted");
94277
- function handleInteractionCapture(event) {
94278
- if (!isPointerDownOutsideRef.current) return;
94279
- const target = event.target;
94280
- if (!(target instanceof Node && [...dismissableSurfaces].some((surface) => surface.contains(target)))) interceptedOutsideInteractionEventsRef.current.set(event.type, true);
94281
- if (event.type === "click") window.setTimeout(() => {
94282
- if (isPointerDownOutsideRef.current) handleClickRef.current();
94283
- }, 0);
94284
- }
94285
- __name$19(handleInteractionCapture, "handleInteractionCapture");
94286
- function handleInteractionBubble(event) {
94287
- if (isPointerDownOutsideRef.current) interceptedOutsideInteractionEventsRef.current.set(event.type, false);
94288
- }
94289
- __name$19(handleInteractionBubble, "handleInteractionBubble");
94290
- const handlePointerDown = /* @__PURE__ */ __name$19((event) => {
94291
- if (event.target && !isPointerInsideReactTreeRef.current) {
94292
- let handleAndDispatchPointerDownOutsideEvent2 = function() {
94293
- ownerDocument.removeEventListener("click", handleClickRef.current);
94294
- const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();
94295
- resetOutsideInteraction();
94296
- if (!wasOutsideInteractionIntercepted) handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, { discrete: true });
94297
- };
94298
- __name$19(handleAndDispatchPointerDownOutsideEvent2, "handleAndDispatchPointerDownOutsideEvent");
94299
- if (!shouldHandlePointerDownOutside(event.target)) {
94300
- ownerDocument.removeEventListener("click", handleClickRef.current);
94301
- resetOutsideInteraction();
94302
- isPointerInsideReactTreeRef.current = false;
94303
- return;
94304
- }
94305
- const eventDetail = { originalEvent: event };
94306
- isPointerDownOutsideRef.current = true;
94307
- isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;
94308
- interceptedOutsideInteractionEventsRef.current.clear();
94309
- if (!deferPointerDownOutside || event.button !== 0) handleAndDispatchPointerDownOutsideEvent2();
94310
- else {
94311
- ownerDocument.removeEventListener("click", handleClickRef.current);
94312
- handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
94313
- ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
94314
- }
94315
- } else {
94316
- ownerDocument.removeEventListener("click", handleClickRef.current);
94317
- resetOutsideInteraction();
94318
- }
94319
- isPointerInsideReactTreeRef.current = false;
94320
- }, "handlePointerDown");
94321
- const outsideInteractionEvents = [
94322
- "pointerup",
94323
- "mousedown",
94324
- "mouseup",
94325
- "touchstart",
94326
- "touchend",
94327
- "click"
94328
- ];
94329
- for (const eventName of outsideInteractionEvents) {
94330
- ownerDocument.addEventListener(eventName, handleInteractionCapture, true);
94331
- ownerDocument.addEventListener(eventName, handleInteractionBubble);
94332
- }
94333
- const timerId = window.setTimeout(() => {
94334
- ownerDocument.addEventListener("pointerdown", handlePointerDown);
94335
- }, 0);
94336
- return () => {
94337
- window.clearTimeout(timerId);
94338
- ownerDocument.removeEventListener("pointerdown", handlePointerDown);
94339
- ownerDocument.removeEventListener("click", handleClickRef.current);
94340
- for (const eventName of outsideInteractionEvents) {
94341
- ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);
94342
- ownerDocument.removeEventListener(eventName, handleInteractionBubble);
94343
- }
94344
- };
94345
- }, [
94346
- ownerDocument,
94347
- handlePointerDownOutside,
94348
- deferPointerDownOutside,
94349
- isDeferredPointerDownOutsideRef,
94350
- dismissableSurfaces,
94351
- shouldHandlePointerDownOutside
94352
- ]);
94353
- return { onPointerDownCapture: /* @__PURE__ */ __name$19(() => isPointerInsideReactTreeRef.current = true, "onPointerDownCapture") };
94354
- }
94355
- __name$19(usePointerDownOutside, "usePointerDownOutside");
94356
- function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
94357
- const handleFocusOutside = useCallbackRef(onFocusOutside);
94358
- const isFocusInsideReactTreeRef = m.useRef(false);
94359
- m.useEffect(() => {
94360
- const handleFocus = /* @__PURE__ */ __name$19((event) => {
94361
- if (event.target && !isFocusInsideReactTreeRef.current) handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, { originalEvent: event }, { discrete: false });
94362
- }, "handleFocus");
94363
- ownerDocument.addEventListener("focusin", handleFocus);
94364
- return () => ownerDocument.removeEventListener("focusin", handleFocus);
94365
- }, [ownerDocument, handleFocusOutside]);
94366
- return {
94367
- onFocusCapture: /* @__PURE__ */ __name$19(() => isFocusInsideReactTreeRef.current = true, "onFocusCapture"),
94368
- onBlurCapture: /* @__PURE__ */ __name$19(() => isFocusInsideReactTreeRef.current = false, "onBlurCapture")
94369
- };
94370
- }
94371
- __name$19(useFocusOutside, "useFocusOutside");
94372
- function dispatchUpdate() {
94373
- const event = new CustomEvent(CONTEXT_UPDATE);
94374
- document.dispatchEvent(event);
94375
- }
94376
- __name$19(dispatchUpdate, "dispatchUpdate");
94377
- function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
94378
- const target = detail.originalEvent.target;
94379
- const event = new CustomEvent(name, {
94380
- bubbles: false,
94381
- cancelable: true,
94382
- detail
94383
- });
94384
- if (handler) target.addEventListener(name, handler, { once: true });
94385
- if (discrete) dispatchDiscreteCustomEvent(target, event);
94386
- else target.dispatchEvent(event);
94387
- }
94388
- __name$19(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
92776
+ __name$20(composeContextScopes, "composeContextScopes");
94389
92777
  //#endregion
94390
92778
  //#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
94391
92779
  var useLayoutEffect2 = globalThis?.document ? m.useLayoutEffect : () => {};
94392
92780
  //#endregion
94393
92781
  //#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-id/dist/index.mjs
94394
- var __defProp$18 = Object.defineProperty;
94395
- var __name$18 = (target, value) => __defProp$18(target, "name", {
92782
+ var __defProp$19 = Object.defineProperty;
92783
+ var __name$19 = (target, value) => __defProp$19(target, "name", {
94396
92784
  value,
94397
92785
  configurable: true
94398
92786
  });
94399
92787
  var useReactId = m[" useId ".trim().toString()] || (() => void 0);
94400
- var count$1 = 0;
92788
+ var count = 0;
94401
92789
  function useId$2(deterministicId) {
94402
92790
  const [id, setId] = m.useState(useReactId());
94403
92791
  useLayoutEffect2(() => {
94404
- if (!deterministicId) setId((reactId) => reactId ?? String(count$1++));
92792
+ if (!deterministicId) setId((reactId) => reactId ?? String(count++));
94405
92793
  }, [deterministicId]);
94406
92794
  return deterministicId || (id ? `radix-${id}` : "");
94407
92795
  }
94408
- __name$18(useId$2, "useId");
92796
+ __name$19(useId$2, "useId");
94409
92797
  //#endregion
94410
92798
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
94411
92799
  /**
@@ -96038,13 +94426,171 @@ var arrow = (options, deps) => {
96038
94426
  };
96039
94427
  };
96040
94428
  //#endregion
96041
- //#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.15_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react_6577d6e6e2d46022fd9b70c70126e397/node_modules/@radix-ui/react-arrow/dist/index.mjs
94429
+ //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-slot/dist/index.mjs
94430
+ var __defProp$18 = Object.defineProperty;
94431
+ var __name$18 = (target, value) => __defProp$18(target, "name", {
94432
+ value,
94433
+ configurable: true
94434
+ });
94435
+ // @__NO_SIDE_EFFECTS__
94436
+ function createSlot(ownerName) {
94437
+ const Slot2 = m.forwardRef((props, forwardedRef) => {
94438
+ let { children, ...slotProps } = props;
94439
+ let slottableElement = null;
94440
+ let hasSlottable = false;
94441
+ const newChildren = [];
94442
+ if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
94443
+ m.Children.forEach(children, (maybeSlottable) => {
94444
+ if (isSlottable(maybeSlottable)) {
94445
+ hasSlottable = true;
94446
+ const slottable = maybeSlottable;
94447
+ let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
94448
+ if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
94449
+ slottableElement = getSlottableElementFromSlottable(slottable, child);
94450
+ newChildren.push(slottableElement?.props?.children);
94451
+ } else newChildren.push(maybeSlottable);
94452
+ });
94453
+ if (slottableElement) slottableElement = m.cloneElement(slottableElement, void 0, newChildren);
94454
+ else if (!hasSlottable && m.Children.count(children) === 1 && m.isValidElement(children)) slottableElement = children;
94455
+ const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
94456
+ const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
94457
+ if (!slottableElement) {
94458
+ if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
94459
+ return children;
94460
+ }
94461
+ const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
94462
+ if (slottableElement.type !== m.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
94463
+ return m.cloneElement(slottableElement, mergedProps);
94464
+ });
94465
+ Slot2.displayName = `${ownerName}.Slot`;
94466
+ return Slot2;
94467
+ }
94468
+ __name$18(createSlot, "createSlot");
94469
+ var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
94470
+ // @__NO_SIDE_EFFECTS__
94471
+ function createSlottable(ownerName) {
94472
+ const Slottable2 = /* @__PURE__ */ __name$18((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
94473
+ Slottable2.displayName = `${ownerName}.Slottable`;
94474
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
94475
+ return Slottable2;
94476
+ }
94477
+ __name$18(createSlottable, "createSlottable");
94478
+ var getSlottableElementFromSlottable = /* @__PURE__ */ __name$18((slottable, child) => {
94479
+ if ("child" in slottable.props) {
94480
+ const child2 = slottable.props.child;
94481
+ if (!m.isValidElement(child2)) return null;
94482
+ return m.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
94483
+ }
94484
+ return m.isValidElement(child) ? child : null;
94485
+ }, "getSlottableElementFromSlottable");
94486
+ function mergeProps(slotProps, childProps) {
94487
+ const overrideProps = { ...childProps };
94488
+ for (const propName in childProps) {
94489
+ const slotPropValue = slotProps[propName];
94490
+ const childPropValue = childProps[propName];
94491
+ if (/^on[A-Z]/.test(propName)) {
94492
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
94493
+ const result = childPropValue(...args);
94494
+ slotPropValue(...args);
94495
+ return result;
94496
+ };
94497
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
94498
+ } else if (propName === "style") overrideProps[propName] = {
94499
+ ...slotPropValue,
94500
+ ...childPropValue
94501
+ };
94502
+ else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
94503
+ }
94504
+ return {
94505
+ ...slotProps,
94506
+ ...overrideProps
94507
+ };
94508
+ }
94509
+ __name$18(mergeProps, "mergeProps");
94510
+ function getElementRef$1(element) {
94511
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
94512
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
94513
+ if (mayWarn) return element.ref;
94514
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
94515
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
94516
+ if (mayWarn) return element.props.ref;
94517
+ return element.props.ref || element.ref;
94518
+ }
94519
+ __name$18(getElementRef$1, "getElementRef");
94520
+ function isSlottable(child) {
94521
+ return m.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
94522
+ }
94523
+ __name$18(isSlottable, "isSlottable");
94524
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
94525
+ function isLazyComponent(element) {
94526
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
94527
+ }
94528
+ __name$18(isLazyComponent, "isLazyComponent");
94529
+ function isPromiseLike(value) {
94530
+ return typeof value === "object" && value !== null && "then" in value;
94531
+ }
94532
+ __name$18(isPromiseLike, "isPromiseLike");
94533
+ var createSlotError = /* @__PURE__ */ __name$18((ownerName) => {
94534
+ return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
94535
+ }, "createSlotError");
94536
+ var createSlottableError = /* @__PURE__ */ __name$18((ownerName) => {
94537
+ return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
94538
+ }, "createSlottableError");
94539
+ var use = m[" use ".trim().toString()];
94540
+ //#endregion
94541
+ //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+r_89d529a1bae70a6b01b956c8b2bdbce1/node_modules/@radix-ui/react-primitive/dist/index.mjs
96042
94542
  var __defProp$17 = Object.defineProperty;
96043
94543
  var __name$17 = (target, value) => __defProp$17(target, "name", {
96044
94544
  value,
96045
94545
  configurable: true
96046
94546
  });
96047
- var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$17(function Arrow2(props, forwardedRef) {
94547
+ var Primitive = [
94548
+ "a",
94549
+ "button",
94550
+ "div",
94551
+ "form",
94552
+ "h2",
94553
+ "h3",
94554
+ "img",
94555
+ "input",
94556
+ "label",
94557
+ "li",
94558
+ "nav",
94559
+ "ol",
94560
+ "p",
94561
+ "select",
94562
+ "span",
94563
+ "svg",
94564
+ "ul"
94565
+ ].reduce((primitive, node) => {
94566
+ const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
94567
+ const Node = m.forwardRef((props, forwardedRef) => {
94568
+ const { asChild, ...primitiveProps } = props;
94569
+ const Comp = asChild ? Slot : node;
94570
+ if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
94571
+ return /* @__PURE__ */ jsx(Comp, {
94572
+ ...primitiveProps,
94573
+ ref: forwardedRef
94574
+ });
94575
+ });
94576
+ Node.displayName = `Primitive.${node}`;
94577
+ return {
94578
+ ...primitive,
94579
+ [node]: Node
94580
+ };
94581
+ }, {});
94582
+ function dispatchDiscreteCustomEvent(target, event) {
94583
+ if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
94584
+ }
94585
+ __name$17(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
94586
+ //#endregion
94587
+ //#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.15_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react_6577d6e6e2d46022fd9b70c70126e397/node_modules/@radix-ui/react-arrow/dist/index.mjs
94588
+ var __defProp$16 = Object.defineProperty;
94589
+ var __name$16 = (target, value) => __defProp$16(target, "name", {
94590
+ value,
94591
+ configurable: true
94592
+ });
94593
+ var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$16(function Arrow2(props, forwardedRef) {
96048
94594
  const { children, width = 10, height = 5, ...arrowProps } = props;
96049
94595
  return /* @__PURE__ */ jsx(Primitive.svg, {
96050
94596
  ...arrowProps,
@@ -96057,9 +94603,24 @@ var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$17(function Arr
96057
94603
  });
96058
94604
  }, "Arrow"));
96059
94605
  //#endregion
94606
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
94607
+ var __defProp$15 = Object.defineProperty;
94608
+ var __name$15 = (target, value) => __defProp$15(target, "name", {
94609
+ value,
94610
+ configurable: true
94611
+ });
94612
+ function useCallbackRef(callback) {
94613
+ const callbackRef = m.useRef(callback);
94614
+ m.useEffect(() => {
94615
+ callbackRef.current = callback;
94616
+ });
94617
+ return m.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
94618
+ }
94619
+ __name$15(useCallbackRef, "useCallbackRef");
94620
+ //#endregion
96060
94621
  //#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-size/dist/index.mjs
96061
- var __defProp$16 = Object.defineProperty;
96062
- var __name$16 = (target, value) => __defProp$16(target, "name", {
94622
+ var __defProp$14 = Object.defineProperty;
94623
+ var __name$14 = (target, value) => __defProp$14(target, "name", {
96063
94624
  value,
96064
94625
  configurable: true
96065
94626
  });
@@ -96097,18 +94658,18 @@ function useSize(element) {
96097
94658
  }, [element]);
96098
94659
  return size;
96099
94660
  }
96100
- __name$16(useSize, "useSize");
94661
+ __name$14(useSize, "useSize");
96101
94662
  //#endregion
96102
94663
  //#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.3.7_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react_f6861641c26545c70c318e31f73f8643/node_modules/@radix-ui/react-popper/dist/index.mjs
96103
- var __defProp$15 = Object.defineProperty;
96104
- var __name$15 = (target, value) => __defProp$15(target, "name", {
94664
+ var __defProp$13 = Object.defineProperty;
94665
+ var __name$13 = (target, value) => __defProp$13(target, "name", {
96105
94666
  value,
96106
94667
  configurable: true
96107
94668
  });
96108
94669
  var POPPER_NAME = "Popper";
96109
94670
  var [createPopperContext, createPopperScope] = /* @__PURE__ */ createContextScope(POPPER_NAME);
96110
94671
  var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
96111
- var Popper = /* @__PURE__ */ __name$15((props) => {
94672
+ var Popper = /* @__PURE__ */ __name$13((props) => {
96112
94673
  const { __scopePopper, children } = props;
96113
94674
  const [anchor, setAnchor] = m.useState(null);
96114
94675
  const [placementState, setPlacementState] = m.useState(void 0);
@@ -96122,7 +94683,7 @@ var Popper = /* @__PURE__ */ __name$15((props) => {
96122
94683
  });
96123
94684
  }, "Popper");
96124
94685
  var ANCHOR_NAME = "PopperAnchor";
96125
- var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(function PopperAnchor2(props, forwardedRef) {
94686
+ var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperAnchor2(props, forwardedRef) {
96126
94687
  const { __scopePopper, virtualRef, ...anchorProps } = props;
96127
94688
  const context = usePopperContext(ANCHOR_NAME, __scopePopper);
96128
94689
  const ref = m.useRef(null);
@@ -96150,7 +94711,7 @@ var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(functi
96150
94711
  }, "PopperAnchor"));
96151
94712
  var CONTENT_NAME$4 = "PopperContent";
96152
94713
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$4);
96153
- var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(function PopperContent2(props, forwardedRef) {
94714
+ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperContent2(props, forwardedRef) {
96154
94715
  const { __scopePopper, side = "bottom", sideOffset = 0, align = "center", alignOffset = 0, arrowPadding = 0, avoidCollisions = true, collisionBoundary = [], collisionPadding: collisionPaddingProp = 0, sticky = "partial", hideWhenDetached = false, updatePositionStrategy = "optimized", onPlaced, ...contentProps } = props;
96155
94716
  const context = usePopperContext(CONTENT_NAME$4, __scopePopper);
96156
94717
  const [content, setContent] = m.useState(null);
@@ -96177,7 +94738,7 @@ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(funct
96177
94738
  const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
96178
94739
  strategy: "fixed",
96179
94740
  placement: desiredPlacement,
96180
- whileElementsMounted: /* @__PURE__ */ __name$15((...args) => {
94741
+ whileElementsMounted: /* @__PURE__ */ __name$13((...args) => {
96181
94742
  return autoUpdate(...args, { animationFrame: updatePositionStrategy === "always" });
96182
94743
  }, "whileElementsMounted"),
96183
94744
  elements: { reference: context.anchor },
@@ -96195,7 +94756,7 @@ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(funct
96195
94756
  avoidCollisions && flip({ ...detectOverflowOptions }),
96196
94757
  size({
96197
94758
  ...detectOverflowOptions,
96198
- apply: /* @__PURE__ */ __name$15(({ elements, rects, availableWidth, availableHeight }) => {
94759
+ apply: /* @__PURE__ */ __name$13(({ elements, rects, availableWidth, availableHeight }) => {
96199
94760
  const { width: anchorWidth, height: anchorHeight } = rects.reference;
96200
94761
  const contentStyle = elements.floating.style;
96201
94762
  contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
@@ -96281,7 +94842,7 @@ var OPPOSITE_SIDE = {
96281
94842
  bottom: "top",
96282
94843
  left: "right"
96283
94844
  };
96284
- var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(function PopperArrow2(props, forwardedRef) {
94845
+ var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperArrow2(props, forwardedRef) {
96285
94846
  const { __scopePopper, ...arrowProps } = props;
96286
94847
  const contentContext = useContentContext(ARROW_NAME, __scopePopper);
96287
94848
  const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
@@ -96319,8 +94880,8 @@ var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(functio
96319
94880
  function isNotNull(value) {
96320
94881
  return value !== null;
96321
94882
  }
96322
- __name$15(isNotNull, "isNotNull");
96323
- var transformOrigin = /* @__PURE__ */ __name$15((options) => ({
94883
+ __name$13(isNotNull, "isNotNull");
94884
+ var transformOrigin = /* @__PURE__ */ __name$13((options) => ({
96324
94885
  name: "transformOrigin",
96325
94886
  options,
96326
94887
  fn(data) {
@@ -96361,19 +94922,19 @@ function getSideAndAlignFromPlacement(placement) {
96361
94922
  const [side, align = "center"] = placement.split("-");
96362
94923
  return [side, align];
96363
94924
  }
96364
- __name$15(getSideAndAlignFromPlacement, "getSideAndAlignFromPlacement");
94925
+ __name$13(getSideAndAlignFromPlacement, "getSideAndAlignFromPlacement");
96365
94926
  var Root2$1 = Popper;
96366
94927
  var Anchor = PopperAnchor;
96367
94928
  var Content = PopperContent;
96368
94929
  var Arrow = PopperArrow;
96369
94930
  //#endregion
96370
94931
  //#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.17_@types+react-dom@19.2.4_@types+react@19.2.18__@types+reac_7d49bbd59f67da7ea06e84940374bb40/node_modules/@radix-ui/react-portal/dist/index.mjs
96371
- var __defProp$14 = Object.defineProperty;
96372
- var __name$14 = (target, value) => __defProp$14(target, "name", {
94932
+ var __defProp$12 = Object.defineProperty;
94933
+ var __name$12 = (target, value) => __defProp$12(target, "name", {
96373
94934
  value,
96374
94935
  configurable: true
96375
94936
  });
96376
- var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$14(function Portal2(props, forwardedRef) {
94937
+ var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$12(function Portal2(props, forwardedRef) {
96377
94938
  const { container: containerProp, ...portalProps } = props;
96378
94939
  const [mounted, setMounted] = m.useState(false);
96379
94940
  useLayoutEffect2(() => setMounted(true), []);
@@ -96385,8 +94946,8 @@ var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$14(function P
96385
94946
  }, "Portal"));
96386
94947
  //#endregion
96387
94948
  //#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+re_c16522d094fa2977c5a9a5cd628ab890/node_modules/@radix-ui/react-presence/dist/index.mjs
96388
- var __defProp$13 = Object.defineProperty;
96389
- var __name$13 = (target, value) => __defProp$13(target, "name", {
94949
+ var __defProp$11 = Object.defineProperty;
94950
+ var __name$11 = (target, value) => __defProp$11(target, "name", {
96390
94951
  value,
96391
94952
  configurable: true
96392
94953
  });
@@ -96395,8 +94956,8 @@ function useStateMachine(initialState, machine) {
96395
94956
  return machine[state][event] ?? state;
96396
94957
  }, initialState);
96397
94958
  }
96398
- __name$13(useStateMachine, "useStateMachine");
96399
- var Presence = /* @__PURE__ */ __name$13((props) => {
94959
+ __name$11(useStateMachine, "useStateMachine");
94960
+ var Presence = /* @__PURE__ */ __name$11((props) => {
96400
94961
  const { present, children } = props;
96401
94962
  const presence = usePresence(present);
96402
94963
  const child = typeof children === "function" ? children({ present: presence.isPresent }) : m.Children.only(children);
@@ -96445,7 +95006,7 @@ function usePresence(present) {
96445
95006
  if (node) {
96446
95007
  let timeoutId;
96447
95008
  const ownerWindow = node.ownerDocument.defaultView ?? window;
96448
- const handleAnimationEnd = /* @__PURE__ */ __name$13((event) => {
95009
+ const handleAnimationEnd = /* @__PURE__ */ __name$11((event) => {
96449
95010
  const isCurrentAnimation = getAnimationName(stylesRef.current).includes(CSS.escape(event.animationName));
96450
95011
  if (event.target === node && isCurrentAnimation) {
96451
95012
  send("ANIMATION_END");
@@ -96458,7 +95019,7 @@ function usePresence(present) {
96458
95019
  }
96459
95020
  }
96460
95021
  }, "handleAnimationEnd");
96461
- const handleAnimationStart = /* @__PURE__ */ __name$13((event) => {
95022
+ const handleAnimationStart = /* @__PURE__ */ __name$11((event) => {
96462
95023
  if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
96463
95024
  }, "handleAnimationStart");
96464
95025
  node.addEventListener("animationstart", handleAnimationStart);
@@ -96484,12 +95045,12 @@ function usePresence(present) {
96484
95045
  }, [])
96485
95046
  };
96486
95047
  }
96487
- __name$13(usePresence, "usePresence");
95048
+ __name$11(usePresence, "usePresence");
96488
95049
  function setRef(ref, value) {
96489
95050
  if (typeof ref === "function") return ref(value);
96490
95051
  else if (ref !== null && ref !== void 0) ref.current = value;
96491
95052
  }
96492
- __name$13(setRef, "setRef");
95053
+ __name$11(setRef, "setRef");
96493
95054
  function useStableComposedRefs(...refs) {
96494
95055
  const refsRef = m.useRef(refs);
96495
95056
  refsRef.current = refs;
@@ -96510,11 +95071,11 @@ function useStableComposedRefs(...refs) {
96510
95071
  };
96511
95072
  }, []);
96512
95073
  }
96513
- __name$13(useStableComposedRefs, "useStableComposedRefs");
95074
+ __name$11(useStableComposedRefs, "useStableComposedRefs");
96514
95075
  function getAnimationName(styles) {
96515
95076
  return styles?.animationName || "none";
96516
95077
  }
96517
- __name$13(getAnimationName, "getAnimationName");
95078
+ __name$11(getAnimationName, "getAnimationName");
96518
95079
  function getElementRef(element) {
96519
95080
  let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
96520
95081
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
@@ -96524,11 +95085,11 @@ function getElementRef(element) {
96524
95085
  if (mayWarn) return element.props.ref;
96525
95086
  return element.props.ref || element.ref;
96526
95087
  }
96527
- __name$13(getElementRef, "getElementRef");
95088
+ __name$11(getElementRef, "getElementRef");
96528
95089
  //#endregion
96529
95090
  //#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
96530
- var __defProp$12 = Object.defineProperty;
96531
- var __name$12 = (target, value) => __defProp$12(target, "name", {
95091
+ var __defProp$10 = Object.defineProperty;
95092
+ var __name$10 = (target, value) => __defProp$10(target, "name", {
96532
95093
  value,
96533
95094
  configurable: true
96534
95095
  });
@@ -96547,16 +95108,16 @@ function useEffectEvent$1(callback) {
96547
95108
  });
96548
95109
  return m.useMemo(() => ((...args) => ref.current?.(...args)), []);
96549
95110
  }
96550
- __name$12(useEffectEvent$1, "useEffectEvent");
95111
+ __name$10(useEffectEvent$1, "useEffectEvent");
96551
95112
  //#endregion
96552
95113
  //#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
96553
- var __defProp$11 = Object.defineProperty;
96554
- var __name$11 = (target, value) => __defProp$11(target, "name", {
95114
+ var __defProp$9 = Object.defineProperty;
95115
+ var __name$9 = (target, value) => __defProp$9(target, "name", {
96555
95116
  value,
96556
95117
  configurable: true
96557
95118
  });
96558
95119
  var useInsertionEffect$1 = m[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
96559
- function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$11(() => {}, "onChange"), caller }) {
95120
+ function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$9(() => {}, "onChange"), caller }) {
96560
95121
  const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
96561
95122
  defaultProp,
96562
95123
  onChange
@@ -96574,7 +95135,7 @@ function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __
96574
95135
  onChangeRef
96575
95136
  ])];
96576
95137
  }
96577
- __name$11(useControllableState, "useControllableState");
95138
+ __name$9(useControllableState, "useControllableState");
96578
95139
  function useUncontrolledState({ defaultProp, onChange }) {
96579
95140
  const [value, setValue] = m.useState(defaultProp);
96580
95141
  const prevValueRef = m.useRef(value);
@@ -96594,11 +95155,11 @@ function useUncontrolledState({ defaultProp, onChange }) {
96594
95155
  onChangeRef
96595
95156
  ];
96596
95157
  }
96597
- __name$11(useUncontrolledState, "useUncontrolledState");
95158
+ __name$9(useUncontrolledState, "useUncontrolledState");
96598
95159
  function isFunction$1(value) {
96599
95160
  return typeof value === "function";
96600
95161
  }
96601
- __name$11(isFunction$1, "isFunction");
95162
+ __name$9(isFunction$1, "isFunction");
96602
95163
  var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
96603
95164
  function useControllableStateReducer(reducer, userArgs, initialArg, init) {
96604
95165
  const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;
@@ -96649,11 +95210,11 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
96649
95210
  ]);
96650
95211
  return [state, dispatch];
96651
95212
  }
96652
- __name$11(useControllableStateReducer, "useControllableStateReducer");
95213
+ __name$9(useControllableStateReducer, "useControllableStateReducer");
96653
95214
  //#endregion
96654
95215
  //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.11_@types+react-dom@19.2.4_@types+react@19.2.18__@t_2cce8cec3540600cb30cf9ee478f6dd9/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
96655
- var __defProp$10 = Object.defineProperty;
96656
- var __name$10 = (target, value) => __defProp$10(target, "name", {
95216
+ var __defProp$8 = Object.defineProperty;
95217
+ var __name$8 = (target, value) => __defProp$8(target, "name", {
96657
95218
  value,
96658
95219
  configurable: true
96659
95220
  });
@@ -96669,7 +95230,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
96669
95230
  whiteSpace: "nowrap",
96670
95231
  wordWrap: "normal"
96671
95232
  });
96672
- var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$10(function VisuallyHidden2(props, forwardedRef) {
95233
+ var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$8(function VisuallyHidden2(props, forwardedRef) {
96673
95234
  return /* @__PURE__ */ jsx(Primitive.span, {
96674
95235
  ...props,
96675
95236
  ref: forwardedRef,
@@ -96681,8 +95242,8 @@ var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$10(function Vis
96681
95242
  }, "VisuallyHidden"));
96682
95243
  //#endregion
96683
95244
  //#region ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.16_@types+react-dom@19.2.4_@types+react@19.2.18__@types+rea_7f45cb25ab1b09815e2bf3469d23d568/node_modules/@radix-ui/react-tooltip/dist/index.mjs
96684
- var __defProp$9 = Object.defineProperty;
96685
- var __name$9 = (target, value) => __defProp$9(target, "name", {
95245
+ var __defProp$7 = Object.defineProperty;
95246
+ var __name$7 = (target, value) => __defProp$7(target, "name", {
96686
95247
  value,
96687
95248
  configurable: true
96688
95249
  });
@@ -96692,7 +95253,7 @@ var PROVIDER_NAME = "TooltipProvider";
96692
95253
  var DEFAULT_DELAY_DURATION = 700;
96693
95254
  var TOOLTIP_OPEN = "tooltip.open";
96694
95255
  var [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);
96695
- var TooltipProvider = /* @__PURE__ */ __name$9((props) => {
95256
+ var TooltipProvider = /* @__PURE__ */ __name$7((props) => {
96696
95257
  const { __scopeTooltip, delayDuration = DEFAULT_DELAY_DURATION, skipDelayDuration = 300, disableHoverableContent = false, children } = props;
96697
95258
  const isOpenDelayedRef = m.useRef(true);
96698
95259
  const isPointerInTransitRef = m.useRef(false);
@@ -96725,7 +95286,7 @@ var TooltipProvider = /* @__PURE__ */ __name$9((props) => {
96725
95286
  }, "TooltipProvider");
96726
95287
  var TOOLTIP_NAME = "Tooltip";
96727
95288
  var [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);
96728
- var Tooltip = /* @__PURE__ */ __name$9((props) => {
95289
+ var Tooltip = /* @__PURE__ */ __name$7((props) => {
96729
95290
  const { __scopeTooltip, children, open: openProp, defaultOpen, onOpenChange, disableHoverableContent: disableHoverableContentProp, delayDuration: delayDurationProp } = props;
96730
95291
  const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
96731
95292
  const popperScope = usePopperScope$1(__scopeTooltip);
@@ -96739,7 +95300,7 @@ var Tooltip = /* @__PURE__ */ __name$9((props) => {
96739
95300
  const [open, setOpen] = useControllableState({
96740
95301
  prop: openProp,
96741
95302
  defaultProp: defaultOpen ?? false,
96742
- onChange: /* @__PURE__ */ __name$9((open2) => {
95303
+ onChange: /* @__PURE__ */ __name$7((open2) => {
96743
95304
  if (open2) {
96744
95305
  providerContext.onOpen();
96745
95306
  document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN));
@@ -96812,7 +95373,7 @@ var Tooltip = /* @__PURE__ */ __name$9((props) => {
96812
95373
  });
96813
95374
  }, "Tooltip");
96814
95375
  var TRIGGER_NAME$2 = "TooltipTrigger";
96815
- var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(function TooltipTrigger2(props, forwardedRef) {
95376
+ var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipTrigger2(props, forwardedRef) {
96816
95377
  const { __scopeTooltip, ...triggerProps } = props;
96817
95378
  const context = useTooltipContext(TRIGGER_NAME$2, __scopeTooltip);
96818
95379
  const providerContext = useTooltipProviderContext(TRIGGER_NAME$2, __scopeTooltip);
@@ -96858,7 +95419,7 @@ var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(funct
96858
95419
  }, "TooltipTrigger"));
96859
95420
  var PORTAL_NAME$2 = "TooltipPortal";
96860
95421
  var [PortalProvider$2, usePortalContext$2] = createTooltipContext(PORTAL_NAME$2, { forceMount: void 0 });
96861
- var TooltipPortal = /* @__PURE__ */ __name$9((props) => {
95422
+ var TooltipPortal = /* @__PURE__ */ __name$7((props) => {
96862
95423
  const { __scopeTooltip, forceMount, children, container } = props;
96863
95424
  const context = useTooltipContext(PORTAL_NAME$2, __scopeTooltip);
96864
95425
  return /* @__PURE__ */ jsx(PortalProvider$2, {
@@ -96875,7 +95436,7 @@ var TooltipPortal = /* @__PURE__ */ __name$9((props) => {
96875
95436
  });
96876
95437
  }, "TooltipPortal");
96877
95438
  var CONTENT_NAME$3 = "TooltipContent";
96878
- var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(function TooltipContent2(props, forwardedRef) {
95439
+ var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContent2(props, forwardedRef) {
96879
95440
  const portalContext = usePortalContext$2(CONTENT_NAME$3, props.__scopeTooltip);
96880
95441
  const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
96881
95442
  const context = useTooltipContext(CONTENT_NAME$3, props.__scopeTooltip);
@@ -96892,7 +95453,7 @@ var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(funct
96892
95453
  })
96893
95454
  });
96894
95455
  }, "TooltipContent"));
96895
- var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(function TooltipContentHoverable2(props, forwardedRef) {
95456
+ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContentHoverable2(props, forwardedRef) {
96896
95457
  const context = useTooltipContext(CONTENT_NAME$3, props.__scopeTooltip);
96897
95458
  const providerContext = useTooltipProviderContext(CONTENT_NAME$3, props.__scopeTooltip);
96898
95459
  const ref = m.useRef(null);
@@ -96922,8 +95483,8 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
96922
95483
  }, [handleRemoveGraceArea]);
96923
95484
  m.useEffect(() => {
96924
95485
  if (trigger && content) {
96925
- const handleTriggerLeave = /* @__PURE__ */ __name$9((event) => handleCreateGraceArea(event, content), "handleTriggerLeave");
96926
- const handleContentLeave = /* @__PURE__ */ __name$9((event) => handleCreateGraceArea(event, trigger), "handleContentLeave");
95486
+ const handleTriggerLeave = /* @__PURE__ */ __name$7((event) => handleCreateGraceArea(event, content), "handleTriggerLeave");
95487
+ const handleContentLeave = /* @__PURE__ */ __name$7((event) => handleCreateGraceArea(event, trigger), "handleContentLeave");
96927
95488
  trigger.addEventListener("pointerleave", handleTriggerLeave);
96928
95489
  content.addEventListener("pointerleave", handleContentLeave);
96929
95490
  return () => {
@@ -96939,7 +95500,7 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
96939
95500
  ]);
96940
95501
  m.useEffect(() => {
96941
95502
  if (pointerGraceArea) {
96942
- const handleTrackPointerGrace = /* @__PURE__ */ __name$9((event) => {
95503
+ const handleTrackPointerGrace = /* @__PURE__ */ __name$7((event) => {
96943
95504
  const target = event.target;
96944
95505
  const pointerPosition = {
96945
95506
  x: event.clientX,
@@ -96969,7 +95530,7 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
96969
95530
  });
96970
95531
  }, "TooltipContentHoverable"));
96971
95532
  var Slottable = /* @__PURE__ */ createSlottable("TooltipContent");
96972
- var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(function TooltipContentImpl2(props, forwardedRef) {
95533
+ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContentImpl2(props, forwardedRef) {
96973
95534
  const { __scopeTooltip, children, "aria-label": ariaLabel, id: idProp, onEscapeKeyDown, onPointerDownOutside, ...contentProps } = props;
96974
95535
  const context = useTooltipContext(CONTENT_NAME$3, __scopeTooltip);
96975
95536
  const popperScope = usePopperScope$1(__scopeTooltip);
@@ -96980,7 +95541,7 @@ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(f
96980
95541
  }, [onClose]);
96981
95542
  m.useEffect(() => {
96982
95543
  if (context.trigger) {
96983
- const handleScroll = /* @__PURE__ */ __name$9((event) => {
95544
+ const handleScroll = /* @__PURE__ */ __name$7((event) => {
96984
95545
  if (event.target instanceof Node && event.target.contains(context.trigger)) onClose();
96985
95546
  }, "handleScroll");
96986
95547
  window.addEventListener("scroll", handleScroll, { capture: true });
@@ -97024,7 +95585,7 @@ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(f
97024
95585
  })
97025
95586
  });
97026
95587
  }, "TooltipContentImpl"));
97027
- var TooltipArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(function TooltipArrow2(props, forwardedRef) {
95588
+ var TooltipArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipArrow2(props, forwardedRef) {
97028
95589
  const { __scopeTooltip, ...arrowProps } = props;
97029
95590
  const popperScope = usePopperScope$1(__scopeTooltip);
97030
95591
  return /* @__PURE__ */ jsx(Arrow, {
@@ -97046,7 +95607,7 @@ function getExitSideFromRect(point, rect) {
97046
95607
  default: throw new Error("unreachable");
97047
95608
  }
97048
95609
  }
97049
- __name$9(getExitSideFromRect, "getExitSideFromRect");
95610
+ __name$7(getExitSideFromRect, "getExitSideFromRect");
97050
95611
  function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
97051
95612
  const paddedExitPoints = [];
97052
95613
  switch (exitSide) {
@@ -97087,7 +95648,7 @@ function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
97087
95648
  }
97088
95649
  return paddedExitPoints;
97089
95650
  }
97090
- __name$9(getPaddedExitPoints, "getPaddedExitPoints");
95651
+ __name$7(getPaddedExitPoints, "getPaddedExitPoints");
97091
95652
  function getPointsFromRect(rect) {
97092
95653
  const { top, right, bottom, left } = rect;
97093
95654
  return [
@@ -97109,7 +95670,7 @@ function getPointsFromRect(rect) {
97109
95670
  }
97110
95671
  ];
97111
95672
  }
97112
- __name$9(getPointsFromRect, "getPointsFromRect");
95673
+ __name$7(getPointsFromRect, "getPointsFromRect");
97113
95674
  function isPointInPolygon$1(point, polygon) {
97114
95675
  const { x, y } = point;
97115
95676
  let inside = false;
@@ -97124,7 +95685,7 @@ function isPointInPolygon$1(point, polygon) {
97124
95685
  }
97125
95686
  return inside;
97126
95687
  }
97127
- __name$9(isPointInPolygon$1, "isPointInPolygon");
95688
+ __name$7(isPointInPolygon$1, "isPointInPolygon");
97128
95689
  function getHull(points) {
97129
95690
  const newPoints = points.slice();
97130
95691
  newPoints.sort((a, b) => {
@@ -97136,7 +95697,7 @@ function getHull(points) {
97136
95697
  });
97137
95698
  return getHullPresorted(newPoints);
97138
95699
  }
97139
- __name$9(getHull, "getHull");
95700
+ __name$7(getHull, "getHull");
97140
95701
  function getHullPresorted(points) {
97141
95702
  if (points.length <= 1) return points.slice();
97142
95703
  const upperHull = [];
@@ -97166,7 +95727,7 @@ function getHullPresorted(points) {
97166
95727
  if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;
97167
95728
  else return upperHull.concat(lowerHull);
97168
95729
  }
97169
- __name$9(getHullPresorted, "getHullPresorted");
95730
+ __name$7(getHullPresorted, "getHullPresorted");
97170
95731
  var Provider$2 = TooltipProvider;
97171
95732
  var Root3$1 = Tooltip;
97172
95733
  var Trigger$1 = TooltipTrigger;
@@ -97989,690 +96550,6 @@ var verificationModalHeaderStyle = "_1c7tq6rm _1c7tq6rl _1irym63l9 _1irym63jr _1
97989
96550
  var verificationModalCloseStyle = "_1c7tq6ro _1c7tq6rn _1irym63mn _1irym636r _1irym63n5";
97990
96551
  var verificationModalFrameStyle = "_1c7tq6rp";
97991
96552
  //#endregion
97992
- //#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.16_@types+react-dom@19.2.4_@types+react@19.2.18__@types_3b4e29b84c639c7da7ed6c275ef9f34b/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
97993
- var __defProp$8 = Object.defineProperty;
97994
- var __name$8 = (target, value) => __defProp$8(target, "name", {
97995
- value,
97996
- configurable: true
97997
- });
97998
- var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
97999
- var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
98000
- var EVENT_OPTIONS$1 = {
98001
- bubbles: false,
98002
- cancelable: true
98003
- };
98004
- var FocusScope = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$8(function FocusScope2(props, forwardedRef) {
98005
- const { loop = false, trapped = false, onMountAutoFocus: onMountAutoFocusProp, onUnmountAutoFocus: onUnmountAutoFocusProp, ...scopeProps } = props;
98006
- const [container, setContainer] = m.useState(null);
98007
- const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
98008
- const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
98009
- const lastFocusedElementRef = m.useRef(null);
98010
- const composedRefs = useComposedRefs(forwardedRef, setContainer);
98011
- const focusScope = m.useRef({
98012
- paused: false,
98013
- pause() {
98014
- this.paused = true;
98015
- },
98016
- resume() {
98017
- this.paused = false;
98018
- }
98019
- }).current;
98020
- m.useEffect(() => {
98021
- if (trapped) {
98022
- let handleFocusIn2 = function(event) {
98023
- if (focusScope.paused || !container) return;
98024
- const target = event.target;
98025
- if (container.contains(target)) lastFocusedElementRef.current = target;
98026
- else focus(lastFocusedElementRef.current, { select: true });
98027
- }, handleFocusOut2 = function(event) {
98028
- if (focusScope.paused || !container) return;
98029
- const relatedTarget = event.relatedTarget;
98030
- if (relatedTarget === null) return;
98031
- if (!container.contains(relatedTarget)) focus(lastFocusedElementRef.current, { select: true });
98032
- }, handleMutations2 = function(mutations) {
98033
- if (document.activeElement !== document.body) return;
98034
- for (const mutation of mutations) if (mutation.removedNodes.length > 0) focus(container);
98035
- };
98036
- __name$8(handleFocusIn2, "handleFocusIn");
98037
- __name$8(handleFocusOut2, "handleFocusOut");
98038
- __name$8(handleMutations2, "handleMutations");
98039
- document.addEventListener("focusin", handleFocusIn2);
98040
- document.addEventListener("focusout", handleFocusOut2);
98041
- const mutationObserver = new MutationObserver(handleMutations2);
98042
- if (container) mutationObserver.observe(container, {
98043
- childList: true,
98044
- subtree: true
98045
- });
98046
- return () => {
98047
- document.removeEventListener("focusin", handleFocusIn2);
98048
- document.removeEventListener("focusout", handleFocusOut2);
98049
- mutationObserver.disconnect();
98050
- };
98051
- }
98052
- }, [
98053
- trapped,
98054
- container,
98055
- focusScope.paused
98056
- ]);
98057
- m.useEffect(() => {
98058
- if (container) {
98059
- focusScopesStack.add(focusScope);
98060
- const previouslyFocusedElement = document.activeElement;
98061
- if (!container.contains(previouslyFocusedElement)) {
98062
- const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS$1);
98063
- container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
98064
- container.dispatchEvent(mountEvent);
98065
- if (!mountEvent.defaultPrevented) {
98066
- focusFirst$2(removeLinks(getTabbableCandidates(container)), { select: true });
98067
- if (document.activeElement === previouslyFocusedElement) focus(container);
98068
- }
98069
- }
98070
- return () => {
98071
- container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
98072
- setTimeout(() => {
98073
- const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS$1);
98074
- container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
98075
- container.dispatchEvent(unmountEvent);
98076
- if (!unmountEvent.defaultPrevented) focus(previouslyFocusedElement ?? document.body, { select: true });
98077
- container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
98078
- focusScopesStack.remove(focusScope);
98079
- }, 0);
98080
- };
98081
- }
98082
- }, [
98083
- container,
98084
- onMountAutoFocus,
98085
- onUnmountAutoFocus,
98086
- focusScope
98087
- ]);
98088
- const handleKeyDown = m.useCallback((event) => {
98089
- if (!loop && !trapped) return;
98090
- if (focusScope.paused) return;
98091
- const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
98092
- const focusedElement = document.activeElement;
98093
- if (isTabKey && focusedElement) {
98094
- const container2 = event.currentTarget;
98095
- const [first, last] = getTabbableEdges(container2);
98096
- if (!(first && last)) {
98097
- if (focusedElement === container2) event.preventDefault();
98098
- } else if (!event.shiftKey && focusedElement === last) {
98099
- event.preventDefault();
98100
- if (loop) focus(first, { select: true });
98101
- } else if (event.shiftKey && focusedElement === first) {
98102
- event.preventDefault();
98103
- if (loop) focus(last, { select: true });
98104
- }
98105
- }
98106
- }, [
98107
- loop,
98108
- trapped,
98109
- focusScope.paused
98110
- ]);
98111
- return /* @__PURE__ */ jsx(Primitive.div, {
98112
- tabIndex: -1,
98113
- ...scopeProps,
98114
- ref: composedRefs,
98115
- onKeyDown: handleKeyDown
98116
- });
98117
- }, "FocusScope"));
98118
- function focusFirst$2(candidates, { select = false } = {}) {
98119
- const previouslyFocusedElement = document.activeElement;
98120
- for (const candidate of candidates) {
98121
- focus(candidate, { select });
98122
- if (document.activeElement !== previouslyFocusedElement) return;
98123
- }
98124
- }
98125
- __name$8(focusFirst$2, "focusFirst");
98126
- function getTabbableEdges(container) {
98127
- const candidates = getTabbableCandidates(container);
98128
- return [findVisible(candidates, container), findVisible(candidates.reverse(), container)];
98129
- }
98130
- __name$8(getTabbableEdges, "getTabbableEdges");
98131
- function getTabbableCandidates(container) {
98132
- const nodes = [];
98133
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ __name$8((node) => {
98134
- const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
98135
- if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
98136
- return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
98137
- }, "acceptNode") });
98138
- while (walker.nextNode()) nodes.push(walker.currentNode);
98139
- return nodes;
98140
- }
98141
- __name$8(getTabbableCandidates, "getTabbableCandidates");
98142
- function findVisible(elements, container) {
98143
- const canUseCheckVisibility = typeof container.checkVisibility === "function" && container.checkVisibility({ checkVisibilityCSS: true });
98144
- for (const element of elements) if (!(canUseCheckVisibility ? !element.checkVisibility({ checkVisibilityCSS: true }) : isHidden(element, { upTo: container }))) return element;
98145
- }
98146
- __name$8(findVisible, "findVisible");
98147
- function isHidden(node, { upTo }) {
98148
- if (getComputedStyle(node).visibility === "hidden") return true;
98149
- while (node) {
98150
- if (upTo !== void 0 && node === upTo) return false;
98151
- if (getComputedStyle(node).display === "none") return true;
98152
- node = node.parentElement;
98153
- }
98154
- return false;
98155
- }
98156
- __name$8(isHidden, "isHidden");
98157
- function isSelectableInput(element) {
98158
- return element instanceof HTMLInputElement && "select" in element;
98159
- }
98160
- __name$8(isSelectableInput, "isSelectableInput");
98161
- function focus(element, { select = false } = {}) {
98162
- if (element && element.focus) {
98163
- const previouslyFocusedElement = document.activeElement;
98164
- element.focus({ preventScroll: true });
98165
- if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
98166
- }
98167
- }
98168
- __name$8(focus, "focus");
98169
- var focusScopesStack = createFocusScopesStack();
98170
- function createFocusScopesStack() {
98171
- let stack = [];
98172
- return {
98173
- add(focusScope) {
98174
- const activeFocusScope = stack[0];
98175
- if (focusScope !== activeFocusScope) activeFocusScope?.pause();
98176
- stack = arrayRemove(stack, focusScope);
98177
- stack.unshift(focusScope);
98178
- },
98179
- remove(focusScope) {
98180
- stack = arrayRemove(stack, focusScope);
98181
- stack[0]?.resume();
98182
- }
98183
- };
98184
- }
98185
- __name$8(createFocusScopesStack, "createFocusScopesStack");
98186
- function arrayRemove(array, item) {
98187
- const updatedArray = [...array];
98188
- const index = updatedArray.indexOf(item);
98189
- if (index !== -1) updatedArray.splice(index, 1);
98190
- return updatedArray;
98191
- }
98192
- __name$8(arrayRemove, "arrayRemove");
98193
- function removeLinks(items) {
98194
- return items.filter((item) => item.tagName !== "A");
98195
- }
98196
- __name$8(removeLinks, "removeLinks");
98197
- //#endregion
98198
- //#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.6_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
98199
- var __defProp$7 = Object.defineProperty;
98200
- var __name$7 = (target, value) => __defProp$7(target, "name", {
98201
- value,
98202
- configurable: true
98203
- });
98204
- var count = 0;
98205
- var guards = null;
98206
- function FocusGuards(props) {
98207
- useFocusGuards();
98208
- return props.children;
98209
- }
98210
- __name$7(FocusGuards, "FocusGuards");
98211
- function useFocusGuards() {
98212
- m.useEffect(() => {
98213
- if (!guards) guards = {
98214
- start: createFocusGuard(),
98215
- end: createFocusGuard()
98216
- };
98217
- const { start, end } = guards;
98218
- if (document.body.firstElementChild !== start) document.body.insertAdjacentElement("afterbegin", start);
98219
- if (document.body.lastElementChild !== end) document.body.insertAdjacentElement("beforeend", end);
98220
- count++;
98221
- return () => {
98222
- if (count === 1) {
98223
- guards?.start.remove();
98224
- guards?.end.remove();
98225
- guards = null;
98226
- }
98227
- count = Math.max(0, count - 1);
98228
- };
98229
- }, []);
98230
- }
98231
- __name$7(useFocusGuards, "useFocusGuards");
98232
- function createFocusGuard() {
98233
- const element = document.createElement("span");
98234
- element.setAttribute("data-radix-focus-guard", "");
98235
- element.tabIndex = 0;
98236
- element.style.outline = "none";
98237
- element.style.opacity = "0";
98238
- element.style.position = "fixed";
98239
- element.style.pointerEvents = "none";
98240
- return element;
98241
- }
98242
- __name$7(createFocusGuard, "createFocusGuard");
98243
- //#endregion
98244
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/medium.js
98245
- var effectCar = createSidecarMedium();
98246
- //#endregion
98247
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/UI.js
98248
- init_tslib_es6();
98249
- var nothing = function() {};
98250
- /**
98251
- * Removes scrollbar from the page and contain the scroll within the Lock
98252
- */
98253
- var RemoveScroll = m.forwardRef(function(props, parentRef) {
98254
- var ref = m.useRef(null);
98255
- var _a = m.useState({
98256
- onScrollCapture: nothing,
98257
- onWheelCapture: nothing,
98258
- onTouchMoveCapture: nothing
98259
- }), callbacks = _a[0], setCallbacks = _a[1];
98260
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, [
98261
- "forwardProps",
98262
- "children",
98263
- "className",
98264
- "removeScrollBar",
98265
- "enabled",
98266
- "shards",
98267
- "sideCar",
98268
- "noRelative",
98269
- "noIsolation",
98270
- "inert",
98271
- "allowPinchZoom",
98272
- "as",
98273
- "gapMode"
98274
- ]);
98275
- var SideCar = sideCar;
98276
- var containerRef = useMergeRefs([ref, parentRef]);
98277
- var containerProps = __assign(__assign({}, rest), callbacks);
98278
- return m.createElement(m.Fragment, null, enabled && m.createElement(SideCar, {
98279
- sideCar: effectCar,
98280
- removeScrollBar,
98281
- shards,
98282
- noRelative,
98283
- noIsolation,
98284
- inert,
98285
- setCallbacks,
98286
- allowPinchZoom: !!allowPinchZoom,
98287
- lockRef: ref,
98288
- gapMode
98289
- }), forwardProps ? m.cloneElement(m.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : m.createElement(Container, __assign({}, containerProps, {
98290
- className,
98291
- ref: containerRef
98292
- }), children));
98293
- });
98294
- RemoveScroll.defaultProps = {
98295
- enabled: true,
98296
- removeScrollBar: true,
98297
- inert: false
98298
- };
98299
- RemoveScroll.classNames = {
98300
- fullWidth: fullWidthClassName,
98301
- zeroRight: zeroRightClassName
98302
- };
98303
- //#endregion
98304
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
98305
- var passiveSupported = false;
98306
- if (typeof window !== "undefined") try {
98307
- var options = Object.defineProperty({}, "passive", { get: function() {
98308
- passiveSupported = true;
98309
- return true;
98310
- } });
98311
- window.addEventListener("test", options, options);
98312
- window.removeEventListener("test", options, options);
98313
- } catch (err) {
98314
- passiveSupported = false;
98315
- }
98316
- var nonPassive = passiveSupported ? { passive: false } : false;
98317
- //#endregion
98318
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
98319
- var alwaysContainsScroll = function(node) {
98320
- return node.tagName === "TEXTAREA";
98321
- };
98322
- var elementCanBeScrolled = function(node, overflow) {
98323
- if (!(node instanceof Element)) return false;
98324
- var styles = window.getComputedStyle(node);
98325
- return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === "visible");
98326
- };
98327
- var elementCouldBeVScrolled = function(node) {
98328
- return elementCanBeScrolled(node, "overflowY");
98329
- };
98330
- var elementCouldBeHScrolled = function(node) {
98331
- return elementCanBeScrolled(node, "overflowX");
98332
- };
98333
- var locationCouldBeScrolled = function(axis, node) {
98334
- var ownerDocument = node.ownerDocument;
98335
- var current = node;
98336
- do {
98337
- if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
98338
- if (elementCouldBeScrolled(axis, current)) {
98339
- var _a = getScrollVariables(axis, current);
98340
- if (_a[1] > _a[2]) return true;
98341
- }
98342
- current = current.parentNode;
98343
- } while (current && current !== ownerDocument.body);
98344
- return false;
98345
- };
98346
- var getVScrollVariables = function(_a) {
98347
- return [
98348
- _a.scrollTop,
98349
- _a.scrollHeight,
98350
- _a.clientHeight
98351
- ];
98352
- };
98353
- var getHScrollVariables = function(_a) {
98354
- return [
98355
- _a.scrollLeft,
98356
- _a.scrollWidth,
98357
- _a.clientWidth
98358
- ];
98359
- };
98360
- var elementCouldBeScrolled = function(axis, node) {
98361
- return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
98362
- };
98363
- var getScrollVariables = function(axis, node) {
98364
- return axis === "v" ? getVScrollVariables(node) : getHScrollVariables(node);
98365
- };
98366
- var getDirectionFactor = function(axis, direction) {
98367
- /**
98368
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
98369
- * and then increasingly negative as you scroll towards the end of the content.
98370
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
98371
- */
98372
- return axis === "h" && direction === "rtl" ? -1 : 1;
98373
- };
98374
- var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
98375
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
98376
- var delta = directionFactor * sourceDelta;
98377
- var target = event.target;
98378
- var targetInLock = endTarget.contains(target);
98379
- var shouldCancelScroll = false;
98380
- var isDeltaPositive = delta > 0;
98381
- var availableScroll = 0;
98382
- var availableScrollTop = 0;
98383
- do {
98384
- if (!target) break;
98385
- var _a = getScrollVariables(axis, target), position = _a[0];
98386
- var elementScroll = _a[1] - _a[2] - directionFactor * position;
98387
- if (position || elementScroll) {
98388
- if (elementCouldBeScrolled(axis, target)) {
98389
- availableScroll += elementScroll;
98390
- availableScrollTop += position;
98391
- }
98392
- }
98393
- var parent_1 = target.parentNode;
98394
- target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
98395
- } while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
98396
- if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
98397
- else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
98398
- return shouldCancelScroll;
98399
- };
98400
- //#endregion
98401
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
98402
- init_tslib_es6();
98403
- var getTouchXY = function(event) {
98404
- return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
98405
- };
98406
- var getDeltaXY = function(event) {
98407
- return [event.deltaX, event.deltaY];
98408
- };
98409
- var extractRef = function(ref) {
98410
- return ref && "current" in ref ? ref.current : ref;
98411
- };
98412
- var deltaCompare = function(x, y) {
98413
- return x[0] === y[0] && x[1] === y[1];
98414
- };
98415
- var generateStyle = function(id) {
98416
- return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
98417
- };
98418
- var idCounter$1 = 0;
98419
- var lockStack = [];
98420
- function RemoveScrollSideCar(props) {
98421
- var shouldPreventQueue = m.useRef([]);
98422
- var touchStartRef = m.useRef([0, 0]);
98423
- var activeAxis = m.useRef();
98424
- var id = m.useState(idCounter$1++)[0];
98425
- var Style = m.useState(styleSingleton)[0];
98426
- var lastProps = m.useRef(props);
98427
- m.useEffect(function() {
98428
- lastProps.current = props;
98429
- }, [props]);
98430
- m.useEffect(function() {
98431
- if (props.inert) {
98432
- document.body.classList.add("block-interactivity-".concat(id));
98433
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
98434
- allow_1.forEach(function(el) {
98435
- return el.classList.add("allow-interactivity-".concat(id));
98436
- });
98437
- return function() {
98438
- document.body.classList.remove("block-interactivity-".concat(id));
98439
- allow_1.forEach(function(el) {
98440
- return el.classList.remove("allow-interactivity-".concat(id));
98441
- });
98442
- };
98443
- }
98444
- }, [
98445
- props.inert,
98446
- props.lockRef.current,
98447
- props.shards
98448
- ]);
98449
- var shouldCancelEvent = m.useCallback(function(event, parent) {
98450
- if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
98451
- var touch = getTouchXY(event);
98452
- var touchStart = touchStartRef.current;
98453
- var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
98454
- var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
98455
- var currentAxis;
98456
- var target = event.target;
98457
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
98458
- if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
98459
- var selection = window.getSelection();
98460
- var anchorNode = selection && selection.anchorNode;
98461
- if (anchorNode ? anchorNode === target || anchorNode.contains(target) : false) return false;
98462
- var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
98463
- if (!canBeScrolledInMainDirection) return true;
98464
- if (canBeScrolledInMainDirection) currentAxis = moveDirection;
98465
- else {
98466
- currentAxis = moveDirection === "v" ? "h" : "v";
98467
- canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
98468
- }
98469
- if (!canBeScrolledInMainDirection) return false;
98470
- if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
98471
- if (!currentAxis) return true;
98472
- var cancelingAxis = activeAxis.current || currentAxis;
98473
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
98474
- }, []);
98475
- var shouldPrevent = m.useCallback(function(_event) {
98476
- var event = _event;
98477
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) return;
98478
- var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
98479
- var sourceEvent = shouldPreventQueue.current.filter(function(e) {
98480
- return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
98481
- })[0];
98482
- if (sourceEvent && sourceEvent.should) {
98483
- if (event.cancelable) event.preventDefault();
98484
- return;
98485
- }
98486
- if (!sourceEvent) {
98487
- var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node) {
98488
- return node.contains(event.target);
98489
- });
98490
- if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
98491
- if (event.cancelable) event.preventDefault();
98492
- }
98493
- }
98494
- }, []);
98495
- var shouldCancel = m.useCallback(function(name, delta, target, should) {
98496
- var event = {
98497
- name,
98498
- delta,
98499
- target,
98500
- should,
98501
- shadowParent: getOutermostShadowParent(target)
98502
- };
98503
- shouldPreventQueue.current.push(event);
98504
- setTimeout(function() {
98505
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
98506
- return e !== event;
98507
- });
98508
- }, 1);
98509
- }, []);
98510
- var scrollTouchStart = m.useCallback(function(event) {
98511
- touchStartRef.current = getTouchXY(event);
98512
- activeAxis.current = void 0;
98513
- }, []);
98514
- var scrollWheel = m.useCallback(function(event) {
98515
- shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
98516
- }, []);
98517
- var scrollTouchMove = m.useCallback(function(event) {
98518
- shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
98519
- }, []);
98520
- m.useEffect(function() {
98521
- lockStack.push(Style);
98522
- props.setCallbacks({
98523
- onScrollCapture: scrollWheel,
98524
- onWheelCapture: scrollWheel,
98525
- onTouchMoveCapture: scrollTouchMove
98526
- });
98527
- document.addEventListener("wheel", shouldPrevent, nonPassive);
98528
- document.addEventListener("touchmove", shouldPrevent, nonPassive);
98529
- document.addEventListener("touchstart", scrollTouchStart, nonPassive);
98530
- return function() {
98531
- lockStack = lockStack.filter(function(inst) {
98532
- return inst !== Style;
98533
- });
98534
- document.removeEventListener("wheel", shouldPrevent, nonPassive);
98535
- document.removeEventListener("touchmove", shouldPrevent, nonPassive);
98536
- document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
98537
- };
98538
- }, []);
98539
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
98540
- return m.createElement(m.Fragment, null, inert ? m.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? m.createElement(RemoveScrollBar, {
98541
- noRelative: props.noRelative,
98542
- gapMode: props.gapMode
98543
- }) : null);
98544
- }
98545
- function getOutermostShadowParent(node) {
98546
- var shadowParent = null;
98547
- while (node !== null) {
98548
- if (node instanceof ShadowRoot) {
98549
- shadowParent = node.host;
98550
- node = node.host;
98551
- }
98552
- node = node.parentNode;
98553
- }
98554
- return shadowParent;
98555
- }
98556
- //#endregion
98557
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/sidecar.js
98558
- var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
98559
- //#endregion
98560
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/Combination.js
98561
- init_tslib_es6();
98562
- var ReactRemoveScroll = m.forwardRef(function(props, ref) {
98563
- return m.createElement(RemoveScroll, __assign({}, props, {
98564
- ref,
98565
- sideCar: sidecar_default
98566
- }));
98567
- });
98568
- ReactRemoveScroll.classNames = RemoveScroll.classNames;
98569
- //#endregion
98570
- //#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
98571
- var getDefaultParent = function(originalTarget) {
98572
- if (typeof document === "undefined") return null;
98573
- return (Array.isArray(originalTarget) ? originalTarget[0] : originalTarget).ownerDocument.body;
98574
- };
98575
- var counterMap = /* @__PURE__ */ new WeakMap();
98576
- var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
98577
- var markerMap = {};
98578
- var lockCount = 0;
98579
- var unwrapHost = function(node) {
98580
- return node && (node.host || unwrapHost(node.parentNode));
98581
- };
98582
- var correctTargets = function(parent, targets) {
98583
- return targets.map(function(target) {
98584
- if (parent.contains(target)) return target;
98585
- var correctedTarget = unwrapHost(target);
98586
- if (correctedTarget && parent.contains(correctedTarget)) return correctedTarget;
98587
- console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
98588
- return null;
98589
- }).filter(function(x) {
98590
- return Boolean(x);
98591
- });
98592
- };
98593
- /**
98594
- * Marks everything except given node(or nodes) as aria-hidden
98595
- * @param {Element | Element[]} originalTarget - elements to keep on the page
98596
- * @param [parentNode] - top element, defaults to document.body
98597
- * @param {String} [markerName] - a special attribute to mark every node
98598
- * @param {String} [controlAttribute] - html Attribute to control
98599
- * @return {Undo} undo command
98600
- */
98601
- var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
98602
- var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
98603
- if (!markerMap[markerName]) markerMap[markerName] = /* @__PURE__ */ new WeakMap();
98604
- var markerCounter = markerMap[markerName];
98605
- var hiddenNodes = [];
98606
- var elementsToKeep = /* @__PURE__ */ new Set();
98607
- var elementsToStop = new Set(targets);
98608
- var keep = function(el) {
98609
- if (!el || elementsToKeep.has(el)) return;
98610
- elementsToKeep.add(el);
98611
- keep(el.parentNode);
98612
- };
98613
- targets.forEach(keep);
98614
- var deep = function(parent) {
98615
- if (!parent || elementsToStop.has(parent)) return;
98616
- Array.prototype.forEach.call(parent.children, function(node) {
98617
- if (elementsToKeep.has(node)) deep(node);
98618
- else try {
98619
- var attr = node.getAttribute(controlAttribute);
98620
- var alreadyHidden = attr !== null && attr !== "false";
98621
- var counterValue = (counterMap.get(node) || 0) + 1;
98622
- var markerValue = (markerCounter.get(node) || 0) + 1;
98623
- counterMap.set(node, counterValue);
98624
- markerCounter.set(node, markerValue);
98625
- hiddenNodes.push(node);
98626
- if (counterValue === 1 && alreadyHidden) uncontrolledNodes.set(node, true);
98627
- if (markerValue === 1) node.setAttribute(markerName, "true");
98628
- if (!alreadyHidden) node.setAttribute(controlAttribute, "true");
98629
- } catch (e) {
98630
- console.error("aria-hidden: cannot operate on ", node, e);
98631
- }
98632
- });
98633
- };
98634
- deep(parentNode);
98635
- elementsToKeep.clear();
98636
- lockCount++;
98637
- return function() {
98638
- hiddenNodes.forEach(function(node) {
98639
- var counterValue = counterMap.get(node) - 1;
98640
- var markerValue = markerCounter.get(node) - 1;
98641
- counterMap.set(node, counterValue);
98642
- markerCounter.set(node, markerValue);
98643
- if (!counterValue) {
98644
- if (!uncontrolledNodes.has(node)) node.removeAttribute(controlAttribute);
98645
- uncontrolledNodes.delete(node);
98646
- }
98647
- if (!markerValue) node.removeAttribute(markerName);
98648
- });
98649
- lockCount--;
98650
- if (!lockCount) {
98651
- counterMap = /* @__PURE__ */ new WeakMap();
98652
- counterMap = /* @__PURE__ */ new WeakMap();
98653
- uncontrolledNodes = /* @__PURE__ */ new WeakMap();
98654
- markerMap = {};
98655
- }
98656
- };
98657
- };
98658
- /**
98659
- * Marks everything except given node(or nodes) as aria-hidden
98660
- * @param {Element | Element[]} originalTarget - elements to keep on the page
98661
- * @param [parentNode] - top element, defaults to document.body
98662
- * @param {String} [markerName] - a special attribute to mark every node
98663
- * @return {Undo} undo command
98664
- */
98665
- var hideOthers = function(originalTarget, parentNode, markerName) {
98666
- if (markerName === void 0) markerName = "data-aria-hidden";
98667
- var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
98668
- var activeParentNode = parentNode || getDefaultParent(originalTarget);
98669
- if (!activeParentNode) return function() {
98670
- return null;
98671
- };
98672
- targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
98673
- return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
98674
- };
98675
- //#endregion
98676
96553
  //#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.23_@types+react-dom@19.2.4_@types+react@19.2.18__@types+reac_f43cda4f5f60c6fd8f384ced683c6d90/node_modules/@radix-ui/react-dialog/dist/index.mjs
98677
96554
  var __defProp$6 = Object.defineProperty;
98678
96555
  var __name$6 = (target, value) => __defProp$6(target, "name", {
@@ -98764,7 +96641,7 @@ var DialogOverlayImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$6(fu
98764
96641
  const { __scopeDialog, ...overlayProps } = props;
98765
96642
  const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
98766
96643
  const composedRefs = useComposedRefs(forwardedRef, useDismissableLayerSurface());
98767
- return /* @__PURE__ */ jsx(ReactRemoveScroll, {
96644
+ return /* @__PURE__ */ jsx(RemoveScroll, {
98768
96645
  as: Slot$1,
98769
96646
  allowPinchZoom: true,
98770
96647
  shards: [context.contentRef],
@@ -103482,7 +101359,7 @@ var MenuContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$1(func
103482
101359
  const pointerGraceIntentRef = m.useRef(null);
103483
101360
  const pointerDirRef = m.useRef("right");
103484
101361
  const lastPointerXRef = m.useRef(0);
103485
- const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll : m.Fragment;
101362
+ const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : m.Fragment;
103486
101363
  const scrollLockWrapperProps = disableOutsideScroll ? {
103487
101364
  as: Slot,
103488
101365
  allowPinchZoom: true