PageSourceSearch

https://gakuten.co.jp/_next/static/chunks/42393-9d35336b8d8103ae.js

js gakuten.co.jp collected 2026-10-07 14:20:28 UTC 48,302 bytes, 756 lines download raw bytes

1"use strict";
2(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[42393],{
3
4/***/ 42393:
5/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
6
7/* harmony export */ __webpack_require__.d(__webpack_exports__, {
8/* harmony export */   l$: () => (/* binding */ $e),
9/* harmony export */   oR: () => (/* binding */ ue)
10/* harmony export */ });
11/* unused harmony export useSonner */
12/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82071);
13/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79350);
14/* __next_internal_client_entry_do_not_use__ Toaster,toast,useSonner auto */ 
15
16
17var jt = (n)=>{
18    switch(n){
19        case "success":
20            return ee;
21        case "info":
22            return ae;
23        case "warning":
24            return oe;
25        case "error":
26            return se;
27        default:
28            return null;
29    }
30}, te = Array(12).fill(0), Yt = ({ visible: n, className: e })=>/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
31        className: [
32            "sonner-loading-wrapper",
33            e
34        ].filter(Boolean).join(" "),
35        "data-visible": n
36    }, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
37        className: "sonner-spinner"
38    }, te.map((t, a)=>/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
39            className: "sonner-loading-bar",
40            key: `spinner-bar-${a}`
41        })))), ee = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", {
42    xmlns: "http://www.w3.org/2000/svg",
43    viewBox: "0 0 20 20",
44    fill: "currentColor",
45    height: "20",
46    width: "20"
47}, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
48    fillRule: "evenodd",
49    d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
50    clipRule: "evenodd"
51})), oe = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", {
52    xmlns: "http://www.w3.org/2000/svg",
53    viewBox: "0 0 24 24",
54    fill: "currentColor",
55    height: "20",
56    width: "20"
57}, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
58    fillRule: "evenodd",
59    d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
60    clipRule: "evenodd"
61})), ae = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", {
62    xmlns: "http://www.w3.org/2000/svg",
63    viewBox: "0 0 20 20",
64    fill: "currentColor",
65    height: "20",
66    width: "20"
67}, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
68    fillRule: "evenodd",
69    d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
70    clipRule: "evenodd"
71})), se = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", {
72    xmlns: "http://www.w3.org/2000/svg",
73    viewBox: "0 0 20 20",
74    fill: "currentColor",
75    height: "20",
76    width: "20"
77}, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
78    fillRule: "evenodd",
79    d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
80    clipRule: "evenodd"
81})), Ot = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", {
82    xmlns: "http://www.w3.org/2000/svg",
83    width: "12",
84    height: "12",
85    viewBox: "0 0 24 24",
86    fill: "none",
87    stroke: "currentColor",
88    strokeWidth: "1.5",
89    strokeLinecap: "round",
90    strokeLinejoin: "round"
91}, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("line", {
92    x1: "18",
93    y1: "6",
94    x2: "6",
95    y2: "18"
96}), /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("line", {
97    x1: "6",
98    y1: "6",
99    x2: "18",
100    y2: "18"
101}));
102
103var Ft = ()=>{
104    let [n, e] = react__WEBPACK_IMPORTED_MODULE_0__.useState(document.hidden);
105    return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
106        let t = ()=>{
107            e(document.hidden);
108        };
109        return document.addEventListener("visibilitychange", t), ()=>window.removeEventListener("visibilitychange", t);
110    }, []), n;
111};
112
113var bt = 1, yt = class {
114    constructor(){
115        this.subscribe = (e)=>(this.subscribers.push(e), ()=>{
116                let t = this.subscribers.indexOf(e);
117                this.subscribers.splice(t, 1);
118            });
119        this.publish = (e)=>{
120            this.subscribers.forEach((t)=>t(e));
121        };
122        this.addToast = (e)=>{
123            this.publish(e), this.toasts = [
124                ...this.toasts,
125                e
126            ];
127        };
128        this.create = (e)=>{
129            var S;
130            let { message: t, ...a } = e, u = typeof (e == null ? void 0 : e.id) == "number" || ((S = e.id) == null ? void 0 : S.length) > 0 ? e.id : bt++, f = this.toasts.find((g)=>g.id === u), w = e.dismissible === void 0 ? !0 : e.dismissible;
131            return this.dismissedToasts.has(u) && this.dismissedToasts.delete(u), f ? this.toasts = this.toasts.map((g)=>g.id === u ? (this.publish({
132                    ...g,
133                    ...e,
134                    id: u,
135                    title: t
136                }), {
137                    ...g,
138                    ...e,
139                    id: u,
140                    dismissible: w,
141                    title: t
142                }) : g) : this.addToast({
143                title: t,
144                ...a,
145                dismissible: w,
146                id: u
147            }), u;
148        };
149        this.dismiss = (e)=>(this.dismissedToasts.add(e), e || this.toasts.forEach((t)=>{
150                this.subscribers.forEach((a)=>a({
151                        id: t.id,
152                        dismiss: !0
153                    }));
154            }), this.subscribers.forEach((t)=>t({
155                    id: e,
156                    dismiss: !0
157                })), e);
158        this.message = (e, t)=>this.create({
159                ...t,
160                message: e
161            });
162        this.error = (e, t)=>this.create({
163                ...t,
164                message: e,
165                type: "error"
166            });
167        this.success = (e, t)=>this.create({
168                ...t,
169                type: "success",
170                message: e
171            });
172        this.info = (e, t)=>this.create({
173                ...t,
174                type: "info",
175                message: e
176            });
177        this.warning = (e, t)=>this.create({
178                ...t,
179                type: "warning",
180                message: e
181            });
182        this.loading = (e, t)=>this.create({
183                ...t,
184                type: "loading",
185                message: e
186            });
187        this.promise = (e, t)=>{
188            if (!t) return;
189            let a;
190            t.loading !== void 0 && (a = this.create({
191                ...t,
192                promise: e,
193                type: "loading",
194                message: t.loading,
195                description: typeof t.description != "function" ? t.description : void 0
196            }));
197            let u = e instanceof Promise ? e : e(), f = a !== void 0, w, S = u.then(async (i)=>{
198                if (w = [
199                    "resolve",
200                    i
201                ], /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(i)) f = !1, this.create({
202                    id: a,
203                    type: "default",
204                    message: i
205                });
206                else if (ie(i) && !i.ok) {
207                    f = !1;
208                    let T = typeof t.error == "function" ? await t.error(`HTTP error! status: ${i.status}`) : t.error, F = typeof t.description == "function" ? await t.description(`HTTP error! status: ${i.status}`) : t.description;
209                    this.create({
210                        id: a,
211                        type: "error",
212                        message: T,
213                        description: F
214                    });
215                } else if (t.success !== void 0) {
216                    f = !1;
217                    let T = typeof t.success == "function" ? await t.success(i) : t.success, F = typeof t.description == "function" ? await t.description(i) : t.description;
218                    this.create({
219                        id: a,
220                        type: "success",
221                        message: T,
222                        description: F
223                    });
224                }
225            }).catch(async (i)=>{
226                if (w = [
227                    "reject",
228                    i
229                ], t.error !== void 0) {
230                    f = !1;
231                    let D = typeof t.error == "function" ? await t.error(i) : t.error, T = typeof t.description == "function" ? await t.description(i) : t.description;
232                    this.create({
233                        id: a,
234                        type: "error",
235                        message: D,
236                        description: T
237                    });
238                }
239            }).finally(()=>{
240                var i;
241                f && (this.dismiss(a), a = void 0), (i = t.finally) == null || i.call(t);
242            }), g = ()=>new Promise((i, D)=>S.then(()=>w[0] === "reject" ? D(w[1]) : i(w[1])).catch(D));
243            return typeof a != "string" && typeof a != "number" ? {
244                unwrap: g
245            } : Object.assign(a, {
246                unwrap: g
247            });
248        };
249        this.custom = (e, t)=>{
250            let a = (t == null ? void 0 : t.id) || bt++;
251            return this.create({
252                jsx: e(a),
253                id: a,
254                ...t
255            }), a;
256        };
257        this.getActiveToasts = ()=>this.toasts.filter((e)=>
257!this.dismissedToasts.has(e.id));
258        this.subscribers = [], this.toasts = [], this.dismissedToasts = new Set;
259    }
260}, v = new yt, ne = (n, e)=>{
261    let t = (e == null ? void 0 : e.id) || bt++;
262    return v.addToast({
263        title: n,
264        ...e,
265        id: t
266    }), t;
267}, ie = (n)=>n && typeof n == "object" && "ok" in n && typeof n.ok == "boolean" && "status" in n && typeof n.status == "number", le = ne, ce = ()=>v.toasts, de = ()=>v.getActiveToasts(), ue = Object.assign(le, {
268    success: v.success,
269    info: v.info,
270    warning: v.warning,
271    error: v.error,
272    custom: v.custom,
273    message: v.message,
274    promise: v.promise,
275    dismiss: v.dismiss,
276    loading: v.loading
277}, {
278    getHistory: ce,
279    getToasts: de
280});
281function wt(n, { insertAt: e } = {}) {
282    if (!n || typeof document == "undefined") return;
283    let t = document.head || document.getElementsByTagName("head")[0], a = document.createElement("style");
284    a.type = "text/css", e === "top" && t.firstChild ? t.insertBefore(a, t.firstChild) : t.appendChild(a), a.styleSheet ? a.styleSheet.cssText = n : a.appendChild(document.createTextNode(n));
285}
286wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
286left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
286:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
286--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
287`);
288function tt(n) {
289    return n.label !== void 0;
290}
291var pe = 3, me = "32px", ge = "16px", Wt = 4e3, he = 356, be = 14, ye = 20, we = 200;
292function M(...n) {
293    return n.filter(Boolean).join(" ");
294}
295function xe(n) {
296    let [e, t] = n.split("-"), a = [];
297    return e && a.push(e), t && a.push(t), a;
298}
299var ve = (n)=>{
300    var Dt, Pt, Nt, Bt, Ct, kt, It, Mt, Ht, At, Lt;
301    let { invert: e, toast: t, unstyled: a, interacting: u, setHeights: f, visibleToasts: w, heights: S, index: g, toasts: i, expanded: D, removeToast: T, defaultRichColors: F, closeButton: et, style: ut, cancelButtonStyle: ft, actionButtonStyle: l, className: ot = "", descriptionClassName: at = "", duration: X, position: st, gap: pt, loadingIcon: rt, expandByDefault: B, classNames: s, icons: P, closeButtonAriaLabel: nt = "Close toast", pauseWhenPageIsHidden: it } = n, [Y, C] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null), [lt, J] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null), [W, H] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [A, mt] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [L, z] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [ct, d] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [h, y] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [R, j] = react__WEBPACK_IMPORTED_MODULE_0__.useState(0), [p, _] = react__WEBPACK_IMPORTED_MODULE_0__.useState(0), O = react__WEBPACK_IMPORTED_MODULE_0__.useRef(t.duration || X || Wt), G = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null), k = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null), Vt = g === 0, Ut = g + 1 <= w, N = t.type, V = t.dismissible !== !1, Kt = t.className || "", Xt = t.descriptionClassName || "", dt = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>S.findIndex((r)=>r.toastId === t.id) || 0, [
302        S,
303        t.id
304    ]), Jt = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>{
305        var r;
306        return (r = t.closeButton) != null ? r : et;
307    }, [
308        t.closeButton,
309        et
310    ]), Tt = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>t.duration || X || Wt, [
311        t.duration,
312        X
313    ]), gt = react__WEBPACK_IMPORTED_MODULE_0__.useRef(0), U = react__WEBPACK_IMPORTED_MODULE_0__.useRef(0), St = react__WEBPACK_IMPORTED_MODULE_0__.useRef(0), K = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null), [Gt, Qt] = st.split("-"), Rt = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>S.reduce((r, m, c)=>c >= dt ? r : r + m.height, 0), [
314        S,
315        dt
316    ]), Et = Ft(), qt = t.invert || e, ht = N === "loading";
317    U.current = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>dt * pt + Rt, [
318        dt,
319        Rt
320    ]), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
321        O.current = Tt;
322    }, [
323        Tt
324    ]), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
325        H(!0);
326    }, []), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
327        let r = k.current;
328        if (r) {
329            let m = r.getBoundingClientRect().height;
330            return _(m), f((c)=>[
331                    {
332                        toastId: t.id,
333                        height: m,
334                        position: t.position
335                    },
336                    ...c
337                ]), ()=>f((c)=>c.filter((b)=>b.toastId !== t.id));
338        }
339    }, [
340        f,
341        t.id
342    ]), react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(()=>{
343        if (!W) return;
344        let r = k.current, m = r.style.height;
345        r.style.height = "auto";
346        let c = r.getBoundingClientRect().height;
347        r.style.height = m, _(c), f((b)=>b.find((x)=>x.toastId === t.id) ? b.map((x)=>x.toastId === t.id ? {
348                    ...x,
349                    height: c
350                } : x) : [
351                {
352                    toastId: t.id,
353                    height: c,
354                    position: t.position
355                },
356                ...b
357            ]);
358    }, [
359        W,
360        t.title,
361        t.description,
362        f,
363        t.id
364    ]);
365    let $ = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{
366        mt(!0), j(U.current), f((r)=>r.filter((m)=>m.toastId !== t.id)), setTimeout(()=>{
367            T(t);
368        }, we);
369    }, [
370        t,
371        T,
372        f,
373        U
374    ]);
375    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
376        if (t.promise && N === "loading" || t.duration === 1 / 0 || t.type === "loading") return;
377        let r;
378        return D || u || it && Et ? (()=>{
379            if (St.current < gt.current) {
380                let b = new Date().getTime() - gt.current;
381                O.current = O.current - b;
382            }
383            St.current = new Date().getTime();
384        })() : (()=>{
385            O.current !== 1 / 0 && (gt.current = new Date().getTime(), r = setTimeout(()=>{
386                var b;
387                (b = t.onAutoClose) == null || b.call(t, t), $();
388            }, O.current));
389        })(), ()=>clearTimeout(r);
390    }, [
391        D,
392        u,
393        t,
394        N,
395        it,
396        Et,
397        $
398    ]), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
399        t.delete && $();
400    }, [
401        $,
402        t.delete
403    ]);
404    function Zt() {
405        var r, m, c;
406        return P != null && P.loading ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
407            className: M(s == null ? void 0 : s.loader, (r = t == null ? void 0 : t.classNames) == null ? void 0 : r.loader, "sonner-loader"),
408            "data-visible": N === "loading"
409        }, P.loading) : rt ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
410            className: M(s == null ? void 0 : s.loader, (m = t == null ? void 0 : t.classNames) == null ? void 0 : m.loader, "sonner-loader"),
411            "data-visible": N === "loading"
412        }, rt) : /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(Yt, {
413            className: M(s == null ? void 0 : s.loader, (c = t == null ? void 0 : t.classNames) == null ? void 0 : c.loader),
414            visible: N === "loading"
415        });
416    }
417    return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", {
418        tabIndex: 0,
419        ref: k,
420        className: M(ot, Kt, s == null ? void 0 : s.toast, (Dt = t == null ? void 0 : t.classNames) == null ? void 0 : Dt.toast, s == null ? void 0 : s.default, s == null ? void 0 : s[N], (Pt = t == null ? void 0 : t.classNames) == null ? void 0 : Pt[N]),
421        "data-sonner-toast": "",
422        "data-rich-colors": (Nt = t.richColors) != null ? Nt : F,
423        "data-styled": !(t.jsx || t.unstyled || a),
424        "data-mounted": W,
425        "data-promise": !!t.promise,
426        "data-swiped": h,
427        "data-removed": A,
428        "data-visible": Ut,
429        "data-y-position": Gt,
430        "data-x-position": Qt,
431        "data-index": g,
432        "data-front": Vt,
433        "data-swiping": L,
434        "data-dismissible": V,
435        "data-type": N,
436        "data-invert": qt,
437        "data-swipe-out": ct,
438        "data-swipe-direction": lt,
439        "data-expanded": !!(D || B && W),
440        style: {
441            "--index": g,
442            "--toasts-before": g,
443            "--z-index": i.length - g,
444            "--offset": `${A ? R : U.current}px`,
445            "--initial-height": B ? "auto" : `${p}px`,
446            ...ut,
447            ...t.style
448        },
449        onDragEnd: ()=>{
450            z(!1), C(null), K.current = null;
451        },
452        onPointerDown: (r)=>{
453            ht || !V || (G.current = new Date, j(U.current), r.target.setPointerCapture(r.pointerId), r.target.tagName !== "BUTTON" && (z(!0), K.current = {
454                x: r.clientX,
455                y: r.clientY
456            }));
457        },
458        onPointerUp: ()=>{
459            var x, Q, q, Z;
460            if (ct || !V) return;
461            K.current = null;
462            let r = Number(((x = k.current) == null ? void 0 : x.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), m = Number(((Q = k.current) == null ? void 0 : Q.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), c = new Date().getTime() - ((q = G.current) == null ? void 0 : q.getTime()), b = Y === "x" ? r : m, I = Math.abs(b) / c;
463            if (Math.abs(b) >= ye || I > .11) {
464                j(U.current), (Z = t.onDismiss) == null || Z.call(t, t), J(Y === "x" ? r > 0 ? "right" : "left" : m > 0 ? "down" : "up"), $(), d(!0), y(!1);
465                return;
466            }
467            z(!1), C(null);
468        },
469        onPointerMove: (r)=>{
470            var Q, q, Z, zt;
471            if (!K.current || !V || ((Q = window.getSelection()) == null ? void 0 : Q.toString().length) > 0) return;
472            let c = r.clientY - K.current.y, b = r.clientX - K.current.x, I = (q = n.swipeDirections) != null ? q : xe(st);
473            !Y && (Math.abs(b) > 1 || Math.abs(c) > 1) && C(Math.abs(b) > Math.abs(c) ? "x" : "y");
474            let x = {
475                x: 0,
476                y: 0
477            };
478            Y === "y" ? (I.includes("top") || I.includes("bottom")) && (I.includes("top") && c < 0 || I.includes("bottom") && c > 0) && (x.y = c) : Y === "x" && (I.includes("left") || I.includes("right")) && (I.includes("left") && b < 0 || I.includes("right") && b > 0) && (x.x = b), (Math.abs(x.x) > 0 || Math.abs(x.y) > 0) && y(!0), (Z = k.current) == null || Z.style.setProperty("--swipe-amount-x", `${x.x}px`), (zt = k.current) == null || zt.style.setProperty("--swipe-amount-y", `${x.y}px`);
479        }
480    }, Jt && !t.jsx ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", {
481        "aria-label": nt,
482        "data-disabled": ht,
483        "data-close-button": !0,
484        onClick: ht || !V ? ()=>{} : ()=>{
485            var r;
486            $(), (r = t.onDismiss) == null || r.call(t, t);
487        },
488        className: M(s == null ? void 0 : s.closeButton, (Bt = t == null ? void 0 : t.classNames) == null ? void 0 : Bt.closeButton)
489    }, (Ct = P == null ? void 0 : P.close) != null ? Ct : Ot) : null, t.jsx || /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(t.title) ? t.jsx ? t.jsx : typeof t.title == "function" ? t.title() : t.title : /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, N || t.icon || t.promise ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
490        "data-icon": "",
491        className: M(s == null ? void 0 : s.icon, (kt = t == null ? void 0 : t.classNames) == null ? void 0 : kt.icon)
492    }, t.promise || t.type === "loading" && !t.icon ? t.icon || Zt() : null, t.type !== "loading" ? t.icon || (P == null ? void 0 : P[N]) || jt(N) : null) : null, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
493        "data-content": "",
494        className: M(s == null ? void 0 : s.content, (It = t == null ? void 0 : t.classNames) == null ? void 0 : It.content)
495    }, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
496        "data-title": "",
497        className: M(s == null ? void 0 : s.title, (Mt = t == null ? void 0 : t.classNames) == null ? void 0 : Mt.title)
498    }, typeof t.title == "function" ? t.title() : t.title), t.description ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
499        "data-description": "",
500        className: M(at, Xt, s == null ? void 0 : s.description, (Ht = t == null ? void 0 : t.classNames) == null ? void 0 : Ht.description)
501    }, typeof t.description == "function" ? t.description() : t.description) : null), /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(t.cancel) ? t.cancel : t.cancel && tt(t.cancel) ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", {
502        "data-button": !0,
503        "data-cancel": !0,
504        style: t.cancelButtonStyle || ft,
505        onClick: (r)=>{
506            var m, c;
507            tt(t.cancel) && V && ((c = (m = t.cancel).onClick) == null || c.call(m, r), $());
508        },
509        className: M(s == null ? void 0 : s.cancelButton, (At = t == null ? void 0 : t.classNames) == null ? void 0 : At.cancelButton)
510    }, t.cancel.label) : null, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(t.action) ? t.action : t.action && tt(t.action) ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", {
511        "data-button": !0,
512        "data-action": !0,
513        style: t.actionButtonStyle || l,
514        onClick: (r)=>{
515            var m, c;
516            tt(t.action) && ((c = (m = t.action).onClick) == null || c.call(m, r), !r.defaultPrevented && $());
517        },
518        className: M(s == null ? void 0 : s.actionButton, (Lt = t == null ? void 0 : t.classNames) == null ? void 0 : Lt.actionButton)
519    }, t.action.label) : null));
520};
521function _t() {
522    if (typeof window == "undefined" || typeof document == "undefined") return "ltr";
523    let n = document.documentElement.getAttribute("dir");
524    return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
525}
526function Te(n, e) {
527    let t = {};
528    return [
529        n,
530        e
531    ].forEach((a, u)=>{
532        let f = u === 1, w = f ? "--mobile-offset" : "--offset", S = f ? ge : me;
533        function g(i) {
534            [
535                "top",
536                "right",
537                "bottom",
538                "left"
539            ].forEach((D)=>{
540                t[`${w}-${D}`] = typeof i == "number" ? `${i}px` : i;
541            });
542        }
543        typeof a == "number" || typeof a == "string" ? g(a) : typeof a == "object" ? [
544            "top",
545            "right",
546            "bottom",
547            "left"
548        ].forEach((i)=>{
549            a[i] === void 0 ? t[`${w}-${i}`] = S : t[`${w}-${i}`] = typeof a[i] == "number" ? `${a[i]}px` : a[i];
550        }) : g(S);
551    }), t;
552}
553function Oe() {
554    let [n, e] = o.useState([]);
555    return o.useEffect(()=>v.subscribe((t)=>{
556            if (t.dismiss) {
557                setTimeout(()=>{
558                    vt.flushSync(()=>{
559                        e((a)=>a.filter((u)=>u.id !== t.id));
560                    });
561                });
562                return;
563            }
564            setTimeout(()=>{
565                vt.flushSync(()=>{
566                    e((a)=>{
567                        let u = a.findIndex((f)=>
vendor: 6,100 bytes, lines 567-704
567f.id === t.id);
568                        return u !== -1 ? [
569                            ...a.slice(0, u),
570                            {
571                                ...a[u],
572                                ...t
573                            },
574                            ...a.slice(u + 1)
575                        ] : [
576                            t,
577                            ...a
578                        ];
579                    });
580                });
581            });
582        }), []), {
583        toasts: n
584    };
585}
586var $e = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function(e, t) {
587    let { invert: a, position: u = "bottom-right", hotkey: f = [
588        "altKey",
589        "KeyT"
590    ], expand: w, closeButton: S, className: g, offset: i, mobileOffset: D, theme: T = "light", richColors: F, duration: et, style: ut, visibleToasts: ft = pe, toastOptions: l, dir: ot = _t(), gap: at = be, loadingIcon: X, icons: st, containerAriaLabel: pt = "Notifications", pauseWhenPageIsHidden: rt } = e, [B, s] = react__WEBPACK_IMPORTED_MODULE_0__.useState([]), P = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>Array.from(new Set([
591            u
592        ].concat(B.filter((d)=>d.position).map((d)=>d.position)))), [
593        B,
594        u
595    ]), [nt, it] = react__WEBPACK_IMPORTED_MODULE_0__.useState([]), [Y, C] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [lt, J] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!1), [W, H] = react__WEBPACK_IMPORTED_MODULE_0__.useState(T !== "system" ? T : typeof window != "undefined" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null), mt = f.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null), z = react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1), ct = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((d)=>{
596        s((h)=>{
597            var y;
598            return (y = h.find((R)=>R.id === d.id)) != null && y.delete || v.dismiss(d.id), h.filter(({ id: R })=>R !== d.id);
599        });
600    }, []);
601    return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>v.subscribe((d)=>{
602            if (d.dismiss) {
603                s((h)=>h.map((y)=>y.id === d.id ? {
604                            ...y,
605                            delete: !0
606                        } : y));
607                return;
608            }
609            setTimeout(()=>{
610                react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync(()=>{
611                    s((h)=>{
612                        let y = h.findIndex((R)=>R.id === d.id);
613                        return y !== -1 ? [
614                            ...h.slice(0, y),
615                            {
616                                ...h[y],
617                                ...d
618                            },
619                            ...h.slice(y + 1)
620                        ] : [
621                            d,
622                            ...h
623                        ];
624                    });
625                });
626            });
627        }), []), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
628        if (T !== "system") {
629            H(T);
630            return;
631        }
632        if (T === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? H("dark") : H("light")), typeof window == "undefined") return;
633        let d = window.matchMedia("(prefers-color-scheme: dark)");
634        try {
635            d.addEventListener("change", ({ matches: h })=>{
636                H(h ? "dark" : "light");
637            });
638        } catch (h) {
639            d.addListener(({ matches: y })=>{
640                try {
641                    H(y ? "dark" : "light");
642                } catch (R) {
643                    console.error(R);
644                }
645            });
646        }
647    }, [
648        T
649    ]), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
650        B.length <= 1 && C(!1);
651    }, [
652        B
653    ]), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
654        let d = (h)=>{
655            var R, j;
656            f.every((p)=>h[p] || h.code === p) && (C(!0), (R = A.current) == null || R.focus()), h.code === "Escape" && (document.activeElement === A.current || (j = A.current) != null && j.contains(document.activeElement)) && C(!1);
657        };
658        return document.addEventListener("keydown", d), ()=>document.removeEventListener("keydown", d);
659    }, [
660        f
661    ]), react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{
662        if (A.current) return ()=>{
663            L.current && (L.current.focus({
664                preventScroll: !0
665            }), L.current = null, z.current = !1);
666        };
667    }, [
668        A.current
669    ]), /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", {
670        ref: t,
671        "aria-label": `${pt} ${mt}`,
672        tabIndex: -1,
673        "aria-live": "polite",
674        "aria-relevant": "additions text",
675        "aria-atomic": "false",
676        suppressHydrationWarning: !0
677    }, P.map((d, h)=>{
678        var j;
679        let [y, R] = d.split("-");
680        return B.length ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol", {
681            key: d,
682            dir: ot === "auto" ? _t() : ot,
683            tabIndex: -1,
684            ref: A,
685            className: g,
686            "data-sonner-toaster": !0,
687            "data-theme": W,
688            "data-y-position": y,
689            "data-lifted": Y && B.length > 1 && !w,
690            "data-x-position": R,
691            style: {
692                "--front-toast-height": `${((j = nt[0]) == null ? void 0 : j.height) || 0}px`,
693                "--width": `${he}px`,
694                "--gap": `${at}px`,
695                ...ut,
696                ...Te(i, D)
697            },
698            onBlur: (p)=>{
699                z.current && !p.currentTarget.contains(p.relatedTarget) && (z.current = !1, L.current && (L.current.focus({
700                    preventScroll: !0
701                }), L.current = null));
702            },
703            onFocus: (p)=>{
704                p.target instanceof HTMLElement && p.target.dataset.dismissible === "fal
vendor: 2,068 bytes, lines 704-756
704se" || z.current || (z.current = !0, L.current = p.relatedTarget);
705            },
706            onMouseEnter: ()=>C(!0),
707            onMouseMove: ()=>C(!0),
708            onMouseLeave: ()=>{
709                lt || C(!1);
710            },
711            onDragEnd: ()=>C(!1),
712            onPointerDown: (p)=>{
713                p.target instanceof HTMLElement && p.target.dataset.dismissible === "false" || J(!0);
714            },
715            onPointerUp: ()=>J(!1)
716        }, B.filter((p)=>!p.position && h === 0 || p.position === d).map((p, _)=>{
717            var O, G;
718            return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(ve, {
719                key: p.id,
720                icons: st,
721                index: _,
722                toast: p,
723                defaultRichColors: F,
724                duration: (O = l == null ? void 0 : l.duration) != null ? O : et,
725                className: l == null ? void 0 : l.className,
726                descriptionClassName: l == null ? void 0 : l.descriptionClassName,
727                invert: a,
728                visibleToasts: ft,
729                closeButton: (G = l == null ? void 0 : l.closeButton) != null ? G : S,
730                interacting: lt,
731                position: d,
732                style: l == null ? void 0 : l.style,
733                unstyled: l == null ? void 0 : l.unstyled,
734                classNames: l == null ? void 0 : l.classNames,
735                cancelButtonStyle: l == null ? void 0 : l.cancelButtonStyle,
736                actionButtonStyle: l == null ? void 0 : l.actionButtonStyle,
737                removeToast: ct,
738                toasts: B.filter((k)=>k.position == p.position),
739                heights: nt.filter((k)=>k.position == p.position),
740                setHeights: it,
741                expandByDefault: w,
742                gap: at,
743                loadingIcon: X,
744                expanded: Y,
745                pauseWhenPageIsHidden: rt,
746                swipeDirections: e.swipeDirections
747            });
748        })) : null;
749    }));
750});
751 //# sourceMappingURL=index.mjs.map
752
753
754/***/ })
755
756}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.