PageSourceSearch

https://www.mgunexcel.com/_/oms-customer-front-office/subscription-cycle.query-H10t46vU.js

js mgunexcel.com collected 2026-09-24 12:51:12 UTC 211,446 bytes, 7,607 lines download raw bytes

1import { f as Le, h as Ee, j as a, a as Rt, m as Ae, w as ze, T as Oe, g as Fe, s as Ie, r as He, l as je, i as Ve, n as Ke, u as Tt } from "./emotion-react.browser.esm-MfU6wlAJ.js";
2import { i as ie, h as Ye, a as qe, p as Ue, r as R, g as Ge, R as D } from "./queryClient-DpZpBkWP.js";
3import { s as se, q as j, t as M, v as T, w as mt, x as Xe, a as k, y as be, z as zt, C as Qe, p as Ze, B as Je, r as tn, O as It, n as en, o as nn } from "./AddressFormat-SvpwxoQp.js";
4import { h as Dt, a as tt, t as ce, e as ye } from "./app-zA2I6UUs.js";
5import { u as yt, M as xt, a as on, A as rn } from "./useDaumHealthCheck-CBe2pidJ.js";
6import { u as an, S as sn, d as cn } from "./site-info.query-Cz2O7fp5.js";
7import { u as pt } from "./useClassicTranslation-ouIPeWST.js";
8class ln extends Le {
9  // Type override
10  // Type override
11  // Type override
12  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
13  constructor(e, n) {
14    super(e, n);
15  }
16  bindMethods() {
17    super.bindMethods(), this.fetchNextPage = this.fetchNextPage.bind(this), this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
18  }
19  setOptions(e, n) {
20    super.setOptions({
21      ...e,
22      behavior: ie()
23    }, n);
24  }
25  getOptimisticResult(e) {
26    return e.behavior = ie(), super.getOptimisticResult(e);
27  }
28  fetchNextPage({
29    pageParam: e,
30    ...n
31  } = {}) {
32    return this.fetch({
33      ...n,
34      meta: {
35        fetchMore: {
36          direction: "forward",
37          pageParam: e
38        }
39      }
40    });
41  }
42  fetchPreviousPage({
43    pageParam: e,
44    ...n
45  } = {}) {
46    return this.fetch({
47      ...n,
48      meta: {
49        fetchMore: {
50          direction: "backward",
51          pageParam: e
52        }
53      }
54    });
55  }
56  createResult(e, n) {
57    var o, r, c, s, i, l;
58    const {
59      state: p
60    } = e, g = super.createResult(e, n), {
61      isFetching: b,
62      isRefetching: u
63    } = g, w = b && ((o = p.fetchMeta) == null || (r = o.fetchMore) == null ? void 0 : r.direction) === "forward", f = b && ((c = p.fetchMeta) == null || (s = c.fetchMore) == null ? void 0 : s.direction) === "backward";
64    return {
65      ...g,
66      fetchNextPage: this.fetchNextPage,
67      fetchPreviousPage: this.fetchPreviousPage,
68      hasNextPage: qe(n, (i = p.data) == null ? void 0 : i.pages),
69      hasPreviousPage: Ye(n, (l = p.data) == null ? void 0 : l.pages),
70      isFetchingNextPage: w,
71      isFetchingPreviousPage: f,
72      isRefetching: u && !w && !f
73    };
74  }
75}
76function sl(t, e, n) {
77  const o = Ue(t, e, n);
78  return Ee(o, ln);
79}
80var xe = { exports: {} }, Bt = {};
81/**
82 * @license React
83 * react-jsx-runtime.production.min.js
84 *
85 * Copyright (c) Facebook, Inc. and its affiliates.
86 *
87 * This source code is licensed under the MIT license found in the
88 * LICENSE file in the root directory of this source tree.
89 */
90var dn = R, mn = Symbol.for("react.element"), pn = Symbol.for("react.fragment"), un = Object.prototype.hasOwnProperty, hn = dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, gn = { key: !0, ref: !0, __self: !0, __source: !0 };
91function we(t, e, n) {
92  var o, r = {}, c = null, s = null;
93  n !== void 0 && (c = "" + n), e.key !== void 0 && (c = "" + e.key), e.ref !== void 0 && (s = e.ref);
94  for (o in e)
95    un.call(e, o) && !gn.hasOwnProperty(o) && (r[o] = e[o]);
96  if (t && t.defaultProps)
97    for (o in e = t.defaultProps, e)
98      r[o] === void 0 && (r[o] = e[o]);
99  return { $$typeof: mn, type: t, key: c, ref: s, props: r, _owner: hn.current };
100}
101Bt.Fragment = pn;
102Bt.jsx = we;
103Bt.jsxs = we;
104xe.exports = Bt;
105var rt = xe.exports;
106function Ht() {
107  return Ht = Object.assign ? Object.assign.bind() : function(t) {
108    for (var e = 1; e < arguments.length; e++) {
109      var n = arguments[e];
110      for (var o in n)
111        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
112    }
113    return t;
114  }, Ht.apply(null, arguments);
115}
116const fn = {
117  small: 12,
118  medium: 16,
119  large: 20,
120  xlarge: 24
121}, bn = ["aria-label", "aria-labelledby", "role"];
122function yn(t) {
123  return bn.some((e) => e in t);
124}
125function ee({ ref: t, size: e = "medium", color: n, style: o, children: r, ...c }) {
126  const s = fn[e] ?? e;
127  return rt.jsx("svg", { ref: t, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: s, height: s, fill: "none", style: { ...o, color: n ?? (o == null ? void 0 : o.color) ?? "var(--icon-color, currentColor)" }, ...!yn(c) && { "aria-hidden": !0 }, ...c, children: r });
128}
129function xn({ ref: t, ...e }) {
130  return rt.jsx(ee, { ref: t, ...e, children: rt.jsx("path", { d: "M5 12H19M19 12L12 5M19 12L12 19", stroke: "currentColor", strokeWidth: "1.2", vectorEffect: "non-scaling-stroke", strokeLinecap: "round", strokeLinejoin: "round" }) });
131}
132function cl({ ref: t, ...e }) {
133  return rt.jsx(ee, { ref: t, ...e, children: rt.jsx("path", { d: "M6 9L12 15L18 9", stroke: "currentColor", strokeWidth: "1.2", vectorEffect: "non-scaling-stroke", strokeLinecap: "round", strokeLinejoin: "round" }) });
134}
135function ll({ ref: t, ...e }) {
136  return rt.jsx(ee, { ref: t, ...e, children: rt.jsx("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: "1.2", vectorEffect: "non-scaling-stroke", strokeLinecap: "round", strokeLinejoin: "round" }) });
137}
138function wn(t, e, n) {
139  const o = se(t, n), r = se(e, n);
140  return +o == +r;
141}
142const vn = {
143  lessThanXSeconds: {
144    one: "menos de un segundo",
145    other: "menos de {{count}} segundos"
146  },
147  xSeconds: {
148    one: "1 segundo",
149    other: "{{count}} segundos"
150  },
151  halfAMinute: "medio minuto",
152  lessThanXMinutes: {
153    one: "menos de un minuto",
154    other: "menos de {{count}} minutos"
155  },
156  xMinutes: {
157    one: "1 minuto",
158    other: "{{count}} minutos"
159  },
160  aboutXHours: {
161    one: "alrededor de 1 hora",
162    other: "alrededor de {{count}} horas"
163  },
164  xHours: {
165    one: "1 hora",
166    other: "{{count}} horas"
167  },
168  xDays: {
169    one: "1 día",
170    other: "{{count}} días"
171  },
172  aboutXWeeks: {
173    one: "alrededor de 1 semana",
174    other: "alrededor de {{count}} semanas"
175  },
176  xWeeks: {
177    one: "1 semana",
178    other: "{{count}} semanas"
179  },
180  aboutXMonths: {
181    one: "alrededor de 1 mes",
182    other: "alrededor de {{count}} meses"
183  },
184  xMonths: {
185    one: "1 mes",
186    other: "{{count}} meses"
187  },
188  aboutXYears: {
189    one: "alrededor de 1 año",
190    other: "alrededor de {{count}} años"
191  },
192  xYears: {
193    one: "1 año",
194    other: "{{count}} años"
195  },
196  overXYears: {
197    one: "más de 1 año",
198    other: "más de {{count}} años"
199  },
200  almostXYears: {
201    one: "casi 1 año",
202    other: "casi {{count}} años"
203  }
204}, Sn = (t, e, n) => {
205  let o;
206  const r = vn[t];
207  return typeof r == "string" ? o = r : e === 1 ? o = r.one : o = r.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "en " + o : "hace " + o : o;
208}, Cn = {
209  full: "EEEE, d 'de' MMMM 'de' y",
210  long: "d 'de' MMMM 'de' y",
211  medium: "d MMM y",
212  short: "dd/MM/y"
213}, kn = {
214  full: "HH:mm:ss zzzz",
215  long: "HH:mm:ss z",
216  medium: "HH:mm:ss",
217  short: "HH:mm"
218}, _n = {
219  full: "{{date}} 'a las' {{time}}",
220  long: "{{date}} 'a las' {{time}}",
221  medium: "{{date}}, {{time}}",
222  short: "{{date}}, {{time}}"
223}, Pn = {
224  date: j({
225    formats: Cn,
226    defaultWidth: "full"
227  }),
228  time: j({
229    formats: kn,
230    defaultWidth: "full"
231  }),
232  dateTime: j({
233    formats: _n,
234    defaultWidth: "full"
235  })
236}, Mn = {
237  lastWeek: "'el' eeee 'pasado a la' p",
238  yesterday: "'ayer a la' p",
239  today: "'hoy a la' p",
240  tomorrow: "'mañana a la' p",
241  nextWeek: "eeee 'a la' p",
242  other: "P"
243}, Tn = {
244  lastWeek: "'el' eeee 'pasado a las' p",
245  yesterday: "'ayer a las' p",
246  today: "'hoy a las' p",
247  tomorrow: "'mañana a las' p",
248  nextWeek: "eeee 'a las' p",
249  other: "P"
250}, $n = (t, e, n, o) => e.getHours() !== 1 ? Tn[t] : Mn[t], Nn = {
251  narrow: ["AC", "DC"],
252  abbreviated: ["AC", "DC"],
253  wide: ["antes de cristo", "después de cristo"]
254}, Wn = {
255  narrow: ["1", "2", "3", "4"],
256  abbreviated: ["T1", "T2", "T3", "T4"],
257  wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
258}, Rn = {
259  narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
260  abbreviated: [
261    "ene",
262    "feb",
263    "mar",
264    "abr",
265    "may",
266    "jun",
267    "jul",
268    "ago",
269    "sep",
270    "oct",
271    "nov",
272    "dic"
273  ],
274  wide: [
275    "enero",
276    "febrero",
277    "marzo",
278    "abril",
279    "mayo",
280    "junio",
281    "julio",
282    "agosto",
283    "septiembre",
284    "octubre",
285    "noviembre",
286    "diciembre"
287  ]
288}, Dn = {
289  narrow: ["d", "l", "m", "m", "j", "v", "s"],
290  short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"],
291  abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
292  wide: [
293    "domingo",
294    "lunes",
295    "martes",
296    "miércoles",
297    "jueves",
298    "viernes",
299    "sábado"
300  ]
301}, Bn = {
302  narrow: {
303    am: "a",
304    pm: "p",
305    midnight: "mn",
306    noon: "md",
307    morning: "mañana",
308    afternoon: "tarde",
309    evening: "tarde",
310    night: "noche"
311  },
312  abbreviated: {
313    am: "AM",
314    pm: "PM",
315    midnight: "medianoche",
316    noon: "mediodia",
317    morning: "mañana",
318    afternoon: "tarde",
319    evening: "tarde",
320    night: "noche"
321  },
322  wide: {
323    am: "a.m.",
324    pm: "p.m.",
325    midnight: "medianoche",
326    noon: "mediodia",
327    morning: "mañana",
328    afternoon: "tarde",
329    evening: "tarde",
330    night: "noche"
331  }
332}, Ln = {
333  narrow: {
334    am: "a",
335    pm: "p",
336    midnight: "mn",
337    noon: "md",
338    morning: "de la mañana",
339    afternoon: "de la tarde",
340    evening: "de la tarde",
341    night: "de la noche"
342  },
343  abbreviated: {
344    am: "AM",
345    pm: "PM",
346    midnight: "medianoche",
347    noon: "mediodia",
348    morning: "de la mañana",
349    afternoon: "de la tarde",
350    evening: "de la tarde",
351    night: "de la noche"
352  },
353  wide: {
354    am: "a.m.",
355    pm: "p.m.",
356    midnight: "medianoche",
357    noon: "mediodia",
358    morning: "de la mañana",
359    afternoon: "de la tarde",
360    evening: "de la tarde",
361    night: "de la noche"
362  }
363}, En = (t, e) => Number(t) + "º", An = {
364  ordinalNumber: En,
365  era: M({
366    values: Nn,
367    defaultWidth: "wide"
368  }),
369  quarter: M({
370    values: Wn,
371    defaultWidth: "wide",
372    argumentCallback: (t) => Number(t) - 1
373  }),
374  month: M({
375    values: Rn,
376    defaultWidth: "wide"
377  }),
378  day: M({
379    values: Dn,
380    defaultWidth: "wide"
381  }),
382  dayPeriod: M({
383    values: Bn,
384    defaultWidth: "wide",
385    formattingValues: Ln,
386    defaultFormattingWidth: "wide"
387  })
388}, zn = /^(\d+)(º)?/i, On = /\d+/i, Fn = {
389  narrow: /^(ac|dc|a|d)/i,
390  abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
391  wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i
392}, In = {
393  any: [/^ac/i, /^dc/i],
394  wide: [
395    /^(antes de cristo|antes de la era com[uú]n)/i,
396    /^(despu[eé]s de cristo|era com[uú]n)/i
397  ]
398}, Hn = {
399  narrow: /^[1234]/i,
400  abbreviated: /^T[1234]/i,
401  wide: /^[1234](º)? trimestre/i
402}, jn = {
403  any: [/1/i, /2/i, /3/i, /4/i]
404}, Vn = {
405  narrow: /^[efmajsond]/i,
406  abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,
407  wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i
408}, Kn = {
409  narrow: [
410    /^e/i,
411    /^f/i,
412    /^m/i,
413    /^a/i,
414    /^m/i,
415    /^j/i,
416    /^j/i,
417    /^a/i,
418    /^s/i,
419    /^o/i,
420    /^n/i,
421    /^d/i
422  ],
423  any: [
424    /^en/i,
425    /^feb/i,
426    /^mar/i,
427    /^abr/i,
428    /^may/i,
429    /^jun/i,
430    /^jul/i,
431    /^ago/i,
432    /^sep/i,
433    /^oct/i,
434    /^nov/i,
435    /^dic/i
436  ]
437}, Yn = {
438  narrow: /^[dlmjvs]/i,
439  short: /^(do|lu|ma|mi|ju|vi|s[áa])/i,
440  abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,
441  wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i
442}, qn = {
443  narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
444  any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]
445}, Un = {
446  narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,
447  any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i
448}, Gn = {
449  any: {
450    am: /^a/i,
451    pm: /^p/i,
452    midnight: /^mn/i,
453    noon: /^md/i,
454    morning: /mañana/i,
455    afternoon: /tarde/i,
456    evening: /tarde/i,
457    night: /noche/i
458  }
459}, Xn = {
460  ordinalNumber: mt({
461    matchPattern: zn,
462    parsePattern: On,
463    valueCallback: function(t) {
464      return parseInt(t, 10);
465    }
466  }),
467  era: T({
468    matchPatterns: Fn,
469    defaultMatchWidth: "wide",
470    parsePatterns: In,
471    defaultParseWidth: "any"
472  }),
473  quarter: T({
474    matchPatterns: Hn,
475    defaultMatchWidth: "wide",
476    parsePatterns: jn,
477    defaultParseWidth: "any",
478    valueCallback: (t) => t + 1
479  }),
480  month: T({
481    matchPatterns: Vn,
482    defaultMatchWidth: "wide",
483    parsePatterns: Kn,
484    defaultParseWidth: "any"
485  }),
486  day: T({
487    matchPatterns: Yn,
488    defaultMatchWidth: "wide",
489    parsePatterns: qn,
490    defaultParseWidth: "any"
491  }),
492  dayPeriod: T({
493    matchPatterns: Un,
494    defaultMatchWidth: "any",
495    parsePatterns: Gn,
496    defaultParseWidth: "any"
497  })
498}, Qn = {
499  code: "es",
500  formatDistance: Sn,
501  formatLong: Pn,
502  formatRelative: $n,
503  localize: An,
504  match: Xn,
505  options: {
506    weekStartsOn: 1,
507    firstWeekContainsDate: 1
508  }
509}, Zn = {
510  lessThanXSeconds: {
511    one: "1秒未満",
512    other: "{{count}}秒未満",
513    oneWithSuffix: "約1秒",
514    otherWithSuffix: "約{{count}}秒"
515  },
516  xSeconds: {
517    one: "1秒",
518    other: "{{count}}秒"
519  },
520  halfAMinute: "30秒",
521  lessThanXMinutes: {
522    one: "1分未満",
523    other: "{{count}}分未満",
524    oneWithSuffix: "約1分",
525    otherWithSuffix: "約{{count}}分"
526  },
527  xMinutes: {
528    one: "1分",
529    other: "{{count}}分"
530  },
531  aboutXHours: {
532    one: "約1時間",
533    other: "約{{count}}時間"
534  },
535  xHours: {
536    one: "1時間",
537    other: "{{count}}時間"
538  },
539  xDays: {
540    one: "1日",
541    other: "{{count}}日"
542  },
543  aboutXWeeks: {
544    one: "約1週間",
545    other: "約{{count}}週間"
546  },
547  xWeeks: {
548    one: "1週間",
549    other: "{{count}}週間"
550  },
551  aboutXMonths: {
552    one: "約1か月",
553    other: "約{{count}}か月"
554  },
555  xMonths: {
556    one: "1か月",
557    other: "{{count}}か月"
558  },
559  aboutXYears: {
560    one: "約1年",
561    other: "約{{count}}年"
562  },
563  xYears: {
564    one: "1å¹´",
565    other: "{{count}}å¹´"
566  },
567  overXYears: {
568    one: "1年以上",
569    other: "{{count}}年以上"
570  },
571  almostXYears: {
572    one: "1年近く",
573    other: "{{count}}年近く"
574  }
575}, Jn = (t, e, n) => {
576  n = n || {};
577  let o;
578  const r = Zn[t];
579  return typeof r == "string" ? o = r : e === 1 ? n.addSuffix && r.oneWithSuffix ? o = r.oneWithSuffix : o = r.one : n.addSuffix && r.otherWithSuffix ? o = r.otherWithSuffix.replace("{{count}}", String(e)) : o = r.other.replace("{{count}}", String(e)), n.addSuffix ? n.comparison && n.comparison > 0 ? o + "後" : o + "前" : o;
580}, to = {
581  full: "y年M月d日EEEE",
582  long: "y年M月d日",
583  medium: "y/MM/dd",
584  short: "y/MM/dd"
585}, eo = {
586  full: "H時mm分ss秒 zzzz",
587  long: "H:mm:ss z",
588  medium: "H:mm:ss",
589  short: "H:mm"
590}, no = {
591  full: "{{date}} {{time}}",
592  long: "{{date}} {{time}}",
593  medium: "{{date}} {{time}}",
594  short: "{{date}} {{time}}"
595}, oo = {
596  date: j({
597    formats: to,
598    defaultWidth: "full"
599  }),
600  time: j({
601    formats: eo,
602    defaultWidth: "full"
603  }),
604  dateTime: j({
605    formats: no,
606    defaultWidth: "full"
607  })
608}, ro = {
609  lastWeek: "先週のeeeeのp",
610  yesterday: "昨日のp",
611  today: "今日のp",
612  tomorrow: "明日のp",
613  nextWeek: "翌週のeeeeのp",
614  other: "P"
615}, ao = (t, e, n, o) => ro[t], io = {
616  narrow: ["BC", "AC"],
617  abbreviated: ["紀元前", "西暦"],
618  wide: ["紀元前", "西暦"]
619}, so = {
620  narrow: ["1", "2", "3", "4"],
621  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
622  wide: ["第1四半期", "第2四半期", "第3四半期", "第4四半期"]
623}, co = {
624  narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
625  abbreviated: [
626    "1月",
627    "2月",
628    "3月",
629    "4月",
630    "5月",
631    "6月",
632    "7月",
633    "8月",
634    "9月",
635    "10月",
636    "11月",
637    "12月"
638  ],
639  wide: [
640    "1月",
641    "2月",
642    "3月",
643    "4月",
644    "5月",
645    "6月",
646    "7月",
647    "8月",
648    "9月",
649    "10月",
650    "11月",
651    "12月"
652  ]
653}, lo = {
654  narrow: ["日", "月", "火", "水", "木", "金", "土"],
655  short: ["日", "月", "火", "水", "木", "金", "土"],
656  abbreviated: ["日", "月", "火", "水", "木", "金", "土"],
657  wide: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"]
658}, mo = {
659  narrow: {
660    am: "午前",
661    pm: "午後",
662    midnight: "深夜",
663    noon: "正午",
664    morning: "朝",
665    afternoon: "午後",
666    evening: "夜",
667    night: "深夜"
668  },
669  abbreviated: {
670    am: "午前",
671    pm: "午後",
672    midnight: "深夜",
673    noon: "正午",
674    morning: "朝",
675    afternoon: "午後",
676    evening: "夜",
677    night: "深夜"
678  },
679  wide: {
680    am: "午前",
681    pm: "午後",
682    midnight: "深夜",
683    noon: "正午",
684    morning: "朝",
685    afternoon: "午後",
686    evening: "夜",
687    night: "深夜"
688  }
689}, po = {
690  narrow: {
691    am: "午前",
692    pm: "午後",
693    midnight: "深夜",
694    noon: "正午",
695    morning: "朝",
696    afternoon: "午後",
697    evening: "夜",
698    night: "深夜"
699  },
700  abbreviated: {
701    am: "午前",
702    pm: "午後",
703    midnight: "深夜",
704    noon: "正午",
705    morning: "朝",
706    afternoon: "午後",
707    evening: "夜",
708    night: "深夜"
709  },
710  wide: {
711    am: "午前",
712    pm: "午後",
713    midnight: "深夜",
714    noon: "正午",
715    morning: "朝",
716    afternoon: "午後",
717    evening: "夜",
718    night: "深夜"
719  }
720}, uo = (t, e) => {
721  const n = Number(t);
722  switch (String(e == null ? void 0 : e.unit)) {
723    case "year":
724      return `${n}å¹´`;
725    case "quarter":
726      return `第${n}四半期`;
727    case "month":
728      return `${n}月`;
729    case "week":
730      return `第${n}週`;
731    case "date":
732      return `${n}日`;
733    case "hour":
734      return `${n}時`;
735    case "minute":
736      return `${n}分`;
737    case "second":
738      return `${n}秒`;
739    default:
740      return `${n}`;
741  }
742}, ho = {
743  ordinalNumber: uo,
744  era: M({
745    values: io,
746    defaultWidth: "wide"
747  }),
748  quarter: M({
749    values: so,
750    defaultWidth: "wide",
751    argumentCallback: (t) => Number(t) - 1
752  }),
753  month: M({
754    values: co,
755    defaultWidth: "wide"
756  }),
757  day: M({
758    values: lo,
759    defaultWidth: "wide"
760  }),
761  dayPeriod: M({
762    values: mo,
763    defaultWidth: "wide",
764    formattingValues: po,
765    defaultFormattingWidth: "wide"
766  })
767}, go = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i, fo = /\d+/i, bo = {
768  narrow: /^(B\.?C\.?|A\.?D\.?)/i,
769  abbreviated: /^(紀元[前後]|西暦)/i,
770  wide: /^(紀元[前後]|西暦)/i
771}, yo = {
772  narrow: [/^B/i, /^A/i],
773  any: [/^(紀元前)/i, /^(西暦|紀元後)/i]
774}, xo = {
775  narrow: /^[1234]/i,
776  abbreviated: /^Q[1234]/i,
777  wide: /^第[1234一二三四1234]四半期/i
778}, wo = {
779  any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i]
780}, vo = {
781  narrow: /^([123456789]|1[012])/,
782  abbreviated: /^([123456789]|1[012])月/i,
783  wide: /^([123456789]|1[012])月/i
784}, So = {
785  any: [
786    /^1\D/,
787    /^2/,
788    /^3/,
789    /^4/,
790    /^5/,
791    /^6/,
792    /^7/,
793    /^8/,
794    /^9/,
795    /^10/,
796    /^11/,
797    /^12/
798  ]
799}, Co = {
800  narrow: /^[日月火水木金土]/,
801  short: /^[日月火水木金土]/,
802  abbreviated: /^[日月火水木金土]/,
803  wide: /^[日月火水木金土]曜日/
804}, ko = {
805  any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/]
806}, _o = {
807  any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i
808}, Po = {
809  any: {
810    am: /^(A|午前)/i,
811    pm: /^(P|午後)/i,
812    midnight: /^深夜|真夜中/i,
813    noon: /^正午/i,
814    morning: /^朝/i,
815    afternoon: /^午後/i,
816    evening: /^夜/i,
817    night: /^深夜/i
818  }
819}, Mo = {
820  ordinalNumber: mt({
821    matchPattern: go,
822    parsePattern: fo,
823    valueCallback: function(t) {
824      return parseInt(t, 10);
825    }
826  }),
827  era: T({
828    matchPatterns: bo,
829    defaultMatchWidth: "wide",
830    parsePatterns: yo,
831    defaultParseWidth: "any"
832  }),
833  quarter: T({
834    matchPatterns: xo,
835    defaultMatchWidth: "wide",
836    parsePatterns: wo,
837    defaultParseWidth: "any",
838    valueCallback: (t) => t + 1
839  }),
840  month: T({
841    matchPatterns: vo,
842    defaultMatchWidth: "wide",
843    parsePatterns: So,
844    defaultParseWidth: "any"
845  }),
846  day: T({
847    matchPatterns: Co,
848    defaultMatchWidth: "wide",
849    parsePatterns: ko,
850    defaultParseWidth: "any"
851  }),
852  dayPeriod: T({
853    matchPatterns: _o,
854    defaultMatchWidth: "any",
855    parsePatterns: Po,
856    defaultParseWidth: "any"
857  })
858}, To = {
859  code: "ja",
860  formatDistance: Jn,
861  formatLong: oo,
862  formatRelative: ao,
863  localize: ho,
864  match: Mo,
865  options: {
866    weekStartsOn: 0,
867    firstWeekContainsDate: 1
868  }
869}, $o = {
870  lessThanXSeconds: {
871    one: "1초 미만",
872    other: "{{count}}초 미만"
873  },
874  xSeconds: {
875    one: "1초",
876    other: "{{count}}초"
877  },
878  halfAMinute: "30초",
879  lessThanXMinutes: {
880    one: "1분 미만",
881    other: "{{count}}분 미만"
882  },
883  xMinutes: {
884    one: "1분",
885    other: "{{count}}분"
886  },
887  aboutXHours: {
888    one: "약 1시간",
889    other: "약 {{count}}시간"
890  },
891  xHours: {
892    one: "1시간",
893    other: "{{count}}시간"
894  },
895  xDays: {
896    one: "1일",
897    other: "{{count}}일"
898  },
899  aboutXWeeks: {
900    one: "약 1주",
901    other: "약 {{count}}주"
902  },
903  xWeeks: {
904    one: "1주",
905    other: "{{count}}주"
906  },
907  aboutXMonths: {
908    one: "약 1개월",
909    other: "약 {{count}}개월"
910  },
911  xMonths: {
912    one: "1개월",
913    other: "{{count}}개월"
914  },
915  aboutXYears: {
916    one: "약 1년",
917    other: "약 {{count}}년"
918  },
919  xYears: {
920    one: "1년",
921    other: "{{count}}년"
922  },
923  overXYears: {
924    one: "1년 이상",
925    other: "{{count}}년 이상"
926  },
927  almostXYears: {
928    one: "거의 1년",
929    other: "거의 {{count}}년"
930  }
931}, No = (t, e, n) => {
932  let o;
933  const r = $o[t];
934  return typeof r == "string" ? o = r : e === 1 ? o = r.one : o = r.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? o + " 후" : o + " 전" : o;
935}, Wo = {
936  full: "y년 M월 d일 EEEE",
937  long: "y년 M월 d일",
938  medium: "y.MM.dd",
939  short: "y.MM.dd"
940}, Ro = {
941  full: "a H시 mm분 ss초 zzzz",
942  long: "a H:mm:ss z",
943  medium: "HH:mm:ss",
944  short: "HH:mm"
945}, Do = {
946  full: "{{date}} {{time}}",
947  long: "{{date}} {{time}}",
948  medium: "{{date}} {{time}}",
949  short: "{{date}} {{time}}"
950}, Bo = {
951  date: j({
952    formats: Wo,
953    defaultWidth: "full"
954  }),
955  time: j({
956    formats: Ro,
957    defaultWidth: "full"
958  }),
959  dateTime: j({
960    formats: Do,
961    defaultWidth: "full"
962  })
963}, Lo = {
964  lastWeek: "'지난' eeee p",
965  yesterday: "'어제' p",
966  today: "'오늘' p",
967  tomorrow: "'내일' p",
968  nextWeek: "'다음' eeee p",
969  other: "P"
970}, Eo = (t, e, n, o) => Lo[t], Ao = {
971  narrow: ["BC", "AD"],
972  abbreviated: ["BC", "AD"],
973  wide: ["기원전", "서기"]
974}, zo = {
975  narrow: ["1", "2", "3", "4"],
976  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
977  wide: ["1분기", "2분기", "3분기", "4분기"]
978}, Oo = {
979  narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
980  abbreviated: [
981    "1월",
982    "2월",
983    "3월",
984    "4월",
985    "5월",
986    "6월",
987    "7월",
988    "8월",
989    "9월",
990    "10월",
991    "11월",
992    "12월"
993  ],
994  wide: [
995    "1월",
996    "2월",
997    "3월",
998    "4월",
999    "5월",
1000    "6월",
1001    "7월",
1002    "8월",
1003    "9월",
1004    "10월",
1005    "11월",
1006    "12월"
1007  ]
1008}, Fo = {
1009  narrow: ["일", "월", "화", "수", "목", "금", "토"],
1010  short: ["일", "월", "화", "수", "목", "금", "토"],
1011  abbreviated: ["일", "월", "화", "수", "목", "금", "토"],
1012  wide: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
1013}, Io = {
1014  narrow: {
1015    am: "오전",
1016    pm: "오후",
1017    midnight: "자정",
1018    noon: "정오",
1019    morning: "아침",
1020    afternoon: "오후",
1021    evening: "저녁",
1022    night: "ë°¤"
1023  },
1024  abbreviated: {
1025    am: "오전",
1026    pm: "오후",
1027    midnight: "자정",
1028    noon: "정오",
1029    morning: "아침",
1030    afternoon: "오후",
1031    evening: "저녁",
1032    night: "ë°¤"
1033  },
1034  wide: {
1035    am: "오전",
1036    pm: "오후",
1037    midnight: "자정",
1038    noon: "정오",
1039    morning: "아침",
1040    afternoon: "오후",
1041    evening: "저녁",
1042    night: "ë°¤"
1043  }
1044}, Ho = {
1045  narrow: {
1046    am: "오전",
1047    pm: "오후",
1048    midnight: "자정",
1049    noon: "정오",
1050    morning: "아침",
1051    afternoon: "오후",
1052    evening: "저녁",
1053    night: "ë°¤"
1054  },
1055  abbreviated: {
1056    am: "오전",
1057    pm: "오후",
1058    midnight: "자정",
1059    noon: "정오",
1060    morning: "아침",
1061    afternoon: "오후",
1062    evening: "저녁",
1063    night: "ë°¤"
1064  },
1065  wide: {
1066    am: "오전",
1067    pm: "오후",
1068    midnight: "자정",
1069    noon: "정오",
1070    morning: "아침",
1071    afternoon: "오후",
1072    evening: "저녁",
1073    night: "ë°¤"
1074  }
1075}, jo = (t, e) => {
1076  const n = Number(t);
1077  switch (String(e == null ? void 0 : e.unit)) {
1078    case "minute":
1079    case "second":
1080      return String(n);
1081    case "date":
1082      return n + "일";
1083    default:
1084      return n + "번째";
1085  }
1086}, Vo = {
1087  ordinalNumber: jo,
1088  era: M({
1089    values: Ao,
1090    defaultWidth: "wide"
1091  }),
1092  quarter: M({
1093    values: zo,
1094    defaultWidth: "wide",
1095    argumentCallback: (t) => t - 1
1096  }),
1097  month: M({
1098    values: Oo,
1099    defaultWidth: "wide"
1100  }),
1101  day: M({
1102    values: Fo,
1103    defaultWidth: "wide"
1104  }),
1105  dayPeriod: M({
1106    values: Io,
1107    defaultWidth: "wide",
1108    formattingValues: Ho,
1109    defaultFormattingWidth: "wide"
1110  })
1111}, Ko = /^(\d+)(일|번째)?/i, Yo = /\d+/i, qo = {
1112  narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1113  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1114  wide: /^(기원전|서기)/i
1115}, Uo = {
1116  any: [/^(bc|기원전)/i, /^(ad|서기)/i]
1117}, Go = {
1118  narrow: /^[1234]/i,
1119  abbreviated: /^q[1234]/i,
1120  wide: /^[1234]사?분기/i
1121}, Xo = {
1122  any: [/1/i, /2/i, /3/i, /4/i]
1123}, Qo = {
1124  narrow: /^(1[012]|[123456789])/,
1125  abbreviated: /^(1[012]|[123456789])월/i,
1126  wide: /^(1[012]|[123456789])월/i
1127}, Zo = {
1128  any: [
1129    /^1월?$/,
1130    /^2/,
1131    /^3/,
1132    /^4/,
1133    /^5/,
1134    /^6/,
1135    /^7/,
1136    /^8/,
1137    /^9/,
1138    /^10/,
1139    /^11/,
1140    /^12/
1141  ]
1142}, Jo = {
1143  narrow: /^[일월화수목금토]/,
1144  short: /^[일월화수목금토]/,
1145  abbreviated: /^[일월화수목금토]/,
1146  wide: /^[일월화수목금토]요일/
1147}, tr = {
1148  any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/]
1149}, er = {
1150  any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i
1151}, nr = {
1152  any: {
1153    am: /^(am|오전)/i,
1154    pm: /^(pm|오후)/i,
1155    midnight: /^자정/i,
1156    noon: /^정오/i,
1157    morning: /^아침/i,
1158    afternoon: /^오후/i,
1159    evening: /^저녁/i,
1160    night: /^ë°¤/i
1161  }
1162}, or = {
1163  ordinalNumber: mt({
1164    matchPattern: Ko,
1165    parsePattern: Yo,
1166    valueCallback: (t) => parseInt(t, 10)
1167  }),
1168  era: T({
1169    matchPatterns: qo,
1170    defaultMatchWidth: "wide",
1171    parsePatterns: Uo,
1172    defaultParseWidth: "any"
1173  }),
1174  quarter: T({
1175    matchPatterns: Go,
1176    defaultMatchWidth: "wide",
1177    parsePatterns: Xo,
1178    defaultParseWidth: "any",
1179    valueCallback: (t) => t + 1
1180  }),
1181  month: T({
1182    matchPatterns: Qo,
1183    defaultMatchWidth: "wide",
1184    parsePatterns: Zo,
1185    defaultParseWidth: "any"
1186  }),
1187  day: T({
1188    matchPatterns: Jo,
1189    defaultMatchWidth: "wide",
1190    parsePatterns: tr,
1191    defaultParseWidth: "any"
1192  }),
1193  dayPeriod: T({
1194    matchPatterns: er,
1195    defaultMatchWidth: "any",
1196    parsePatterns: nr,
1197    defaultParseWidth: "any"
1198  })
1199}, ve = {
1200  code: "ko",
1201  formatDistance: No,
1202  formatLong: Bo,
1203  formatRelative: Eo,
1204  localize: Vo,
1205  match: or,
1206  options: {
1207    weekStartsOn: 0,
1208    firstWeekContainsDate: 1
1209  }
1210}, rr = {
1211  lessThanXSeconds: {
1212    one: "dưới 1 giây",
1213    other: "dưới {{count}} giây"
1214  },
1215  xSeconds: {
1216    one: "1 giây",
1217    other: "{{count}} giây"
1218  },
1219  halfAMinute: "nửa phút",
1220  lessThanXMinutes: {
1221    one: "dưới 1 phút",
1222    other: "dưới {{count}} phút"
1223  },
1224  xMinutes: {
1225    one: "1 phút",
1226    other: "{{count}} phút"
1227  },
1228  aboutXHours: {
1229    one: "khoảng 1 giờ",
1230    other: "khoảng {{count}} giờ"
1231  },
1232  xHours: {
1233    one: "1 giờ",
1234    other: "{{count}} giờ"
1235  },
1236  xDays: {
1237    one: "1 ngày",
1238    other: "{{count}} ngày"
1239  },
1240  aboutXWeeks: {
1241    one: "khoảng 1 tuần",
1242    other: "khoảng {{count}} tuần"
1243  },
1244  xWeeks: {
1245    one: "1 tuần",
1246    other: "{{count}} tuần"
1247  },
1248  aboutXMonths: {
1249    one: "khoảng 1 tháng",
1250    other: "khoảng {{count}} tháng"
1251  },
1252  xMonths: {
1253    one: "1 tháng",
1254    other: "{{count}} tháng"
1255  },
1256  aboutXYears: {
1257    one: "khoảng 1 năm",
1258    other: "khoảng {{count}} năm"
1259  },
1260  xYears: {
1261    one: "1 năm",
1262    other: "{{count}} năm"
1263  },
1264  overXYears: {
1265    one: "hơn 1 năm",
1266    other: "hơn {{count}} năm"
1267  },
1268  almostXYears: {
1269    one: "gần 1 năm",
1270    other: "gần {{count}} năm"
1271  }
1272}, ar = (t, e, n) => {
1273  let o;
1274  const r = rr[t];
1275  return typeof r == "string" ? o = r : e === 1 ? o = r.one : o = r.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? o + " nữa" : o + " trước" : o;
1276}, ir = {
1277  // thứ Sáu, ngày 25 tháng 08 năm 2017
1278  full: "EEEE, 'ngày' d MMMM 'năm' y",
1279  // ngày 25 tháng 08 năm 2017
1280  long: "'ngày' d MMMM 'năm' y",
1281  // 25 thg 08 năm 2017
1282  medium: "d MMM 'năm' y",
1283  // 25/08/2017
1284  short: "dd/MM/y"
1285}, sr = {
1286  full: "HH:mm:ss zzzz",
1287  long: "HH:mm:ss z",
1288  medium: "HH:mm:ss",
1289  short: "HH:mm"
1290}, cr = {
1291  // thứ Sáu, ngày 25 tháng 08 năm 2017 23:25:59
1292  full: "{{date}} {{time}}",
1293  // ngày 25 tháng 08 năm 2017 23:25
1294  long: "{{date}} {{time}}",
1295  medium: "{{date}} {{time}}",
1296  short: "{{date}} {{time}}"
1297}, lr = {
1298  date: j({
1299    formats: ir,
1300    defaultWidth: "full"
1301  }),
1302  time: j({
1303    formats: sr,
1304    defaultWidth: "full"
1305  }),
1306  dateTime: j({
1307    formats: cr,
1308    defaultWidth: "full"
1309  })
1310}, dr = {
1311  lastWeek: "eeee 'tuần trước vào lúc' p",
1312  yesterday: "'hôm qua vào lúc' p",
1313  today: "'hôm nay vào lúc' p",
1314  tomorrow: "'ngày mai vào lúc' p",
1315  nextWeek: "eeee 'tới vào lúc' p",
1316  other: "P"
1317}, mr = (t, e, n, o) => dr[t], pr = {
1318  narrow: ["TCN", "SCN"],
1319  abbreviated: ["trước CN", "sau CN"],
1320  wide: ["trước Công Nguyên", "sau Công Nguyên"]
1321}, ur = {
1322  narrow: ["1", "2", "3", "4"],
1323  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1324  wide: ["Quý 1", "Quý 2", "Quý 3", "Quý 4"]
1325}, hr = {
1326  narrow: ["1", "2", "3", "4"],
1327  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1328  // I notice many news outlet use this "quý II/2018"
1329  wide: ["quý I", "quý II", "quý III", "quý IV"]
1330}, gr = {
1331  narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
1332  abbreviated: [
1333    "Thg 1",
1334    "Thg 2",
1335    "Thg 3",
1336    "Thg 4",
1337    "Thg 5",
1338    "Thg 6",
1339    "Thg 7",
1340    "Thg 8",
1341    "Thg 9",
1342    "Thg 10",
1343    "Thg 11",
1344    "Thg 12"
1345  ],
1346  wide: [
1347    "Tháng Một",
1348    "Tháng Hai",
1349    "Tháng Ba",
1350    "Tháng Tư",
1351    "Tháng Năm",
1352    "Tháng Sáu",
1353    "Tháng Bảy",
1354    "Tháng Tám",
1355    "Tháng Chín",
1356    "Tháng Mười",
1357    "Tháng Mười Một",
1358    "Tháng Mười Hai"
1359  ]
1360}, fr = {
1361  narrow: [
1362    "01",
1363    "02",
1364    "03",
1365    "04",
1366    "05",
1367    "06",
1368    "07",
1369    "08",
1370    "09",
1371    "10",
1372    "11",
1373    "12"
1374  ],
1375  abbreviated: [
1376    "thg 1",
1377    "thg 2",
1378    "thg 3",
1379    "thg 4",
1380    "thg 5",
1381    "thg 6",
1382    "thg 7",
1383    "thg 8",
1384    "thg 9",
1385    "thg 10",
1386    "thg 11",
1387    "thg 12"
1388  ],
1389  wide: [
1390    "tháng 01",
1391    "tháng 02",
1392    "tháng 03",
1393    "tháng 04",
1394    "tháng 05",
1395    "tháng 06",
1396    "tháng 07",
1397    "tháng 08",
1398    "tháng 09",
1399    "tháng 10",
1400    "tháng 11",
1401    "tháng 12"
1402  ]
1403}, br = {
1404  narrow: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
1405  short: ["CN", "Th 2", "Th 3", "Th 4", "Th 5", "Th 6", "Th 7"],
1406  abbreviated: ["CN", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7"],
1407  wide: [
1408    "Chủ Nhật",
1409    "Thứ Hai",
1410    "Thứ Ba",
1411    "Thứ Tư",
1412    "Thứ Năm",
1413    "Thứ Sáu",
1414    "Thứ Bảy"
1415  ]
1416}, yr = {
1417  // narrow date period is extremely rare in Vietnamese
1418  // I used abbreviated form for noon, morning and afternoon
1419  // which are regconizable by Vietnamese, others cannot be any shorter
1420  narrow: {
1421    am: "am",
1422    pm: "pm",
1423    midnight: "nửa đêm",
1424    noon: "tr",
1425    morning: "sg",
1426    afternoon: "ch",
1427    evening: "tối",
1428    night: "đêm"
1429  },
1430  abbreviated: {
1431    am: "AM",
1432    pm: "PM",
1433    midnight: "nửa đêm",
1434    noon: "trưa",
1435    morning: "sáng",
1436    afternoon: "chiều",
1437    evening: "tối",
1438    night: "đêm"
1439  },
1440  wide: {
1441    am: "SA",
1442    pm: "CH",
1443    midnight: "nửa đêm",
1444    noon: "trưa",
1445    morning: "sáng",
1446    afternoon: "chiều",
1447    evening: "tối",
1448    night: "đêm"
1449  }
1450}, xr = {
1451  narrow: {
1452    am: "am",
1453    pm: "pm",
1454    midnight: "nửa đêm",
1455    noon: "tr",
1456    morning: "sg",
1457    afternoon: "ch",
1458    evening: "tối",
1459    night: "đêm"
1460  },
1461  abbreviated: {
1462    am: "AM",
1463    pm: "PM",
1464    midnight: "nửa đêm",
1465    noon: "trưa",
1466    morning: "sáng",
1467    afternoon: "chiều",
1468    evening: "tối",
1469    night: "đêm"
1470  },
1471  wide: {
1472    am: "SA",
1473    pm: "CH",
1474    midnight: "nửa đêm",
1475    noon: "giữa trưa",
1476    morning: "vào buổi sáng",
1477    afternoon: "vào buổi chiều",
1478    evening: "vào buổi tối",
1479    night: "vào ban đêm"
1480  }
1481}, wr = (t, e) => {
1482  const n = Number(t), o = e == null ? void 0 : e.unit;
1483  if (o === "quarter")
1484    switch (n) {
1485      case 1:
1486        return "I";
1487      case 2:
1488        return "II";
1489      case 3:
1490        return "III";
1491      case 4:
1492        return "IV";
1493    }
1494  else if (o === "day")
1495    switch (n) {
1496      case 1:
1497        return "thứ 2";
1498      case 2:
1499        return "thứ 3";
1500      case 3:
1501        return "thứ 4";
1502      case 4:
1503        return "thứ 5";
1504      case 5:
1505        return "thứ 6";
1506      case 6:
1507        return "thứ 7";
1508      case 7:
1509        return "chủ nhật";
1510    }
1511  else {
1512    if (o === "week")
1513      return n === 1 ? "thứ nhất" : "thứ " + n;
1514    if (o === "dayOfYear")
1515      return n === 1 ? "đầu tiên" : "thứ " + n;
1516  }
1517  return String(n);
1518}, vr = {
1519  ordinalNumber: wr,
1520  era: M({
1521    values: pr,
1522    defaultWidth: "wide"
1523  }),
1524  quarter: M({
1525    values: ur,
1526    defaultWidth: "wide",
1527    formattingValues: hr,
1528    defaultFormattingWidth: "wide",
1529    argumentCallback: (t) => t - 1
1530  }),
1531  month: M({
1532    values: gr,
1533    defaultWidth: "wide",
1534    formattingValues: fr,
1535    defaultFormattingWidth: "wide"
1536  }),
1537  day: M({
1538    values: br,
1539    defaultWidth: "wide"
1540  }),
1541  dayPeriod: M({
1542    values: yr,
1543    defaultWidth: "wide",
1544    formattingValues: xr,
1545    defaultFormattingWidth: "wide"
1546  })
1547}, Sr = /^(\d+)/i, Cr = /\d+/i, kr = {
1548  narrow: /^(tcn|scn)/i,
1549  abbreviated: /^(trước CN|sau CN)/i,
1550  wide: /^(trước Công Nguyên|sau Công Nguyên)/i
1551}, _r = {
1552  any: [/^t/i, /^s/i]
1553}, Pr = {
1554  narrow: /^([1234]|i{1,3}v?)/i,
1555  abbreviated: /^q([1234]|i{1,3}v?)/i,
1556  wide: /^quý ([1234]|i{1,3}v?)/i
1557}, Mr = {
1558  any: [/(1|i)$/i, /(2|ii)$/i, /(3|iii)$/i, /(4|iv)$/i]
1559}, Tr = {
1560  // month number may contain leading 0, 'thg' prefix may have space, underscore or empty before number
1561  // note the order of '1' since it is a sub-string of '10', so must be lower priority
1562  narrow: /^(0?[2-9]|10|11|12|0?1)/i,
1563  // note the order of 'thg 1' since it is sub-string of 'thg 10', so must be lower priority
1564  abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,
1565  // note the order of 'Mười' since it is sub-string of Mười Một, so must be lower priority
1566  wide: /^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i
1567}, $r = {
1568  narrow: [
1569    /0?1$/i,
1570    /0?2/i,
1571    /3/,
1572    /4/,
1573    /5/,
1574    /6/,
1575    /7/,
1576    /8/,
1577    /9/,
1578    /10/,
1579    /11/,
1580    /12/
1581  ],
1582  abbreviated: [
1583    /^thg[ _]?0?1(?!\d)/i,
1584    /^thg[ _]?0?2/i,
1585    /^thg[ _]?0?3/i,
1586    /^thg[ _]?0?4/i,
1587    /^thg[ _]?0?5/i,
1588    /^thg[ _]?0?6/i,
1589    /^thg[ _]?0?7/i,
1590    /^thg[ _]?0?8/i,
1591    /^thg[ _]?0?9/i,
1592    /^thg[ _]?10/i,
1593    /^thg[ _]?11/i,
1594    /^thg[ _]?12/i
1595  ],
1596  wide: [
1597    /^tháng ?(Một|0?1(?!\d))/i,
1598    /^tháng ?(Hai|0?2)/i,
1599    /^tháng ?(Ba|0?3)/i,
1600    /^tháng ?(Tư|0?4)/i,
1601    /^tháng ?(Năm|0?5)/i,
1602    /^tháng ?(Sáu|0?6)/i,
1603    /^tháng ?(Bảy|0?7)/i,
1604    /^tháng ?(Tám|0?8)/i,
1605    /^tháng ?(Chín|0?9)/i,
1606    /^tháng ?(Mười|10)/i,
1607    /^tháng ?(Mười ?Một|11)/i,
1608    /^tháng ?(Mười ?Hai|12)/i
1609  ]
1610}, Nr = {
1611  narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i,
1612  short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
1613  abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
1614  wide: /^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i
1615}, Wr = {
1616  narrow: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i],
1617  short: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i],
1618  abbreviated: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i],
1619  wide: [/(Chủ|Chúa) ?Nhật/i, /Hai/i, /Ba/i, /Tư/i, /Năm/i, /Sáu/i, /Bảy/i]
1620}, Rr = {
1621  narrow: /^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
1622  abbreviated: /^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
1623  wide: /^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i
1624}, Dr = {
1625  any: {
1626    am: /^(a|sa)/i,
1627    pm: /^(p|ch[^i]*)/i,
1628    midnight: /nửa đêm/i,
1629    noon: /trưa/i,
1630    morning: /sáng/i,
1631    afternoon: /chiều/i,
1632    evening: /tối/i,
1633    night: /^đêm/i
1634  }
1635}, Br = {
1636  ordinalNumber: mt({
1637    matchPattern: Sr,
1638    parsePattern: Cr,
1639    valueCallback: (t) => parseInt(t, 10)
1640  }),
1641  era: T({
1642    matchPatterns: kr,
1643    defaultMatchWidth: "wide",
1644    parsePatterns: _r,
1645    defaultParseWidth: "any"
1646  }),
1647  quarter: T({
1648    matchPatterns: Pr,
1649    defaultMatchWidth: "wide",
1650    parsePatterns: Mr,
1651    defaultParseWidth: "any",
1652    valueCallback: (t) => t + 1
1653  }),
1654  month: T({
1655    matchPatterns: Tr,
1656    defaultMatchWidth: "wide",
1657    parsePatterns: $r,
1658    defaultParseWidth: "wide"
1659  }),
1660  day: T({
1661    matchPatterns: Nr,
1662    defaultMatchWidth: "wide",
1663    parsePatterns: Wr,
1664    defaultParseWidth: "wide"
1665  }),
1666  dayPeriod: T({
1667    matchPatterns: Rr,
1668    defaultMatchWidth: "wide",
1669    parsePatterns: Dr,
1670    defaultParseWidth: "any"
1671  })
1672}, Lr = {
1673  code: "vi",
1674  formatDistance: ar,
1675  formatLong: lr,
1676  formatRelative: mr,
1677  localize: vr,
1678  match: Br,
1679  options: {
1680    weekStartsOn: 1,
1681    firstWeekContainsDate: 1
1682  }
1683}, Er = {
1684  lessThanXSeconds: {
1685    one: "不到 1 秒",
1686    other: "不到 {{count}} 秒"
1687  },
1688  xSeconds: {
1689    one: "1 秒",
1690    other: "{{count}} 秒"
1691  },
1692  halfAMinute: "半分钟",
1693  lessThanXMinutes: {
1694    one: "不到 1 分钟",
1695    other: "不到 {{count}} 分钟"
1696  },
1697  xMinutes: {
1698    one: "1 分钟",
1699    other: "{{count}} 分钟"
1700  },
1701  xHours: {
1702    one: "1 小时",
1703    other: "{{count}} 小时"
1704  },
1705  aboutXHours: {
1706    one: "大约 1 小时",
1707    other: "大约 {{count}} 小时"
1708  },
1709  xDays: {
1710    one: "1 天",
1711    other: "{{count}} 天"
1712  },
1713  aboutXWeeks: {
1714    one: "大约 1 个星期",
1715    other: "大约 {{count}} 个星期"
1716  },
1717  xWeeks: {
1718    one: "1 个星期",
1719    other: "{{count}} 个星期"
1720  },
1721  aboutXMonths: {
1722    one: "大约 1 个月",
1723    other: "大约 {{count}} 个月"
1724  },
1725  xMonths: {
1726    one: "1 个月",
1727    other: "{{count}} 个月"
1728  },
1729  aboutXYears: {
1730    one: "大约 1 年",
1731    other: "大约 {{count}} 年"
1732  },
1733  xYears: {
1734    one: "1 å¹´",
1735    other: "{{count}} å¹´"
1736  },
1737  overXYears: {
1738    one: "超过 1 年",
1739    other: "超过 {{count}} 年"
1740  },
1741  almostXYears: {
1742    one: "将近 1 年",
1743    other: "将近 {{count}} 年"
1744  }
1745}, Ar = (t, e, n) => {
1746  let o;
1747  const r = Er[t];
1748  return typeof r == "string" ? o = r : e === 1 ? o = r.one : o = r.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? o + "内" : o + "前" : o;
1749}, zr = {
1750  full: "y'年'M'月'd'日' EEEE",
1751  long: "y'年'M'月'd'日'",
1752  medium: "yyyy-MM-dd",
1753  short: "yy-MM-dd"
1754}, Or = {
1755  full: "zzzz a h:mm:ss",
1756  long: "z a h:mm:ss",
1757  medium: "a h:mm:ss",
1758  short: "a h:mm"
1759}, Fr = {
1760  full: "{{date}} {{time}}",
1761  long: "{{date}} {{time}}",
1762  medium: "{{date}} {{time}}",
1763  short: "{{date}} {{time}}"
1764}, Ir = {
1765  date: j({
1766    formats: zr,
1767    defaultWidth: "full"
1768  }),
1769  time: j({
1770    formats: Or,
1771    defaultWidth: "full"
1772  }),
1773  dateTime: j({
1774    formats: Fr,
1775    defaultWidth: "full"
1776  })
1777};
1778function le(t, e, n) {
1779  const o = "eeee p";
1780  return wn(t, e, n) ? o : t.getTime() > e.getTime() ? "'下个'" + o : "'上个'" + o;
1781}
1782const Hr = {
1783  lastWeek: le,
1784  // days before yesterday, maybe in this week or last week
1785  yesterday: "'昨天' p",
1786  today: "'今天' p",
1787  tomorrow: "'明天' p",
1788  nextWeek: le,
1789  // days after tomorrow, maybe in this week or next week
1790  other: "PP p"
1791}, jr = (t, e, n, o) => {
1792  const r = Hr[t];
1793  return typeof r == "function" ? r(e, n, o) : r;
1794}, Vr = {
1795  narrow: ["前", "公元"],
1796  abbreviated: ["前", "公元"],
1797  wide: ["公元前", "公元"]
1798}, Kr = {
1799  narrow: ["1", "2", "3", "4"],
1800  abbreviated: ["第一季", "第二季", "第三季", "第四季"],
1801  wide: ["第一季度", "第二季度", "第三季度", "第四季度"]
1802}, Yr = {
1803  narrow: [
1804    "一",
1805    "二",
1806    "三",
1807    "四",
1808    "五",
1809    "六",
1810    "七",
1811    "八",
1812    "九",
1813    "十",
1814    "十一",
1815    "十二"
1816  ],
1817  abbreviated: [
1818    "1月",
1819    "2月",
1820    "3月",
1821    "4月",
1822    "5月",
1823    "6月",
1824    "7月",
1825    "8月",
1826    "9月",
1827    "10月",
1828    "11月",
1829    "12月"
1830  ],
1831  wide: [
1832    "一月",
1833    "二月",
1834    "三月",
1835    "四月",
1836    "五月",
1837    "六月",
1838    "七月",
1839    "八月",
1840    "九月",
1841    "十月",
1842    "十一月",
1843    "十二月"
1844  ]
1845}, qr = {
1846  narrow: ["日", "一", "二", "三", "四", "五", "六"],
1847  short: ["日", "一", "二", "三", "四", "五", "六"],
1848  abbreviated: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
1849  wide: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
1850}, Ur = {
1851  narrow: {
1852    am: "上",
1853    pm: "下",
1854    midnight: "凌晨",
1855    noon: "午",
1856    morning: "早",
1857    afternoon: "下午",
1858    evening: "晚",
1859    night: "夜"
1860  },
1861  abbreviated: {
1862    am: "上午",
1863    pm: "下午",
1864    midnight: "凌晨",
1865    noon: "中午",
1866    morning: "早晨",
1867    afternoon: "中午",
1868    evening: "晚上",
1869    night: "夜间"
1870  },
1871  wide: {
1872    am: "上午",
1873    pm: "下午",
1874    midnight: "凌晨",
1875    noon: "中午",
1876    morning: "早晨",
1877    afternoon: "中午",
1878    evening: "晚上",
1879    night: "夜间"
1880  }
1881}, Gr = {
1882  narrow: {
1883    am: "上",
1884    pm: "下",
1885    midnight: "凌晨",
1886    noon: "午",
1887    morning: "早",
1888    afternoon: "下午",
1889    evening: "晚",
1890    night: "夜"
1891  },
1892  abbreviated: {
1893    am: "上午",
1894    pm: "下午",
1895    midnight: "凌晨",
1896    noon: "中午",
1897    morning: "早晨",
1898    afternoon: "中午",
1899    evening: "晚上",
1900    night: "夜间"
1901  },
1902  wide: {
1903    am: "上午",
1904    pm: "下午",
1905    midnight: "凌晨",
1906    noon: "中午",
1907    morning: "早晨",
1908    afternoon: "中午",
1909    evening: "晚上",
1910    night: "夜间"
1911  }
1912}, Xr = (t, e) => {
1913  const n = Number(t);
1914  switch (e == null ? void 0 : e.unit) {
1915    case "date":
1916      return n.toString() + "日";
1917    case "hour":
1918      return n.toString() + "时";
1919    case "minute":
1920      return n.toString() + "分";
1921    case "second":
1922      return n.toString() + "秒";
1923    default:
1924      return "第 " + n.toString();
1925  }
1926}, Qr = {
1927  ordinalNumber: Xr,
1928  era: M({
1929    values: Vr,
1930    defaultWidth: "wide"
1931  }),
1932  quarter: M({
1933    values: Kr,
1934    defaultWidth: "wide",
1935    argumentCallback: (t) => t - 1
1936  }),
1937  month: M({
1938    values: Yr,
1939    defaultWidth: "wide"
1940  }),
1941  day: M({
1942    values: qr,
1943    defaultWidth: "wide"
1944  }),
1945  dayPeriod: M({
1946    values: Ur,
1947    defaultWidth: "wide",
1948    formattingValues: Gr,
1949    defaultFormattingWidth: "wide"
1950  })
1951}, Zr = /^(第\s*)?\d+(日|时|分|秒)?/i, Jr = /\d+/i, ta = {
1952  narrow: /^(前)/i,
1953  abbreviated: /^(前)/i,
1954  wide: /^(公元前|公元)/i
1955}, ea = {
1956  any: [/^(前)/i, /^(公元)/i]
1957}, na = {
1958  narrow: /^[1234]/i,
1959  abbreviated: /^第[一二三四]刻/i,
1960  wide: /^第[一二三四]刻钟/i
1961}, oa = {
1962  any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
1963}, ra = {
1964  narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
1965  abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
1966  wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
1967}, aa = {
1968  narrow: [
1969    /^一/i,
1970    /^二/i,
1971    /^三/i,
1972    /^四/i,
1973    /^五/i,
1974    /^六/i,
1975    /^七/i,
1976    /^八/i,
1977    /^九/i,
1978    /^十(?!(一|二))/i,
1979    /^十一/i,
1980    /^十二/i
1981  ],
1982  any: [
1983    /^一|1/i,
1984    /^二|2/i,
1985    /^三|3/i,
1986    /^四|4/i,
1987    /^五|5/i,
1988    /^六|6/i,
1989    /^七|7/i,
1990    /^八|8/i,
1991    /^九|9/i,
1992    /^十(?!(一|二))|10/i,
1993    /^十一|11/i,
1994    /^十二|12/i
1995  ]
1996}, ia = {
1997  narrow: /^[一二三四五六日]/i,
1998  short: /^[一二三四五六日]/i,
1999  abbreviated: /^周[一二三四五六日]/i,
2000  wide: /^星期[一二三四五六日]/i
2001}, sa = {
2002  any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
2003}, ca = {
2004  any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
2005}, la = {
2006  any: {
2007    am: /^上午?/i,
2008    pm: /^下午?/i,
2009    midnight: /^午夜/i,
2010    noon: /^[中正]午/i,
2011    morning: /^早上/i,
2012    afternoon: /^下午/i,
2013    evening: /^晚上?/i,
2014    night: /^凌晨/i
2015  }
2016}, da = {
2017  ordinalNumber: mt({
2018    matchPattern: Zr,
2019    parsePattern: Jr,
2020    valueCallback: (t) => parseInt(t, 10)
2021  }),
2022  era: T({
2023    matchPatterns: ta,
2024    defaultMatchWidth: "wide",
2025    parsePatterns: ea,
2026    defaultParseWidth: "any"
2027  }),
2028  quarter: T({
2029    matchPatterns: na,
2030    defaultMatchWidth: "wide",
2031    parsePatterns: oa,
2032    defaultParseWidth: "any",
2033    valueCallback: (t) => t + 1
2034  }),
2035  month: T({
2036    matchPatterns: ra,
2037    defaultMatchWidth: "wide",
2038    parsePatterns: aa,
2039    defaultParseWidth: "any"
2040  }),
2041  day: T({
2042    matchPatterns: ia,
2043    defaultMatchWidth: "wide",
2044    parsePatterns: sa,
2045    defaultParseWidth: "any"
2046  }),
2047  dayPeriod: T({
2048    matchPatterns: ca,
2049    defaultMatchWidth: "any",
2050    parsePatterns: la,
2051    defaultParseWidth: "any"
2052  })
2053}, ma = {
2054  code: "zh-CN",
2055  formatDistance: Ar,
2056  formatLong: Ir,
2057  formatRelative: jr,
2058  localize: Qr,
2059  match: da,
2060  options: {
2061    weekStartsOn: 1,
2062    firstWeekContainsDate: 4
2063  }
2064}, pa = {
2065  lessThanXSeconds: {
2066    one: "少於 1 秒",
2067    other: "少於 {{count}} 秒"
2068  },
2069  xSeconds: {
2070    one: "1 秒",
2071    other: "{{count}} 秒"
2072  },
2073  halfAMinute: "半分鐘",
2074  lessThanXMinutes: {
2075    one: "少於 1 分鐘",
2076    other: "少於 {{count}} 分鐘"
2077  },
2078  xMinutes: {
2079    one: "1 分鐘",
2080    other: "{{count}} 分鐘"
2081  },
2082  xHours: {
2083    one: "1 小時",
2084    other: "{{count}} 小時"
2085  },
2086  aboutXHours: {
2087    one: "大約 1 小時",
2088    other: "大約 {{count}} 小時"
2089  },
2090  xDays: {
2091    one: "1 天",
2092    other: "{{count}} 天"
2093  },
2094  aboutXWeeks: {
2095    one: "大約 1 個星期",
2096    other: "大約 {{count}} 個星期"
2097  },
2098  xWeeks: {
2099    one: "1 個星期",
2100    other: "{{count}} 個星期"
2101  },
2102  aboutXMonths: {
2103    one: "大約 1 個月",
2104    other: "大約 {{count}} 個月"
2105  },
2106  xMonths: {
2107    one: "1 個月",
2108    other: "{{count}} 個月"
2109  },
2110  aboutXYears: {
2111    one: "大約 1 年",
2112    other: "大約 {{count}} 年"
2113  },
2114  xYears: {
2115    one: "1 å¹´",
2116    other: "{{count}} å¹´"
2117  },
2118  overXYears: {
2119    one: "超過 1 年",
2120    other: "超過 {{count}} 年"
2121  },
2122  almostXYears: {
2123    one: "將近 1 年",
2124    other: "將近 {{count}} 年"
2125  }
2126}, ua = (t, e, n) => {
2127  let o;
2128  const r = pa[t];
2129  return typeof r == "string" ? o = r : e === 1 ? o = r.one : o = r.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? o + "內" : o + "前" : o;
2130}, ha = {
2131  full: "y'年'M'月'd'日' EEEE",
2132  long: "y'年'M'月'd'日'",
2133  medium: "yyyy-MM-dd",
2134  short: "yy-MM-dd"
2135}, ga = {
2136  full: "zzzz a h:mm:ss",
2137  long: "z a h:mm:ss",
2138  medium: "a h:mm:ss",
2139  short: "a h:mm"
2140}, fa = {
2141  full: "{{date}} {{time}}",
2142  long: "{{date}} {{time}}",
2143  medium: "{{date}} {{time}}",
2144  short: "{{date}} {{time}}"
2145}, ba = {
2146  date: j({
2147    formats: ha,
2148    defaultWidth: "full"
2149  }),
2150  time: j({
2151    formats: ga,
2152    defaultWidth: "full"
2153  }),
2154  dateTime: j({
2155    formats: fa,
2156    defaultWidth: "full"
2157  })
2158}, ya = {
2159  lastWeek: "'上個'eeee p",
2160  yesterday: "'昨天' p",
2161  today: "'今天' p",
2162  tomorrow: "'明天' p",
2163  nextWeek: "'下個'eeee p",
2164  other: "P"
2165}, xa = (t, e, n, o) => ya[t], wa = {
2166  narrow: ["前", "公元"],
2167  abbreviated: ["前", "公元"],
2168  wide: ["公元前", "公元"]
2169}, va = {
2170  narrow: ["1", "2", "3", "4"],
2171  abbreviated: ["第一刻", "第二刻", "第三刻", "第四刻"],
2172  wide: ["第一刻鐘", "第二刻鐘", "第三刻鐘", "第四刻鐘"]
2173}, Sa = {
2174  narrow: [
2175    "一",
2176    "二",
2177    "三",
2178    "四",
2179    "五",
2180    "六",
2181    "七",
2182    "八",
2183    "九",
2184    "十",
2185    "十一",
2186    "十二"
2187  ],
2188  abbreviated: [
2189    "1月",
2190    "2月",
2191    "3月",
2192    "4月",
2193    "5月",
2194    "6月",
2195    "7月",
2196    "8月",
2197    "9月",
2198    "10月",
2199    "11月",
2200    "12月"
2201  ],
2202  wide: [
2203    "一月",
2204    "二月",
2205    "三月",
2206    "四月",
2207    "五月",
2208    "六月",
2209    "七月",
2210    "八月",
2211    "九月",
2212    "十月",
2213    "十一月",
2214    "十二月"
2215  ]
2216}, Ca = {
2217  narrow: ["日", "一", "二", "三", "四", "五", "六"],
2218  short: ["日", "一", "二", "三", "四", "五", "六"],
2219  abbreviated: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
2220  wide: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
2221}, ka = {
2222  narrow: {
2223    am: "上",
2224    pm: "下",
2225    midnight: "凌晨",
2226    noon: "午",
2227    morning: "早",
2228    afternoon: "下午",
2229    evening: "晚",
2230    night: "夜"
2231  },
2232  abbreviated: {
2233    am: "上午",
2234    pm: "下午",
2235    midnight: "凌晨",
2236    noon: "中午",
2237    morning: "早晨",
2238    afternoon: "中午",
2239    evening: "晚上",
2240    night: "夜間"
2241  },
2242  wide: {
2243    am: "上午",
2244    pm: "下午",
2245    midnight: "凌晨",
2246    noon: "中午",
2247    morning: "早晨",
2248    afternoon: "中午",
2249    evening: "晚上",
2250    night: "夜間"
2251  }
2252}, _a = {
2253  narrow: {
2254    am: "上",
2255    pm: "下",
2256    midnight: "凌晨",
2257    noon: "午",
2258    morning: "早",
2259    afternoon: "下午",
2260    evening: "晚",
2261    night: "夜"
2262  },
2263  abbreviated: {
2264    am: "上午",
2265    pm: "下午",
2266    midnight: "凌晨",
2267    noon: "中午",
2268    morning: "早晨",
2269    afternoon: "中午",
2270    evening: "晚上",
2271    night: "夜間"
2272  },
2273  wide: {
2274    am: "上午",
2275    pm: "下午",
2276    midnight: "凌晨",
2277    noon: "中午",
2278    morning: "早晨",
2279    afternoon: "中午",
2280    evening: "晚上",
2281    night: "夜間"
2282  }
2283}, Pa = (t, e) => {
2284  const n = Number(t);
2285  switch (e == null ? void 0 : e.unit) {
2286    case "date":
2287      return n + "日";
2288    case "hour":
2289      return n + "時";
2290    case "minute":
2291      return n + "分";
2292    case "second":
2293      return n + "秒";
2294    default:
2295      return "第 " + n;
2296  }
2297}, Ma = {
2298  ordinalNumber: Pa,
2299  era: M({
2300    values: wa,
2301    defaultWidth: "wide"
2302  }),
2303  quarter: M({
2304    values: va,
2305    defaultWidth: "wide",
2306    argumentCallback: (t) => t - 1
2307  }),
2308  month: M({
2309    values: Sa,
2310    defaultWidth: "wide"
2311  }),
2312  day: M({
2313    values: Ca,
2314    defaultWidth: "wide"
2315  }),
2316  dayPeriod: M({
2317    values: ka,
2318    defaultWidth: "wide",
2319    formattingValues: _a,
2320    defaultFormattingWidth: "wide"
2321  })
2322}, Ta = /^(第\s*)?\d+(日|時|分|秒)?/i, $a = /\d+/i, Na = {
2323  narrow: /^(前)/i,
2324  abbreviated: /^(前)/i,
2325  wide: /^(公元前|公元)/i
2326}, Wa = {
2327  any: [/^(前)/i, /^(公元)/i]
2328}, Ra = {
2329  narrow: /^[1234]/i,
2330  abbreviated: /^第[一二三四]刻/i,
2331  wide: /^第[一二三四]刻鐘/i
2332}, Da = {
2333  any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
2334}, Ba = {
2335  narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
2336  abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
2337  wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
2338}, La = {
2339  narrow: [
2340    /^一/i,
2341    /^二/i,
2342    /^三/i,
2343    /^四/i,
2344    /^五/i,
2345    /^六/i,
2346    /^七/i,
2347    /^八/i,
2348    /^九/i,
2349    /^十(?!(一|二))/i,
2350    /^十一/i,
2351    /^十二/i
2352  ],
2353  any: [
2354    /^一|1/i,
2355    /^二|2/i,
2356    /^三|3/i,
2357    /^四|4/i,
2358    /^五|5/i,
2359    /^六|6/i,
2360    /^七|7/i,
2361    /^八|8/i,
2362    /^九|9/i,
2363    /^十(?!(一|二))|10/i,
2364    /^十一|11/i,
2365    /^十二|12/i
2366  ]
2367}, Ea = {
2368  narrow: /^[一二三四五六日]/i,
2369  short: /^[一二三四五六日]/i,
2370  abbreviated: /^週[一二三四五六日]/i,
2371  wide: /^星期[一二三四五六日]/i
2372}, Aa = {
2373  any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
2374}, za = {
2375  any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i
2376}, Oa = {
2377  any: {
2378    am: /^上午?/i,
2379    pm: /^下午?/i,
2380    midnight: /^午夜/i,
2381    noon: /^[中正]午/i,
2382    morning: /^早上/i,
2383    afternoon: /^下午/i,
2384    evening: /^晚上?/i,
2385    night: /^凌晨/i
2386  }
2387}, Fa = {
2388  ordinalNumber: mt({
2389    matchPattern: Ta,
2390    parsePattern: $a,
2391    valueCallback: (t) => parseInt(t, 10)
2392  }),
2393  era: T({
2394    matchPatterns: Na,
2395    defaultMatchWidth: "wide",
2396    parsePatterns: Wa,
2397    defaultParseWidth: "any"
2398  }),
2399  quarter: T({
2400    matchPatterns: Ra,
2401    defaultMatchWidth: "wide",
2402    parsePatterns: Da,
2403    defaultParseWidth: "any",
2404    valueCallback: (t) => t + 1
2405  }),
2406  month: T({
2407    matchPatterns: Ba,
2408    defaultMatchWidth: "wide",
2409    parsePatterns: La,
2410    defaultParseWidth: "any"
2411  }),
2412  day: T({
2413    matchPatterns: Ea,
2414    defaultMatchWidth: "wide",
2415    parsePatterns: Aa,
2416    defaultParseWidth: "any"
2417  }),
2418  dayPeriod: T({
2419    matchPatterns: za,
2420    defaultMatchWidth: "any",
2421    parsePatterns: Oa,
2422    defaultParseWidth: "any"
2423  })
2424}, de = {
2425  code: "zh-TW",
2426  formatDistance: ua,
2427  formatLong: ba,
2428  formatRelative: xa,
2429  localize: Ma,
2430  match: Fa,
2431  options: {
2432    weekStartsOn: 1,
2433    firstWeekContainsDate: 4
2434  }
2435}, Ia = {
2436  KR: ve,
2437  JA: To,
2438  "zh-TW": de,
2439  tw: de,
2440  CN: ma,
2441  EN: Xe,
2442  ES: Qn,
2443  VI: Lr
2444}, dl = () => {
2445  var t;
2446  return Ia[(t = globalThis.window) == null ? void 0 : t.LANG_CODE] ?? ve;
2447};
2448var Se = { exports: {} }, Ce = {
2449  aliceblue: [240, 248, 255],
2450  antiquewhite: [250, 235, 215],
2451  aqua: [0, 255, 255],
2452  aquamarine: [127, 255, 212],
2453  azure: [240, 255, 255],
2454  beige: [245, 245, 220],
2455  bisque: [255, 228, 196],
2456  black: [0, 0, 0],
2457  blanchedalmond: [255, 235, 205],
2458  blue: [0, 0, 255],
2459  blueviolet: [138, 43, 226],
2460  brown: [165, 42, 42],
2461  burlywood: [222, 184, 135],
2462  cadetblue: [95, 158, 160],
2463  chartreuse: [127, 255, 0],
2464  chocolate: [210, 105, 30],
2465  coral: [255, 127, 80],
2466  cornflowerblue: [100, 149, 237],
2467  cornsilk: [255, 248, 220],
2468  crimson: [220, 20, 60],
2469  cyan: [0, 255, 255],
2470  darkblue: [0, 0, 139],
2471  darkcyan: [0, 139, 139],
2472  darkgoldenrod: [184, 134, 11],
2473  darkgray: [169, 169, 169],
2474  darkgreen: [0, 100, 0],
2475  darkgrey: [169, 169, 169],
2476  darkkhaki: [189, 183, 107],
2477  darkmagenta: [139, 0, 139],
2478  darkolivegreen: [85, 107, 47],
2479  darkorange: [255, 140, 0],
2480  darkorchid: [153, 50, 204],
2481  darkred: [139, 0, 0],
2482  darksalmon: [233, 150, 122],
2483  darkseagreen: [143, 188, 143],
2484  darkslateblue: [72, 61, 139],
2485  darkslategray: [47, 79, 79],
2486  darkslategrey: [47, 79, 79],
2487  darkturquoise: [0, 206, 209],
2488  darkviolet: [148, 0, 211],
2489  deeppink: [255, 20, 147],
2490  deepskyblue: [0, 191, 255],
2491  dimgray: [105, 105, 105],
2492  dimgrey: [105, 105, 105],
2493  dodgerblue: [30, 144, 255],
2494  firebrick: [178, 34, 34],
2495  floralwhite: [255, 250, 240],
2496  forestgreen: [34, 139, 34],
2497  fuchsia: [255, 0, 255],
2498  gainsboro: [220, 220, 220],
2499  ghostwhite: [248, 248, 255],
2500  gold: [255, 215, 0],
2501  goldenrod: [218, 165, 32],
2502  gray: [128, 128, 128],
2503  green: [0, 128, 0],
2504  greenyellow: [173, 255, 47],
2505  grey: [128, 128, 128],
2506  honeydew: [240, 255, 240],
2507  hotpink: [255, 105, 180],
2508  indianred: [205, 92, 92],
2509  indigo: [75, 0, 130],
2510  ivory: [255, 255, 240],
2511  khaki: [240, 230, 140],
2512  lavender: [230, 230, 250],
2513  lavenderblush: [255, 240, 245],
2514  lawngreen: [124, 252, 0],
2515  lemonchiffon: [255, 250, 205],
2516  lightblue: [173, 216, 230],
2517  lightcoral: [240, 128, 128],
2518  lightcyan: [224, 255, 255],
2519  lightgoldenrodyellow: [250, 250, 210],
2520  lightgray: [211, 211, 211],
2521  lightgreen: [144, 238, 144],
2522  lightgrey: [211, 211, 211],
2523  lightpink: [255, 182, 193],
2524  lightsalmon: [255, 160, 122],
2525  lightseagreen: [32, 178, 170],
2526  lightskyblue: [135, 206, 250],
2527  lightslategray: [119, 136, 153],
2528  lightslategrey: [119, 136, 153],
2529  lightsteelblue: [176, 196, 222],
2530  lightyellow: [255, 255, 224],
2531  lime: [0, 255, 0],
2532  limegreen: [50, 205, 50],
2533  linen: [250, 240, 230],
2534  magenta: [255, 0, 255],
2535  maroon: [128, 0, 0],
2536  mediumaquamarine: [102, 205, 170],
2537  mediumblue: [0, 0, 205],
2538  mediumorchid: [186, 85, 211],
2539  mediumpurple: [147, 112, 219],
2540  mediumseagreen: [60, 179, 113],
2541  mediumslateblue: [123, 104, 238],
2542  mediumspringgreen: [0, 250, 154],
2543  mediumturquoise: [72, 209, 204],
2544  mediumvioletred: [199, 21, 133],
2545  midnightblue: [25, 25, 112],
2546  mintcream: [245, 255, 250],
2547  mistyrose: [255, 228, 225],
2548  moccasin: [255, 228, 181],
2549  navajowhite: [255, 222, 173],
2550  navy: [0, 0, 128],
2551  oldlace: [253, 245, 230],
2552  olive: [128, 128, 0],
2553  olivedrab: [107, 142, 35],
2554  orange: [255, 165, 0],
2555  orangered: [255, 69, 0],
2556  orchid: [218, 112, 214],
2557  palegoldenrod: [238, 232, 170],
2558  palegreen: [152, 251, 152],
2559  paleturquoise: [175, 238, 238],
2560  palevioletred: [219, 112, 147],
2561  papayawhip: [255, 239, 213],
2562  peachpuff: [255, 218, 185],
2563  peru: [205, 133, 63],
2564  pink: [255, 192, 203],
2565  plum: [221, 160, 221],
2566  powderblue: [176, 224, 230],
2567  purple: [128, 0, 128],
2568  rebeccapurple: [102, 51, 153],
2569  red: [255, 0, 0],
2570  rosybrown: [188, 143, 143],
2571  royalblue: [65, 105, 225],
2572  saddlebrown: [139, 69, 19],
2573  salmon: [250, 128, 114],
2574  sandybrown: [244, 164, 96],
2575  seagreen: [46, 139, 87],
2576  seashell: [255, 245, 238],
2577  sienna: [160, 82, 45],
2578  silver: [192, 192, 192],
2579  skyblue: [135, 206, 235],
2580  slateblue: [106, 90, 205],
2581  slategray: [112, 128, 144],
2582  slategrey: [112, 128, 144],
2583  snow: [255, 250, 250],
2584  springgreen: [0, 255, 127],
2585  steelblue: [70, 130, 180],
2586  tan: [210, 180, 140],
2587  teal: [0, 128, 128],
2588  thistle: [216, 191, 216],
2589  tomato: [255, 99, 71],
2590  turquoise: [64, 224, 208],
2591  violet: [238, 130, 238],
2592  wheat: [245, 222, 179],
2593  white: [255, 255, 255],
2594  whitesmoke: [245, 245, 245],
2595  yellow: [255, 255, 0],
2596  yellowgreen: [154, 205, 50]
2597}, ke = { exports: {} }, Ha = function(e) {
2598  return !e || typeof e == "string" ? !1 : e instanceof Array || Array.isArray(e) || e.length >= 0 && (e.splice instanceof Function || Object.getOwnPropertyDescriptor(e, e.length - 1) && e.constructor.name !== "String");
2599}, ja = Ha, Va = Array.prototype.concat, Ka = Array.prototype.slice, me = ke.exp
2599orts = function(e) {
2600  for (var n = [], o = 0, r = e.length; o < r; o++) {
2601    var c = e[o];
2602    ja(c) ? n = Va.call(n, Ka.call(c)) : n.push(c);
2603  }
2604  return n;
2605};
2606me.wrap = function(t) {
2607  return function() {
2608    return t(me(arguments));
2609  };
2610};
2611var Ya = ke.exports, bt = Ce, vt = Ya, _e = Object.hasOwnProperty, Pe = /* @__PURE__ */ Object.create(null);
2612for (var Ot in bt)
2613  _e.call(bt, Ot) && (Pe[bt[Ot]] = Ot);
2614var G = Se.exports = {
2615  to: {},
2616  get: {}
2617};
2618G.get = function(t) {
2619  var e = t.substring(0, 3).toLowerCase(), n, o;
2620  switch (e) {
2621    case "hsl":
2622      n = G.get.hsl(t), o = "hsl";
2623      break;
2624    case "hwb":
2625      n = G.get.hwb(t), o = "hwb";
2626      break;
2627    default:
2628      n = G.get.rgb(t), o = "rgb";
2629      break;
2630  }
2631  return n ? { model: o, value: n } : null;
2632};
2633G.get.rgb = function(t) {
2634  if (!t)
2635    return null;
2636  var e = /^#([a-f0-9]{3,4})$/i, n = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, o = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, r = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, c = /^(\w+)$/, s = [0, 0, 0, 1], i, l, p;
2637  if (i = t.match(n)) {
2638    for (p = i[2], i = i[1], l = 0; l < 3; l++) {
2639      var g = l * 2;
2640      s[l] = parseInt(i.slice(g, g + 2), 16);
2641    }
2642    p && (s[3] = parseInt(p, 16) / 255);
2643  } else if (i = t.match(e)) {
2644    for (i = i[1], p = i[3], l = 0; l < 3; l++)
2645      s[l] = parseInt(i[l] + i[l], 16);
2646    p && (s[3] = parseInt(p + p, 16) / 255);
2647  } else if (i = t.match(o)) {
2648    for (l = 0; l < 3; l++)
2649      s[l] = parseInt(i[l + 1], 0);
2650    i[4] && (i[5] ? s[3] = parseFloat(i[4]) * 0.01 : s[3] = parseFloat(i[4]));
2651  } else if (i = t.match(r)) {
2652    for (l = 0; l < 3; l++)
2653      s[l] = Math.round(parseFloat(i[l + 1]) * 2.55);
2654    i[4] && (i[5] ? s[3] = parseFloat(i[4]) * 0.01 : s[3] = parseFloat(i[4]));
2655  } else
2656    return (i = t.match(c)) ? i[1] === "transparent" ? [0, 0, 0, 0] : _e.call(bt, i[1]) ? (s = bt[i[1]], s[3] = 1, s) : null : null;
2657  for (l = 0; l < 3; l++)
2658    s[l] = ot(s[l], 0, 255);
2659  return s[3] = ot(s[3], 0, 1), s;
2660};
2661G.get.hsl = function(t) {
2662  if (!t)
2663    return null;
2664  var e = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, n = t.match(e);
2665  if (n) {
2666    var o = parseFloat(n[4]), r = (parseFloat(n[1]) % 360 + 360) % 360, c = ot(parseFloat(n[2]), 0, 100), s = ot(parseFloat(n[3]), 0, 100), i = ot(isNaN(o) ? 1 : o, 0, 1);
2667    return [r, c, s, i];
2668  }
2669  return null;
2670};
2671G.get.hwb = function(t) {
2672  if (!t)
2673    return null;
2674  var e = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, n = t.match(e);
2675  if (n) {
2676    var o = parseFloat(n[4]), r = (parseFloat(n[1]) % 360 + 360) % 360, c = ot(parseFloat(n[2]), 0, 100), s = ot(parseFloat(n[3]), 0, 100), i = ot(isNaN(o) ? 1 : o, 0, 1);
2677    return [r, c, s, i];
2678  }
2679  return null;
2680};
2681G.to.hex = function() {
2682  var t = vt(arguments);
2683  return "#" + Pt(t[0]) + Pt(t[1]) + Pt(t[2]) + (t[3] < 1 ? Pt(Math.round(t[3] * 25
26835)) : "");
2684};
2685G.to.rgb = function() {
2686  var t = vt(arguments);
2687  return t.length < 4 || t[3] === 1 ? "rgb(" + Math.round(t[0]) + ", " + Math.round(t[1]) + ", " + Math.round(t[2]) + ")" : "rgba(" + Math.round(t[0]) + ", " + Math.round(t[1]) + ", " + Math.round(t[2]) + ", " + t[3] + ")";
2688};
2689G.to.rgb.percent = function() {
2690  var t = vt(arguments), e = Math.round(t[0] / 255 * 100), n = Math.round(t[1] / 255 * 100), o = Math.round(t[2] / 255 * 100);
2691  return t.length < 4 || t[3] === 1 ? "rgb(" + e + "%, " + n + "%, " + o + "%)" : "rgba(" + e + "%, " + n + "%, " + o + "%, " + t[3] + ")";
2692};
2693G.to.hsl = function() {
2694  var t = vt(arguments);
2695  return t.length < 4 || t[3] === 1 ? "hsl(" + t[0] + ", " + t[1] + "%, " + t[2] + "%)" : "hsla(" + t[0] + ", " + t[1] + "%, " + t[2] + "%, " + t[3] + ")";
2696};
2697G.to.hwb = function() {
2698  var t = vt(arguments), e = "";
2699  return t.length >= 4 && t[3] !== 1 && (e = ", " + t[3]), "hwb(" + t[0] + ", " + t[1] + "%, " + t[2] + "%" + e + ")";
2700};
2701G.to.keyword = function(t) {
2702  return Pe[t.slice(0, 3)];
2703};
2704function ot(t, e, n) {
2705  return Math.min(Math.max(e, t), n);
2706}
2707function Pt(t) {
2708  var e = Math.round(t).toString(16).toUpperCase();
2709  return e.length < 2 ? "0" + e : e;
2710}
2711var qa = Se.exports;
2712const wt = Ce, Me = {};
2713for (const t of Object.keys(wt))
2714  Me[wt[t]] = t;
2715const h = {
2716  rgb: { channels: 3, labels: "rgb" },
2717  hsl: { channels: 3, labels: "hsl" },
2718  hsv: { channels: 3, labels: "hsv" },
2719  hwb: { channels: 3, labels: "hwb" },
2720  cmyk: { channels: 4, labels: "cmyk" },
2721  xyz: { channels: 3, labels: "xyz" },
2722  lab: { channels: 3, labels: "lab" },
2723  lch: { channels: 3, labels: "lch" },
2724  hex: { channels: 1, labels: ["hex"] },
2725  keyword: { channels: 1, labels: ["keyword"] },
2726  ansi16: { channels: 1, labels: ["ansi16"] },
2727  ansi256: { channels: 1, labels: ["ansi256"] },
2728  hcg: { channels: 3, labels: ["h", "c", "g"] },
2729  apple: { channels: 3, labels: ["r16", "g16", "b16"] },
2730  gray: { channels: 1, labels: ["gray"] }
2731};
2732var Te = h;
2733for (const t of Object.keys(h)) {
2734  if (!("channels" in h[t]))
2735    throw new Error("missing channels property: " + t);
2736  if (!("labels" in h[t]))
2737    throw new Error("missing channel labels property: " + t);
2738  if (h[t].labels.length !== h[t].channels)
2739    throw new Error("channel and label counts mismatch: " + t);
2740  const { channels: e, labels: n } = h[t];
2741  delete h[t].channels, delete h[t].labels, Object.defineProperty(h[t], "channels", { value: e }), Object.defineProperty(h[t], "labels", { value: n });
2742}
2743h.rgb.hsl = function(t) {
2744  const e = t[0] / 255, n = t[1] / 255, o = t[2] / 255, r = Math.min(e, n, o), c = Math.max(e, n, o), s = c - r;
2745  let i, l;
2746  c === r ? i = 0 : e === c ? i = (n - o) / s : n === c ? i = 2 + (o - e) / s : o === c && (i = 4 + (e - n) / s), i = Math.min(i * 60, 360), i < 0 && (i += 360);
2747  const p = (r + c) / 2;
2748  return c === r ? l = 0 : p <= 0.5 ? l = s / (c + r) : l = s / (2 - c - r), [i, l * 100, p * 100];
2749};
2750h.rgb.hsv = function(t) {
2751  let e, n, o, r, c;
2752  const s = t[0] / 255, i = t[1] / 255, l = t[2] / 255, p = Math.max(s, i, l), g = p - Math.min(s, i, l), b = function(u) {
2753    return (p - u) / 6 / g + 1 / 2;
2754  };
2755  return g === 0 ? (r = 0, c = 0) : (c = g / p, e = b(s), n = b(i), o = b(l), s === p ? r = o - n : i === p ? r = 1 / 3 + e - o : l === p && (r = 2 / 3 + n - e), r < 0 ? r += 1 : r > 1 && (r -= 1)), [
2756    r * 360,
2757    c * 100,
2758    p * 100
2759  ];
2760};
2761h.rgb.hwb = function(t) {
2762  const e = t[0], n = t[1];
2763  let o = t[2];
2764  const r = h.rgb.hsl(t)[0], c = 1 / 255 * Math.min(e, Math.min(n, o));
2765  return o = 1 - 1 / 255 * Math.max(e, Math.max(n, o)), [r, c * 100, o * 100];
2766};
2767h.rgb.cmyk = function(t) {
2768  const e = t[0] / 255, n = t[1] / 255, o = t[2] / 255, r = Math.min(1 - e, 1 - n, 1 - o), c = (1 - e - r) / (1 - r) || 0, s = (1 - n - r) / (1 - r) || 0, i = (1 - o - r) / (1 - r) || 0;
2769  return [c * 100, s * 100, i * 100, r * 100];
2770};
2771function Ua(t, e) {
2772  return (t[0] - e[0]) ** 2 + (t[1] - e[1]) ** 2 + (t[2] - e[2]) ** 2;
2773}
2774h.rgb.keyword = function(t) {
2775  const e = Me[t];
2776  if (e)
2777    return e;
2778  let n = 1 / 0, o;
2779  for (const r of Object.keys(wt)) {
2780    const c = wt[r], s = Ua(t, c);
2781    s < n && (n = s, o = r);
2782  }
2783  return o;
2784};
2785h.keyword.rgb = function(t) {
2786  return wt[t];
2787};
2788h.rgb.xyz = function(t) {
2789  let e = t[0] / 255, n = t[1] / 255, o = t[2] / 255;
2790  e = e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92, n = n > 0.04045 ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92, o = o > 0.04045 ? ((o + 0.055) / 1.055) ** 2.4 : o / 12.92;
2791  const r = e * 0.4124 + n * 0.3576 + o * 0.1805, c = e * 0.2126 + n * 0.7152 + o * 0.0722, s = e * 0.0193 + n * 0.1192 + o * 0.9505;
2792  return [r * 100, c * 100, s * 100];
2793};
2794h.rgb.lab = function(t) {
2795  const e = h.rgb.xyz(t);
2796  let n = e[0], o = e[1], r = e[2];
2797  n /= 95.047, o /= 100, r /= 108.883, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, o = o > 8856e-6 ? o ** (1 / 3) : 7.787 * o + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
2798  const c = 116 * o - 16, s = 500 * (n - o), i = 200 * (o - r);
2799  return [c, s, i];
2800};
2801h.hsl.rgb = function(t) {
2802  const e = t[0] / 360, n = t[1] / 100, o = t[2] / 100;
2803  let r, c, s;
2804  if (n === 0)
2805    return s = o * 255, [s, s, s];
2806  o < 0.5 ? r = o * (1 + n) : r = o + n - o * n;
2807  const i = 2 * o - r, l = [0, 0, 0];
2808  for (let p = 0; p < 3; p++)
2809    c = e + 1 / 3 * -(p - 1), c < 0 && c++, c > 1 && c--, 6 * c < 1 ? s = i + (r - i) * 6 * c : 2 * c < 1 ? s = r : 3 * c < 2 ? s = i + (r - i) * (2 / 3 - c) * 6 : s = i, l[p] = s * 255;
2810  return l;
2811};
2812h.hsl.hsv = function(t) {
2813  const e = t[0];
2814  let n = t[1] / 100, o = t[2] / 100, r = n;
2815  const c = Math.max(o, 0.01);
2816  o *= 2, n *= o <= 1 ? o : 2 - o, r *= c <= 1 ? c : 2 - c;
2817  const s = (o + n) / 2, i = o === 0 ? 2 * r / (c + r) : 2 * n / (o + n);
2818  return [e, i * 100, s * 100];
2819};
2820h.hsv.rgb = function(t) {
2821  const e = t[0] / 60, n = t[1] / 100;
2822  let o = t[2] / 100;
2823  const r = Math.floor(e) % 6, c = e - Math.floor(e), s = 255 * o * (1 - n), i = 255 * o * (1 - n * c), l = 255 * o * (1 - n * (1 - c));
2824  switch (o *= 255, r) {
2825    case 0:
2826      return [o, l, s];
2827    case 1:
2828      return [i, o, s];
2829    case 2:
2830      return [s, o, l];
2831    case 3:
2832      return [s, i, o];
2833    case 4:
2834      return [l, s, o];
2835    case 5:
2836      return [o, s, i];
2837  }
2838};
2839h.hsv.hsl = function(t) {
2840  const e = t[0], n = t[1] / 100, o = t[2] / 100, r = Math.max(o, 0.01);
2841  let c, s;
2842  s = (2 - n) * o;
2843  const i = (2 - n) * r;
2844  return c = n * r, c /= i <= 1 ? i : 2 - i, c = c || 0, s /= 2, [e, c * 100, s * 100];
2845};
2846h.hwb.rgb = function(t) {
2847  const e = t[0] / 360;
2848  let n = t[1] / 100, o = t[2] / 100;
2849  const r = n + o;
2850  let c;
2851  r > 1 && (n /= r, o /= r);
2852  const s = Math.floor(6 * e), i = 1 - o;
2853  c = 6 * e - s, s & 1 && (c = 1 - c);
2854  const l = n + c * (i - n);
2855  let p, g, b;
2856  switch (s) {
2857    default:
2858    case 6:
2859    case 0:
2860      p = i, g = l, b = n;
2861      break;
2862    case 1:
2863      p = l, g = i, b = n;
2864      break;
2865    case 2:
2866      p = n, g = i, b = l;
2867      break;
2868    case 3:
2869      p = n, g = l, b = i;
2870      break;
2871    case 4:
2872      p = l, g = n, b = i;
2873      break;
2874    case 5:
2875      p = i, g = n, b = l;
2876      break;
2877  }
2878  return [p * 255, g * 255, b * 255];
2879};
2880h.cmyk.rgb = function(t) {
2881  const e = t[0] / 100, n = t[1] / 100, o = t[2] / 100, r = t[3] / 100, c = 1 - Math.min(1, e * (1 - r) + r), s = 1 - Math.min(1, n * (1 - r) + r), i = 1 - Math.min(1, o * (1 - r) + r);
2882  return [c * 255, s * 255, i * 255];
2883};
2884h.xyz.rgb = function(t) {
2885  const e = t[0] / 100, n = t[1] / 100, o = t[2] / 100;
2886  let r, c, s;
2887  return r = e * 3.2406 + n * -1.5372 + o * -0.4986, c = e * -0.9689 + n * 1.8758 + o * 0.0415, s = e * 0.0557 + n * -0.204 + o * 1.057, r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92, c = c > 31308e-7 ? 1.055 * c ** (1 / 2.4) - 0.055 : c * 12.92, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, r = Math.min(Math.max(0, r), 1), c = Math.min(Math.max(0, c), 1), s = Math.min(Math.max(0, s), 1), [r * 255, c * 255, s * 255];
2888};
2889h.xyz.lab = function(t) {
2890  let e = t[0], n = t[1], o = t[2];
2891  e /= 95.047, n /= 100, o /= 108.883, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, o = o > 8856e-6 ? o ** (1 / 3) : 7.787 * o + 16 / 116;
2892  const r = 116 * n - 16, c = 500 * (e - n), s = 200 * (n - o);
2893  return [r, c, s];
2894};
2895h.lab.xyz = function(t) {
2896  const e = t[0], n = t[1], o = t[2];
2897  let r, c, s;
2898  c = (e + 16) / 116, r = n / 500 + c, s = c - o / 200;
2899  const i = c ** 3, l = r ** 3, p = s ** 3;
2900  return c = i > 8856e-6 ? i : (c - 16 / 116) / 7.787, r = l > 8856e-6 ? l : (r - 16 / 116) / 7.787, s = p >
2900 8856e-6 ? p : (s - 16 / 116) / 7.787, r *= 95.047, c *= 100, s *= 108.883, [r, c, s];
2901};
2902h.lab.lch = function(t) {
2903  const e = t[0], n = t[1], o = t[2];
2904  let r;
2905  r = Math.atan2(o, n) * 360 / 2 / Math.PI, r < 0 && (r += 360);
2906  const s = Math.sqrt(n * n + o * o);
2907  return [e, s, r];
2908};
2909h.lch.lab = function(t) {
2910  const e = t[0], n = t[1], r = t[2] / 360 * 2 * Math.PI, c = n * Math.cos(r), s = n * Math.sin(r);
2911  return [e, c, s];
2912};
2913h.rgb.ansi16 = function(t, e = null) {
2914  const [n, o, r] = t;
2915  let c = e === null ? h.rgb.hsv(t)[2] : e;
2916  if (c = Math.round(c / 50), c === 0)
2917    return 30;
2918  let s = 30 + (Math.round(r / 255) << 2 | Math.round(o / 255) << 1 | Math.round(n / 255));
2919  return c === 2 && (s += 60), s;
2920};
2921h.hsv.ansi16 = function(t) {
2922  return h.rgb.ansi16(h.hsv.rgb(t), t[2]);
2923};
2924h.rgb.ansi256 = function(t) {
2925  const e = t[0], n = t[1], o = t[2];
2926  return e === n && n === o ? e < 8 ? 16 : e > 248 ? 231 : Math.round((e - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(e / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(o / 255 * 5);
2927};
2928h.ansi16.rgb = function(t) {
2929  let e = t % 10;
2930  if (e === 0 || e === 7)
2931    return t > 50 && (e += 3.5), e = e / 10.5 * 255, [e, e, e];
2932  const n = (~~(t > 50) + 1) * 0.5, o = (e & 1) * n * 255, r = (e >> 1 & 1) * n * 255, c = (e >> 2 & 1) * n * 255;
2933  return [o, r, c];
2934};
2935h.ansi256.rgb = function(t) {
2936  if (t >= 232) {
2937    const c = (t - 232) * 10 + 8;
2938    return [c, c, c];
2939  }
2940  t -= 16;
2941  let e;
2942  const n = Math.floor(t / 36) / 5 * 255, o = Math.floor((e = t % 36) / 6) / 5 * 255, r = e % 6 / 5 * 255;
2943  return [n, o, r];
2944};
2945h.rgb.hex = function(t) {
2946  const n = (((Math.round(t[0]) & 255) << 16) + ((Math.round(t[1]) & 255) << 8) + (Math.round(t[2]) & 255)).toString(16).toUpperCase();
2947  return "000000".substring(n.length) + n;
2948};
2949h.hex.rgb = function(t) {
2950  const e = t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
2951  if (!e)
2952    return [0, 0, 0];
2953  let n = e[0];
2954  e[0].length === 3 && (n = n.split("").map((i) => i + i).join(""));
2955  const o = parseInt(n, 16), r = o >> 16 & 255, c = o >> 8 & 255, s = o & 255;
2956  return [r, c, s];
2957};
2958h.rgb.hcg = function(t) {
2959  const e = t[0] / 255, n = t[1] / 255, o = t[2] / 255, r = Math.max(Math.max(e, n), o), c = Math.min(Math.min(e, n), o), s = r - c;
2960  let i, l;
2961  return s < 1 ? i = c / (1 - s) : i = 0, s <= 0 ? l = 0 : r === e ? l = (n - o) / s % 6 : r === n ? l = 2 + (o - e) / s : l = 4 + (e - n) / s, l /= 6, l %= 1, [l * 360, s * 100, i * 100];
2962};
2963h.hsl.hcg = function(t) {
2964  const e = t[1] / 100, n = t[2] / 100, o = n < 0.5 ? 2 * e * n : 2 * e * (1 - n);
2965  let r = 0;
2966  return o < 1 && (r = (n - 0.5 * o) / (1 - o)), [t[0], o * 100, r * 100];
2967};
2968h.hsv.hcg = function(t) {
2969  const e = t[1] / 100, n = t[2] / 100, o = e * n;
2970  let r = 0;
2971  return o < 1 && (r = (n - o) / (1 - o)), [t[0], o * 100, r * 100];
2972};
2973h.hcg.rgb = function(t) {
2974  const e = t[0] / 360, n = t[1] / 100, o = t[2] / 100;
2975  if (n === 0)
2976    return [o * 255, o * 255, o * 255];
2977  const r = [0, 0, 0], c = e % 1 * 6, s = c % 1, i = 1 - s;
2978  let l = 0;
2979  switch (Math.floor(c)) {
2980    case 0:
2981      r[0] = 1, r[1] = s, r[2] = 0;
2982      break;
2983    case 1:
2984      r[0] = i, r[1] = 1, r[2] = 0;
2985      break;
2986    case 2:
2987      r[0] = 0, r[1] = 1, r[2] = s;
2988      break;
2989    case 3:
2990      r[0] = 0, r[1] = i, r[2] = 1;
2991      break;
2992    case 4:
2993      r[0] = s, r[1] = 0, r[2] = 1;
2994      break;
2995    default:
2996      r[0] = 1, r[1] = 0, r[2] = i;
2997  }
2998  return l = (1 - n) * o, [
2999    (n * r[0] + l) * 255,
3000    (n * r[1] + l) * 255,
3001    (n * r[2] + l) * 255
3002  ];
3003};
3004h.hcg.hsv = function(t) {
3005  const e = t[1] / 100, n = t[2] / 100, o = e + n * (1 - e);
3006  let r = 0;
3007  return o > 0 && (r = e / o), [t[0], r * 100, o * 100];
3008};
3009h.hcg.hsl = function(t) {
3010  const e = t[1] / 100, o = t[2] / 100 * (1 - e) + 0.5 * e;
3011  let r = 0;
3012  return o > 0 && o < 0.5 ? r = e / (2 * o) : o >= 0.5 && o < 1 && (r = e / (2 * (1 - o))), [t[0], r * 100, o * 100];
3013};
3014h.hcg.hwb = function(t) {
3015  const e = t[1] / 100, n = t[2] / 100, o = e + n * (1 - e);
3016  return [t[0], (o - e) * 100, (1 - o) * 100];
3017};
3018h.hwb.hcg = function(t) {
3019  const e = t[1] / 100, o = 1 - t[2] / 100, r = o - e;
3020  let c = 0;
3021  return r < 1 && (c = (o - r) / (1 - r)), [t[0], r * 100, c * 100];
3022};
3023h.apple.rgb = function(t) {
3024  return [t[0] / 65535 * 255, t[1] / 65535 * 255, t[2] / 65535 * 255];
3025};
3026h.rgb.apple = function(t) {
3027  return [t[0] / 255 * 65535, t[1] / 255 * 65535, t[2] / 255 * 65535];
3028};
3029h.gray.rgb = function(t) {
3030  return [t[0] / 100 * 255, t[0] / 100 * 255, t[0] / 100 * 255];
3031};
3032h.gray.hsl = function(t) {
3033  return [0, 0, t[0]];
3034};
3035h.gray.hsv = h.gray.hsl;
3036h.gray.hwb = function(t) {
3037  return [0, 100, t[0]];
3038};
3039h.gray.cmyk = function(t) {
3040  return [0, 0, 0, t[0]];
3041};
3042h.gray.lab = function(t) {
3043  return [t[0], 0, 0];
3044};
3045h.gray.hex = function(t) {
3046  const e = Math.round(t[0] / 100 * 255) & 255, o = ((e << 16) + (e << 8) + e).toString(16).toUpperCase();
3047  return "000000".substring(o.length) + o;
3048};
3049h.rgb.gray = function(t) {
3050  return [(t[0] + t[1] + t[2]) / 3 / 255 * 100];
3051};
3052const $t = Te;
3053function Ga() {
3054  const t = {}, e = Object.keys($t);
3055  for (let n = e.length, o = 0; o < n; o++)
3056    t[e[o]] = {
3057      // http://jsperf.com/1-vs-infinity
3058      // micro-opt, but this is simple.
3059      distance: -1,
3060      parent: null
3061    };
3062  return t;
3063}
3064function Xa(t) {
3065  const e = Ga(), n = [t];
3066  for (e[t].distance = 0; n.length; ) {
3067    const o = n.pop(), r = Object.keys($t[o]);
3068    for (let c = r.length, s = 0; s < c; s++) {
3069      const i = r[s], l = e[i];
3070      l.distance === -1 && (l.distance = e[o].distance + 1, l.parent = o, n.unshift(i));
3071    }
3072  }
3073  return e;
3074}
3075function Qa(t, e) {
3076  return function(n) {
3077    return e(t(n));
3078  };
3079}
3080function Za(t, e) {
3081  const n = [e[t].parent, t];
3082  let o = $t[e[t].parent][t], r = e[t].parent;
3083  for (; e[r].parent; )
3084    n.unshift(e[r].parent), o = Qa($t[e[r].parent][r], o), r = e[r].parent;
3085  return o.conversion = n, o;
3086}
3087var Ja = function(t) {
3088  const e = Xa(t), n = {}, o = Object.keys(e);
3089  for (let r = o.length, c = 0; c < r; c++) {
3090    const s = o[c];
3091    e[s].parent !== null && (n[s] = Za(s, e));
3092  }
3093  return n;
3094};
3095const jt = Te, ti = Ja, st = {}, ei = Object.keys(jt);
3096function ni(t) {
3097  const e = function(...n) {
3098    const o = n[0];
3099    return o == null ? o : (o.length > 1 && (n = o), t(n));
3100  };
3101  return "conversion" in t && (e.conversion = t.conversion), e;
3102}
3103function oi(t) {
3104  const e = function(...n) {
3105    const o = n[0];
3106    if (o == null)
3107      return o;
3108    o.length > 1 && (n = o);
3109    const r = t(n);
3110    if (typeof r == "object")
3111      for (let c = r.length, s = 0; s < c; s++)
3112        r[s] = Math.round(r[s]);
3113    return r;
3114  };
3115  return "conversion" in t && (e.conversion = t.conversion), e;
3116}
3117ei.forEach((t) => {
3118  st[t] = {}, Object.defineProperty(st[t], "channels", { value: jt[t].channels }), Object.defineProperty(st[t], "labels", { value: jt[t].labels });
3119  const e = ti(t);
3120  Object.keys(e).forEach((o) => {
3121    const r = e[o];
3122    st[t][o] = oi(r), st[t][o].raw = ni(r);
3123  });
3124});
3125var ri = st;
3126const ct = qa, U = ri, $e = [
3127  // To be honest, I don't really feel like keyword belongs in color convert, but eh.
3128  "keyword",
3129  // Gray conflicts with some method names, and has its own method defined.
3130  "gray",
3131  // Shouldn't really be in color-convert either...
3132  "hex"
3133], Vt = {};
3134for (const t of Object.keys(U))
3135  Vt[[...U[t].labels].sort().join("")] = t;
3136const Nt = {};
3137function H(t, e) {
3138  if (!(this instanceof H))
3139    return new H(t, e);
3140  if (e && e in $e && (e = null), e && !(e in U))
3141    throw new Error("Unknown model: " + e);
3142  let n, o;
3143  if (t == null)
3144    this.model = "rgb", this.color = [0, 0, 0], this.valpha = 1;
3145  else if (t instanceof H)
3146    this.model = t.model, this.color = [...t.color], this.valpha = t.valpha;
3147  else if (typeof t == "string") {
3148    const r = ct.get(t);
3149    if (r === null)
3150      throw new Error("Unable to parse color from string: " + t);
3151    this.model = r.model, o = U[this.model].channels, this.color = r.value.slice(0, o), this.valpha = typeof r.value[o] == "number" ? r.value[o] : 1;
3152  } else if (t.length > 0) {
3153    this.model = e || "rgb", o = U[this.model].channels;
3154    const r = Array.prototype.slice.call(t, 0, o);
3155    this.color = Kt(r, o), this.valpha = typeof t[o] == "number" ? t[o] : 1;
3156  } else if (typeof t == "number")
3157    this.model = "rgb", this.color = [
3158      t >> 16 & 255,
3159      t >> 8 & 255,
3160      t & 255
3161    ], this.valpha = 1;
3162  else {
3163    this.valpha = 1;
3164    const r = Object.keys(t);
3165    "alpha" in t && (r.splice(r.indexOf("alpha"), 1), this.valpha = typeof t.alpha == "number" ? t.alpha : 0);
3166    const c = r.sort().join("");
3167    if (!(c in Vt))
3168      throw new Error("Unable to parse color from object: " + JSON.stringify(t));
3169    this.model = Vt[c];
3170    const { labels: s } = U[this.model], i = [];
3171    for (n = 0; n < s.length; n++)
3172      i.push(t[s[n]]);
3173    this.color = Kt(i);
3174  }
3175  if (Nt[this.model])
3176    for (o = U[this.model].channels, n = 0; n < o; n++) {
3177      const r = Nt[this.model][n];
3178      r && (this.color[n] = r(this.color[n]));
3179    }
3180  this.valpha = Math.max(0, Math.min(1, this.valpha)), Object.freeze && Object.freeze(this);
3181}
3182H.prototype = {
3183  toString() {
3184    return this.string();
3185  },
3186  toJSON() {
3187    return this[this.model]();
3188  },
3189  string(t) {
3190    let e = this.model in ct.to ? this : this.rgb();
3191    e = e.round(typeof t == "number" ? t : 1);
3192    const n = e.valpha === 1 ? e.color : [...e.color, this.valpha];
3193    return ct.to[e.model](n);
3194  },
3195  percentString(t) {
3196    const e = this.rgb().round(typeof t == "number" ? t : 1), n = e.valpha === 1 ? e.color : [...e.color, this.valpha];
3197    return ct.to.rgb.percent(n);
3198  },
3199  array() {
3200    return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
3201  },
3202  object() {
3203    const t = {}, { channels: e } = U[this.model], { labels: n } = U[this.model];
3204    for (let o = 0; o < e; o++)
3205      t[n[o]] = this.color[o];
3206    return this.valpha !== 1 && (t.alpha = this.valpha), t;
3207  },
3208  unitArray() {
3209    const t = this.rgb().color;
3210    return t[0] /= 255, t[1] /= 255, t[2] /= 255, this.valpha !== 1 && t.push(this.valpha), t;
3211  },
3212  unitObject() {
3213    const t = this.rgb().object();
3214    return t.r /= 255, t.g /= 255, t.b /= 255, this.valpha !== 1 && (t.alpha = this.valpha), t;
3215  },
3216  round(t) {
3217    return t = Math.max(t || 0, 0), new H([...this.color.map(ii(t)), this.valpha], this.model);
3218  },
3219  alpha(t) {
3220    return t !== void 0 ? new H([...this.color, Math.max(0, Math.min(1, t))], this.model) : this.valpha;
3221  },
3222  // Rgb
3223  red: E("rgb", 0, z(255)),
3224  green: E("rgb", 1, z(255)),
3225  blue: E("rgb", 2, z(255)),
3226  hue: E(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (t) => (t % 360 + 360) % 360),
3227  saturationl: E("hsl", 1, z(100)),
3228  lightness: E("hsl", 2, z(100)),
3229  saturationv: E("hsv", 1, z(100)),
3230  value: E("hsv", 2, z(100)),
3231  chroma: E("hcg", 1, z(100)),
3232  gray: E("hcg", 2, z(100)),
3233  white: E("hwb", 1, z(100)),
3234  wblack: E("hwb", 2, z(100)),
3235  cyan: E("cmyk", 0, z(100)),
3236  magenta: E("cmyk", 1, z(100)),
3237  yellow: E("cmyk", 2, z(100)),
3238  black: E("cmyk", 3, z(100)),
3239  x: E("xyz", 0, z(95.047)),
3240  y: E("xyz", 1, z(100)),
3241  z: E("xyz", 2, z(108.833)),
3242  l: E("lab", 0, z(100)),
3243  a: E("lab", 1),
3244  b: E("lab", 2),
3245  keyword(t) {
3246    return t !== void 0 ? new H(t) : U[this.model].keyword(this.color);
3247  },
3248  hex(t) {
3249    return t !== void 0 ? new H(t) : ct.to.hex(this.rgb().round().color);
3250  },
3251  hexa(t) {
3252    if (t !== void 0)
3253      return new H(t);
3254    const e = this.rgb().round().color;
3255    let n = Math.round(this.valpha * 255).toString(16).toUpperCase();
3256    return n.length === 1 && (n = "0" + n), ct.to.hex(e) + n;
3257  },
3258  rgbNumber() {
3259    const t = this.rgb().color;
3260    return (t[0] & 255) << 16 | (t[1] & 255) << 8 | t[2] & 255;
3261  },
3262  luminosity() {
3263    const t = this.rgb().color, e = [];
3264    for (const [n, o] of t.entries()) {
3265      const r = o / 255;
3266      e[n] = r <= 0.04045 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
3267    }
3268    return 0.2126 * e[0] + 0.7152 * e[1] + 0.0722 * e[2];
3269  },
3270  contrast(t) {
3271    const e = this.luminosity(), n = t.luminosity();
3272    return e > n ? (e + 0.05) / (n + 0.05) : (n + 0.05) / (e + 0.05);
3273  },
3274  level(t) {
3275    const e = this.contrast(t);
3276    return e >= 7 ? "AAA" : e >= 4.5 ? "AA" : "";
3277  },
3278  isDark() {
3279    const t = this.rgb().color;
3280    return (t[0] * 2126 + t[1] * 7152 + t[2] * 722) / 1e4 < 128;
3281  },
3282  isLight() {
3283    return !this.isDark();
3284  },
3285  negate() {
3286    const t = this.rgb();
3287    for (let e = 0; e < 3; e++)
3288      t.color[e] = 255 - t.color[e];
3289    return t;
3290  },
3291  lighten(t) {
3292    const e = this.hsl();
3293    return e.color[2] += e.color[2] * t, e;
3294  },
3295  darken(t) {
3296    const e = this.hsl();
3297    return e.color[2] -= e.color[2] * t, e;
3298  },
3299  saturate(t) {
3300    const e = this.hsl();
3301    return e.color[1] += e.color[1] * t, e;
3302  },
3303  desaturate(t) {
3304    const e = this.hsl();
3305    return e.color[1] -= e.color[1] * t, e;
3306  },
3307  whiten(t) {
3308    const e = this.hwb();
3309    return e.color[1] += e.color[1] * t, e;
3310  },
3311  blacken(t) {
3312    const e = this.hwb();
3313    return e.color[2] += e.color[2] * t, e;
3314  },
3315  grayscale() {
3316    const t = this.rgb().color, e = t[0] * 0.3 + t[1] * 0.59 + t[2] * 0.11;
3317    return H.rgb(e, e, e);
3318  },
3319  fade(t) {
3320    return this.alpha(this.valpha - this.valpha * t);
3321  },
3322  opaquer(t) {
3323    return this.alpha(this.valpha + this.valpha * t);
3324  },
3325  rotate(t) {
3326    const e = this.hsl();
3327    let n = e.color[0];
3328    return n = (n + t) % 360, n = n < 0 ? 360 + n : n, e.color[0] = n, e;
3329  },
3330  mix(t, e) {
3331    if (!t || !t.rgb)
3332      throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof t);
3333    const n = t.rgb(), o = this.rgb(), r = e === void 0 ? 0.5 : e, c = 2 * r - 1, s = n.alph
3333a() - o.alpha(), i = ((c * s === -1 ? c : (c + s) / (1 + c * s)) + 1) / 2, l = 1 - i;
3334    return H.rgb(
3335      i * n.red() + l * o.red(),
3336      i * n.green() + l * o.green(),
3337      i * n.blue() + l * o.blue(),
3338      n.alpha() * r + o.alpha() * (1 - r)
3339    );
3340  }
3341};
3342for (const t of Object.keys(U)) {
3343  if ($e.includes(t))
3344    continue;
3345  const { channels: e } = U[t];
3346  H.prototype[t] = function(...n) {
3347    return this.model === t ? new H(this) : n.length > 0 ? new H(n, t) : new H([...si(U[this.model][t].raw(this.color)), this.valpha], t);
3348  }, H[t] = function(...n) {
3349    let o = n[0];
3350    return typeof o == "number" && (o = Kt(n, e)), new H(o, t);
3351  };
3352}
3353function ai(t, e) {
3354  return Number(t.toFixed(e));
3355}
3356function ii(t) {
3357  return function(e) {
3358    return ai(e, t);
3359  };
3360}
3361function E(t, e, n) {
3362  t = Array.isArray(t) ? t : [t];
3363  for (const o of t)
3364    (Nt[o] || (Nt[o] = []))[e] = n;
3365  return t = t[0], function(o) {
3366    let r;
3367    return o !== void 0 ? (n && (o = n(o)), r = this[t](), r.color[e] = o, r) : (r = this[t]().color[e], n && (r = n(r)), r);
3368  };
3369}
3370function z(t) {
3371  return function(e) {
3372    return Math.max(0, Math.min(t, e));
3373  };
3374}
3375function si(t) {
3376  return Array.isArray(t) ? t : [t];
3377}
3378function Kt(t, e) {
3379  for (let n = 0; n < e; n++)
3380    typeof t[n] != "number" && (t[n] = 0);
3381  return t;
3382}
3383var ci = H;
3384const ne = /* @__PURE__ */ Ge(ci);
3385function Yt() {
3386  return Yt = Object.assign ? Object.assign.bind() : function(t) {
3387    for (var e = 1; e < arguments.length; e++) {
3388      var n = arguments[e];
3389      for (var o in n)
3390        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
3391    }
3392    return t;
3393  }, Yt.apply(null, arguments);
3394}
3395const Ft = "#FFFFFF", li = "#212121", lt = D.forwardRef(({
3396  children: t,
3397  icon: e,
3398  ...n
3399}, o) => {
3400  const r = k("brand_color"), c = ne(r).hex() === Ft, s = c ? li : r;
3401  `${Dt(r).join(",")}`;
3402  const i = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" style="stroke-width: 3" ><path d="M5 12H19" stroke="${encodeURIComponent(c ? s : Ft)}" /></svg>`, l = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" style="stroke-width: 3" ><path d="M19 6L9.375 17L5 12" stroke="${encodeURIComponent(c ? s : Ft)}" /></svg>`;
3403  return a("label", {
3404    css: [{
3405      display: "flex !important",
3406      cursor: "pointer",
3407      alignItems: "center",
3408      "--tw-text-opacity": "1 !important",
3409      color: "rgb(33 33 33 / var(--tw-text-opacity)) !important"
3410    }, n.disabled ? {
3411      cursor: "not-allowed"
3412    } : null]
3413  }, a("input", Yt({
3414    css: [{
3415      margin: "0 !important",
3416      height: "18px",
3417      width: "18px",
3418      flexShrink: "0",
3419      cursor: "pointer",
3420      appearance: "none",
3421      borderRadius: "3px",
3422      borderWidth: "1px",
3423      borderStyle: "solid",
3424      "--tw-bg-opacity": "1",
3425      backgroundColor: "rgb(255 255 255 / var(--tw-bg-opacity))"
3426    }, "border: #DDDDDD 1px solid;", `:checked {
3427            border-color: #DDDDDD;
3428            background-size: contain;
3429            background-repeat: no-repeat;
3430            background-color: ${r};
3431            background-image: url('data:image/svg+xml;utf8,${(e ?? "check") === "check" ? l : i}');
3432          }`, `:focus {
3433            outline: none !important;
3434            outline-offset: unset !important;
3435            box-shadow: none !important;
3436          }`, `:disabled {
3437            background-color: #f5f5f5;
3438            border-color: #e5e5e5;
3439          }`]
3440  }, n, {
3441    ref: o,
3442    type: "checkbox"
3443  })), t && a("span", {
3444    css: {
3445      marginLeft: "0.5rem"
3446    }
3447  }, t));
3448});
3449function qt() {
3450  return qt = Object.assign ? Object.assign.bind() : function(t) {
3451    for (var e = 1; e < arguments.length; e++) {
3452      var n = arguments[e];
3453      for (var o in n)
3454        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
3455    }
3456    return t;
3457  }, qt.apply(null, arguments);
3458}
3459const Mt = ({
3460  svgPlainText: t,
3461  iconWidth: e,
3462  iconHeight: n,
3463  ...o
3464}) => a("label", qt({}, o, {
3465  css: [{
3466    height: "100%",
3467    width: "100%",
3468    cursor: "pointer",
3469    paddingLeft: "36px"
3470  }, `border-color: transparent;
3471    background-size: ${e ?? 20}px ${n ?? 20}px;
3472    background-repeat: no-repeat;
3473    background-position: ${30 - (e ?? 20)}px center;
3474    background-image: url('data:image/svg+xml;utf8,${t}');`, o.css]
3475}), o.children);
3476function Ut() {
3477  return Ut = Object.assign ? Object.assign.bind() : function(t) {
3478    for (var e = 1; e < arguments.length; e++) {
3479      var n = arguments[e];
3480      for (var o in n)
3481        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
3482    }
3483    return t;
3484  }, Ut.apply(null, arguments);
3485}
3486const di = "#FFFFFF", mi = "#212121", Gt = D.forwardRef(({
3487  children: t,
3488  ...e
3489}, n) => {
3490  const o = k("brand_color"), r = ne(o).hex() === di;
3491  return `${Dt(o).join(",")}`, a("label", {
3492    css: [{
3493      display: "flex !important",
3494      cursor: "pointer",
3495      alignItems: "center",
3496      "--tw-text-opacity": "1 !important",
3497      color: "rgb(33 33 33 / var(--tw-text-opacity)) !important"
3498    }, e.disabled ? {
3499      cursor: "not-allowed"
3500    } : null]
3501  }, a("input", Ut({
3502    css: [{
3503      margin: "0px !important",
3504      height: "18px",
3505      width: "18px",
3506      flexShrink: "0",
3507      cursor: "pointer",
3508      appearance: "none",
3509      borderRadius: "50%",
3510      borderWidth: "1px",
3511      borderStyle: "solid",
3512      "--tw-bg-opacity": "1",
3513      backgroundColor: "rgb(255 255 255 / var(--tw-bg-opacity))"
3514    }, "border: #dddddd 1px solid;", `:checked {
3515              background-size: contain;
3516              background-repeat: no-repeat;
3517              background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="fill: ${encodeURIComponent(o)}" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7" ${r ? `stroke="${encodeURIComponent(mi)}" stroke-width="3"` : ""}/></svg>');
3518            }`, `:focus {
3519            outline: none !important;
3520            outline-offset: unset !important;
3521            box-shadow: none !important;
3522          }`, `:disabled {
3523            background-color: #f5f5f5;
3524            border-color: #e5e5e5;
3525          }`]
3526  }, e, {
3527    ref: n,
3528    type: "radio"
3529  })), t);
3530});
3531function Xt() {
3532  return Xt = Object.assign ? Object.assign.bind() : function(t) {
3533    for (var e = 1; e < arguments.length; e++) {
3534      var n = arguments[e];
3535      for (var o in n)
3536        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
3537    }
3538    return t;
3539  }, Xt.apply(null, arguments);
3540}
3541const ht = (t) => {
3542  const e = k("body_color"), n = `rgba(${Dt(e).join(",")}, 0.4)`;
3543  return a("label", {
3544    css: [{
3545      position: "relative",
3546      width: "100%",
3547      borderWidth: "1px",
3548      borderStyle: "solid",
3549      "--tw-border-opacity": "1",
3550      borderColor: "rgb(221 221 221 / var(--tw-border-opacity))"
3551    }, t.css]
3552  }, a("select", Xt({
3553    css: [{
3554      minHeight: "36px",
3555      width: "100%",
3556      cursor: "pointer",
3557      appearance: "none",
3558      "--tw-bg-opacity": "1 !important",
3559      backgroundColor: "rgb(255 255 255 / var(--tw-bg-opacity)) !important",
3560      padding: "0.5em 0.75em",
3561      fontSize: "14px",
3562      "--tw-text-opacity": "1",
3563      color: "rgb(33 33 33 / var(--tw-text-opacity))"
3564    }, `
3565background-size: 20px 20px;
3566background-repeat: no-repeat;
3567background-position: right 4px center;
3568background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="${n}" stroke="${n}" xmlns="http://www.w3.org/2000/svg"><path d="M8.71466 8.91003C8.19283 8.91003 7.93192 8.91003 7.79572 9.01749C7.67722 9.11097 7.60729 9.25298 7.60544 9.40391C7.60331 9.57738 7.7624 9.78419 8.08056 10.1978L11.4559 14.5857C11.6716 14.8662 11.7795 15.0064 11.911 15.0568C12.0262 15.101 12.1537 15.101 12.2689 15.0568C12.4004 15.0064 12.5083 14.8662 12.7241 14.5857L16.0994 10.1978C16.4175 9.78419 16.5766 9.57738 16.5745 9.40391C16.5727 9.25298 16.5027 9.11097 16.3842 9.01749C16.248 8.91003 15.9871 8.91003 15.4653 8.91003H8.71466Z" /></svg>');`]
3569  }, t), t.children));
3570}, pi = 7, ml = 1024 * 1024 * 30, ui = 16, hi = 2, pl = 500, ul = 100, hl = {
3571  // AED	아랍에미리트 디르함	2
3572  AED: 2,
3573  // AUD	호주 달러	2
3574  AUD: 2,
3575  // CAD	캐나다 달러	2
3576  CAD: 2,
3577  // CHF	스위스 프랑	2
3578  CHF: 2,
3579  // CNY	중국 위안	2
3580  CNY: 2,
3581  // CZK	체코 코루나	0
3582  CZK: 0,
3583  // DKK	덴마크 크로네	0
3584  DKK: 0,
3585  // EUR	유로	2
3586  EUR: 2,
3587  // GBP	영국 파운드	2
3588  GBP: 2,
3589  // HKD	홍콩 달러	2
3590  HKD: 2,
3591  // HUF	헝가리 포린트	3
3592  HUF: 3,
3593  // ILS	이스라엘 셰켈	0
3594  ILS: 0,
3595  // JPY	일본 엔	0
3596  JPY: 0,
3597  // KRW	원화	0
3598  KRW: 0,
3599  // MXN	멕시코 페소	2
3600  MXN: 2,
3601  // MYR	말레이시아 링깃	2
3602  MYR: 2,
3603  // NOK	노르웨이 크로네	2
3604  NOK: 2,
3605  // NZD	뉴질랜드 달러	2
3606  NZD: 2,
3607  // PHP	필리핀 페소	0
3608  PHP: 0,
3609  // PLN	폴란드 즈워티	2
3610  PLN: 2,
3611  // RUB	러시아 루블	2
3612  RUB: 2,
3613  // SEK	스웨덴 크로네	2
3614  SEK: 2,
3615  // SGD	싱가포르 달러	2
3616  SGD: 2,
3617  // THB	태국 밧	2
3618  THB: 2,
3619  // TWD	대만 달러	0
3620  TWD: 0,
3621  // USD	미국 달러	2
3622  USD: 2,
3623  // VND	베트남 동	0
3624  VND: 0
3625}, gl = ({
3626  queryOptions: t
3627} = {}) => ({
3628  queryKey: ["SiteShopConfig"],
3629  queryFn: async ({
3630    signal: e
3631  }) => {
3632    const n = new URL("/ajax/oms/OMS_wrap_customer_v1_sites.cm", window.location.origin), {
3633      data: o
3634    } = await tt.get(n.href, {
3635      signal: e
3636    });
3637    if (!/^SUCCESS$/i.test(o == null ? void 0 : o.message))
3638      throw new Error(o == null ? void 0 : o.message);
3639    return o == null ? void 0 : o.data;
3640  },
3641  ...t
3642}), gi = {
3643  name: "imweb Sans",
3644  import: "https://vendor.imtest.me/fonts/imweb-sans/imweb-sans.css",
3645  family: "imweb Sans",
3646  position: "0 -2174px",
3647  lang: ""
3648}, fi = {
3649  name: "기본",
3650  import: "",
3651  family: "Apple SD Gothic Neo, Malgun Gothic, Nanum Gothic, Meiryo, sans-serif, serif, Arial",
3652  position: "",
3653  lang: ""
3654}, bi = {
3655  name: "검은고딕",
3656  import: "https://vendor.imtest.me/css/blackhansans.css",
3657  family: "BlackHanSans",
3658  position: "0 -1816px",
3659  lang: "KR"
3660}, yi = {
3661  name: "경기천년바탕",
3662  import: "https://vendor.imtest.me/css/gyeonggibattang.css",
3663  family: "GyeonggiBattang",
3664  position: "0 -1894px",
3665  lang: "KR"
3666}, xi = {
3667  name: "고도 마음체",
3668  import: "https://vendor.imtest.me/css/godomaum.css",
3669  family: "godoMaum",
3670  position: "0 7px",
3671  lang: "KR"
3672}, wi = {
3673  name: "구기",
3674  import: "https://vendor.imtest.me/css/gugi.css",
3675  family: "Gugi",
3676  position: "0 -20px",
3677  lang: "KR"
3678}, vi = {
3679  name: "나눔손글씨 붓",
3680  import: "https://vendor.imtest.me/css/nanumbrushscript.css?v1",
3681  family: "NanumBrush",
3682  position: "0 -122px",
3683  lang: "KR"
3684}, Si = {
3685  name: "나눔손글씨 펜",
3686  import: "https://vendor.imtest.me/css/nanumpenscript.css?v1",
3687  family: "NanumPen",
3688  position: "0 -149px",
3689  lang: "KR"
3690}, Ci = {
3691  name: "나눔스퀘어",
3692  import: "https://vendor.imtest.me/css/nanumSquare.css?v1",
3693  family: "NanumSquare",
3694  position: "0 -175px",
3695  lang: "KR"
3696}, ki = {
3697  name: "나눔스퀘어 라운드",
3698  import: "https://vendor.imtest.me/css/nanumsquareround.css?v1",
3699  family: "NanumSquareRoundR",
3700  position: "0 -201px",
3701  lang: "KR"
3702}, _i = {
3703  name: "넥슨 Lv.1 고딕",
3704  import: "https://vendor.imtest.me/css/nexongothic.css",
3705  family: "Nexon Gothic",
3706  position: "0 -1687px",
3707  lang: "KR"
3708}, Pi = {
3709  name: "넥슨 Lv.2 고딕",
3710  import: "https://vendor.imtest.me/css/nexongothic2.css",
3711  family: "NexonLv2Gothic",
3712  position: "0 -1737px",
3713  lang: "KR"
3714}, Mi = {
3715  name: "다음",
3716  import: "https://vendor.imtest.me/css/daum.css",
3717  family: "Daum",
3718  position: "0 -228px",
3719  lang: "KR"
3720}, Ti = {
3721  name: "둥근모",
3722  import: "https://vendor.imtest.me/css/dunggeunmo.css",
3723  family: "DungGeunMo",
3724  position: "0 -253px",
3725  lang: "KR"
3726}, $i = {
3727  name: "레코체",
3728  import: "https://vendor.imtest.me/css/reko.css",
3729  family: "reko",
3730  position: "0 -1634px",
3731  lang: "KR"
3732}, Ni = {
3733  name: "리디바탕",
3734  import: "https://vendor.imtest.me/css/ridibatang.css",
3735  family: "RIDIBatang",
3736  position: "0 -1789px",
3737  lang: "KR"
3738}, Wi = {
3739  name: "맑은고딕",
3740  family: "Malgun Gothic",
3741  position: "0 -279px",
3742  lang: "KR"
3743}, Ri = {
3744  name: "문체부 쓰기 정체",
3745  import: "https://vendor.imtest.me/css/msugijeong.css",
3746  family: "MSugiJeong",
3747  position: "0 -305px",
3748  lang: "KR"
3749}, Di = {
3750  name: "민국체",
3751  import: "https://vendor.imtest.me/css/yoonminguk.css",
3752  family: "YoonMinguk",
3753  position: "0 -1920px",
3754  lang: "KR"
3755}, Bi = {
3756  name: "바탕",
3757  family: "batang",
3758  position: "0 -357px",
3759  lang: "KR"
3760}, Li = {
3761  name: "비비트리 고딕",
3762  import: "https://vendor.imtest.me/css/bbtreegl.css?v3",
3763  family: "BBTreeG_R",
3764  position: "0 -436px",
3765  lang: "KR"
3766}, Ei = {
3767  name: "비비트리 손글씨",
3768  import: "https://vendor.imtest.me/css/bbtreecl.css",
3769  family: "BBTreeCL",
3770  position: "0 -461px",
3771  lang: "KR"
3772}, Ai = {
3773  name: "빙그레",
3774  import: "https://vendor.imtest.me/css/binggrae.css",
3775  family: "Binggrae",
3776  position: "0 -487px",
3777  lang: "KR"
3778}, zi = {
3779  name: "빙그레2",
3780  import: "https://vendor.imtest.me/css/binggrae2.css",
3781  family: "BinggraeII",
3782  position: "0 -514px",
3783  lang: "KR"
3784}, Oi = {
3785  name: "빙그레 따옴",
3786  import: "https://vendor.imtest.me/css/binggrae_taom.css",
3787  family: "BinggraeTaom",
3788  position: "0 -540px",
3789  lang: "KR"
3790}, Fi = {
3791  name: "상상제목",
3792  import: "https://vendor.imtest.me/css/sangsangtitle.css?v1",
3793  family: "SangSangTitle",
3794  position: "0 -565px",
3795  lang: "KR"
3796}, Ii = {
3797  name: "스웨거",
3798  import: "https://vendor.imtest.me/css/swagger.css",
3799  family: "Swagger",
3800  position: "0 -591px",
3801  lang: "KR"
3802}, Hi = {
3803  name: "서울남산체",
3804  import: "https://vendor.imtest.me/css/seoulnamsanm.css",
3805  family: "SeoulNamsanJungM",
3806  position: "0 -617px",
3807  lang: "KR"
3808}, ji = {
3809  name: "서울한강체",
3810  import: "https://vendor.imtest.me/css/seoulhangang.css",
3811  family: "SeoulHangangJungM",
3812  position: "0 -643px",
3813  lang: "KR"
3814}, Vi = {
3815  name: "스포카 한 산스",
3816  import: "https://vendor.imtest.me/css/spocahansans.css",
3817  family: "Spoqa Han Sans",
3818  position: "0 -669px",
3819  lang: "KR"
3820}, Ki = {
3821  name: "순바탕체",
3822  import: "https://vendor.imtest.me/css/sunbatang.css",
3823  family: "SunBatang",
3824  position: "0 -1322px",
3825  lang: "KR"
3826}, Yi = {
3827  name: "아리따돋움",
3828  import: "https://vendor.imtest.me/css/arita.css?v1",
3829  family: "aritadm",
3830  position: "0 -694px",
3831  lang: "KR"
3832}, qi = {
3833  name: "아리따부리",
3834  import: "https://vendor.imtest.me/css/arita_buri.css",
3835  family: "Arita-buri",
3836  position: "0 -720px",
3837  lang: "KR"
3838}, Ui = {
3839  name: "여기어때 잘난체",
3840  import: "https://vendor.imtest.me/css/jalnan.css",
3841  family: "Jalnan",
3842  position: "0 -1763px",
3843  lang: "KR"
3844}, Gi = {
3845  name: "에스코어 드림",
3846  import: "https://vendor.imtest.me/css/score_dream.css",
3847  family: "S-CoreDream-4Regular",
3848  position: "0 -1347px",
3849  lang: "KR"
3850}, Xi = {
3851  name: "오성과한음",
3852  import: "https://vendor.imtest.me/css/oseongandhaneum.css",
3853  family: "OSeongandHanEum",
3854  position: "0 -747px",
3855  lang: "KR"
3856}, Qi = {
3857  name: "조선일보 명조",
3858  import: "https://vendor.imtest.me/css/chosun_ilbo_myungjo.css",
3859  family: "chosun_ilbo_myungjo",
3860  position: "0 -826px",
3861  lang: "KR"
3862}, Zi = {
3863  name: "중나좋체",
3864  import: "https://vendor.imtest.me/css/joongnajoche.css",
3865  family: "Joongnajoche",
3866  position: "0 -1608px",
3867  lang: "KR"
3868}, Ji = {
3869  name: "제주고딕",
3870  import: "https://vendor.imtest.me/css/jejugothic.css?v1",
3871  family: "JejuGothic",
3872  position: "0 -851px",
3873  lang: "KR"
3874}, ts = {
3875  name: "제주한라산",
3876  import: "https://vendor.imtest.me/css/jejuhallasan.css?v1",
3877  family: "JejuHallasan",
3878  position: "0 -877px",
3879  lang: "KR"
3880}, es = {
3881  name: "제주명조",
3882  import: "https://vendor.imtest.me/css/jejumyeongjo.css?v1",
3883  family: "JejuMyeongjo",
3884  position: "0 -903px",
3885  lang: "KR"
3886}, ns = {
3887  name: "카카오",
3888  import: "https://vendor.imtest.me/css/kakao.css",
3889  family: "Kakao",
3890  position: "0 -930px",
3891  lang: "KR"
3892}, os = {
3893  name: "티몬 몬소리",
3894  import: "https://vendor.imtest.me/css/tmon_monsori.css?v1",
3895  family: "TmonMonsori",
3896  position: "0 -956px",
3897  lang: "KR"
3898}, rs = {
3899  name: "한돈 삼겹살체",
3900  import: "https://vendor.imtest.me/css/handon.css?v1",
3901  family: "handon",
3902  position: "0 -1842px",
3903  lang: "KR"
3904}, as = {
3905  name: "해바라기",
3906  import: "https://vendor.imtest.me/css/sunflower.css?v1",
3907  family: "Sunflower",
3908  position: "0 -982px",
3909  lang: "KR"
3910}, is = {
3911  name: "BM 기랑해랑체",
3912  import: "https://vendor.imtest.me/css/bm_kiranghaerang.css?v1",
3913  family: "BMKIRANGHAERANG",
3914  position: "0 -1007px",
3915  lang: "KR"
3916}, ss = {
3917  name: "BM 도현체",
3918  import: "https://vendor.imtest.me/css/bm_dohyeon.css",
3919  family: "BM DOHYEON",
3920  position: "0 -1034px",
3921  lang: "KR"
3922}, cs = {
3923  name: "BM 연성체",
3924  import: "https://vendor.imtest.me/css/bm_yeonsung.css",
3925  family: "BM YEONSUNG",
3926  position: "0 -1060px",
3927  lang: "KR"
3928}, ls = {
3929  name: "BM 주아체",
3930  import: "https://vendor.imtest.me/css/bm_jua.css",
3931  family: "BM JUA",
3932  position: "0 -1085px",
3933  lang: "KR"
3934}, ds = {
3935  name: "BM 한나체",
3936  import: "https://vendor.imtest.me/css/bm_hanna.css",
3937  family: "BM HANNA",
3938  position: "0 -1112px",
3939  lang: "KR"
3940}, ms = {
3941  name: "D2Coding",
3942  import: "https://vendor.imtest.me/css/d2coding.css",
3943  family: "D2Coding",
3944  position: "0 -1971px",
3945  lang: "KR"
3946}, ps = {
3947  name: "G마켓 산스",
3948  import: "https://vendor.imtest.me/css/gmarket.css?v1",
3949  family: "GmarketSans",
3950  position: "0 -1868px",
3951  lang: "KR"
3952}, us = {
3953  name: "HY 고딕 A1",
3954  import: "https://vendor.imtest.me/css/a1gothic.css?v1",
3955  family: "GothicA1",
3956  position: "0 -1998px",
3957  lang: "KR"
3958}, hs = {
3959  name: "Mapo금빛나루",
3960  import: "https://vendor.imtest.me/css/mapogoldenpier.css?v1",
3961  family: "MapoGoldenPier",
3962  position: "0 -1711px",
3963  lang: "KR"
3964}, gs = {
3965  name: "Mapo꽃섬",
3966  import: "https://vendor.imtest.me/css/mapo.css?v1",
3967  family: "MapoFlowerIsland",
3968  position: "0 -1659px",
3969  lang: "KR"
3970}, fs = {
3971  name: "Pretendard",
3972  import: "https://vendor.imtest.me/css/pretendard.css",
3973  family: "Pretendard",
3974  position: "0 -2150px",
3975  lang: "KR"
3976}, bs = {
3977  name: "Kokoro (日本語)",
3978  import: "https://vendor.imtest.me/css/kokoro.css",
3979  family: "Kokoro",
3980  position: "0 -1269px",
3981  lang: "JA"
3982}, ys = {
3983  name: "王漢宗空疊圓繁",
3984  import: "https://vendor.imtest.me/css/hanwangkandayan.css",
3985  family: "HanWangKanDaYan",
3986  position: "0 -1451px",
3987  lang: "CN"
3988}, xs = {
3989  name: "王漢宗細圓體繁",
3990  import: "https://vendor.imtest.me/css/hanwangyen.css",
3991  family: "HanWangYenLight",
3992  position: "0 -1477px",
3993  lang: "CN"
3994}, ws = {
3995  name: "粉圓",
3996  import: "https://vendor.imtest.me/css/huninn.css",
3997  family: "huninn",
3998  position: "0 -2025px",
3999  lang: "CN"
4000}, vs = {
4001  name: "Seto",
4002  import: "https://vendor.imtest.me/css/seto.css",
4003  family: "seto",
4004  position: "0 -2079px",
4005  lang: "CN"
4006}, Ss = {
4007  imwebsans: gi,
4008  system: fi,
4009  blackhansans: bi,
4010  gyeonggibattang: yi,
4011  godoMaum: xi,
4012  gugi: wi,
4013  "nanumgothiccoding ": {
4014    name: "나눔고딕코딩",
4015    import: "https://vendor.imtest.me/css/nanumgothiccoding.css?v1",
4016    family: "NanumGothicCoding",
4017    position: "0 -1946px",
4018    lang: "KR"
4019  },
4020  "nanummyeongjo ": {
4021    name: "나눔명조",
4022    import: "https://vendor.imtest.me/css/nanummyeongjo.css?v1",
4023    family: "NanumMyeongjo",
4024    position: "0 -45px",
4025    lang: "KR"
4026  },
4027  "nanumbarungothic ": {
4028    name: "나눔바른고딕",
4029    import: "https://vendor.imtest.me/css/nanumbarungothic.css?v1",
4030    family: "NanumBarunGothic",
4031    position: "0 -71px",
4032    lang: "KR"
4033  },
4034  "nanumbarunpen ": {
4035    name: "나눔바른펜",
4036    import: "https://vendor.imtest.me/css/nanumbarunpen.css",
4037    family: "nanumbarunpenr",
4038    position: "0 -97px",
4039    lang: "KR"
4040  },
4041  nanumScript: vi,
4042  nanumPenScript: Si,
4043  nanumSquare: Ci,
4044  nanumSquareRound: ki,
4045  nexonlv1: _i,
4046  nexonlv2: Pi,
4047  Daum: Mi,
4048  DungGeunMo: Ti,
4049  reko: $i,
4050  RIDIBatang: Ni,
4051  malgungothic: Wi,
4052  msugijeong: Ri,
4053  "Sandoll MiSeang": {
4054    name: "미생체",
4055    import: "https://vendor.imtest.me/css/sdmiseang.css",
4056    family: "Sandoll MiSeang",
4057    position: "0 -332px",
4058    lang: "KR"
4059  },
4060  yoonminguk: Di,
4061  default_batang: Bi,
4062  "notosanskr ": {
4063    name: "본고딕",
4064    import: "https://vendor.imtest.me/css/notosanskr-hestia.css",
4065    family: "Noto Sans Korean",
4066    position: "0 -383px",
4067    lang: "KR"
4068  },
4069  "SourceHanSerifKR ": {
4070    name: "본명조",
4071    import: "https://vendor.imtest.me/css/SourceHanSerifKR-Regular.css",
4072    family: "SourceHanSerifKR",
4073    position: "0 -409px",
4074    lang: "KR"
4075  },
4076  BBTreeGR: Li,
4077  BBTreeCL: Ei,
4078  Binggrae: Ai,
4079  Binggrae2: zi,
4080  BinggraeTaom: Oi,
4081  SangSangTitle: Fi,
4082  swagger: Ii,
4083  SeoulNamsanJungM: Hi,
4084  SeoulHangangJungM: ji,
4085  spoqahansans: Vi,
4086  sunbatang: Ki,
4087  aritadotum: Yi,
4088  aritaburi: qi,
4089  jalnan: Ui,
4090  scoredream: Gi,
4091  osengandhaneum: Xi,
4092  "Iropke Batang": {
4093    name: "이롭게 바탕",
4094    import: "https://vendor.imtest.me/css/Iropkebatang.css?v1",
4095    family: "IropkeBatang",
4096    position: "0 -772px",
4097    lang: "KR"
4098  },
4099  "Yi Sunsin": {
4100    name: "이순신 돋움",
4101    import: "https://vendor.imtest.me/css/yi_sun_sin.css",
4102    family: "Yi Sunsin Medium",
4103    position: "0 -799px",
4104    lang: "KR"
4105  },
4106  chosun_ilbo_myungjo: Qi,
4107  joongnajoche: Zi,
4108  jejugothic: Ji,
4109  jejuhallasan: ts,
4110  jejumyeongjo: es,
4111  kakao: ns,
4112  TmonMonsori: os,
4113  handon: rs,
4114  sunflower: as,
4115  bmkiranghaerang: is,
4116  bmdohyeon: ss,
4117  bmyeonsung: cs,
4118  bmjua: ls,
4119  hanna: ds,
4120  D2Coding: ms,
4121  gmarket: ps,
4122  a1gothic: us,
4123  "KoPub Dotum": {
4124    name: "KoPub 돋움",
4125    import: "https://vendor.imtest.me/css/kopubdotum.css?v1",
4126    family: "KoPubDotum",
4127    position: "0 -1137px",
4128    lang: "KR"
4129  },
4130  "KoPub batang": {
4131    name: "koPub 바탕",
4132    import: "https://vendor.imtest.me/css/kopubbatang.css?v1",
4133    family: "KoPubBatang",
4134    position: "0 -1163px",
4135    lang: "KR"
4136  },
4137  mapogoldenpier: hs,
4138  mapo: gs,
4139  Pretendard: fs,
4140  "Noto Sans Japanese": {
4141    name: "Noto Sans (日本語)",
4142    import: "https://vendor.imtest.me/css/notosansjapanese.css",
4143    family: "Noto Sans Japanese",
4144    position: "0 -1189px",
4145    lang: "JA"
4146  },
4147  "Sawarabi Gothic": {
4148    name: "Sawarabi Gothic (日本語)",
4149    import: "https://vendor.imtest.me/css/sawarabigothic.css",
4150    family: "Sawarabi Gothic",
4151    position: "0 -1215px",
4152    lang: "JA"
4153  },
4154  Kokoro: bs,
4155  HanWangKanDaYan: ys,
4156  HanWangYenLight: xs,
4157  "WenQuanYi Micro Hei Mono": {
4158    name: "文泉驿等宽微米黑",
4159    import: "https://vendor.imtest.me/css/wenquanyi.css",
4160    family: "WenQuanYi Micro Hei Mono",
4161    position: "0 -1503px",
4162    lang: "CN"
4163  },
4164  "Tensentype TongXingF": {
4165    name: "腾祥童行体繁",
4166    import: "https://vendor.imtest.me/css/tensentype.css",
4167    family: "Tensentype TongXingF",
4168    position: "0 -1529px",
4169    lang: "CN"
4170  },
4171  "Noto Sans SC Sliced": {
4172    name: "Noto Sans (简体字)",
4173    import: "//fonts.googleapis.com/earlyaccess/notosansscsliced.css",
4174    family: "Noto Sans SC Sliced",
4175    position: "0 -1295px",
4176    lang: "CN"
4177  },
4178  "Noto Sans TC": {
4179    name: "Noto Sans TC",
4180    import: "//fonts.googleapis.com/css?family=Noto+Sans+TC&display=swap",
4181    family: "Noto Sans TC",
4182    position: "0 -1556px",
4183    lang: "CN"
4184  },
4185  "Noto Serif TC": {
4186    name: "Noto Serif TC",
4187    import: "//fonts.googleapis.com/css?family=Noto+Serif+TC&dis
4187play=swap",
4188    family: "Noto Serif TC",
4189    position: "0 -1583px",
4190    lang: "CN"
4191  },
4192  "Droid Sans Fallback": {
4193    name: "Droid Sans Fallback",
4194    import: "https://vendor.imtest.me/css/droidsans_fallback.css",
4195    family: "Droid Sans Fallback",
4196    position: "0 -1425px",
4197    lang: "CN"
4198  },
4199  huninn: ws,
4200  "timemachine-wa": {
4201    name: "時間機器",
4202    import: "https://vendor.imtest.me/css/timemachine_wa.css",
4203    family: "timemachine-wa",
4204    position: "0 -2052px",
4205    lang: "CN"
4206  },
4207  seto: vs,
4208  "Taipei Sans TC Beta": {
4209    name: "Taipei Sans TC(繁中)",
4210    import: "https://vendor.imtest.me/css/TaipeiSansTCBeta.css",
4211    family: "Taipei Sans TC Beta",
4212    position: "0 -2101px",
4213    lang: "CN"
4214  },
4215  "Chenyuluoyan Thin": {
4216    name: "Chenyuluoyan Thin(繁中)",
4217    import: "https://vendor.imtest.me/css/ChenyuluoyanThin.css",
4218    family: "ChenYuluoyan Thin",
4219    position: "0 -2129px",
4220    lang: "CN"
4221  }
4222}, Cs = {
4223  name: "imweb Sans",
4224  import: "https://vendor.imtest.me/fonts/imweb-sans/imweb-sans.css",
4225  family: "imweb Sans English",
4226  position: "0 -1756px",
4227  lang: ""
4228}, ks = {
4229  name: "한글 글꼴에 따름",
4230  import: "",
4231  family: "",
4232  position: ""
4233}, _s = {
4234  name: "Abel",
4235  import: "https://vendor.imtest.me/css/abel.css",
4236  family: "Abel",
4237  position: "0 7px"
4238}, Ps = {
4239  name: "August Sans",
4240  import: "https://vendor.imtest.me/css/august.css",
4241  family: "August Sans Reduced",
4242  position: "0 -1423px"
4243}, Ms = {
4244  name: "Alegreya",
4245  import: "https://vendor.imtest.me/css/alegreya.css",
4246  family: "Alegreya",
4247  position: "0 -19px"
4248}, Ts = {
4249  name: "Arial",
4250  import: "",
4251  family: "Arial",
4252  position: "0 -45px"
4253}, $s = {
4254  name: "Aharoni",
4255  import: "https://vendor.imtest.me/css/aharoni.css",
4256  family: "Aharoni",
4257  position: "0 -71px"
4258}, Ns = {
4259  name: "Barlow",
4260  import: "https://vendor.imtest.me/css/barlow.css",
4261  family: "Barlow",
4262  position: "0 -98px"
4263}, Ws = {
4264  name: "BebasKai",
4265  import: "https://vendor.imtest.me/css/bebaskai.css",
4266  family: "Bebas Kai",
4267  position: "0 -122px"
4268}, Rs = {
4269  name: "BebasNeue",
4270  import: "https://vendor.imtest.me/css/BebasNeue.css",
4271  family: "BebasNeue",
4272  position: "0 -149px"
4273}, Ds = {
4274  name: "Cardo",
4275  import: "https://vendor.imtest.me/css/cardo.css",
4276  family: "Cardo",
4277  position: "0 -175px"
4278}, Bs = {
4279  name: "Caudex",
4280  import: "https://vendor.imtest.me/css/caudex.css",
4281  family: "Caudex",
4282  position: "0 -1578px"
4283}, Ls = {
4284  name: "Cinzel",
4285  import: "https://vendor.imtest.me/css/cinzel.css",
4286  family: "Cinzel",
4287  position: "0 -1449px"
4288}, Es = {
4289  name: "Chub Gothic",
4290  import: "https://vendor.imtest.me/css/chubgothic.css",
4291  family: "Chub Gothic",
4292  position: "0 -202px"
4293}, As = {
4294  name: "Cormorant",
4295  import: "https://vendor.imtest.me/css/cormorant.css",
4296  family: "Cormorant",
4297  position: "0 -227px"
4298}, zs = {
4299  name: "Cookie",
4300  import: "https://vendor.imtest.me/css/cookie.css",
4301  family: "Cookie",
4302  position: "0 -253px"
4303}, Os = {
4304  name: "DitaSweet",
4305  import: "https://vendor.imtest.me/css/ditasweet.css",
4306  family: "DitaSweet",
4307  position: "0 -279px"
4308}, Fs = {
4309  name: "Dosis ",
4310  import: "https://vendor.imtest.me/css/dosis.css",
4311  family: "Dosis",
4312  position: "0 -306px"
4313}, Is = {
4314  name: "Droid Sans",
4315  import: "https://vendor.imtest.me/css/droidsans.css",
4316  family: "Droid Sans",
4317  position: "0 -331px"
4318}, Hs = {
4319  name: "Droid Serif",
4320  import: "https://vendor.imtest.me/css/droidserif.css",
4321  family: "Droid Serif",
4322  position: "0 -356px"
4323}, js = {
4324  name: "Exmouth",
4325  import: "https://vendor.imtest.me/css/exmouth.css",
4326  family: "Exmouth",
4327  position: "0 -408px"
4328}, Vs = {
4329  name: "Garamond",
4330  import: "https://vendor.imtest.me/css/garamond.css",
4331  family: "EB Garamond",
4332  position: "0 -435px"
4333}, Ks = {
4334  name: "Generica",
4335  import: "https://vendor.imtest.me/css/generica.css",
4336  family: "Generica",
4337  position: "0 -1215px"
4338}, Ys = {
4339  name: "Georgia",
4340  import: "",
4341  family: "Georgia",
4342  position: "0 -460px"
4343}, qs = {
4344  name: "Gilroy",
4345  import: "https://vendor.imtest.me/css/gilroy.css",
4346  family: "Gilroy",
4347  position: "0 -486px"
4348}, Us = {
4349  name: "Hack",
4350  import: "https://vendor.imtest.me/css/hack.css",
4351  family: "Hack",
4352  position: "0 -1553px"
4353}, Gs = {
4354  name: "Helvetica",
4355  import: "",
4356  family: "helvetica",
4357  position: "0 -513px"
4358}, Xs = {
4359  name: "Inter",
4360  import: "https://vendor.imtest.me/css/inter.css",
4361  family: "Inter",
4362  position: "0 -1475px"
4363}, Qs = {
4364  name: "JetBrains Mono",
4365  import: "https://vendor.imtest.me/css/jetbrains.css",
4366  family: "JetBrains Mono",
4367  position: "0 -1528px"
4368}, Zs = {
4369  name: "Lato",
4370  import: "https://vendor.imtest.me/css/lato.css",
4371  family: "Lato",
4372  position: "0 -538px"
4373}, Js = {
4374  name: "Libre Baskerville",
4375  import: "https://vendor.imtest.me/css/librebaskerville.css",
4376  family: "Libre Baskerville",
4377  position: "0 -565px"
4378}, tc = {
4379  name: "Lora",
4380  import: "https://vendor.imtest.me/css/lora.css",
4381  family: "Lora",
4382  position: "0 -591px"
4383}, ec = {
4384  name: "Mada",
4385  import: "https://vendor.imtest.me/css/mada.css",
4386  family: "Mada",
4387  position: "0 -618px"
4388}, nc = {
4389  name: "Manrope",
4390  import: "https://vendor.imtest.me/css/manrope.css?v2",
4391  family: "Manrope",
4392  position: "0 -1396px"
4393}, oc = {
4394  name: "montserrat",
4395  import: "https://vendor.imtest.me/css/montserrat.css",
4396  family: "montserrat",
4397  position: "0 -642px"
4398}, rc = {
4399  name: "Nixie One",
4400  import: "https://vendor.imtest.me/css/nixieone.css",
4401  family: "Nixie One",
4402  position: "0 -669px"
4403}, ac = {
4404  name: "Noto Sans",
4405  import: "https://vendor.imtest.me/css/notosans.css",
4406  family: "Noto Sans",
4407  position: "0 -695px"
4408}, ic = {
4409  name: "Noto Serif",
4410  import: "https://vendor.imtest.me/css/notoserif.css",
4411  family: "Noto Serif",
4412  position: "0 -721px"
4413}, sc = {
4414  name: "Nunito",
4415  import: "https://vendor.imtest.me/css/nunito.css",
4416  family: "Nunito",
4417  position: "0 -1370px"
4418}, cc = {
4419  name: "Orbitron",
4420  import: "https://vendor.imtest.me/css/orbitron.css",
4421  family: "Orbitron",
4422  position: "0 -1344px"
4423}, lc = {
4424  name: "Oswald",
4425  import: "https://vendor.imtest.me/css/oswald.css",
4426  family: "Oswald",
4427  position: "0 -773px"
4428}, dc = {
4429  name: "Philosopher ",
4430  import: "https://vendor.imtest.me/css/philosopher.css",
4431  family: "Philosopher",
4432  position: "0 -797px"
4433}, mc = {
4434  name: "Playfair Display",
4435  import: "https://vendor.imtest.me/css/playfairdisplay.css",
4436  family: "Playfair Display",
4437  position: "0 -823px"
4438}, pc = {
4439  name: "PT Sans",
4440  import: "https://vendor.imtest.me/css/ptsans.css",
4441  family: "PT Sans",
4442  position: "0 -850px"
4443}, uc = {
4444  name: "PT Serif",
4445  import: "https://vendor.imtest.me/css/ptserif.css",
4446  family: "PT Serif",
4447  position: "0 -877px"
4448}, hc = {
4449  name: "Questrial",
4450  import: "https://vendor.imtest.me/css/questrial.css",
4451  family: "Questrial",
4452  position: "0 -903px"
4453}, gc = {
4454  name: "Quicksand",
4455  import: "https://vendor.imtest.me/css/quicksans.css",
4456  family: "Quicksand",
4457  position: "0 -929px"
4458}, fc = {
4459  name: "Roboto",
4460  import: "https://vendor.imtest.me/css/roboto.css",
4461  family: "Roboto",
4462  position: "0 -981px"
4463}, bc = {
4464  name: "Roboto Mono",
4465  import: "https://vendor.imtest.me/css/roboto_mono.css",
4466  family: "Roboto Mono",
4467  position: "0 -1501px"
4468}, yc = {
4469  name: "SanFrancisco",
4470  import: "https://vendor.imtest.me/css/sanfrancisco.css",
4471  family: "San Francisco Display",
4472  position: "0 -1007px"
4473}, xc = {
4474  name: "Tahoma",
4475  import: "",
4476  family: "Tahoma",
4477  position: "0 -1032px"
4478}, wc = {
4479  name: "TeXGyreCursor",
4480  import: "https://vendor.imtest.me/css/texgyrecursor.css",
4481  family: "TeXGyreCursor",
4482  position: "0 -1057px"
4483}, vc = {
4484  name: "Times New Roman",
4485  import: "",
4486  family: "Times New Roman",
4487  position: "0 -1085px"
4488}, Sc = {
4489  name: "TmonTium",
4490  import: "https://vendor.imtest.me/css/tmon_tium.css",
4491  family: "TmonTium",
4492  position: "0 -1111px"
4493}, Cc = {
4494  name: "Ubuntu",
4495  import: "https://vendor.imtest.me/css/ubuntu.css",
4496  family: "Ubuntu",
4497  position: "0 -1137px"
4498}, kc = {
4499  name: "Vegur",
4500  import: "https://vendor.imtest.me/css/vegur.css",
4501  family: "Vegur",
4502  position: "0 -1162px"
4503}, _c = {
4504  name: "Verdana",
4505  import: "",
4506  family: "Verdana",
4507  position: "0 -1189px"
4508}, Pc = {
4509  name: "Anton",
4510  import: "https://vendor.imtest.me/css/anton.css",
4511  family: "Anton",
4512  position: "0 -1706px"
4513}, Mc = {
4514  name: "Pretendard",
4515  import: "https://vendor.imtest.me/css/pretendard.css",
4516  family: "Pretendard English",
4517  position: "0 -1730px"
4518}, Tc = {
4519  imwebsans: Cs,
4520  none: ks,
4521  abel: _s,
4522  august: Ps,
4523  alegreya: Ms,
4524  arial: Ts,
4525  aharoni: $s,
4526  Barlow: Ns,
4527  BebasKai: Ws,
4528  BebasNeue: Rs,
4529  cardo: Ds,
4530  Caudex: Bs,
4531  cinzel: Ls,
4532  chubgothic: Es,
4533  Cormorant: As,
4534  cookie: zs,
4535  DitaSweet: Os,
4536  dosis: Fs,
4537  droidsans: Is,
4538  droidserif: Hs,
4539  Exmouth: js,
4540  Garamond: Vs,
4541  Generica: Ks,
4542  georgia: Ys,
4543  Gilroy: qs,
4544  hack: Us,
4545  Helvetica: Gs,
4546  inter: Xs,
4547  jetBrains: Qs,
4548  lato: Zs,
4549  librebaskerville: Js,
4550  lora: tc,
4551  Mada: ec,
4552  manrope: nc,
4553  montserrat: oc,
4554  nixieone: rc,
4555  notosans: ac,
4556  notoserif: ic,
4557  Nunito: sc,
4558  "Open Sans": {
4559    name: "Open Sans",
4560    import: "https://vendor.imtest.me/css/opensans.css",
4561    family: "Open Sans",
4562    position: "0 -745px"
4563  },
4564  Orbitron: cc,
4565  oswald: lc,
4566  Philosopher: dc,
4567  playfairdisplay: mc,
4568  ptsans: pc,
4569  ptserif: uc,
4570  Questrial: hc,
4571  quicksans: gc,
4572  "raleway ": {
4573    name: "Raleway",
4574    import: "https://vendor.imtest.me/css/raleway.css",
4575    family: "Raleway",
4576    position: "0 -953px"
4577  },
4578  roboto: fc,
4579  robotomono: bc,
4580  SanFrancisco: yc,
4581  tahoma: xc,
4582  TeXGyreCursor: wc,
4583  timesnewroman: vc,
4584  TmonTium: Sc,
4585  Ubuntu: Cc,
4586  vegur: kc,
4587  verdana: _c,
4588  "Viaoda Libre": {
4589    name: "Viaoda Libre",
4590    import: "https://vendor.imtest.me/css/viaoda_libre.css",
4591    family: "Viaoda Libre",
4592    position: "0 -1603px"
4593  },
4594  "Lora (Vetnamese)": {
4595    name: "Lora Vetnamese",
4596    import: "https://vendor.imtest.me/css/lora_vetnamese.css",
4597    family: "Lora",
4598    position: "0 -1266px"
4599  },
4600  "Montserrat (Vetnamese)": {
4601    name: "Montserrat Vetnamese",
4602    import: "https://vendor.imtest.me/css/montserrat_vetnamese.css",
4603    family: "Montserrat",
4604    position: "0 -1318px"
4605  },
4606  "OpenSans (Vetnamese)": {
4607    name: "Open Sans Vetnamese",
4608    import: "https://vendor.imtest.me/css/opensans_vetnamese.css",
4609    family: "Open Sans",
4610    position: "0 -1292px"
4611  },
4612  "Roboto (Vetnamese)": {
4613    name: "Roboto Vetnamese",
4614    import: "https://vendor.imtest.me/css/roboto_vetnamese.css",
4615    family: "Roboto",
4616    position: "0 -1239px"
4617  },
4618  "Chiayi City Font": {
4619    name: "Chiayi City",
4620    import: "https://vendor.imtest.me/css/ChiayiCityFont.css",
4621    family: "Chiayi City Font",
4622    position: "0 -1628px"
4623  },
4624  "Bad Script": {
4625    name: "Bad Script",
4626    import: "https://vendor.imtest.me/css/bad-script.css",
4627    family: "Bad Script",
4628    position: "0 -1654px"
4629  },
4630  "Londrina Solid": {
4631    name: "Londrina Solid",
4632    import: "https://vendor.imtest.me/css/londrina-solid.css",
4633    family: "Londrina Solid",
4634    position: "0 -1680px"
4635  },
4636  Anton: Pc,
4637  Pretendard: Mc,
4638  "IBM Plex Sans": {
4639    name: "IBM Plex Sans",
4640    import: "https://vendor.imtest.me/css/IBMPlexSans.css",
4641    family: "IBM Plex Sans",
4642    position: "0 -1782px"
4643  },
4644  "Antic Didone": {
4645    name: "Antic Didone",
4646    import: "https://vendor.imtest.me/css/AnticDidone.css",
4647    family: "Antic Didone",
4648    position: "0 -1808px"
4649  }
4650}, $c = ["Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", "Noto Sans", "sans-serif"], Nc = (t = !1) => {
4651  var s, i;
4652  const e = k("font_family"), n = ((s = ce(Ss)[e]) == null ? void 0 : s.family) || void 0, o = k("font_family_en");
4653  return [((i = ce(Tc)[o]) == null ? void 0 : i.family) || void 0, n, ...$c].filter((l) => typeof l == "string" && l.length > 0).map((l) => typeof l == "string" && / /.test(l) ? `'${l}'` : l).join(", ") + (t ? " !important" : "");
4654}, Ne = () => {
4655  const [t] = /(st00|st01|st02)/.exec(k("button_style")) ?? ["st00"];
4656  return `${{
4657    st00: "0",
4658    st01: k("button_radius"),
4659    st02: String(Number.MAX_SAFE_INTEGER)
4660  }[t]}px`;
4661}, Qt = (t = "default", e = {}) => {
4662  const n = k("brand_color"), o = ne(n).darken(0.1).hex(), r = Ne(), c = Nc(), s = "12", i = k("button_letter_spacing"), l = k("button_italic"), p = k("button_bold"), g = k("button_margin"), b = k("button_font_color"), u = k("button_background_color"), w = k("button_border_color"), f = k("button_hover_font_color"), y = k("button_hover_background_color"), v = k("button_hover_border_color"), _ = k("button_border_width"), O = k("button_hover_border_width"), B = k("button_sb_font_color"), N = k("button_sb_background_color"), m = k("button_sb_border_width"), S = k("button_sb_border_color"), W = k("button_sb_hover_font_color"), V = k("button_sb_hover_background_color"), A = k("button_sb_hover_border_width"), X = k("button_sb_hover_border_color"), et = /^Y$/.test(k("button_sb_use_set")), Q = {
4663    transition: "all 0.3s normal",
4664    cursor: "pointer",
4665    fontFamily: c
4666  };
4667  switch (t) {
4668    case "global": {
4669      Object.assign(Q, {
4670        fontSize: `${s}px`,
4671        letterSpacing: `${i}px`,
4672        borderRadius: r,
4673        fontStyle: /^Y$/.test(l) ? "italic" : "normal",
4674        fontWeight: /^Y$/.test(p) ? "bold" : "normal",
4675        lineHeight: "1.2",
4676        padding: `10px ${g}px`,
4677        color: b,
4678        backgroundColor: u,
4679        borderColor: w,
4680        borderWidth: `${_}px`,
4681        borderStyle: "solid",
4682        "&:hover": {
4683          color: f,
4684          backgroundColor: y,
4685          borderColor: v,
4686          borderWidth: `${O}px`
4687        }
4688      });
4689      break;
4690    }
4691    case "primary": {
4692      Object.assign(Q, {
4693        fontSize: `${s}px`,
4694        letterSpacing: `${i}px`,
4695        borderRadius: r,
4696        fontStyle: /^Y$/.test(l) ? "italic" : "normal",
4697        fontWeight: /^Y$/.test(p) ? "bold" : "normal",
4698        lineHeight: "1.2",
4699        padding: `10px ${g}px`,
4700        color: B,
4701        backgroundColor: et ? N : n,
4702        borderColor: S,
4703        borderWidth: `${m}px`,
4704        borderStyle: "solid",
4705        "&:hover": {
4706          color: W,
4707          backgroundColor: et ? V : o,
4708          borderColor: X,
4709          borderWidth: `${A}px`
4710        },
4711        "&:disabled": {
4712          cursor: "not-allowed"
4713        }
4714      });
4715      break;
4716    }
4717    default:
4718      Object.assign(Q, {
4719        fontSize: `${s}px`,
4720        letterSpacing: `${i}px`,
4721        borderRadius: r,
4722        fontStyle: /^Y$/.test(l) ? "italic" : "normal",
4723        fontWeight: /^Y$/.test(p) ? "bold" : "normal",
4724        lineHeight: "1.2",
4725        padding: `10px ${g}px`,
4726        color: "#212121 !important",
4727        backgroundColor: "#ffffff !important",
4728        borderColor: "rgba(33,33,33,0.2)",
4729        borderWidth: "1px",
4730        borderStyle: "solid",
4731        "&:hover": {
4732          borderColor: "rgba(33,33,33)"
4733        }
4734      });
4735  }
4736  return Object.assign(Q, e), Q;
4737}, fl = {
4738  /** #5 [휴대폰 결제] 버튼 라벨 */
4739  buttonLabel: "휴대폰으로 결제하기",
4740  /** #6 1개월 외 주기 선택 시 안내 */
4741  onlyOneMonthCycle: "휴대폰 정기결제는 1개월 주기만 지원합니다.",
4742  /** #7 N회차 만료(회차 제한) 상품 포함 시 안내 */
4743  expiringItemBlocked: "회차 만료 상품이 포함되어 휴대폰 정기결제를 이용할 수 없습니다.",
4744  /** #9~#13 마이페이지 구독 변동 차단 배너 */
4745  subscriptionLocked: "휴대폰 정기결제 구독은 품목 해지, 건너뛰기, 주기·수량 변경을 할 수 없습니다.",
4746  /** #14 주문서 할인(쿠폰/포인트) 차단 안내 */
4747  discountBlocked: "휴대폰 정기결제는 매 회차 동일한 금액이 청구되어야 하므로 쿠폰·포인트 할인을 적용할 수 없습니다."
4748}, bl = () => a("svg", {
4749  width: "65",
4750  height: "24",
4751  viewBox: "0 0 43 16",
4752  fill: "none",
4753  xmlns: "http://www.w3.org/2000/svg"
4754}, a("g", {
4755  clipPath: "url(#clip0_10494_51910)"
4756}, a("path", {
4757  d: "M34.2225 0C38.6328 0 42.2095 3.58248 42.2095 8C42.2095 12.4175 38.6328 16 34.2225 16H7.98702C3.57667 16 0 12.4175 0 8C0 3.58248 3.57667 0 7.98702 0H34.2225Z",
4758  fill: "#00DE5A"
4759}), a("path", {
4760  d: "M8.00078 13.7985C4.79773 13.7985 2.20117 11.2019 2.20117 7.99884C2.20117 4.79579 4.79773 2.19922 8.00078 2.19922C11.2038 2.19922 13.8004 4.79579 13.8004 7.99884C13.8019 11.2019 11.2053 13.7985 8.00078 13.7985ZM9.12078 5.0975V8.28685L6.87927 5.0975H5.10097V10.8971H6.88232V7.70781L9.12382 10.8971H10.9021V5.0975H9.12078Z",
4761  fill: "black"
4762}), a("path", {
4763  d: "M36.7095 4.31597L34.9906 8.25654L33.092 4.31597H31.3579L34.2318 9.90835L33.0767 12.4988H34.7148L38.3461 4.31597H36.7095ZM28.9396 10.5864H30.4923V4.31445H28.9396V4.8295C28.4063 4.39978 27.8028 4.17578 27.0714 4.17578C25.3053 4.17578 23.9217 5.62645 23.9217 7.44892C23.9217 9.2714 25.3053 10.7221 27.0714 10.7221C27.8028 10.7221 28.4063 10.4981 28.9396 10.0684V10.5864ZM27.2969 9.45273C26.2577 9.45273 25.476 8.5933 25.476 7.45197C25.476 6.31064 26.2592 5.45121 27.2969 5.45121C28.3346 5.45121 29.1179 6.31064 29.1179 7.45197C29.1194 8.59178 28.3362 9.45273 27.2969 9.45273ZM18.1525 10.1019C18.6752 10.5118 19.2603 10.7251 19.9659 10.7251C21.732 10.7251 23.1156 9.27445 23.1156 7.45197C23.1156 5.6295 21.732 4.17883 19.9659 4.17883C19.2344 4.17883 18.631 4.40283 18.0977 4.83254V4.3175H16.5449V12.5004H18.151V10.1019H18.1525ZM17.9194 7.45197C17.9194 6.31064 18.7026 5.45121 19.7404 5.45121C20.7781 5.45121 21.5613 6.31064 21.5613 7.45197C21.5613 8.5933 20.7781 9.45273 19.7404 9.45273C18.7026 9.45273 17.9194 8.59178 17.9194 7.45197Z",
4764  fill: "black"
4765})), a("defs", null, a("clipPath", {
4766  id: "clip0_10494_51910"
4767}, a("rect", {
4768  width: "42.2095",
4769  height: "16",
4770  fill: "white"
4771}))));
4772function Zt() {
4773  return Zt = Object.assign ? Object.assign.bind() : function(t) {
4774    for (var e = 1; e < arguments.length; e++) {
4775      var n = arguments[e];
4776      for (var o in n)
4777        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
4778    }
4779    return t;
4780  }, Zt.apply(null, arguments);
4781}
4782const Wc = "#00de5a", pe = {
4783  width: 200,
4784  height: 45
4785}, dt = {
4786  x: 72.0703,
4787  y: 12.8301,
4788  width: 56.1097,
4789  height: 19.34
4790}, Rc = 4.1501, Dc = 36, gt = (t) => Math.round(t * 1e4) / 1e4, Bc = ({
4791  width: t,
4792  height: e
4793}) => a("svg", {
4794  width: t,
4795  height: e,
4796  viewBox: `${dt.x} ${dt.y} ${dt.width} ${dt.height}`,
4797  fill: "none",
4798  xmlns: "http://www.w3.org/2000/svg",
4799  "aria-hidden": !0,
4800  focusable: "false",
4801  css: {
4802    flexShrink: 0
4803  }
4804}, a("path", {
4805  d: "M125.91 17.4703L123.22 23.6003L120.18 17.4703H117.84L122.15 25.9803L120.37 29.9503H122.64L128.18 
480517.4703H125.91ZM116.54 26.9503H114.31V26.0602C113.51 26.7502 112.54 27.1403 111.38 27.1403C108.72 27.1403 106.63 24.9703 106.63 22.2103C106.63 19.4403 108.71 17.2803 111.38 17.2803C112.54 17.2803 113.5 17.6603 114.31 18.3603V17.4703H116.54V26.9503ZM114.57 22.2103C114.57 20.4203 113.32 19.0703 111.67 19.0703C110.02 19.0703 108.77 20.4303 108.77 22.2103C108.77 24.0003 110.02 25.3503 111.67 25.3503C113.32 25.3503 114.57 24.0003 114.57 22.2103ZM95.5803 29.9503H97.9004V26.1503C98.6804 26.7903 99.6202 27.1503 100.73 27.1503C103.39 27.1503 105.48 24.9803 105.48 22.2203C105.48 19.4503 103.4 17.2903 100.73 17.2903C99.5702 17.2903 98.6103 17.6702 97.8003 18.3702V17.4803H95.5703V29.9503H95.5803ZM100.45 19.0703C102.1 19.0703 103.35 20.4303 103.35 22.2103C103.35 24.0003 102.1 25.3503 100.45 25.3503C98.8002 25.3503 97.5503 23.9903 97.5503 22.2103C97.5403 20.4203 98.7902 19.0703 100.45 19.0703Z",
4806  fill: "black"
4807}), a("path", {
4808  d: "M91.4202 22.5001C91.4202 27.8401 87.0902 32.1701 81.7502 32.1701C76.4102 32.1701 72.0703 27.8401 72.0703 22.5001C72.0703 17.1601 76.4002 12.8301 81.7502 12.8301C87.0902 12.8301 91.4202 17.1601 91.4202 22.5001ZM83.3604 17.9501V22.8201L79.9802 17.9501H77.1902V27.0401H80.1204V22.1701L83.5002 27.0401H86.2903V17.9501H83.3604Z",
4809  fill: "black"
4810})), Lc = D.forwardRef(({
4811  height: t = Dc,
4812  ...e
4813}, n) => {
4814  const {
4815    ct: o
4816  } = pt(), r = Ne(), c = t / pe.height, s = gt(dt.width * c), i = gt(dt.height * c), l = gt(Rc * c);
4817  return a("button", Zt({
4818    type: "button",
4819    "aria-label": o("버튼_네이버페이등록")
4820  }, e, {
4821    css: [{
4822      boxSizing: "border-box",
4823      display: "flex",
4824      alignItems: "center",
4825      justifyContent: "center",
4826      width: `${gt(pe.width * c)}px`,
4827      maxWidth: "100%",
4828      // 좁은 자리에서 버튼이 줄어들더라도 최소 배경 영역 아래로는 내려가지 않게 한다.
4829      minWidth: `${gt(s + l * 2)}px`,
4830      height: `${t}px`,
4831      padding: `0 ${l}px`,
4832      border: 0,
4833      borderRadius: r,
4834      backgroundColor: Wc,
4835      cursor: "pointer"
4836    }, e.css],
4837    ref: n
4838  }), a(Bc, {
4839    width: s,
4840    height: i
4841  }));
4842}), yl = () => {
4843  const t = Rt();
4844  D.useEffect(() => {
4845    const e = new URLSearchParams(window.location.search), n = e.get("billingResult"), o = e.get("billingCode"), r = e.get("errorMessage");
4846    if (!n)
4847      return;
4848    if ((() => {
4849      e.delete("billingResult"), e.delete("billingCode"), e.delete("errorMessage");
4850      const s = e.toString(), i = window.location.pathname + (s ? `?${s}` : "") + window.location.hash;
4851      window.history.replaceState(null, "", i);
4852    })(), n !== "success" || !o) {
4853      alert(r || "결제수단 등록에 실패했습니다.");
4854      return;
4855    }
4856    (async () => {
4857      try {
4858        await be(o, t);
4859      } catch (s) {
4860        alert(s instanceof Error ? s.message : "카드 등록 확인에 실패했습니다.");
4861      }
4862    })();
4863  }, [t]);
4864};
4865var Ec = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
4865dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ac = /* @__PURE__ */ Ae(
4866  function(t) {
4867    return Ec.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
4868  }
4869  /* Z+1 */
4870), zc = Ac, Oc = function(e) {
4871  return e !== "theme";
4872}, ue = function(e) {
4873  return typeof e == "string" && // 96 is one less than the char code
4874  // for "a" so this is checking that
4875  // it's a lowercase character
4876  e.charCodeAt(0) > 96 ? zc : Oc;
4877}, he = function(e, n, o) {
4878  var r;
4879  if (n) {
4880    var c = n.shouldForwardProp;
4881    r = e.__emotion_forwardProp && c ? function(s) {
4882      return e.__emotion_forwardProp(s) && c(s);
4883    } : c;
4884  }
4885  return typeof r != "function" && o && (r = e.__emotion_forwardProp), r;
4886}, Fc = function(e) {
4887  var n = e.cache, o = e.serialized, r = e.isStringTag;
4888  return He(n, o, r), je(function() {
4889    return Ve(n, o, r);
4890  }), null;
4891}, Ic = function t(e, n) {
4892  var o = e.__emotion_real === e, r = o && e.__emotion_base || e, c, s;
4893  n !== void 0 && (c = n.label, s = n.target);
4894  var i = he(e, n, o), l = i || ue(r), p = !l("as");
4895  return function() {
4896    var g = arguments, b = o && e.__emotion_styles !== void 0 ? e.__emotion_styles.slice(0) : [];
4897    if (c !== void 0 && b.push("label:" + c + ";"), g[0] == null || g[0].raw === void 0)
4898      b.push.apply(b, g);
4899    else {
4900      b.push(g[0][0]);
4901      for (var u = g.length, w = 1; w < u; w++)
4902        b.push(g[w], g[0][w]);
4903    }
4904    var f = ze(function(y, v, _) {
4905      var O = p && y.as || r, B = "", N = [], m = y;
4906      if (y.theme == null) {
4907        m = {};
4908        for (var S in y)
4909          m[S] = y[S];
4910        m.theme = R.useContext(Oe);
4911      }
4912      typeof y.className == "string" ? B = Fe(v.registered, N, y.className) : y.className != null && (B = y.className + " ");
4913      var W = Ie(b.concat(N), v.registered, m);
4914      B += v.key + "-" + W.name, s !== void 0 && (B += " " + s);
4915      var V = p && i === void 0 ? ue(O) : l, A = {};
4916      for (var X in y)
4917        p && X === "as" || // $FlowFixMe
4918        V(X) && (A[X] = y[X]);
4919      return A.className = B, A.ref = _, /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement(Fc, {
4920        cache: v,
4921        serialized: W,
4922        isStringTag: typeof O == "string"
4923      }), /* @__PURE__ */ R.createElement(O, A));
4924    });
4925    return f.displayName = c !== void 0 ? c : "Styled(" + (typeof r == "string" ? r : r.displayName || r.name || "Component") + ")", f.defaultProps = e.defaultProps, f.__emotion_real = f, f.__emotion_base = r, f.__emotion_styles = b, f.__emotion_forwardProp = i, Object.defineProperty(f, "toString", {
4926      value: function() {
4927        return "." + s;
4928      }
4929    }), f.withComponent = function(y, v) {
4930      return t(y, Ht({}, n, v, {
4931        shouldForwardProp: he(f, v, !0)
4932      })).apply(void 0, b);
4933    }, f;
4934  };
4935}, Hc = [
4936  "a",
4937  "abbr",
4938  "address",
4939  "area",
4940  "article",
4941  "aside",
4942  "audio",
4943  "b",
4944  "base",
4945  "bdi",
4946  "bdo",
4947  "big",
4948  "blockquote",
4949  "body",
4950  "br",
4951  "button",
4952  "canvas",
4953  "caption",
4954  "cite",
4955  "code",
4956  "col",
4957  "colgroup",
4958  "data",
4959  "datalist",
4960  "dd",
4961  "del",
4962  "details",
4963  "dfn",
4964  "dialog",
4965  "div",
4966  "dl",
4967  "dt",
4968  "em",
4969  "embed",
4970  "fieldset",
4971  "figcaption",
4972  "figure",
4973  "footer",
4974  "form",
4975  "h1",
4976  "h2",
4977  "h3",
4978  "h4",
4979  "h5",
4980  "h6",
4981  "head",
4982  "header",
4983  "hgroup",
4984  "hr",
4985  "html",
4986  "i",
4987  "iframe",
4988  "img",
4989  "input",
4990  "ins",
4991  "kbd",
4992  "keygen",
4993  "label",
4994  "legend",
4995  "li",
4996  "link",
4997  "main",
4998  "map",
4999  "mark",
5000  "marquee",
5001  "menu",
5002  "menuitem",
5003  "meta",
5004  "meter",
5005  "nav",
5006  "noscript",
5007  "object",
5008  "ol",
5009  "optgroup",
5010  "option",
5011  "output",
5012  "p",
5013  "param",
5014  "picture",
5015  "pre",
5016  "progress",
5017  "q",
5018  "rp",
5019  "rt",
5020  "ruby",
5021  "s",
5022  "samp",
5023  "script",
5024  "section",
5025  "select",
5026  "small",
5027  "source",
5028  "span",
5029  "strong",
5030  "style",
5031  "sub",
5032  "summary",
5033  "sup",
5034  "table",
5035  "tbody",
5036  "td",
5037  "textarea",
5038  "tfoot",
5039  "th",
5040  "thead",
5041  "time",
5042  "title",
5043  "tr",
5044  "track",
5045  "u",
5046  "ul",
5047  "var",
5048  "video",
5049  "wbr",
5050  // SVG
5051  "circle",
5052  "clipPath",
5053  "defs",
5054  "ellipse",
5055  "foreignObject",
5056  "g",
5057  "image",
5058  "line",
5059  "linearGradient",
5060  "mask",
5061  "path",
5062  "pattern",
5063  "polygon",
5064  "polyline",
5065  "radialGradient",
5066  "rect",
5067  "stop",
5068  "svg",
5069  "text",
5070  "tspan"
5071], Jt = Ic.bind();
5072Hc.forEach(function(t) {
5073  Jt[t] = Jt(t);
5074});
5075function te() {
5076  return te = Object.assign ? Object.assign.bind() : function(t) {
5077    for (var e = 1; e < arguments.length; e++) {
5078      var n = arguments[e];
5079      for (var o in n)
5080        ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
5081    }
5082    return t;
5083  }, te.apply(null, arguments);
5084}
5085const Wt = D.forwardRef((t, e) => {
5086  const n = k("button_background_color");
5087  return a("button", te({}, t, {
5088    css: [{
5089      flex: "1 1 0%",
5090      borderRadius: "2px",
5091      fontSize: "14px",
5092      "--tw-text-opacity": "1",
5093      color: "rgb(255 255 255 / var(--tw-text-opacity))",
5094      transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
5095      transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
5096      transitionDuration: "300ms"
5097    }, `background-color: ${n}`, t.css],
5098    ref: e
5099  }), t.children);
5100}), ge = "/_/oms-customer-front-office/billing/sdk-callback.html", jc = 5 * 60 * 1e3, fe = ["payment"], Vc = {
5101  payment: "설명_정기과금이용동의"
5102}, Kc = (t) =>
5102 t.replace(/\\n/g, `
5103`), Yc = ({
5104  onComplete: t,
5105  cardPgIdx: e,
5106  showNaverPay: n = !1
5107}) => {
5108  const {
5109    ct: o
5110  } = pt(), r = k("brand_color"), c = Rt(), [s, i] = R.useState("form"), [l, p] = R.useState({}), [g, b] = R.useState(""), [u, w] = R.useState(!1), f = R.useRef(null), y = R.useRef(""), v = R.useRef(null), _ = R.useRef(!1), O = R.useRef(t);
5111  O.current = t;
5112  const B = R.useCallback(async (P) => {
5113    if (!_.current) {
5114      _.current = !0, i("completing");
5115      try {
5116        await be(P, c), O.current();
5117      } catch (K) {
5118        _.current = !1, i("error"), b(K instanceof Error ? K.message : "카드 등록 확인에 실패했습니다.");
5119      }
5120    }
5121  }, [c]);
5122  R.useEffect(() => {
5123    if (s !== "sdk-open" || !y.current || v.current && zt(v.current))
5124      return;
5125    const P = f.current;
5126    if (!P)
5127      return;
5128    const K = `${window.location.origin}${ge}`, F = (I) => {
5129      try {
5130        const q = new URL(I);
5131        return {
5132          result: q.searchParams.get("result"),
5133          billingCode: q.searchParams.get("billingCode"),
5134          message: q.searchParams.get("message")
5135        };
5136      } catch {
5137        return {
5138          result: null,
5139          billingCode: null,
5140          message: null
5141        };
5142      }
5143    }, Y = P.contentDocument;
5144    Y && (Y.open(), Y.write(y.current), Y.close());
5145    const at = (I) => {
5146      var q;
5147      _.current || I.origin === window.location.origin && ((q = I.data) == null ? void 0 : q.type) === "BILLING_COMPLETE" && (I.data.status === "success" && I.data.billingCode ? B(I.data.billingCode) : (i("error"), b(I.data.errorMessage || o("설명_카드등록에실패"))));
5148    };
5149    window.addEventListener("message", at);
5150    const nt = () => {
5151      var I;
5152      if (!_.current)
5153        try {
5154          const q = (I = P.contentWindow) == null ? void 0 : I.location.href;
5155          if (!q || q === "about:blank" || !q.startsWith(K))
5156            return;
5157          const {
5158            result: St,
5159            billingCode: Ct,
5160            message: Et
5161          } = F(q);
5162          St === "success" && Ct ? B(Ct) : St === "failure" && (i("error"), b(Et || o("설명_카드등록에실패")));
5163        } catch {
5164        }
5165    };
5166    P.addEventListener("load", nt);
5167    const L = setTimeout(() => {
5168      _.current || (i("error"), b("카드 등록 시간이 초과되었습니다."));
5169    }, jc);
5170    return () => {
5171      window.removeEventListener("message", at), P.removeEventListener("load", nt), clearTimeout(L);
5172    };
5173  }, [s, B]);
5174  const {
5175    mutateAsync: N,
5176    data: m
5177  } = yt({
5178    mutationKey: ["SdkPayingAgreementContent"],
5179    mutationFn: async (P) => {
5180      const {
5181        data: K
5182      } = await tt.get(`/ajax/oms/OMS_payment_agreement_modal_content.cm?type=${P}`);
5183      return K;
5184    }
5185  }), S = async (P) => {
5186    await N(P), w(!0);
5187  }, W = () => {
5188    window.history.replaceState(null, "", window.location.href.replace(/#.*/, "")), w(!1);
5189  }, V = (P) => {
5190    const {
5191      name: K,
5192      checked: F
5193    } = P.target;
5194    p((Y) => F ? {
5195      ...Y,
5196      [K]: F
5197    } : {
5198      ...Y,
5199      [K]: void 0
5200    });
5201  }, A = async (P, K) => {
5202    if (!fe.every((F) => !!l[F])) {
5203      alert(o("설명_이용약관을동의해주세요"));
5204      return;
5205    }
5206    v.current = P;
5207    try {
5208      const F = zt(P), Y = `${window.location.origin}${ge}`, at = F ? `${Y}?result=success&returnTo=${encodeURIComponent(window.location.href)}` : `${Y}?result=success`, nt = F ? `${Y}?result=failure&returnTo=${encodeURIComponent(window.location.href)}` : `${Y}?result=failure`, {
5209        data: L
5210      } = await tt.post("/ajax/oms/OMS_wrap_customer_v1_payment_billings_register.cm", {
5211        successRedirectUrl: at,
5212        failureRedirectUrl: nt,
5213        pgIdx: P,
5214        // 서버는 CARD/PHONE_BILL만 받고 네이버페이는 pgIdx로 판정하므로, 값이 있을 때만 싣는다.
5215        ...K && {
5216          paymentMethod: K
5217        }
5218      });
5219      if (!/^SUCCESS$/i.test(L == null ? void 0 : L.message))
5220        throw new Error((L == null ? void 0 : L.message) || "카드 등록을 시작할 수 없습니다.");
5221      const I = L.data.html;
5222      if (F) {
5223        i("sdk-open"), document.open(), document.write(I), document.close();
5224        return;
5225      }
5226      y.current = I, _.current = !1, i("sdk-open");
5227    } catch (F) {
5228      i("error"), b(F instanceof Error ? F.message : "카드 등록을 시작할 수 없습니다.");
5229    }
5230  }, X = () => {
5231    _.current = !1, i("form"), b("");
5232  }, et = () => {
5233    _.current = !1, i("form");
5234  }, Q = s === "sdk-open" && !(v.current && zt(v.current)) ? Ke.createPortal(a("div", {
5235    style: {
5236      position: "fixed",
5237      inset: 0,
5238      zIndex: 1100,
5239      display: "flex",
5240      flexDirection: "column",
5241      backgroundColor: "#ffffff"
5242    }
5243  }, a("header", {
5244    style: {
5245      position: "relative",
5246      height: "50px",
5247      padding: "16px",
5248      display: "flex",
5249      justifyContent: "center",
5250      alignItems: "center",
5251      borderBottom: "1px solid #e5e5e5",
5252      flexShrink: 0
5253    }
5254  }, a("span", {
5255    style: {
5256      flex: 1,
5257      textAlign: "center",
5258      fontWeight: 500,
5259      fontSize: "15px",
5260      color: "#212121"
5261    }
5262  }, o("버튼_카드등록")), a("button", {
5263    onClick: et,
5264    style: {
5265      position: "absolute",
5266      top: "50%",
5267      right: "20px",
5268      transform: "translateY(-50%)",
5269      width: "24px",
5270      height: "24px",
5271      padding: 0,
5272      display: "flex",
5273      justifyContent: "center",
5274      alignItems: "center",
5275      background: "unset",
5276      border: "none",
5277      cursor: "pointer"
5278    }
5279  }, a("svg", {
5280    width: "18",
5281    height: "18",
5282    viewBox: "0 0 18 18",
5283    fill: "none",
5284    xmlns: "http://www.w3.org/2000/svg"
5285  }, a("path", {
5286    d: "M18 0L0 18M0 0L18 18",
5287    stroke: "currentColor"
5288  })))), a("iframe", {
5289    ref: f,
5290    style: {
5291      flex: 1,
5292      width: "100%",
5293      border: "none"
5294    },
5295    title: "PG SDK 카드 등록",
5296    sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-top-navigation"
5297  })), document.body) : null, Lt = () => s === "sdk-open" ? a("div", {
5298    css: {
5299      paddingTop: "40px",
5300      paddingBottom: "40px",
5301      textAlign: "center"
5302    }
5303  }, a("p", {
5304    css: {
5305      fontSize: "15px",
5306      "--tw-text-opacity": "1",
5307      color: "rgb(153 153 153 / var(--tw-text-opacity))"
5308    }
5309  }, o("설명_카드정보를입력하고있습니다진행중"))) : s === "completing" ? a("div", {
5310    css: {
5311      paddingTop: "40px",
5312      paddingBottom: "40px",
5313      textAlign: "center"
5314    }
5315  }, a("p", {
5316    css: {
5317      fontSize: "15px"
5318    }
5319  }, o("설명_카드등록을확인하고있습니다진행중"))) : s === "error" ? a("div", {
5320    css: {
5321      paddingTop: "40px",
5322      paddingBottom: "40px",
5323      textAlign: "center"
5324    }
5325  }, a("p", {
5326    css: {
5327      marginBottom: "16px",
5328      fontSize: "15px",
5329      "--tw-text-opacity": "1",
5330      color: "rgb(231 76 60 / var(--tw-text-opacity))"
5331    }
5332  }, g), a(Wt, {
5333    onClick: X,
5334    css: [{
5335      cursor: "pointer",
5336      borderWidth: "1px",
5337      paddingLeft: "24px",
5338      paddingRight: "24px",
5339      paddingTop: "8px",
5340      paddingBottom: "8px",
5341      fontSize: "14px"
5342    }, {
5343      backgroundColor: r,
5344      borderColor: r
5345    }]
5346  }, o("버튼_다시시도"))) : a("div", {
5347    css: {
5348      fontSize: "15px"
5349    }
5350  }, a("p", {
5351    css: {
5352      marginBottom: "4px",
5353      fontSize: "14px",
5354      fontWeight: "700",
5355      "--tw-text-opacity": "1",
5356      color: "rgb(32 37 43 / var(--tw-text-opacity))"
5357    }
5358  }, o("타이틀_이용및정보제공약관")), a("fieldset", {
5359    css: {
5360      marginBottom: "16px",
5361      "--tw-text-opacity": "1 !important",
5362      color: "rgb(32 37 43 / var(--tw-text-opacity)) !important"
5363    }
5364  }, fe.map((P) => a(lt, {
5365    key: P,
5366    name: P,
5367    checked: l[P] ?? !1,
5368    onChange: V
5369  }, a("span", {
5370    css: {
5371      marginLeft: "8px"
5372    }
5373  }, o(Vc[P]), a("a", {
5374    css: [{
5375      color: `${r} !important`
5376    }, {
5377      marginLeft: "4px",
5378      textDecorationLine: "underline"
5379    }],
5380    href: `#${P}`,
5381    onClick: () => S(P)
5382  }, o("버튼_자세히")))))), a("div", {
5383    css: {
5384      display: "flex",
5385      width: "100%",
5386      flexDirection: "column",
5387      gap: "8px"
5388    }
5389  }, e && a(Wt, {
5390    type: "button",
5391    onClick: () => A(e, Qe.CARD),
5392    css: [{
5393      display: "flex",
5394      width: "100%",
5395      cursor: "pointer",
5396      alignItems: "center",
5397      justifyContent: "center",
5398      gap: "8px",
5399      borderWidth: "1px",
5400      paddingTop: "12px",
5401      paddingBottom: "12px",
5402      fontSize: "15px",
5403      fontWeight: "700"
5404    }, {
5405      backgroundColor: r,
5406      borderColor: r
5407    }]
5408  }, o("버튼_결제카드등록"), a(xn, {
5409    size: 16,
5410    color: "white"
5411  })), n && a(Lc, {
5412    height: 45,
5413    onClick: () => {
5414      alert(Kc(o("설명_네이버페이등록안내"))), A(Ze.naverpay);
5415    },
5416    css: {
5417      width: "100%",
5418      borderRadius: "2px"
5419    }
5420  })));
5421  return a(D.Fragment, null, Lt(), Q, a(xt, {
5422    isOpen: u,
5423    title: (m == null ? void 0 : m.title) ?? "",
5424    onRequestClose: W
5425  }, a("div", {
5426    dangerouslySetInnerHTML: {
5427      __html: (m == null ? void 0 : m.html) ?? ""
5428    }
5429  })));
5430}, J = {
5431  cardNumber: 0,
5432  expDate: 1,
5433  birthDate: 2,
5434  cardPassword: 3,
5435  businessNumber: 4
5436}, ft = Jt.input({
5437  fontSize: "15px",
5438  letterSpacing: "-0.1em",
5439  "--tw-text-opacity": "1",
5440  color: "rgb(33 33 33 / var(--tw-text-opacity))",
5441  "@media (max-width: 600px)": {
5442    letterSpacing: "-0.15em"
5443  }
5444}), xl = ({
5445  children: t,
5446  naverPayButton: e = !1
5447}) => {
5448  const {
5449    ct: n
5450  } = pt(), o = k("brand_color"), r = `rgba(${Dt(o).join(",")}, 0.4)`, c = Rt(), s = an(), i = D.useRef(null), [l, p] = R.useState(!1), [g, b] = R.useState(!1), [u, w] = R.useState({
5451    cardNo: "",
5452    cardPw: "",
5453    idNo: "",
5454    isPersonalCard: "Y"
5455  }), [f, y] = R.useState(""), [v, _] = R.useState(""), [O, B] = R.useState({}), N = R.useRef([]), m = R.useRef(!1), S = () => {
5456    b(!0);
5457  }, W = () => {
5458    w({
5459      cardNo: "",
5460      cardPw: "",
5461      idNo: "",
5462      isPersonalCard: "Y"
5463    }), y(""), B({}), b(!1);
5464  }, {
5465    data: V
5466  } = Tt({
5467    ...Je(),
5468    retry: !1
5469  }), {
5470    cardMethod: A,
5471    hasNaverPay: X,
5472    isSdkCard: et
5473  } = tn(V), Q = e || et, {
5474    mutateAsync: Lt,
5475    data: P
5476  } = yt({
5477    mutationKey: ["PayingAgreementContent"],
5478    mutationFn: async (d) => {
5479      const {
5480        data: x
5481      } = await s.get(`/ajax/oms/OMS_payment_agreement_modal_content.cm?type=${d}`);
5482      return x;
5483    }
5484  }), {
5485    mutateAsync: K
5486  } = yt({
5487    mutationKey: ["EnrollCreditCard"],
5488    mutationFn: async () => {
5489      var re, ae;
5490      const d = u.isPersonalCard === "Y", x = ["idNo", "cardNo", "cardPw", "expMonth", "expYear", "isPersonalCard"].some((At) => typeof At > "u"), C = u.cardNo.replace(/\D/, "").length < 12, $ = u.idNo.replace(/\D/, "").length < (d ? 6 : 10), Z = u.cardPw.replace(/\D/, "").length < 2, it = (((re = u.expMonth) == null ? void 0 : re.length) ?? 0) < 2, _t = (((ae = u.expYear) == null ? void 0 : ae.length) ?? 0) < 2;
5491      if (x || C || $ || Z || it || _t) {
5492        alert(n("설명_등록정보를모두입력해주세요"));
5493        return;
5494      }
5495      if (!["privacy", "policy", "third", "payment"].every((At) => !!O[At])) {
5496        alert(n("설명_이용약관을동의해주세요"));
5497        return;
5498      }
5499      const {
5500        data: ut
5501      } = await s.post("/ajax/oms/OMS_wrap_customer_v1_payment_billings.cm", u);
5502      if (!/^SUCCESS$/i.test(ut.message))
5503        throw new Error(ut.message, {
5504          cause: ut
5505        });
5506      await c.invalidateQueries({
5507        queryKey: ["SubscriptionBillingInfo"]
5508      }), W();
5509    },
5510    onError: async (d) => {
5511      if (d instanceof Error && ye(d)) {
5512        const {
5513          code: x
5514        } = d.cause, C = (window.LOCALIZE[`E_${x || "10002"}`] || window.LOCALIZE.설명_서비스이용시오류발생)();
5515        alert(C);
5516      }
5517    }
5518  }), F = async (d) => {
5519    await Lt(d), p(!0);
5520  }, Y = async (d) => {
5521    d.preventDefault();
5522    try {
5523      await K();
5524    } catch (x) {
5525      console.error(x);
5526    }
5527  }, at = () => {
5528    window.history.replaceState(null, "", window.location.href.replace(/#.*/, "")), p(!1);
5529  }, nt = (d) => {
5530    const x = d.replace(/[^\d*]/g, "") ?? "";
5531    return x.split("").map((C, $) => $ < 4 || $ >= 12 ? x[$] : "*").join("");
5532  }, L = (d) => (d == null ? void 0 : d.trim().split("").join(" ")) ?? "", I = (d) => (d == null ? void 0 : d.trim().replace(/(^[\d*]{4})([\d*]{4})([\d*]{4})([\d*]{1,4})$/, "$1-$2-$3-$4").replace(/(^[\d*]{4})([\d*]{4})([\d*]{1,4})$/, "$1-$2-$3").replace(/(^[\d*]{4})([\d*]{1,4})$/, "$1-$2")) ?? "", q = (d) => (d == null ? void 0 : d.trim().replace(/(^\d{3})(\d{2})(\d+)$/, "$1-$2-$3").replace(/(^\d{3})(\d+)$/, "$1-$2")) ?? "", St = (d) => {
5533    const x = d.target.value;
5534    if (
5535      // 선택한 상태로 키를 입력하였을 경우 예외처리
5536      typeof d.target.selectionStart != "number" || d.target.selectionStart !== d.target.selectionEnd
5537    )
5538      return;
5539    const C = f.length === 0, $ = /^\d{12,16}$/.test(x);
5540    if (C && $) {
5541      w((Z) => ({
5542        ...Z,
5543        cardNo: x
5544      })), y(L(I(nt(x))));
5545      return;
5546    }
5547    switch (d.target.value.length - f.length) {
5548      case 1: {
5549        const Z = d.target.value.substring(d.target.value.length - 1), it = /\d/.test(Z);
5550        if (!(d.target instanceof HTMLInputElement) || !it || it && u.cardNo.length >= ui)
5551          return;
5552        const _t = `${u.cardNo}${Z}`;
5553        y(L(I(nt(_t)))), w((ut) => ({
5554          ...ut,
5555          cardNo: _t
5556        }));
5557        break;
5558      }
5559      case -1: {
5560        const Z = u.cardNo.slice(0, -1);
5561        y(L(I(nt(Z)))), w((it) => ({
5562          ...it,
5563          cardNo: Z
5564        }));
5565        break;
5566      }
5567    }
5568  }, Ct = (d) => {
5569    const {
5570      value: x
5571    } = d.target, C = x.replace(/\D/g, "");
5572    switch (C.length) {
5573      case 0: {
5574        w(($) => ({
5575          ...$,
5576          expMonth: void 0,
5577          expYear: void 0
5578        }));
5579        break;
5580      }
5581      case 1: {
5582        if (/0|1/.test(C) === !1)
5583          return;
5584        w(($) => ({
5585          ...$,
5586          expMonth: C,
5587          expYear: void 0
5588        }));
5589        break;
5590      }
5591      case 2: {
5592        if (/0[1-9]|1[0-2]/.test(C) === !1)
5593          return;
5594        w(($) => ({
5595          ...$,
5596          expMonth: C,
5597          expYear: void 0
5598        }));
5599        break;
5600      }
5601      case 3: {
5602        if (/0[1-9]|1[0-2]\d/.test(C) === !1)
5603          return;
5604        w(($) => ({
5605          ...$,
5606          expMonth: C.slice(0, 2),
5607          expYear: C.slice(2)
5608        }));
5609        break;
5610      }
5611      case 4: {
5612        if (/0[1-9]|1[0-2]\d{1,2}/.test(C) === !1)
5613          return;
5614        w(($) => ({
5615          ...$,
5616          expMonth: C.slice(0, 2),
5617          expYear: C.slice(2)
5618        })), m.current = !0;
5619        break;
5620      }
5621      case 6: {
5622        if (/0[1-9]|1[0-2]\d{4}/.test(C) === !1)
5623          return;
5624        m.current = !0, w(($) => ({
5625          ...$,
5626          expMonth: C.slice(0, 2),
5627          expYear: C.slice(4, 6)
5628        }));
5629        break;
5630      }
5631    }
5632  }, Et = (d) => {
5633    if (
5634      // 선택한 상태로 키를 입력하였을 경우 예외처리
5635      !(typeof d.target.selectionStart != "number" || d.target.selectionStart !== d.target.selectionEnd)
5636    )
5637      switch (d.target.value.length - v.length) {
5638        case 1: {
5639          const x = d.target.value.substring(d.target.value.length - 1), C = /\d/.test(x);
5640          if (!(d.target instanceof HTMLInputElement) || !C || C && u.cardPw.length >= hi)
5641            return;
5642          const $ = `${u.cardPw}${x}`;
5643          _(L($.replace(/\d/g, "*"))), w((Z) => ({
5644            ...Z,
5645            cardPw: $
5646          }));
5647          break;
5648        }
5649        case -1: {
5650          const x = u.cardPw.slice(0, -1);
5651          _(L(x.replace(/\d/g, "*"))), w((C) => ({
5652            ...C,
5653            cardPw: x
5654          }));
5655          break;
5656        }
5657      }
5658  }, We = (d) => {
5659    const {
5660      value: x
5661    } = d.target, C = x.replace(/[^\d]/g, "");
5662    C.length > 6 || w(($) => ({
5663      ...$,
5664      idNo: C
5665    }));
5666  }, Re = (d) => {
5667    const {
5668      value: x
5669    } = d.target, C = x.replace(/[^\d]/g, "");
5670    C.length > 10 || w(($) => ({
5671      ...$,
5672      idNo: C
5673    }));
5674  }, kt = (d) => {
5675    const {
5676      name: x,
5677      checked: C
5678    } = d.target;
5679    B(($) => C ? {
5680      ...$,
5681      [x]: C
5682    } : {
5683      ...$,
5684      [x]: void 0
5685    });
5686  }, De = (d) => {
5687    const {
5688      checked: x
5689    } = d.target;
5690    B(() => x ? {
5691      payment: x,
5692      policy: x,
5693      privacy: x,
5694      third: x
5695    } : {});
5696  };
5697  D.useEffect(() => {
5698    var d;
5699    u.cardNo.length === 16 && ((d = N.current[J.expDate]) == null || d.focus());
5700  }, [u.cardNo]), D.useEffect(() => {
5701    var d, x;
5702    ((d = u.expYear) == null ? void 0 : d.length) === 2 && (m.current = !0, (x = N.current[J.cardPassword]) == null || x.focus());
5703  }, [u.expYear]), D.useEffect(() => {
5704    var d, x;
5705    u.cardPw.length === 2 && (u.isPersonalCard === "Y" ? (d = N.current[J.birthDate]) == null || d.focus() : (x = N.current[J.businessNumber]) == null || x.focus());
5706  }, [u.cardPw]), D.useEffect(() => {
5707    const d = i.current;
5708    return d == null || d.addEventListener("click", S), () => {
5709      d == null || d.removeEventListener("click", S);
5710    };
5711  }, []);
5712  const Be = (d, x) => typeof x < "u" ? `${d}/${x ?? ""}` : d ?? "";
5713  return a(D.Fragment, null, typeof t < "u" ? a("div", {
5714    ref: i
5715  }, t) : a(Wt, {
5716    onClick: S,
5717    css: [{
5718      marginTop: "1rem",
5719      height: "36px",
5720      width: "100%",
5721      borderWidth: "1px",
5722      borderColor: "rgba(79,79,79,0.2)",
5723      "--tw-bg-opacity": "1",
5724      backgroundColor: "rgb(255 255 255 / var(--tw-bg-opacity))",
5725      fontSize: "13px",
5726      fontWeight: "700",
5727      "--tw-text-opacity": "1",
5728      color: "rgb(32 37 43 / var(--tw-text-opacity))",
5729      transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
5730      transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
5731      transitionDuration: "300ms",
5732      ":hover": {
5733        borderColor: "rgba(79,79,79,1)"
5734      }
5735    }]
5736  }, n("버튼_결제수단등록")), a(xt, {
5737    maxWidth: "400px",
5738    isOpen: g,
5739    title: n(Q ? "타이틀_정기구독결제수단등록" : "타이틀_정기구독결제카드등록"),
5740    onRequestClose: W,
5741    onAfterOpen: () => {
5742      var d;
5743      Q || (d = N == null ? void 0 : N.current[J.cardNumber]) == null || d.focus();
5744    }
5745  }, Q ? a(Yc, {
5746    onComplete: W,
5747    cardPgIdx: e || A == null ? void 0 : A.pgIdx,
5748    showNaverPay: X
5749  }) : a("form", {
5750    onSubmit: Y,
5751    css: {
5752      fontSize: "15px"
5753    }
5754  }, a("fieldset", {
5755    css: {
5756      marginBottom: "20px"
5757    }
5758  }, a("p", {
5759    css: {
5760      marginBottom: "8px",
5761      fontSize: "14px"
5762    }
5763  }, n("설명_카드유형")), a("div", {
5764    css: {
5765      display: "flex"
5766    }
5767  }, a("div", {
5768    css: {
5769      flexBasis: "25%"
5770    }
5771  }, a(Gt, {
5772    name: "credit_card_type",
5773    value: "Y",
5774    checked: u.isPersonalCard === "Y",
5775    onChange: () => w((d) => ({
5776      ...d,
5777      isPersonalCard: "Y",
5778      idNo: ""
5779    }))
5780  }, a("span", {
5781    css: {
5782      marginLeft: "8px"
5783    }
5784  }, "개인"))), a("div", {
5785    css: {
5786      flexBasis: "25%"
5787    }
5788  }, a(Gt, {
5789    name: "credit_card_type",
5790    value: "N",
5791    checked: u.isPersonalCard === "N",
5792    onChange: () => w((d) => ({
5793      ...d,
5794      isPersonalCard: "N",
5795      idNo: ""
5796    }))
5797  }, a("span", {
5798    css: {
5799      marginLeft: "8px"
5800    }
5801  }, "법인"))))), a("label", {
5802    css: {
5803      marginBottom: "20px !important",
5804      display: "flex",
5805      width: "100%"
5806    }
5807  }, a("p", {
5808    css: {
5809      marginBottom: "8px",
5810      fontSize: "14px"
5811    }
5812  }, n("설명_카드번호")), a(ft, {
5813    ref: (d) => N.current[J.cardNumber] = d,
5814    css: {
5815      width: "100%",
5816      minWidth: "0px",
5817      borderRadius: "2px",
5818      borderWidth: "1px",
5819      borderStyle: "solid",
5820      "--tw-border-opacity": "1",
5821      borderColor: "rgb(229 229 229 / var(--tw-border-opacity))",
5822      padding: "12px 12px",
5823      fontFamily: "monospace",
5824      ":focus": {
5825        "--tw-border-opacity": "1",
5826        borderColor: "rgb(32 37 43 / var(--tw-border-opacity))"
5827      }
5828    },
5829    type: "text",
5830    name: "cardnumber",
5831    placeholder: L("1234-5678-1234-5678"),
5832    value: f,
5833    onSelect: (d) => {
5834      d.target instanceof HTMLInputElement && (d.target.selectionStart = d.target.selectionEnd);
5835    },
5836    onChange: St,
5837    autoComplete: "cc-number"
5838  })), a("label", {
5839    css: {
5840      marginBottom: "20px !important",
5841      display: "flex",
5842      width: "100%"
5843    }
5844  }, a("p", {
5845    css: {
5846      marginBottom: "8px",
5847      fontSize: "14px"
5848    }
5849  }, n("설명_유효기간")), a("div", {
5850    css: {
5851      display: "flex"
5852    }
5853  }, a(ft, {
5854    ref: (d) => N.current[J.expDate] = d,
5855    css: {
5856      minWidth: "0px",
5857      flex: "1 1 0%",
5858      borderRadius: "2px",
5859      borderWidth: "1px",
5860      borderStyle: "solid",
5861      "--tw-border-opacity": "1",
5862      borderColor: "rgb(229 229 229 / var(--tw-border-opacity))",
5863      padding: "12px 12px",
5864      fontFamily: "monospace",
5865      ":focus": {
5866        "--tw-border-opacity": "1",
5867        borderColor: "rgb(32 37 43 / var(--tw-border-opacity))"
5868      }
5869    },
5870    type: "text",
5871    name: "exp-date",
5872    placeholder: L("mm/yy"),
5873    value: L(Be(u.expMonth, u.expYear)),
5874    onChange: Ct,
5875    autoComplete: "cc-exp"
5876  }))), a("label", {
5877    css: {
5878      marginBottom: "20px !important",
5879      display: "flex",
5880      width: "100%"
5881    }
5882  }, a("p", {
5883    css: {
5884      marginBottom: "8px",
5885      fontSize: "14px"
5886    }
5887  }, n("설명_카드비밀번호")), a(ft, {
5888    ref: (d) => N.current[J.cardPassword] = d,
5889    css: {
5890      width: "100%",
5891      minWidth: "0px",
5892      borderRadius: "2px",
5893      borderWidth: "1px",
5894      borderStyle: "solid",
5895      "--tw-border-opacity": "1",
5896      borderColor: "rgb(229 229 229 / var(--tw-border-opacity))",
5897      padding: "12px 12px",
5898      fontFamily: "monospace",
5899      ":focus": {
5900        "--tw-border-opacity": "1",
5901        borderColor: "rgb(32 37 43 / var(--tw-border-opacity))"
5902      }
5903    },
5904    type: "text",
5905    name: "password",
5906    placeholder: L("00**"),
5907    value: v,
5908    onSelect: (d) => {
5909      d.target instanceof HTMLInputElement && (d.target.selectionStart = d.target.selectionEnd);
5910    },
5911    onChange: Et,
5912    autoComplete: "current-password"
5913  })), u.isPersonalCard === "Y" ? a("label", {
5914    css: {
5915      marginBottom: "20px !important",
5916      display: "flex",
5917      width: "100%"
5918    }
5919  }, a("p", {
5920    css: {
5921      marginBottom: "8px",
5922      fontSize: "14px"
5923    }
5924  }, n("설명_생년월일")), a(ft, {
5925    ref: (d) => N.current[J.birthDate] = d,
5926    css: {
5927      width: "100%",
5928      minWidth: "0px",
5929      borderRadius: "2px",
5930      borderWidth: "1px",
5931      borderStyle: "solid",
5932      "--tw-border-opacity": "1",
5933      borderColor: "rgb(229 229 229 / var(--tw-border-opacity))",
5934      padding: "12px 12px",
5935      fontFamily: "monospace",
5936      ":focus": {
5937        "--tw-border-opacity": "1",
5938        borderColor: "rgb(32 37 43 / var(--tw-border-opacity))"
5939      }
5940    },
5941    type: "text",
5942    name: "birthday",
5943    placeholder: n("설명_6자리만입력"),
5944    value: L(u.idNo),
5945    onChange: We,
5946    autoComplete: "bday"
5947  })) : a("label", {
5948    css: {
5949      marginBottom: "20px !important",
5950      display: "flex",
5951      width: "100%"
5952    }
5953  }, a("p", {
5954    css: {
5955      marginBottom: "8px",
5956      fontSize: "14px"
5957    }
5958  }, "사업자번호"), a(ft, {
5959    ref: (d) => N.current[J.businessNumber] = d,
5960    css: {
5961      width: "100%",
5962      minWidth: "0px",
5963      borderRadius: "2px",
5964      borderWidth: "1px",
5965      borderStyle: "solid",
5966      "--tw-border-opacity": "1",
5967      borderColor: "rgb(229 229 229 / var(--tw-border-opacity))",
5968      padding: "12px 12px",
5969      fontFamily: "monospace",
5970      ":focus": {
5971        "--tw-border-opacity": "1",
5972        borderColor: "rgb(32 37 43 / var(--tw-border-opacity))"
5973      }
5974    },
5975    type: "text",
5976    name: "business-number",
5977    placeholder: L(q("0000000000")),
5978    value: L(q(u.idNo)),
5979    onChange: Re,
5980    autoComplete: "bnumber"
5981  })), a("p", {
5982    css: {
5983      marginBottom: "4px",
5984      fontSize: "14px",
5985      fontWeight: "700",
5986      "--tw-text-opacity": "1",
5987      color: "rgb(32 37 43 / var(--tw-text-opacity))"
5988    }
5989  }
5989, n("타이틀_이용및정보제공약관")), a("label", {
5990    css: {
5991      marginBottom: "4px !important",
5992      display: "flex !important",
5993      columnGap: "10px",
5994      "--tw-text-opacity": "1 !important",
5995      color: "rgb(32 37 43 / var(--tw-text-opacity)) !important"
5996    }
5997  }, a(lt, {
5998    checked: ["privacy", "policy", "third", "payment"].every((d) => typeof O[d] < "u"),
5999    onChange: De
6000  }, a("span", {
6001    css: {
6002      marginLeft: "8px"
6003    }
6004  }, n("설명_전체동의")))), a("fieldset", {
6005    css: {
6006      marginBottom: "16px"
6007    }
6008  }, a(Mt, {
6009    key: "policy",
6010    css: {
6011      paddingLeft: "30px"
6012    },
6013    svgPlainText: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path transform="translate(-14,10) rotate(-45)" d="M15 18L9 12L15 6" stroke="${encodeURIComponent(r)}" /></svg>`
6014  }, a(lt, {
6015    name: "policy",
6016    checked: O.policy ?? !1,
6017    onChange: kt
6018  }, a("span", {
6019    css: {
6020      marginLeft: "8px"
6021    }
6022  }, n("설명_전자금융거래이용약관"), a("a", {
6023    css: [{
6024      color: `${o} !important`
6025    }, {
6026      marginLeft: "4px",
6027      textDecorationLine: "underline"
6028    }],
6029    href: "#policy",
6030    onClick: () => F("policy")
6031  }, n("버튼_자세히"))))), a(Mt, {
6032    key: "privacy",
6033    css: {
6034      paddingLeft: "30px"
6035    },
6036    svgPlainText: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path transform="translate(-14,10) rotate(-45)" d="M15 18L9 12L15 6" stroke="${encodeURIComponent(r)}" /></svg>`
6037  }, a(lt, {
6038    name: "privacy",
6039    checked: O.privacy ?? !1,
6040    onChange: kt
6041  }, a("span", {
6042    css: {
6043      marginLeft: "8px"
6044    }
6045  }, n("설명_개인정보수집및이용동의"), a("a", {
6046    css: [{
6047      color: `${o} !important`
6048    }, {
6049      marginLeft: "4px",
6050      textDecorationLine: "underline"
6051    }],
6052    href: "#privacy",
6053    onClick: () => F("privacy")
6054  }, n("버튼_자세히"))))), a(Mt, {
6055    key: "third",
6056    css: {
6057      paddingLeft: "30px"
6058    },
6059    svgPlainText: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path transform="translate(-14,10) rotate(-45)" d="M15 18L9 12L15 6" stroke="${encodeURIComponent(r)}" /></svg>`
6060  }, a(lt, {
6061    name: "third",
6062    checked: O.third ?? !1,
6063    onChange: kt
6064  }, a("span", {
6065    css: {
6066      marginLeft: "8px"
6067    }
6068  }, n("버튼_개인정보제3자제공동의"), a("a", {
6069    css: [{
6070      color: `${o} !important`
6071    }, {
6072      marginLeft: "4px",
6073      textDecorationLine: "underline"
6074    }],
6075    href: "#third",
6076    onClick: () => F("third")
6077  }, n("버튼_자세히"))))), a(Mt, {
6078    key: "payment",
6079    css: {
6080      paddingLeft: "30px"
6081    },
6082    svgPlainText: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path transform="translate(-14,10) rotate(-45)" d="M15 18L9 12L15 6" stroke="${encodeURIComponent(r)}" /></svg>`
6083  }, a(lt, {
6084    name: "payment",
6085    checked: O.payment ?? !1,
6086    onChange: kt
6087  }, a("span", {
6088    css: {
6089      marginLeft: "8px"
6090    }
6091  }, n("설명_정기과금이용동의"), a("a", {
6092    css: [{
6093      color: `${o} !important`
6094    }, {
6095      marginLeft: "4px",
6096      textDecorationLine: "underline"
6097    }],
6098    href: "#payment",
6099    onClick: () => F("payment")
6100  }, n("버튼_자세히")))))), a("div", {
6101    css: {
6102      width: "100%"
6103    }
6104  }, a(Wt, {
6105    type: "submit",
6106    css: [{
6107      width: "100%",
6108      cursor: "pointer",
6109      borderWidth: "1px",
6110      paddingTop: "12px",
6111      paddingBottom: "12px",
6112      fontSize: "15px",
6113      fontWeight: "700"
6114    }, {
6115      backgroundColor: o,
6116      borderColor: o
6117    }]
6118  }, n("버튼_등록하기"))))), a(xt, {
6119    isOpen: l,
6120    title: (P == null ? void 0 : P.title) ?? "",
6121    onRequestClose: at
6122  }, a("div", {
6123    dangerouslySetInnerHTML: {
6124      __html: (P == null ? void 0 : P.html) ?? ""
6125    }
6126  })));
6127}, oe = 9 * 60 * 60 * 1e3, qc = (t) => {
6128  if (typeof t != "string" || t === "")
6129    return null;
6130  const e = new Date(t);
6131  if (Number.isNaN(e.getTime()))
6132    return null;
6133  const n = new Date(e.getTime() + oe);
6134  return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes(), n.getUTCSeconds());
6135}, wl = () => {
6136  const t = new Date(Date.now() + oe);
6137  return new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate());
6138}, vl = (t) => Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds()) - oe, Sl = (t) => qc(t), Uc = [It.SOS02.code, It.SOS04.code], Cl = (t) => t.firstPaymentDate || t.wtime, kl = (t) => t.statusCd === It.SOS04.code && !!t.deliveryStartDate, Gc = (t) => Array.isArray(t) ? t.length > 0 ? t.join(",") : void 0 : t, Xc = ({
6139  page: t = 1,
6140  count: e = 10,
6141  status: n,
6142  queryOptions: o
6143} = {}) => {
6144  const r = Gc(n);
6145  return {
6146    queryKey: ["OrderSubscription", r, t, e],
6147    queryFn: async ({
6148      signal: c
6149    }) => {
6150      const s = new URL("/ajax/oms/OMS_wrap_customer_v1_subscription.cm", window.location.origin);
6151      s.searchParams.set("page", String(t)), s.searchParams.set("count", String(e)), r && s.searchParams.set("status", r);
6152      const {
6153        data: i
6154      } = await tt.get(s.href, {
6155        signal: c
6156      });
6157      if (!/^SUCCESS$/i.test(i == null ? void 0 : i.message))
6158        throw new Error(i == null ? void 0 : i.message);
6159      return i == null ? void 0 : i.data;
6160    },
6161    ...o,
6162    enabled: typeof r == "string" && ((o == null ? void 0 : o.enabled) ?? !0)
6163  };
6164}, _l = ({
6165  triggerLabel: t
6166} = {}) => {
6167  const {
6168    ct: e
6169  } = pt(), n = Rt(), [o, r] = D.useState(!1), c = Qt("default", {
6170    fontSize: "13px",
6171    fontWeight: "unset"
6172  }), s = Qt("primary", {
6173    fontSize: "13px",
6174    fontWeight: "bold"
6175  }), i = () => {
6176    r(!0);
6177  }, l = () => {
6178    r(!1);
6179  }, {
6180    data: p
6181  } = Tt(en()), {
6182    data: g
6183  } = Tt(Xc({
6184    // 거래 개시 대기(SOS04)도 예정 결제가 있어 카드 삭제를 막아야 한다 — 서버 가드와 동일 기준
6185    status: Uc,
6186    queryOptions: {
6187      select: (f) => f.totalCount === 0
6188    }
6189  })), {
6190    mutateAsync: b
6191  } = yt({
6192    mutationKey: ["RemoveCreditCard"],
6193    mutationFn: async (f) => {
6194      const {
6195        data: y
6196      } = await tt.delete(`/ajax/oms/OMS_wrap_customer_v1_payment_billings_{billingInfoCode}.cm?billingInfoCode=${f}`);
6197      if (!/^SUCCESS$/i.test(y.message))
6198        throw new Error(y.message, {
6199          cause: y
6200        });
6201      l();
6202    },
6203    onError: async (f) => {
6204      if (f instanceof Error && ye(f)) {
6205        const {
6206          code: y
6207        } = f.cause, v = (window.LOCALIZE[`E_${y || "10002"}`] || window.LOCALIZE.설명_서비스이용시오류발생)();
6208        alert(v);
6209      }
6210    }
6211  }), u = async () => {
6212    typeof (p == null ? void 0 : p.billingInfoCode) == "string" && (await b(p == null ? void 0 : p.billingInfoCode), n.invalidateQueries({
6213      queryKey: ["SubscriptionBillingInfo"]
6214    }));
6215  }, w = g ? e("설명_등록된결제수단을삭제") : "현재 진행중인 정기구독 주문이 있어 카드를 삭제할 수 없습니다.<br>카드 변경 혹은 정기구독 해지 후 카드를 삭제해 주세요.";
6216  return a(D.Fragment, null, a("button", {
6217    css: c,
6218    onClick: i
6219  }, t ?? e("버튼_삭제")), a(xt, {
6220    isOpen: o,
6221    onRequestClose: l,
6222    maxWidth: "420px",
6223    contentStyle: {
6224      padding: "24px"
6225    }
6226  }, a("div", {
6227    css: {
6228      marginBottom: "24px"
6229    },
6230    dangerouslySetInnerHTML: {
6231      __html: w
6232    }
6233  }), g ? a("footer", {
6234    css: {
6235      display: "flex",
6236      justifyContent: "flex-end"
6237    }
6238  }, a("button", {
6239    css: c,
6240    onClick: l
6241  }, e("버튼_취소")), a("button", {
6242    css: [s, {
6243      marginLeft: "4px"
6244    }],
6245    onClick: u
6246  }, e("버튼_삭제"))) : a("footer", {
6247    css: {
6248      display: "flex",
6249      justifyContent: "flex-end"
6250    }
6251  }, a("button", {
6252    css: c,
6253    onClick: l
6254  }, e("버튼_확인")))));
6255};
6256function Qc(t) {
6257  if (typeof window > "u")
6258    return !1;
6259  const e = window.LIMIT_API_LIST;
6260  return Array.isArray(e) ? e.includes(t) : !1;
6261}
6262const Zc = 500, Jc = D.forwardRef(({
6263  onChange: t,
6264  hideShowButton: e
6265}, n) => {
6266  const {
6267    ct: o
6268  } = pt(), [r, c] = R.useState(!1), [s, i] = R.useState(Zc), {
6269    shouldUseFallback: l
6270  } = on(), p = Qt("global", {
6271    marginLeft: "10px",
6272    paddingLeft: "0",
6273    paddingRight: "0",
6274    width: "50%"
6275  }), g = k("brand_color"), b = R.useRef(null), u = () => {
6276    c(!0);
6277  }, w = () => {
6278    c(!1);
6279  };
6280  D.useImperativeHandle(n, () => ({
6281    openModal: u,
6282    closeModal: w
6283  }));
6284  const f = (y) => {
6285    typeof window.kakao > "u" || b.current !== null && b.current && new window.kakao.Postcode({
6286      oncomplete: (v) => {
6287        var m;
6288        let _ = v.address ?? "";
6289        const B = (_.match(/ /g) || []).length <= 2, N = v.sido && _.trim().charAt(0) === v.sido.charAt(0);
6290        if (B && !N) {
6291          const S = v.roadAddress || v.autoRoadAddress || v.jibunAddress || v.autoJibunAddress;
6292          (m = window.DD_RUM) == null || m.addError(new Error("[DialogDaumAddress] 주소가 비어있거나 불완전함"), {
6293            address: v,
6294            fallbackAddress: S,
6295            mfe: {
6296              name: "oms-customer-front-office",
6297              version: "oms-customer-front-office_1790042271714"
6298            }
6299          }), S && (_ = S);
6300        }
6301        v.addressType === "R" && (v.bname !== "" || v.buildingName !== "") && (_ += ` (${[v.bname, v.buildingName].filter(
6301Boolean).join(", ")})`), t({
6302          zipcode: v.zonecode,
6303          addr1: _
6304        }), c(!1);
6305      },
6306      theme: {
6307        emphTextColor: g
6308      },
6309      width: "100%",
6310      height: "100%",
6311      submitMode: !1,
6312      useBannerLink: !1,
6313      onclose: () => {
6314        c(!1);
6315      },
6316      onresize: (v) => {
6317        var _;
6318        (_ = b.current) == null || _.setAttribute("style", `width:100%;height:${v.height}px;`);
6319      }
6320    }).embed(b.current);
6321  };
6322  return D.useEffect(() => {
6323    if (typeof window.kakao > "u") {
6324      const y = document.createElement("script");
6325      y.src = "//t1.kakaocdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js", document.head.appendChild(y);
6326    }
6327  }, []), a(D.Fragment, null, e ? null : a("button", {
6328    type: "button",
6329    css: p,
6330    onClick: u
6331  }, o("버튼_주소찾기")), a(xt, {
6332    isOpen: r,
6333    title: o("버튼_주소찾기"),
6334    onRequestClose: w,
6335    onAfterOpen: l ? void 0 : f,
6336    contentStyle: {
6337      padding: 0
6338    }
6339  }, l ? a(rn, {
6340    onComplete: (y) => {
6341      t(y), c(!1);
6342    },
6343    height: s
6344  }) : a("div", {
6345    css: {
6346      minHeight: "500px"
6347    },
6348    ref: b
6349  })));
6350}), Pl = D.forwardRef(({
6351  value: t,
6352  onChange: e,
6353  shippingCountries: n,
6354  isGiftForm: o
6355}, r) => {
6356  const c = !Qc("daum_map"), {
6357    data: s
6358  } = Tt(sn({
6359    queryOptions: {
6360      select: (m) => m.useCommonEntrancePasswordInput
6361    }
6362  })), {
6363    ct: i
6364  } = pt(), l = D.useRef(null), p = D.useRef(null), [g, b] = D.useState(), [u, w] = D.useState(), [f, y] = D.useState();
6365  D.useImperativeHandle(r, () => ({
6366    clearErrors: () => {
6367      b(void 0), w(void 0);
6368    },
6369    clearForms: () => {
6370      b(i("설명_n글자이상입력해주세요", 2)), w(i("설명_전화번호를입력하세요"));
6371    }
6372  }));
6373  const {
6374    mutateAsync: v
6375  } = yt({
6376    mutationKey: ["AddressFormatFromShippingCountryCode"],
6377    mutationFn: async (m) => {
6378      const {
6379        data: S
6380      } = await tt.post("/ajax/oms/OMS_get_deliv_address_format.cm", {
6381        country: m
6382      }, {
6383        withCredentials: !0
6384      });
6385      return S == null ? void 0 : S.addressFormat;
6386    }
6387  }), _ = (m) => {
6388    var S;
6389    if (!(!(m.target instanceof HTMLInputElement) && !(m.target instanceof HTMLSelectElement))) {
6390      if (m.target.name === "name" && b(void 0), m.target.name === "call") {
6391        const {
6392          value: W
6393        } = m.target;
6394        w(void 0);
6395        const V = (W == null ? void 0 : W.replace(/\D/g, "")) ?? "";
6396        y(W !== V ? i("설명_숫자만입력해주세요") : void 0);
6397      }
6398      if (typeof e == "function")
6399        switch (m.target.name) {
6400          case "name": {
6401            e({
6402              ...t,
6403              name: m.target.value || void 0,
6404              receiverName: m.target.value || void 0
6405            });
6406            break;
6407          }
6408          case "call": {
6409            const {
6410              value: W
6411            } = m.target, V = (W == null ? void 0 : W.replace(/\D/g, "")) ?? "";
6412            e({
6413              ...t,
6414              call: V,
6415              receiverCall: V
6416            });
6417            const A = (S = l.current) == null ? void 0 : S.querySelector('input[name="call"]');
6418            A && (A.value = V);
6419            break;
6420          }
6421          case "country": {
6422            const W = m.target.value;
6423            v(W).then((V) => {
6424              var A;
6425              if (m.target instanceof HTMLSelectElement) {
6426                const X = (((A = n == null ? void 0 : n.find(({
6427                  code: et
6428                }) => m.target instanceof HTMLSelectElement ? et === W : !1)) == null ? void 0 : A.name) ?? "").slice(0, 20);
6429                e({
6430                  ...t,
6431                  street: void 0,
6432                  building: void 0,
6433                  state: void 0,
6434                  city: void 0,
6435                  addr1: void 0,
6436                  addr2: void 0,
6437                  zipcode: void 0,
6438                  addressFormat: V,
6439                  country: W,
6440                  shippingCountryCode: W,
6441                  countryName: X
6442                });
6443              }
6444            });
6445            break;
6446          }
6447          default: {
6448            e({
6449              ...t,
6450              // value가 '' 이면 undefined로 처리됨.
6451              [m.target.name]: m.target.value || void 0
6452            });
6453            break;
6454          }
6455        }
6456    }
6457  }, O = (m) => {
6458    typeof e == "function" && e({
6459      ...t,
6460      ...m
6461    });
6462  }, B = (m) => {
6463    if (m.target.value.length === 0) {
6464      b(i(o ? "설명_받는분성함을입력해주세요" : "설명_주문자이름을입력해주세요"));
6465      return;
6466    } else if (m.target.value.length < 2) {
6467      b(i("설명_n글자이상입력해주세요", 2));
6468      return;
6469    }
6470    b(void 0);
6471  }, N = (m) => {
6472    const {
6473      value: S
6474    } = m.target, W = (S == null ? void 0 : S.replace(/\D/g, "")) ?? "";
6475    if (W.length === 0) {
6476      w(i("설명_전화번호를입력하세요"));
6477      return;
6478    } else if (/^\d{7,15}$/.test(W)) {
6479      if (/KR/i.test((t == null ? void 0 : t.country) ?? "") && // https://github.com/im
6479webme/imweb/blob/d47c9c85a18a787e546db3cb7a8ce4a535d91ccf/vendor/js/common.js#L503
6480      window.kr_callnum_validate_chk(W) === !1) {
6481        w(i("설명_올바른전화번호를입력하세요"));
6482        return;
6483      }
6484    } else {
6485      w(i("설명_올바른전화번호를입력하세요"));
6486      return;
6487    }
6488    w(void 0);
6489  };
6490  switch (D.useEffect(() => {
6491    if (l.current === null)
6492      return;
6493    const m = l.current.querySelector('input[name="name"]'), S = l.current.querySelector('input[name="call"]');
6494    m instanceof HTMLInputElement && (m.value = (t == null ? void 0 : t.name) ?? ""), S instanceof HTMLInputElement && (S.value = (t == null ? void 0 : t.call) ?? "");
6495  }, [t == null ? void 0 : t.name, t == null ? void 0 : t.call]), t == null ? void 0 : t.addressFormat) {
6496    case "KR":
6497      return a("fieldset", {
6498        ref: l,
6499        onChange: _
6500      }, a("div", {
6501        css: {
6502          marginBottom: "6px",
6503          display: "flex",
6504          "@media not all and (min-width: 768px)": {
6505            flexDirection: "column"
6506          }
6507        }
6508      }, a("div", {
6509        css: {
6510          flex: "1 1 0%"
6511        }
6512      }, a("input", {
6513        css: [{
6514          marginBottom: "4px",
6515          height: "36px",
6516          width: "100%",
6517          borderWidth: "1px",
6518          borderStyle: "solid",
6519          "--tw-border-opacity": "1",
6520          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6521          padding: "0.5em 0.75em",
6522          fontSize: "14px"
6523        }, typeof g < "u" ? {
6524          "--tw-border-opacity": "1",
6525          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
6526        } : null],
6527        type: "text",
6528        name: "name",
6529        placeholder: i(o ? "설명_받는분성함" : "설명_수령인"),
6530        defaultValue: (t == null ? void 0 : t.name) ?? "",
6531        onBlur: B
6532      }), typeof g < "u" ? a("p", {
6533        css: {
6534          margin: "2px 0 0",
6535          fontSize: "12px",
6536          "--tw-text-opacity": "1",
6537          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6538        }
6539      }, g) : null), a("div", {
6540        css: {
6541          marginLeft: "10px",
6542          flex: "1 1 0%",
6543          "@media not all and (min-width: 768px)": {
6544            marginLeft: "0px",
6545            marginTop: "10px"
6546          }
6547        }
6548      }, a("input", {
6549        css: [{
6550          marginBottom: "4px",
6551          height: "36px",
6552          width: "100%",
6553          borderWidth: "1px",
6554          borderStyle: "solid",
6555          "--tw-border-opacity": "1",
6556          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6557          padding: "0.5em 0.75em",
6558          fontSize: "14px"
6559        }, typeof u < "u" || typeof f < "u" ? {
6560          "--tw-border-opacity": "1",
6561          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
6562        } : null],
6563        type: "text",
6564        name: "call",
6565        placeholder: i("설명_연락처"),
6566        defaultValue: (t == null ? void 0 : t.call) ?? "",
6567        onFocus: () => y(void 0),
6568        onBlur: N
6569      }), typeof u < "u" ? a("p", {
6570        css: {
6571          margin: "2px 0 0",
6572          fontSize: "12px",
6573          "--tw-text-opacity": "1",
6574          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6575        }
6576      }, u) : null, typeof f < "u" ? a("p", {
6577        css: {
6578          margin: "2px 0 0",
6579          fontSize: "12px",
6580          "--tw-text-opacity": "1",
6581          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6582        }
6583      }, f) : null)), a("div", {
6584        css: {
6585          marginBottom: "10px",
6586          display: "flex",
6587          width: "calc(50% - 5px)",
6588          "@media not all and (min-width: 768px)": {
6589            width: "100%"
6590          }
6591        }
6592      }, a("input", {
6593        type: "text",
6594        name: "zipcode",
6595        placeholder: i("설명_우편번호"),
6596        readOnly: c,
6597        value: (t == null ? void 0 : t.zipcode) ?? "",
6598        onClick: () => {
6599          var m;
6600          return c && ((m = p.current) == null ? void 0 : m.openModal());
6601        },
6602        css: {
6603          height: "36px",
6604          width: "50%",
6605          borderWidth: "1px",
6606          borderStyle: "solid",
6607          "--tw-border-opacity": "1",
6608          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6609          padding: "8px 12px",
6610          fontSize: "14px"
6611        }
6612      }), c && a(Jc, {
6613        ref: p,
6614        onChange: O
6615      })), a("input", {
6616        type: "text",
6617        name: "addr1",
6618        placeholder: i("설명_주소"),
6619        readOnly: c,
6620        value: (t == null ? void 0 : t.addr1) ?? "",
6621        onClick: () => {
6622          var m;
6623          return c && ((m = p.current) == null ? void 0 : m.openModal());
6624        },
6625        css: {
6626          marginBottom: "10px",
6627          height: "36px",
6628          width: "100%",
6629          borderWidth: "1px",
6630          borderStyle: "solid",
6631          "--tw-border-opacity": "1",
6632          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6633          padding: "8px 12px",
6634          fontSize: "14px"
6635        }
6636      }), a("input", {
6637        type: "text",
6638        name: "addr2",
6639        placeholder: i("설명_상세주소"),
6640        defaultValue: (t == null ? void 0 : t.addr2) ?? "",
6641        css: {
6642          marginBottom: "10px",
6643          height: "36px",
6644          width: "100%",
6645          borderWidth: "1px",
6646          borderStyle: "solid",
6647          "--tw-border-opacity": "1",
6648          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6649          padding: "8px 12px",
6650          fontSize: "14px"
6651        }
6652      }), s && a("input", {
6653        type: "text",
6654        name: "commonEntrancePassword",
6655        placeholder: i("설명_공동현관비밀번호"),
6656        defaultValue: (t == null ? void 0 : t.commonEntrancePassword) ?? "",
6657        css: {
6658          marginBottom: "10px",
6659          height: "36px",
6660          width: "100%",
6661          borderWidth: "1px",
6662          borderStyle: "solid",
6663          "--tw-border-opacity": "1",
6664          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6665          padding: "8px 12px",
6666          fontSize: "14px"
6667        },
6668        maxLength: 30
6669      }));
6670    case "5":
6671      return a("fieldset", {
6672        ref: l,
6673        onChange: _
6674      }, a("div", {
6675        css: {
6676          marginBottom: "6px",
6677          display: "flex",
6678          "@media not all and (min-width: 768px)": {
6679            flexDirection: "column"
6680          }
6681        }
6682      }, a("div", {
6683        css: {
6684          flex: "1 1 0%"
6685        }
6686      }, a("input", {
6687        css: [{
6688          marginBottom: "4px",
6689          height: "36px",
6690          width: "100%",
6691          borderWidth: "1px",
6692          borderStyle: "solid",
6693          "--tw-border-opacity": "1",
6694          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6695          padding: "0.5em 0.75em",
6696          fontSize: "14px"
6697        }, typeof g < "u" ? {
6698          "--tw-border-opacity": "1",
6699          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
6700        } : null],
6701        type: "text",
6702        name: "name",
6703        placeholder: i(o ? "설명_받는분성함" : "설명_수령인"),
6704        defaultValue: (t == null ? void 0 : t.name) ?? "",
6705        onBlur: B
6706      }), typeof g < "u" ? a("p", {
6707        css: {
6708          margin: "2px 0 0",
6709          fontSize: "12px",
6710          "--tw-text-opacity": "1",
6711          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6712        }
6713      }, g) : null), a("div", {
6714        css: {
6715          marginLeft: "10px",
6716          flex: "1 1 0%",
6717          "@media not all and (min-width: 768px)": {
6718            marginLeft: "0px",
6719            marginTop: "10px"
6720          }
6721        }
6722      }, a("input", {
6723        css: [{
6724          marginBottom: "4px",
6725          height: "36px",
6726          width: "100%",
6727          borderWidth: "1px",
6728          borderStyle: "solid",
6729          "--tw-border-opacity": "1",
6730          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6731          padding: "0.5em 0.75em",
6732          fontSize: "14px"
6733        }, typeof u < "u" || typeof f < "u" ? {
6734          "--tw-border-opacity": "1",
6735          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
6736        } : null],
6737        type: "text",
6738        name: "call",
6739        placeholder: i("설명_연락처"),
6740        defaultValue: (t == null ? void 0 : t.call) ?? "",
6741        onFocus: () => y(void 0),
6742        onBlur: N
6743      }), typeof u < "u" ? a("p", {
6744        css: {
6745          margin: "2px 0 0",
6746          fontSize: "12px",
6747          "--tw-text-opacity": "1",
6748          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6749        }
6750      }, u) : null, typeof f < "u" ? a("p", {
6751        css: {
6752          margin: "2px 0 0",
6753          fontSize: "12px",
6754          "--tw-text-opacity": "1",
6755          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6756        }
6757      }, f) : null)), a("div", {
6758        css: {
6759          marginBottom: "5px"
6760        }
6761      }, a(ht, {
6762        name: "country",
6763        defaultValue: t == null ? void 0 : t.country
6764      }, (n ?? []).map(({
6765        code: m,
6766        name: S
6767      }) => a("option", {
6768        key: m,
6769        value: m
6770      }, S)))), a("input", {
6771        type: "text",
6772        name: "street",
6773        placeholder: i("설명_거리주소"),
6774        defaultValue: (t == null ? void 0 : t.street) ?? "",
6775        css: {
6776          marginBottom: "10px",
6777          height: "36px",
6778          width: "100%",
6779          borderWidth: "1px",
6780          borderStyle: "solid",
6781          "--tw-border-opacity": "1",
6782          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6783          padding: "8px 12px",
6784          fontSize: "14px"
6785        }
6786      }), a("input", {
6787        type: "text",
6788        name: "building",
6789        placeholder: i("설명_건물명"),
6790        defaultValue: (t == null ? void 0 : t.building) ?? "",
6791        css: {
6792          marginBottom: "10px",
6793          height: "36px",
6794          width: "100%",
6795          borderWidth: "1px",
6796          borderStyle: "solid",
6797          "--tw-border-opacity": "1",
6798          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6799          padding: "8px 12px",
6800          fontSize: "14px"
6801        }
6802      }), a("input", {
6803        type: "text",
6804        name: "city",
6805        placeholder: i("설명_도시명"),
6806        defaultValue: (t == null ? void 0 : t.city) ?? "",
6807        css: {
6808          marginBottom: "10px",
6809          height: "36px",
6810          width: "100%",
6811          borderWidth: "1px",
6812          borderStyle: "solid",
6813          "--tw-border-opacity": "1",
6814          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6815          padding: "8px 12px",
6816          fontSize: "14px"
6817        }
6818      }), a("input", {
6819        type: "text",
6820        name: "state",
6821        placeholder: i("설명_도시군"),
6822        defaultValue: (t == null ? void 0 : t.state) ?? "",
6823        css: {
6824          marginBottom: "10px",
6825          height: "36px",
6826          width: "100%",
6827          borderWidth: "1px",
6828          borderStyle: "solid",
6829          "--tw-border-opacity": "1",
6830          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6831          padding: "8px 12px",
6832          fontSize: "14px"
6833        }
6834      }), a("input", {
6835        type: "text",
6836        name: "zipcode",
6837        placeholder: i("설명_우편번호"),
6838        defaultValue: (t == null ? void 0 : t.zipcode) ?? "",
6839        css: {
6840          marginBottom: "10px",
6841          height: "36px",
6842          width: "100%",
6843          borderWidth: "1px",
6844          borderStyle: "solid",
6845          "--tw-border-opacity": "1",
6846          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6847          padding: "8px 12px",
6848          fontSize: "14px"
6849        }
6850      }));
6851    case "3":
6852      return a("fieldset", {
6853        ref: l,
6854        onChange: _
6855      }, a("div", {
6856        css: {
6857          marginBottom: "6px",
6858          display: "flex",
6859          "@media not all and (min-width: 768px)": {
6860            flexDirection: "column"
6861          }
6862        }
6863      }, a("div", {
6864        css: {
6865          flex: "1 1 0%"
6866        }
6867      }, a("input", {
6868        css: [{
6869          marginBottom: "4px",
6870          height: "36px",
6871          width: "100%",
6872          borderWidth: "1px",
6873          borderStyle: "solid",
6874          "--tw-border-opacity": "1",
6875          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6876          padding: "0.5em 0.75em",
6877          fontSize: "14px"
6878        }, typeof g < "u" ? {
6879          "--tw-border-opacity": "1",
6880          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
6881        } : null],
6882        type: "text",
6883        name: "name",
6884        placeholder: i(o ? "설명_받는분성함" : "설명_수령인"),
6885        defaultValue: (t == null ? void 0 : t.name) ?? "",
6886        onBlur: B
6887      }), typeof g < "u" ? a("p", {
6888        css: {
6889          margin: "2px 0 0",
6890          fontSize: "12px",
6891          "--tw-text-opacity": "1",
6892          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6893        }
6894      }, g) : null), a("div", {
6895        css: {
6896          marginLeft: "10px",
6897          flex: "1 1 0%",
6898          "@media not all and (min-width: 768px)": {
6899            marginLeft: "0px",
6900            marginTop: "10px"
6901          }
6902        }
6903      }, a("input", {
6904        css: [{
6905          marginBottom: "4px",
6906          height: "36px",
6907          width: "100%",
6908          borderWidth: "1px",
6909          borderStyle: "solid",
6910          "--tw-border-opacity": "1",
6911          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6912          padding: "0.5em 0.75em",
6913          fontSize: "14px"
6914        }, typeof u < "u" || typeof f < "u" ? {
6915          "--tw-border-opacity": "1",
6916          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
6917        } : null],
6918        type: "text",
6919        name: "call",
6920        placeholder: i("설명_연락처"),
6921        defaultValue: (t == null ? void 0 : t.call) ?? "",
6922        onFocus: () => y(void 0),
6923        onBlur: N
6924      }), typeof u < "u" ? a("p", {
6925        css: {
6926          margin: "2px 0 0",
6927          fontSize: "12px",
6928          "--tw-text-opacity": "1",
6929          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6930        }
6931      }, u) : null, typeof f < "u" ? a("p", {
6932        css: {
6933          margin: "2px 0 0",
6934          fontSize: "12px",
6935          "--tw-text-opacity": "1",
6936          color: "rgb(251 70 55 / var(--tw-text-opacity))"
6937        }
6938      }, f) : null)), a("div", {
6939        css: {
6940          marginBottom: "5px"
6941        }
6942      }, a(ht, {
6943        name: "country",
6944        defaultValue: t == null ? void 0 : t.country
6945      }, (n ?? []).map(({
6946        code: m,
6947        name: S
6948      }) => a("option", {
6949        key: m,
6950        value: m
6951      }, S)))), a("input", {
6952        type: "text",
6953        name: "addr1",
6954        placeholder: i("설명_주소"),
6955        defaultValue: (t == null ? void 0 : t.addr1) ?? "",
6956        css: {
6957          marginBottom: "10px",
6958          height: "36px",
6959          width: "100%",
6960          borderWidth: "1px",
6961          borderStyle: "solid",
6962          "--tw-border-opacity": "1",
6963          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6964          padding: "8px 12px",
6965          fontSize: "14px"
6966        }
6967      }), a("input", {
6968        type: "text",
6969        name: "addr2",
6970        placeholder: i("설명_상세주소"),
6971        defaultValue: (t == null ? void 0 : t.addr2) ?? "",
6972        css: {
6973          marginBottom: "10px",
6974          height: "36px",
6975          width: "100%",
6976          borderWidth: "1px",
6977          borderStyle: "solid",
6978          "--tw-border-opacity": "1",
6979          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6980          padding: "8px 12px",
6981          fontSize: "14px"
6982        }
6983      }), a("input", {
6984        type: "text",
6985        name: "zipcode",
6986        placeholder: i("설명_우편번호"),
6987        defaultValue: (t == null ? void 0 : t.zipcode) ?? "",
6988        css: {
6989          marginBottom: "10px",
6990          height: "36px",
6991          width: "100%",
6992          borderWidth: "1px",
6993          borderStyle: "solid",
6994          "--tw-border-opacity": "1",
6995          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
6996          padding: "8px 12px",
6997          fontSize: "14px"
6998        }
6999      }));
7000    case "TW":
7001      return a("fieldset", {
7002        ref: l,
7003        onChange: _
7004      }, a("div", {
7005        css: {
7006          marginBottom: "6px",
7007          display: "flex",
7008          "@medi
7008a not all and (min-width: 768px)": {
7009            flexDirection: "column"
7010          }
7011        }
7012      }, a("div", null, a("input", {
7013        css: [{
7014          marginBottom: "4px",
7015          height: "36px",
7016          width: "100%",
7017          borderWidth: "1px",
7018          borderStyle: "solid",
7019          "--tw-border-opacity": "1",
7020          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7021          padding: "0.5em 0.75em",
7022          fontSize: "14px"
7023        }, typeof g < "u" ? {
7024          "--tw-border-opacity": "1",
7025          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
7026        } : null],
7027        type: "text",
7028        name: "name",
7029        placeholder: i(o ? "설명_받는분성함" : "설명_수령인"),
7030        defaultValue: (t == null ? void 0 : t.name) ?? "",
7031        onBlur: B
7032      }), typeof g < "u" ? a("p", {
7033        css: {
7034          margin: "2px 0 0",
7035          fontSize: "12px",
7036          "--tw-text-opacity": "1",
7037          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7038        }
7039      }, g) : null), a("div", {
7040        css: {
7041          marginLeft: "10px",
7042          flex: "1 1 0%",
7043          "@media not all and (min-width: 768px)": {
7044            marginLeft: "0px",
7045            marginTop: "10px"
7046          }
7047        }
7048      }, a("input", {
7049        css: [{
7050          marginBottom: "4px",
7051          height: "36px",
7052          width: "100%",
7053          borderWidth: "1px",
7054          borderStyle: "solid",
7055          "--tw-border-opacity": "1",
7056          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7057          padding: "0.5em 0.75em",
7058          fontSize: "14px"
7059        }, typeof u < "u" || typeof f < "u" ? {
7060          "--tw-border-opacity": "1",
7061          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
7062        } : null],
7063        type: "text",
7064        name: "call",
7065        placeholder: i("설명_연락처"),
7066        defaultValue: (t == null ? void 0 : t.call) ?? "",
7067        onFocus: () => y(void 0),
7068        onBlur: N
7069      }), typeof u < "u" ? a("p", {
7070        css: {
7071          margin: "2px 0 0",
7072          fontSize: "12px",
7073          "--tw-text-opacity": "1",
7074          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7075        }
7076      }, u) : null, typeof f < "u" ? a("p", {
7077        css: {
7078          margin: "2px 0 0",
7079          fontSize: "12px",
7080          "--tw-text-opacity": "1",
7081          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7082        }
7083      }, f) : null)), a("div", {
7084        css: {
7085          marginBottom: "5px"
7086        }
7087      }, a(ht, {
7088        name: "country",
7089        defaultValue: t == null ? void 0 : t.country
7090      }, (n ?? []).map(({
7091        code: m,
7092        name: S
7093      }) => a("option", {
7094        key: m,
7095        value: m
7096      }, S)))), a("input", {
7097        type: "text",
7098        name: "city",
7099        placeholder: i("설명_도시명"),
7100        defaultValue: (t == null ? void 0 : t.city) ?? "",
7101        css: {
7102          marginBottom: "10px",
7103          height: "36px",
7104          width: "100%",
7105          borderWidth: "1px",
7106          borderStyle: "solid",
7107          "--tw-border-opacity": "1",
7108          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7109          padding: "8px 12px",
7110          fontSize: "14px"
7111        }
7112      }), a("input", {
7113        type: "text",
7114        name: "street",
7115        placeholder: i("설명_거리주소"),
7116        defaultValue: (t == null ? void 0 : t.street) ?? "",
7117        css: {
7118          marginBottom: "10px",
7119          height: "36px",
7120          width: "100%",
7121          borderWidth: "1px",
7122          borderStyle: "solid",
7123          "--tw-border-opacity": "1",
7124          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7125          padding: "8px 12px",
7126          fontSize: "14px"
7127        }
7128      }), a("input", {
7129        type: "text",
7130        name: "addr1",
7131        placeholder: i("설명_주소"),
7132        defaultValue: (t == null ? void 0 : t.addr1) ?? "",
7133        css: {
7134          marginBottom: "10px",
7135          height: "36px",
7136          width: "100%",
7137          borderWidth: "1px",
7138          borderStyle: "solid",
7139          "--tw-border-opacity": "1",
7140          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7141          padding: "8px 12px",
7142          fontSize: "14px"
7143        }
7144      }), a("input", {
7145        type: "text",
7146        name: "zipcode",
7147        placeholder: i("설명_우편번호"),
7148        defaultValue: (t == null ? void 0 : t.zipcode) ?? "",
7149        css: {
7150          marginBottom: "10px",
7151          height: "36px",
7152          width: "100%",
7153          borderWidth: "1px",
7154          borderStyle: "solid",
7155          "--tw-border-opacity": "1",
7156          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7157          padding: "8px 12px",
7158          fontSize: "14px"
7159        }
7160      }));
7161    case "VN":
7162      return a("fieldset", {
7163        ref: l,
7164        onChange: _
7165      }, a("div", {
7166        css: {
7167          marginBottom: "6px",
7168          display: "flex",
7169          "@media not all and (min-width: 768px)": {
7170            flexDirection: "column"
7171          }
7172        }
7173      }, a("div", null, a("input", {
7174        css: [{
7175          marginBottom: "4px",
7176          height: "36px",
7177          width: "100%",
7178          borderWidth: "1px",
7179          borderStyle: "solid",
7180          "--tw-border-opacity": "1",
7181          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7182          padding: "0.5em 0.75em",
7183          fontSize: "14px"
7184        }, typeof g < "u" ? {
7185          "--tw-border-opacity": "1",
7186          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
7187        } : null],
7188        type: "text",
7189        name: "name",
7190        placeholder: i(o ? "설명_받는분성함" : "설명_수령인"),
7191        defaultValue: (t == null ? void 0 : t.name) ?? "",
7192        onBlur: B
7193      }), typeof g < "u" ? a("p", {
7194        css: {
7195          margin: "2px 0 0",
7196          fontSize: "12px",
7197          "--tw-text-opacity": "1",
7198          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7199        }
7200      }, g) : null), a("div", {
7201        css: {
7202          marginLeft: "10px",
7203          flex: "1 1 0%",
7204          "@media not all and (min-width: 768px)": {
7205            marginLeft: "0px",
7206            marginTop: "10px"
7207          }
7208        }
7209      }, a("input", {
7210        css: [{
7211          marginBottom: "4px",
7212          height: "36px",
7213          width: "100%",
7214          borderWidth: "1px",
7215          borderStyle: "solid",
7216          "--tw-border-opacity": "1",
7217          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7218          padding: "0.5em 0.75em",
7219          fontSize: "14px"
7220        }, typeof u < "u" || typeof f < "u" ? {
7221          "--tw-border-opacity": "1",
7222          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
7223        } : null],
7224        type: "text",
7225        name: "call",
7226        placeholder: i("설명_연락처"),
7227        defaultValue: (t == null ? void 0 : t.call) ?? "",
7228        onFocus: () => y(void 0),
7229        onBlur: N
7230      }), typeof u < "u" ? a("p", {
7231        css: {
7232          margin: "2px 0 0",
7233          fontSize: "12px",
7234          "--tw-text-opacity": "1",
7235          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7236        }
7237      }, u) : null, typeof f < "u" ? a("p", {
7238        css: {
7239          margin: "2px 0 0",
7240          fontSize: "12px",
7241          "--tw-text-opacity": "1",
7242          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7243        }
7244      }, f) : null)), a("div", {
7245        css: {
7246          marginBottom: "5px"
7247        }
7248      }, a(ht, {
7249        name: "country",
7250        defaultValue: t == null ? void 0 : t.country
7251      }, (n ?? []).map(({
7252        code: m,
7253        name: S
7254      }) => a("option", {
7255        key: m,
7256        value: m
7257      }, S)))), a("input", {
7258        type: "text",
7259        name: "state",
7260        placeholder: i("설명_도시군"),
7261        defaultValue: (t == null ? void 0 : t.state) ?? "",
7262        css: {
7263          marginBottom: "10px",
7264          height: "36px",
7265          width: "100%",
7266          borderWidth: "1px",
7267          borderStyle: "solid",
7268          "--tw-border-opacity": "1",
7269          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7270          padding: "8px 12px",
7271          fontSize: "14px"
7272        }
7273      }), a("input", {
7274        type: "text",
7275        name: "city",
7276        placeholder: i("설명_도시명"),
7277        defaultValue: (t == null ? void 0 : t.city) ?? "",
7278        css: {
7279          marginBottom: "10px",
7280          height: "36px",
7281          width: "100%",
7282          borderWidth: "1px",
7283          borderStyle: "solid",
7284          "--tw-border-opacity": "1",
7285          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7286          padding: "8px 12px",
7287          fontSize: "14px"
7288        }
7289      }), a("input", {
7290        type: "text",
7291        name: "addr1",
7292        placeholder: i("설명_주소"),
7293        defaultValue: (t == null ? void 0 : t.addr1) ?? "",
7294        css: {
7295          marginBottom: "10px",
7296          height: "36px",
7297          width: "100%",
7298          borderWidth: "1px",
7299          borderStyle: "solid",
7300          "--tw-border-opacity": "1",
7301          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7302          padding: "8px 12px",
7303          fontSize: "14px"
7304        }
7305      }));
7306    case "HK":
7307      return a("fieldset", {
7308        ref: l,
7309        onChange: _
7310      }, a("div", {
7311        css: {
7312          marginBottom: "6px",
7313          display: "flex",
7314          "@media not all and (min-width: 768px)": {
7315            flexDirection: "column"
7316          }
7317        }
7318      }, a("div", null, a("input", {
7319        css: [{
7320          marginBottom: "4px",
7321          height: "36px",
7322          width: "100%",
7323          borderWidth: "1px",
7324          borderStyle: "solid",
7325          "--tw-border-opacity": "1",
7326          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7327          padding: "0.5em 0.75em",
7328          fontSize: "14px"
7329        }, typeof g < "u" ? {
7330          "--tw-border-opacity": "1",
7331          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
7332        } : null],
7333        type: "text",
7334        name: "name",
7335        placeholder: i(o ? "설명_받는분성함" : "설명_수령인"),
7336        defaultValue: (t == null ? void 0 : t.name) ?? "",
7337        onBlur: B
7338      }), typeof g < "u" ? a("p", {
7339        css: {
7340          margin: "2px 0 0",
7341          fontSize: "12px",
7342          "--tw-text-opacity": "1",
7343          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7344        }
7345      }, g) : null), a("div", {
7346        css: {
7347          marginLeft: "10px",
7348          flex: "1 1 0%",
7349          "@media not all and (min-width: 768px)": {
7350            marginLeft: "0px",
7351            marginTop: "10px"
7352          }
7353        }
7354      }, a("input", {
7355        css: [{
7356          marginBottom: "4px",
7357          height: "36px",
7358          width: "100%",
7359          borderWidth: "1px",
7360          borderStyle: "solid",
7361          "--tw-border-opacity": "1",
7362          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7363          padding: "0.5em 0.75em",
7364          fontSize: "14px"
7365        }, typeof u < "u" || typeof f < "u" ? {
7366          "--tw-border-opacity": "1",
7367          borderColor: "rgb(251 70 55 / var(--tw-border-opacity))"
7368        } : null],
7369        type: "text",
7370        name: "call",
7371        placeholder: i("설명_연락처"),
7372        defaultValue: (t == null ? void 0 : t.call) ?? "",
7373        onFocus: () => y(void 0),
7374        onBlur: N
7375      }), typeof u < "u" ? a("p", {
7376        css: {
7377          margin: "2px 0 0",
7378          fontSize: "12px",
7379          "--tw-text-opacity": "1",
7380          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7381        }
7382      }, u) : null, typeof f < "u" ? a("p", {
7383        css: {
7384          margin: "2px 0 0",
7385          fontSize: "12px",
7386          "--tw-text-opacity": "1",
7387          color: "rgb(251 70 55 / var(--tw-text-opacity))"
7388        }
7389      }, f) : null)), a("div", {
7390        css: {
7391          marginBottom: "5px"
7392        }
7393      }, a(ht, {
7394        name: "country",
7395        defaultValue: t == null ? void 0 : t.country
7396      }, (n ?? []).map(({
7397        code: m,
7398        name: S
7399      }) => a("option", {
7400        key: m,
7401        value: m
7402      }, S)))), a("input", {
7403        type: "text",
7404        name: "city",
7405        placeholder: i("설명_도시명"),
7406        defaultValue: (t == null ? void 0 : t.city) ?? "",
7407        css: {
7408          marginBottom: "10px",
7409          height: "36px",
7410          width: "100%",
7411          borderWidth: "1px",
7412          borderStyle: "solid",
7413          "--tw-border-opacity": "1",
7414          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7415          padding: "8px 12px",
7416          fontSize: "14px"
7417        }
7418      }), a("input", {
7419        type: "text",
7420        name: "street",
7421        placeholder: i("설명_거리주소"),
7422        defaultValue: (t == null ? void 0 : t.street) ?? "",
7423        css: {
7424          marginBottom: "10px",
7425          height: "36px",
7426          width: "100%",
7427          borderWidth: "1px",
7428          borderStyle: "solid",
7429          "--tw-border-opacity": "1",
7430          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7431          padding: "8px 12px",
7432          fontSize: "14px"
7433        }
7434      }), a("input", {
7435        type: "text",
7436        name: "addr1",
7437        placeholder: i("설명_주소"),
7438        defaultValue: (t == null ? void 0 : t.addr1) ?? "",
7439        css: {
7440          marginBottom: "10px",
7441          height: "36px",
7442          width: "100%",
7443          borderWidth: "1px",
7444          borderStyle: "solid",
7445          "--tw-border-opacity": "1",
7446          borderColor: "rgb(221 221 221 / var(--tw-border-opacity))",
7447          padding: "8px 12px",
7448          fontSize: "14px"
7449        }
7450      }));
7451  }
7452  return null;
7453});
7454Object.assign(tt.defaults, cn);
7455const Ml = (t) => ({
7456  queryKey: ["MemberShippingAddresses"],
7457  queryFn: async ({
7458    pageParam: e = 1,
7459    signal: n
7460  }) => {
7461    const {
7462      data: o
7463    } = await tt.post("/ajax/oms/OMS_get_member_shipping_address.cm", {
7464      page: e,
7465      page_size: pi
7466    }, {
7467      signal: n
7468    });
7469    return Object.assign(o, {
7470      list: o.list ?? []
7471    }), o;
7472  },
7473  // TODO: 기본 & 최신 배송지에 대한 정렬
7474  select: ({
7475    pages: e,
7476    pageParams: n
7477  }) => ({
7478    pages: e.map(({
7479      list: o
7480    }) => o.flatMap((r) => r ? nn(r) : [])),
7481    pageParams: e.map(({
7482      page: o
7483    }) => o)
7484  }),
7485  getNextPageParam: (e, n) => {
7486    if (e.has_next)
7487      return e.page + 1;
7488  },
7489  keepPreviousData: !0,
7490  ...t
7491}), Tl = D.forwardRef(({
7492  selected: t,
7493  disabled: e,
7494  value: n,
7495  isLast: o,
7496  children: r,
7497  onChange: c
7498}, s) => a("li", {
7499  css: {
7500    position: "relative",
7501    marginBottom: "28px"
7502  },
7503  ref: o ? s : void 0
7504}, a("label", {
7505  css: [{
7506    display: "block",
7507    width: "100%"
7508  }, e ? {
7509    cursor: "not-allowed"
7510  } : {
7511    cursor: "pointer"
7512  }]
7513}, a("div", {
7514  css: {
7515    display: "flex",
7516    alignItems: "flex-start"
7517  }
7518}, a("div", {
7519  css: {
7520    marginRight: "16px",
7521    padding: "3px"
7522  }
7523}, a(Gt, {
7524  name: "shipping_address",
7525  value: n,
7526  checked: t,
7527  disabled: e,
7528  onChange: c
7529})), a("div", {
7530  css: {
7531    flex: "1 1 0%"
7532  }
7533}, r))), o ? null : a("hr", {
7534  css: {
7535    marginTop: "16px",
7536    marginBottom: "16px",
7537    "--tw-border-opacity": "1",
7538    borderColor: "rgb(229 229 229 / var(--tw-border-opacity))"
7539  }
7540}))), $l = ({
7541  subscriptionOrderCode: t,
7542  queryOptions: e
7543} = {}) => ({
7544  queryKey: ["PayingPeriod", t],
7545  queryFn: async ({
7546    signal: n
7547  }) => {
7548    var r;
7549    const {
7550      data: o
7551    } = await tt.get(`/ajax/oms/OMS_wrap_customer_v1_subscription_{subscriptionOrderCode}_cycle.cm?subscriptionOrderCode=${t}`, {
7552      signal: n
7553    });
7554    if (!/^SUCCESS$/i.test(o == null ? void 0 : o.message))
7555      throw new Error(o == null ? void 0 : o.message);
7556    return {
7557      ...o == null ? void 0 : o.data,
7558      list: ((r = o == null ? void 0 : o.data) == null ? void 0 : r.list) ?? []
7559    };
7560  },
7561  ...e,
7562  // 빈 문자열 차단 필수 — useURLSearchParams 는 `?subscription_order_code=` 를 '' 로 넘기고,
7563  // 빈 코드로 요청하면 BE @IsNotEmpty 가 400 을 준다. 이 쿼리를 쓰는 MyPageOrderSubscription 앱엔
7564  // ErrorBoundary 가 없어 throw 가 페이지 전체를 깨뜨린다. (형제 쿼리 order-subscription-previous-paid 와 동일 가드)
7565  enabled: typeof t == "string" && t.length > 0 && ((e == null ? void 0 : e.enabled) ?? !0)
7566});
7567export {
7568  Uc as A,
7569  ll as C,
7570  xl as D,
7571  Pl as F,
7572  ee as I,
7573  Mt as L,
7574  ul as M,
7575  Lc as N,
7576  Xc as O,
7577  fl as P,
7578  Gt as R,
7579  ht as S,
7580  cl as a,
7581  lt as b,
7582  ml as c,
7583  gl as d,
7584  pl as e,
7585  ne as f,
7586  dl as g,
7587  hl as h,
7588  yl as i,
7589  rt as j,
7590  bl as k,
7591  _l as l,
7592  sl as m,
7593  Ml as n,
7594  Tl as o,
7595  $l as p,
7596  wl as q,
7597  Nc as r,
7598  Ia as s,
7599  qc as t,
7600  Qt as u,
7601  vl as v,
7602  Cl as w,
7603  Gc as x,
7604  kl as y,
7605  Sl as z
7606};
7607//# sourceMappingURL=subscription-cycle.query-H10t46vU.js.map

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.